Commit Graph

46 Commits

Author SHA1 Message Date
Qiu Jian
cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +08:00
Yousong Zhou
8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
wanyaoqi
90ee44ad78 delete snapshots on delete disk or guest, instance snapshot fix 2019-10-16 19:23:12 +08:00
Yousong Zhou
bb1fd0bc59 treewide: 将default:"true"的bool字段改为tristate.TriState
使用以下命令进行字段类型更改

	ag 'bool .*`.*default:"true"' pkg \
		| grep models \
		| cut -f1 -d: \
		| xargs sed -i -r -e 's/bool (.*)default:"true"/tristate.TriState \1default:"true"/'
2019-06-20 11:03:38 +00:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
ioito
d2c9c7d740 update 2019-05-21 21:29:05 +08:00
Qiu Jian
a1c0099f58 fix: 1. network interface for prepaid-recycle VM incorrect
2. aliyun not support import image of RHEL
2019-04-25 08:47:45 +08:00
Qiu Jian
a95c0bac62 update query.Count to query.CountWithError 2019-04-23 12:02:35 +08:00
Qiu Jian
29c1fd3855 fix: clearn up codes that impacted by query.Count return value changes 2019-04-23 11:32:16 +08:00
Qiu Jian
da57161fd0 fix: move all consts in compute/models to apis/compute 2019-04-17 09:23:19 +08:00
Zexi
db0e303798 make 'go test ./...' pass 2019-04-15 19:54:46 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li
6df6880501 define scheduler apis output and input structs 2019-03-20 12:03:29 +08:00
Qiu Jian
e74f31b7c0 fix: cleanup project sync codes 2019-03-14 09:46:29 +08:00
Zexi Li
c94ec06dc2 Merge remote-tracking branch 'origin/release/2.6.0' into confict/lzx-resolv-20190309 2019-03-09 14:02:36 +08:00
邱剑
7032617d78 Merge pull request #1191 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-host-renew-prepaid-recycle-sanity-check to release/2.6.0
* commit 'e62ceb5007e57d71e4f049640528b91a20ae86f6':
  show expired_at colume for host
  fix: validate host status before doing renew prepaid recycle
2019-03-08 21:07:05 +08:00
Qiu Jian
d23414f3f6 fix: validate host status before doing renew prepaid recycle 2019-03-08 00:01:14 +08:00
周有松
a97e2faea8 Automatic merge from release/2.6.0 -> release/2.7.0
* commit '84d91f281103767b964a6b09aeba85c854a59c5e':
  修正一些错误信息描述
2019-03-07 16:57:59 +08:00
屈轩
58ee33c3f0 修正一些错误信息描述 2019-03-07 16:48:15 +08:00
Qiu Jian
605cbb2558 Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock 2019-03-04 01:42:39 +08:00
Qiu Jian
62ebc90f2a feature: allow auto sychrnoization of cloud account 2019-03-04 01:09:34 +08:00
Qiu Jian
67540f32b4 fix: cannot undo recycle of expired prepaid vm 2019-02-23 18:45:33 +08:00
邱剑
0edeb53d28 update models with db.Update interface 2019-02-22 12:06:13 +08:00
Qiu Jian
066d155a16 fix: logger did not record start time of events 2019-02-16 13:47:18 +08:00
Qiu Jian
0ad4c22879 Merge branch 'release/2.5.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-2.6.0-20190213
Conflicts:
	pkg/compute/tasks/cloud_provider_sync_info_task.go
2019-02-13 12:12:19 +08:00
Qiu Jian
6fccbfcd6e Merge branch 'release/2.4.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-2.5.0-20190213
Conflicts:
	pkg/compute/models/guests.go
	pkg/compute/service/service.go
	pkg/compute/tasks/cloud_provider_sync_info_task.go
2019-02-13 12:01:01 +08:00
Qiu Jian
173526ce06 fix: correct VM expiration date before clean expired prepaid VM 2019-02-12 01:02:57 +08:00
Qiu Jian
77b95af988 feature:
1. change SERVER_TYPE_* to NETWORK_TYpE_*
2. add NETWORK_TYPE_PXE and NETWORK_TYPE_IPMI specifically for baremetal PXE and IPMI
network allocation
2019-01-29 23:38:15 +08:00
Qiu Jian
4cd39a70c0 1.
增加server-change-ipaddr接口,允许在运行和关机更换主机的IP地址。
2. 允许主机加入一个network多次(目前允许2次)
2019-01-27 00:30:43 +08:00
Qiu Jian
d6a416acb2 修正:status检查主体引用错误 2019-01-15 10:51:30 +08:00
Qiu Jian
706238404e 修正:1. 包年包月资源池添加和减少操作需要做状态检查 2.
同步时候忽略包年包月资源次的host和storage
2019-01-11 21:13:40 +08:00
Qiu Jian
4fb3974367 修正对包年包月主机续费后没有效果的问题 2019-01-09 16:42:59 +08:00
Qiu Jian
6744fb8a4a server-create创建prepaid主机,增加auto_prepaid_recycle参数,创建后自动加入包年包月资源池 2019-01-05 17:28:34 +08:00
Qiu Jian
c477a05f39 增加:1.
包年包月主机加入资源池后,如果auto_delete=true,则自动删除该主机 2.
包年包月资源池的宿主机支持续费操作Perform(host.id,
"renew-prepaid-recycle", {"duration": "1m"})
2019-01-05 09:51:58 +08:00
Qiu Jian
e18302866b 1. GetShortDesc()改为GetShortDesc(ctx context.Context)
2.
VirtualResource的GetShortDesc()中增加owner_tenant_id和owner_tenant两个字段
2018-12-13 23:55:51 +08:00
Qiu Jian
33e0269d08 minor fixes 2018-12-12 21:01:02 +08:00
Qiu Jian
75f04cae51 修正:prepaid recycle host的storage driver设置为Linux 2018-12-12 19:55:35 +08:00
Qiu Jian
e0d7cbb431 修正:host-undo-recycle fail 2018-12-12 19:23:03 +08:00
Qiu Jian
5759bf872a minor fixes 2018-12-10 11:05:04 +08:00
Qiu Jian
1df72fbc6b update usages 2018-12-10 10:45:29 +08:00
Qiu Jian
00a17b360e update usage statics for prepaid-pool servers 2018-12-10 00:50:26 +08:00
Qiu Jian
b69bc264a2 修正:1. 多余1个磁盘的recycle主机创建失败 2018-12-08 10:29:16 +08:00
Qiu Jian
75701657d0 fix bugs 2018-12-07 21:18:52 +08:00
Qiu Jian
e5f91a0e41 make fmt 2018-12-07 18:02:57 +08:00
Qiu Jian
965e84ea36 update 2018-12-07 02:57:58 +08:00
Qiu Jian
8ab0275a36 temp commit 2018-12-05 18:06:57 +08:00