Commit Graph

558 Commits

Author SHA1 Message Date
Qiu Jian
d6956095f8 fix: delete servers that has been removed results in delete_failed
status
2019-04-21 00:01:51 +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
yunion-ci-robot
a31e8172a1 Merge pull request #489 from ioito/hotfix/qx-validate-create-vpc
腾讯云要求vpc掩码范围需在16 - 28之间
2019-04-19 20:07:21 +08:00
ioito
4ed3d9c192 腾讯云要求vpc掩码范围需在16 - 28之间 2019-04-19 17:53:24 +08:00
ioito
74fdcd97b7 避免标签为空时,未返回{data:[]}结构 2019-04-19 11:21:47 +08:00
yunion-ci-robot
85b1ccd2cb Merge pull request #452 from ioito/hotfix/qx-metadata-list
兼容标签返回结构
2019-04-18 13:55:10 +08:00
ioito
ebf53fad26 兼容标签返回结构 2019-04-18 11:20:12 +08:00
yunion-ci-robot
85b41c0dc1 Merge pull request #457 from yousong/bugfix/yousong-enhance-db-tasks
Bugfix/yousong enhance db tasks
2019-04-18 10:57:10 +08:00
Yousong Zhou
3b2677acd1 tasks: 改善查询语句
- 索引简化,obj_id的区分度非常高,且在QueryTasksOfObject()等相关的查询中是确定出现的
   - obj_name可认为被obj_id唯一确定
   - created_at若出现可假设被MySQL Index Merge优化
   - stage的值是可枚举的
 - Join taskobjects_tbl时,避免使用子查询查全表
 - 使用Union合并两个查询结果
