Commit Graph

64 Commits

Author SHA1 Message Date
Qiu Jian
7bfdc0dce4 fix: cascading sharing problems 2020-04-11 06:49:55 +08:00
Qiu Jian
258db2cb48 fix updates 2020-03-27 01:20:29 +08:00
Qiu Jian
732dcdcb61 feature: system resource domainize 2020-03-27 01:20:29 +08:00
Qiu Jian
e11ceb4c4b feature: allow list/export/sort/distict metadata 2020-03-13 13:12:45 +08:00
Qiu Jian
cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +08:00
Qu Xuan
76d974f6d8 feature: api -> response struct 2020-02-03 10:22:44 +08:00
Yousong Zhou
3cd8049222 cloudcommon: db: allow sysadmin to list deleted resources
The query arg name cannot be "deleted" to avoid collide with resource
field name.
2020-01-17 17:46:08 +08:00
Yousong Zhou
770a6d194d cloudcommon: extend interface for fetching metadata 2020-01-17 17:46:07 +08:00
Qiu Jian
4a8a79a786 bug fixes 2020-01-03 13:58:05 +08:00
Qu Xuan
3875ac219d fix: metadata-list通用化所有资源标签 2019-12-31 11:15:11 +08:00
Qiu Jian
b31bc7fa3d feature: 1. baremetal server reuse host ip 2. server name use expression 2019-12-24 19:04:41 +08:00
Qiu Jian
9d6d28b36a clean usages when resource deleted 2019-12-12 11:31:47 +08:00
Qiu Jian
3dba5360d7 quota recode 2019-12-12 11:31:41 +08:00
Qu Xuan
4e10a80dd2 fix: 抽离disable delete,避免删除账号失败 2019-11-27 20:30:51 +08:00
Zexi Li
d149d84ccc support generate 2019-11-27 10:20:28 +08:00
ioito
1a78a8b229 feature: 支持名称重复数据 2019-09-27 15:43:31 +08:00
wanyaoqi
c648b823b0 misc fix
- optimize batch create validate
2019-09-17 14:42:39 +08:00
Qiu Jian
d745c01313 fix: optimize logger query time 2019-09-04 00:47:25 +08:00
wanyaoqi
2051e618f5 support get model distinct field 2019-08-01 21:34:33 +08:00
Qiu Jian
93b8bac5bb s3gateway round 2 2019-07-24 21:28:41 +08:00
Qiu Jian
f34c8255f2 fix: 1. token add projects when no project specified 2.
IVirtualResourceManager add GetResourceCount() method 3. domainId not
initialized occasionally
2019-07-03 22:38:33 +08: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
6ac7699b46 fix shared projects 2019-06-16 20:57:04 +08:00
wanyaoqi
4523700054 shared project resource 2019-06-16 12:58:18 +08:00
Qiu Jian
74c6a131a4 fix: numerous incorrect privilege issues 2019-06-06 03:23:03 +08:00
Qiu Jian
a6207a8ac7 hotfix: support scope list filter, resolve filter conflict 2019-06-04 23:27:55 +08:00
Qiu Jian
cd809f1a24 fix: server-disk-list failed on wrong field name 2019-06-03 17:19:27 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian
5a660987e6 feature: keystone support phase 1 2019-05-17 13:53:45 +08:00
Zexi
869b249374 hide some server metadata 2019-04-17 14:28:24 +08:00
Jian Qiu
316335267a improve server-list performance (#193)
* improve server-list performance

FetchCustomizeColumns that fetch extra fields for all rows 3. separate
read and write http request session

* update vendor

* update: optimize multi-column indexes
2019-04-03 20:24:28 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
6e8e415235 Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-recode-cloud-account-create-options 2019-03-14 12:11:54 +08:00
Qiu Jian
e74f31b7c0 fix: cleanup project sync codes 2019-03-14 09:46:29 +08:00
Yousong Zhou
8fe4f2ec98 treewide: group imports with goimports
./goimports -w -local yunion.io/x/onecloud/ -corp yunion.io/x/ $GOPATH/src/yunion.io/x/onecloud/{cmd,pkg}
2019-03-13 10:46:12 +00:00
Yousong Zhou
c6e4fff0d0 lb: 不记录来自lbagent的GET查询请求
要求

 - _orig=lbagent
 - userCred.HasSystemAdminPrivilege()
2019-03-12 03:39:20 +00:00
李泽玺
3021e37e87 Automatic merge from release/2.5.0 -> release/2.6.0
* commit '9d6a769c8b0afe2fc5b9126f749135cf70fcd7ae':
  baremetal: host convert failed
  fix: recode host convert codes to fix scheduler failure issues
2019-02-13 15:48:21 +08:00
Qiu Jian
924ae176b8 fix: recode host convert codes to fix scheduler failure issues 2019-02-13 14:51:05 +08:00
Qiu Jian
4cd39a70c0 1.
增加server-change-ipaddr接口,允许在运行和关机更换主机的IP地址。
2. 允许主机加入一个network多次(目前允许2次)
2019-01-27 00:30:43 +08:00
Qiu Jian
606802b582 修正:1. attach权限校验总是false 2. 增加climc user
default_project_id相关方法
2019-01-09 20:49:26 +08:00
Qiu Jian
cd3f46871a minor fixes 2018-12-27 00:05:57 +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
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
334f3605ba minor fixes 2018-12-01 00:42:29 +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
Qiu Jian
d00dd6c42a Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181109-2.3.0
Conflicts:
	Gopkg.lock
	pkg/cloudcommon/db/modelbase.go
2018-11-09 12:37:21 +08:00
wanyaoqi
721ac4b912 optimize export list
make dep
2018-11-09 11:55:31 +08:00
邱剑
918f047cff Automatic merge from release/2.2.0 -> release/2.3.0
* commit '557d28244c144ac079fa3b5e12b2822c8988069a':
  support export filter
2018-10-31 19:50:31 +08:00
wanyaoqi
3151e782e9 support export filter 2018-10-31 19:48:10 +08:00