Commit Graph

39 Commits

Author SHA1 Message Date
mhf
69afca389a feature(region): add resource order 2023-04-10 17:57:53 +08:00
Qiu Jian
7c1d6f913d fix: set eipid after successful eip association 2023-02-26 09:12:44 +08:00
Jian Qiu
21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian Qiu
daf40a1481 fix(region): not delete groupnetwork when deleting guest (#14488)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-21 11:28:56 +08:00
Qiu Jian
79d4d01606 fix: instance group with classic network cannot associate with eip 2022-03-26 03:24:27 +08:00
ioito
3dfdcd18fc fix(region): remove nullable tag 2022-03-09 11:49:59 +08:00
Qiu Jian
ff58d7c677 fix: filter server by vip or eip of vip 2022-02-15 03:10:29 +08:00
Jian Qiu
9fa6696e3c feature: vip support (#13020)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-01-02 08:49:32 +08:00
Qiu Jian
1d354d8919 1. Remove is_rbac_enable option
2. code changes due to interface change
2021-12-02 10:24:23 +08:00
Qu Xuan
8ba5393ae5 fix(region): optimized validate delete condition query 2021-09-23 09:58:54 +08:00
Qu Xuan
fa5d5a6eb9 fix(region): update swagger api 2021-07-27 11:46:31 +08:00
Yousong Zhou
c2bca8ab39 Feature/yousong text (#7487)
* notify: log with context info

* region: guests: log with context info

* region: hosts: log with context info

* region: misc: remove redundant log

* region: skus: use NewInternalServerError instead of NewGeneralError

* appsrv: dispatcher: preserve text id

* appsrv: dispatcher: remove commented-out code

* cloudcommon: db_dispatcher: note errors that won't be translated

* cloudcommon: db: rbac: preserve text id

* cloudcommon: caller: preserve text id

* treewide: fix fmt string

* region: guest_actions: preserve text id

* region: guest_actions: fix fmt string

* region: usages: fix fmt string

* mcclient: hosts: remove redundant return value

* cloudcommon: fetch: preserve text id

* region: guest_template: preserve text id

* cloudcommon: db: db_dispatcher: preserve text id

* region: guest_actions: preserve text id

* httperrors: add funcs for wrap lang tag into context

* vendor: golang.org/x/text

* httperrors: error with context

* httperrors: HTTPError

* treewide: fix typo

* treewide: use en in source code

* locales: initial version
2020-08-25 15:26:31 +08:00
Jian Qiu
f0f406c243 fix: adjust API input field names according to spec (#7382)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2020-07-30 10:51:00 +08:00
Qiu Jian
880b0ecf4d fix: list item export recode 2020-04-21 11:45:36 +08:00
Qiu Jian
3c9b368c43 feature: fix region list filters round 3 2020-03-12 20:55:22 +08:00
Qiu Jian
f127e258b4 fix: fix region list fitlers, round 1 2020-03-10 03:26:01 +08:00
Qiu Jian
cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +08:00
Qu Xuan
366cbd4e36 统一 details -> isList 2020-02-07 17:54:48 +08:00
Qu Xuan
76d974f6d8 feature: api -> response struct 2020-02-03 10:22:44 +08:00
Qiu Jian
45849355e6 fix: list documentation improvements 2020-01-14 04:17:15 +08:00
Qiu Jian
b9be567ebf use deprecated-by tag to describe deprecated fields 2020-01-13 13:19:47 +08:00
Qiu Jian
29c9d05b5f refine auto-gen swagger documentation 2020-01-13 13:19:47 +08:00
Qiu Jian
14c1ddaccb feature: cloudprovider capability filter and listinput recode 2020-01-13 13:19:47 +08:00
Rain
e36cea3b05 fix(region): Fix that 'Can_delete' disappears due to parameter structuring 2020-01-04 20:52:23 +08:00
郑雨
84661a1bcf refactor: Instance Group's getMoreDetails 2019-12-10 16:00:06 +08:00
郑雨
58d8bf212c fix(region): The param of list instancegroup filter by Guest is 'server' 2019-12-06 10:48:33 +08:00
Zexi Li
018e1ac217 add list input and rewrite codegen use python 2019-11-29 10:18:27 +08:00
郑雨
63291fe28c fix(region): Check if group and guest belong to same project
If group and guest belong to different projects, return httperrors.ForbiddenError.
Fix the bug that disabled instance group can be binded.
2019-11-12 16:20:16 +08:00
郑雨
0fc7919101 modify import package order 2019-11-07 15:53:41 +08:00
郑雨
b59a145184 fix: Fix that fail to create vm with unforced instance group
1. This is a bug because of latest modify about scheduler's instance_group_predicate.
Should set minFree as zero when founding that host can't be used to create vm
with requested forced instance group.
2. Fix some little error of instance group.
3. Add PerformEnable and PerformDisable for instance group.
4. Clean scheduler desc cache after having attached or detached guests and groups
and enabled group. Cleaning was necessary when disable group because disabled
group is prohibited.
5. Add package 'golang.org/x/sync/errgroup'.
2019-11-07 15:35:51 +08:00
Rain
8e55bee9b3 feat & fix: Add batch operator and fix some bugs for instance group
Feature:
1. Add apis: list server by group, list group by server, bind
servers, unbind servers, bind groups, unbind groups.
2. Add climc command and docs corresponding to the above newly added apis
3. Add log about binding and unbinding operator.
4. Support enable and disable instance group.
Fix:
1. Set capacity zeor if there are not enough resource aboue forced
instance group in one host.
2. Change the stage(real delete => pending delete) that guest leave all groups.
2019-11-06 13:06:03 +08:00
Rain
0c93b0c7d4 Feature: Unforced Group which prioritize scheduling guest to host with
enough resources of InstanceGroup and then to host even if this hosts has
no enough resources. Add groups desc in SGuest.ToSchedDesc. The backup
guest also occupies InstanceGroup resources now.
2019-10-17 12:57:43 +08:00
Rain
10991015ef guest persion 2019-10-09 20:43:35 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Qiu Jian
4cd39a70c0 1.
增加server-change-ipaddr接口,允许在运行和关机更换主机的IP地址。
2. 允许主机加入一个network多次(目前允许2次)
2019-01-27 00:30:43 +08:00
Qiu Jian
0b17fe3547 增加keystone policy资源,格式化代码 2018-10-20 21:29:52 +08:00
Zexi Li
22411ffb53 path move: github.com/yunionio -> yunion.io/x 2018-08-11 14:28:18 +08:00
Zexi Li
8ba5ffe1b4 compute models added. 2018-07-27 20:44:26 +08:00