2019-04-17 14:58:50 +00:00
yunion-ci-robot
8d1cb49cc7 Merge pull request #450 from swordqiu/hotfix/qj-fix-kvm-force-use-qcow2-image
fix: 1. force use qcow2 format when creating kvm VM 2. add template lock
2019-04-17 22:34:15 +08:00
yunion-ci-robot
2b6d188d9d Merge pull request #423 from Zexi/bugfix/add-status-api
fix: region statusstandalone resource get status api missing
2019-04-17 22:25:11 +08:00
Zexi
c724a216a3 fix: region statusstandalone resource get status api missing 2019-04-17 21:08:38 +08:00
wanyaoqi
d13c229dbc 1. server export to libvirt generate virt install script
2. fix server import from libvirt
2019-04-17 17:48:05 +08:00
Qiu Jian
5294c15c4b fix: 1. force use qcow2 format when creating kvm VM 2. add template lock 2019-04-17 16:55:58 +08:00
Zexi
869b249374 hide some server metadata 2019-04-17 14:28:24 +08:00
yunion-ci-robot
50b3dd84bd Merge pull request #429 from ioito/hotfix/qx-metata-api
优化返回标签结构
2019-04-17 10:31:10 +08:00
ioito
e3800c8ffc 添加返回distinct标签 2019-04-17 10:22:50 +08:00
Qiu Jian
5e4ac465d5 remove comments 2019-04-17 09:29:58 +08:00
Qiu Jian
037d37d0e3 fix: pkg/cloudcommon/policy/ go test failure 2019-04-17 09:29:58 +08:00
Zexi
db0e303798 make 'go test ./...' pass 2019-04-15 19:54:46 +08:00
屈轩
bf7a6a2b30 移除重复代码 (#359) 2019-04-12 16:58:08 +08:00
屈轩
6a5dbbf237 增加判断subtask准确度 (#352) 2019-04-12 14:59:09 +08:00
Jian Qiu
0c9fcb2ba4 fix: fail to fetch private image as admin role (#334) 2019-04-11 13:46:08 +08:00
屈轩
dd7f7c9bf9 避免guest状态出现中间ready的情况 (#296) 2019-04-10 11:20:08 +08:00
Jian Qiu
826ddd2af4 Hotfix/qj cloud account provider enable status (#283)
* fix: make cloud account&provider enable status more consistent

* comment out FetchCustomizeColumns debug info

* fix: cloud account periodic probe should not relay on enabled status

* misc bug fixes
2019-04-09 22:12:10 +08:00
Zexi Li
1da81c57f8 fix: scheduler input incompatibility (#271) 2019-04-08 20:19:32 +08:00
wanyaoqi
0623419b6a action log send to ws service (#224) 2019-04-04 20:39:30 +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
wanyaoqi
f0810bbe88 guest import from libvirt (#11)
* import servers from libvirt

* dep add libvirt-go-xml

* fix code

* fix code
2019-04-01 23:07:41 +08:00
Jian Qiu
0a0a44b48d fix: anonymous user may have admin priviliges (#124) 2019-03-31 15:24:41 +08:00
Qiu Jian
2519ef5551 fix: ni usercred cause rbac check panic 2019-03-29 22:08:26 +08:00
Qiu Jian
fefdb706f3 fix: the default policy for actions not matching any rule defaults to allow 2019-03-29 20:45:38 +08:00
屈轩
2583b4ed83 避免续费时未刷新虚拟机状态 2019-03-29 18:36:43 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
8ef19141a2 add more optimization 2019-03-29 00:42:23 +08:00
Zhang Dongliang
a5774f4fd1 删除底层的 action log 2019-03-28 22:32:40 +08:00
Qiu Jian
c969de28cb fix: sync project may sync empty project ID 2019-03-25 19:53:28 +08:00
李泽玺
29ff559f9d Merge pull request #1319 in YUNIONIO/onecloud from ~LIZEXI/onecloud:bugfix/lzx-shcedtag-policy to release/2.8.0
* commit '3ba6d4186cb9b69fec7e7c978cc3483d66768bea':
  dynamic schedule support resource type
2019-03-25 11:18:11 +08:00
Zexi Li
3ba6d4186c dynamic schedule support resource type 2019-03-23 19:31:28 +08:00
李泽玺
f2a4181f0e Merge pull request #1317 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-metadata-log-duplicate to release/2.8.0
* commit '05196aacaa3d9a57d27dae994a57b145a2bcbbc2':
  metadata日志:避免对比更新后的value
2019-03-23 15:52:17 +08:00
屈轩
05196aacaa metadata日志:避免对比更新后的value 2019-03-23 15:13:55 +08:00
Zexi Li
4a9477b9d7 resolve conflict 2019-03-22 15:59:42 +08:00
屈轩
56f8d57428 添加普通用户查看metadata权限 2019-03-22 11:54:33 +08:00
屈轩
4ee31813b4 避免mysql _ 是特殊字符问题 2019-03-22 11:35:41 +08:00
Zexi Li
18db5cbc32 fix: ServerCreateInput keypair and secgroup wrong json tag 2019-03-22 09:20:39 +08:00
邱剑
d573c041ef Merge pull request #1289 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-metadata-fix to release/2.8.0
* commit '6eacd8196c26239a6c53a6192d19f4138edb17cb':
  不截断系统metadata key
2019-03-21 18:37:47 +08:00
屈轩
6eacd8196c 不截断系统metadata key 2019-03-21 17:09:50 +08:00
邱剑
2310be389b Automatic merge from release/2.7.0 -> release/2.8.0
* commit '430df17dd3cefe0f25328ce69bf8d8b0d0e95253':
  fix: SyncOnce should invalidate policy cache
  fix: refine policy match conditions
  minor updates
  fix: simplify rbac policy condition to match projects and roles
2019-03-21 11:31:11 +08:00
邱剑
430df17dd3 Automatic merge from release/2.6.0 -> release/2.7.0
* commit '07304221c0e4f4fa1f75438d24a8feece7202c9f':
  fix: SyncOnce should invalidate policy cache
  fix: refine policy match conditions
  minor updates
  fix: simplify rbac policy condition to match projects and roles
2019-03-21 11:31:11 +08:00
Qiu Jian
78faed91a4 fix: SyncOnce should invalidate policy cache 2019-03-21 11:29:30 +08:00