Commit Graph

61 Commits

Author SHA1 Message Date
Qiu Jian
f966aecf51 fix: server change owner did not change disk's owner 2019-07-18 14:01:54 +08:00
Qiu Jian
f184e2d8f9 fix: 1. quota add API 2. tenant cache refresh 3. domain quota not initialize 2019-07-02 03:08:52 +08:00
Yousong Zhou
7bab7724a9 db: 添加IPendingDeletable类型 2019-06-24 14:25:26 +00:00
Qiu Jian
1dbb998844 fix: 1. sync delete projects and related quota&usage data
2. sync delete user/group/domain for ldap driver
3. ModelManager add OrderByExtraFields
2019-06-22 17:05:27 +08:00
Qiu Jian
013a439e6d fix: 1. user-project-list 404 2. check quotas of all projects when set
domain quota 3. host.cpu shows negative number
2019-06-20 00:03:17 +08:00
wanyaoqi
1fc4995aa3 unshare projects on change owner 2019-06-18 23:24:03 +08:00
Zexi
2a00f59122 virtual resource details rename domain to project_domain 2019-06-13 16:06:28 +08:00
Zexi
261e4885c9 region: fix pending_deleted virtual resource filter by name 2019-06-13 15:17:04 +08:00
Qiu Jian
292c2a141c fix: bugs in scope support 2019-06-04 23:27:55 +08:00
Qiu Jian
a6207a8ac7 hotfix: support scope list filter, resolve filter conflict 2019-06-04 23:27:55 +08:00
Jian Qiu
81b9cac556 fix: misc 3level priviliges bugfixes (#1026)
* fix: misc 3level priviliges bugfixes

* misc bugfixes

* misc bugfixes
2019-06-02 08:05:11 +08:00
Qiu Jian
d8e492ee5a misc fixes 2019-05-31 13:56:02 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +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
ffbb7e362b fix: cloud account/provider missing event logs for
delete/enable/disable/change_project
2019-04-20 17:05:29 +08:00
Zexi
c724a216a3 fix: region statusstandalone resource get status api missing 2019-04-17 21:08:38 +08:00
wanyaoqi
0623419b6a action log send to ws service (#224) 2019-04-04 20:39:30 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zhang Dongliang
a5774f4fd1 删除底层的 action log 2019-03-28 22:32:40 +08:00
屈轩
4b6ddfc3cf 默认创建的project_src为local 2019-03-18 20:13:53 +08:00
Qiu Jian
a9bbdddc15 fix: qcloud startVM do not retry implicitly 2019-03-14 16:51:34 +08:00
Qiu Jian
e74f31b7c0 fix: cleanup project sync codes 2019-03-14 09:46:29 +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
cb23c9c1a1 Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock 2019-03-06 00:11:44 +08:00
屈轩
0ce6b70998 更改ProjectSource -> ProjectSrc 2019-03-05 12:05:02 +08:00
屈轩
173034cd26 映射表默认指向provider的project 2019-03-04 16:36:47 +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
Zexi Li
9312401932 cloudcommon: virtualresource ProjectId visible when user list 2019-02-28 20:41:45 +08:00
邱剑
0edeb53d28 update models with db.Update interface 2019-02-22 12:06:13 +08:00
Qiu Jian
9f35039209 add service tag for actionlog 2019-02-18 01:13:40 +08:00
Qiu Jian
8554d13c4a make fmt 2019-02-16 15:17:31 +08:00
Qiu Jian
066d155a16 fix: logger did not record start time of events 2019-02-16 13:47:18 +08:00
Qiu Jian
b215c199df minor fixes 2019-02-09 06:23:23 +08:00
Qiu Jian
2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00
Qiu Jian
739ef05c86 minor fixes 2018-12-14 00:00:56 +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
wanyaoqi
ecc750107b fix conflict 2018-12-01 16:18:11 +08:00
Qiu Jian
e42f1a7744 recode 2018-12-01 12:05:41 +08:00
Qiu Jian
bc02b3b433 1.
取消userCred.IsSystemAdmin(),在使用policy的应用中,通过userCred.IsAdminAllow判断是否是管理员且具备相应的权限。获取token时,需要传入policy.FilterPolicyCredential,将普通userCred转换成支持rbac的userCred
2. 在应用启动时候,必须设置 SetServiceType,否则退出
2018-11-30 23:00:11 +08:00
Yousong Zhou
49382934e5 treewide: 保留httperrors的格式 2018-11-28 07:33:22 +00:00
Qiu Jian
17175bc0a4 改进:1. 部署VM时注入全局和项目公钥 2. 完善keypair的创建和导入功能 3.
其他
2018-10-11 23:04:42 +08:00
TangBin
65880ff857 mcclient error 2018-09-18 14:50:45 +08:00
邱剑
e1627fdd8a Automatic merge from release/2.1.0 -> release/2.2.0
* commit '06af20eb4b9ee058ccb6937409cfcbce166bd5d5':
  cloudcommon: virtualresource: allow setting is_system on creation
  cloudcommon: db: more readable log on sql error
2018-09-18 12:31:01 +08:00
Yousong Zhou
9efad3e417 cloudcommon: virtualresource: allow setting is_system on creation
We have validation against the field yet the rule tag metadata does not
actually allow it
2018-09-18 04:04:04 +00:00
周有松
019784716e Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'f603867960fab8c2aa57a0b7f5eea8aaf12c67c9':
  validators: add Optional() to IValidator for use in ValidateUpdateData()
  mcclient: options: set details=true when --pending-delete-all is specified
  cloudcommon: virtualresource: show pending_deleted field when queried
  cloudcommon: virtualresource: optimize list with --field specified
2018-09-13 11:59:58 +08:00
Yousong Zhou
c66e264aff cloudcommon: virtualresource: show pending_deleted field when queried 2018-09-13 02:06:41 +00:00
邱剑
9c7b95bef5 Automatic merge from release/2.1.0 -> release/2.2.0
* commit '12b1ef939eb190af6c25790a0b8b5357aa678173':
  remove binary
  增加:镜像缓存加锁,避免批量创建时重复上传镜像
  remove binary
  使用inmemory lockman
  initial commit
2018-09-12 14:54:15 +08:00
Qiu Jian
1a30516b0f minor fixes 2018-09-12 01:14:33 +08:00