Commit Graph

1947 Commits

Author SHA1 Message Date
QIU Jian
293afd2e69 fix: remove apiversion param from session 2022-08-25 09:43:50 +08:00
wanyaoqi
d4248017ae featue(host): structure guest description
Structure guest description and fix typo with json method.

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-07-28 17:46:07 +08:00
ioito
ce9e45bdda fix(cloudid): 华为云idp sso跳转指定页面 2022-07-20 20:05:45 +08:00
Jian Qiu
f214ae8913 fix: not detect arm physical nics (#14635)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-07-14 08:52:39 +08:00
Jian Qiu
9fbbe05c6a fix: misc fixes 20220712 (#14614)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-07-12 08:00:57 +08:00
Jian Qiu
b9ed7ce58a fix: fail to sync metadata table for splitable (#14593)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-07-08 09:58:00 +08:00
Qiu Jian
4476b9f701 fix: log admin action logs in separate logs 2022-07-07 07:36:08 +08:00
wanyaoqi
d51d7599d2 feat(region,host): refector guests cgroups (#14558)
* feat(region,host): refector guests cgroups

hostagent will create a root group cloudpods.hostagent at init.
guests group under cloudpods.hostagent. Qemu start params add '-S'
option freeze guest at first, after guest set cgroup or other initialize
hostagent will resume guest.

host support reserve cpus. if has reserved cpus, hostagent will create a
group cloudpods.hostagent.reserved, one thing to note is set host
reserved cpus must ensure host no guests running.

climc usage:
  climc host-reserve-cpus --cpus '2-3,32-33' --mems '0-1' \
    --disable-sched-load-balance <IDS>

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>

* hostman: disable cpuset balancer

Signed-off-by: wanyaoqi <d3lx.yq@gmail.com>
2022-07-02 18:00:48 +08:00
Jian Qiu
26089ffde0 fix: make condition eval compatible with go 1.18 (#14534)
* fix: make condition eval compatible with go 1.18

* fix: update circle-ci image to yunion/centos-build:go-1.18.3-0

* update go,mod go version to 1.18

* update vendor

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-28 00:29:56 +08:00
Jian Qiu
84cdeff92b fix: update vendor for clickhouse v2 (#14520)
* fix: update vendor for clickhouse v2

* fix: fix go vet

* fix: unreachable codes

* fix: composite literal uses unkeyed fields

* fix: ignore bad syntax for struct tag value

* fix: use make test to do test ci job

* fix: specify circleci resource_class

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-25 15:52:15 +08:00
Qiu Jian
ecd35d3678 fix: fail to detect host physical nics 2022-06-23 13:31:39 +08:00
Jian Qiu
8b2a5d13ee fix: migrate failure for encrypted local vm (#14508)
Co-authored-by: QIU Jian <qiujian@yunionyun.com>
2022-06-22 23:10:45 +08:00
Jian Qiu
91483a5028 fix: splitable auto_incremental steps should be more than 1 (in case of (#14499)
HA setup)

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-22 06:36:05 +08:00
Jian Qiu
f1e616a671 feature: tap service support (#14433)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-14 17:23:52 +08:00
Jian Qiu
6aa32e5bf5 fix: splitable add index should modify base spec (#14434)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-06-12 20:34:39 +08:00
ioito
f824010431 fix(host): ceph pool size 2022-06-07 17:09:09 +08:00
ioito
e1e623f502 optimize(region): add more image dist 2022-06-02 16:20:20 +08:00
Jian Qiu
618e88c51a fix: backup pack missing encrypt_key_id (#14333)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-29 10:12:47 +08:00
Zexi Li
26cbbbccad Merge pull request #14288 from ioito/hotfix/qx-disk-resize
fix(host): optimized disk resize
2022-05-23 14:51:14 +08:00
ioito
197ba296bc fix(host): optimized disk resize 2022-05-23 11:01:09 +08:00
Qiu Jian
0f80bc05f4 fix: fail to recogonize vmdk image 2022-05-21 17:50:33 +08:00
Zexi Li
7a784c94ff Merge pull request #14278 from ioito/hotfix/qx-cloudmon-metric
fix(cloudmon): report influxdb data
2022-05-20 19:13:25 +08:00
ioito
5b26d491b7 fix(cloudmon): report influxdb data 2022-05-19 14:36:43 +08:00
屈轩
037f75815c fix(region): add log for set expire time (#14266) 2022-05-19 01:22:30 +08:00
wanyaoqi
913aec9f7f feat(host): create disk from encrypted snapshot (#14256)
support create disk from encrypted snapshot, new disk encrypt info must
same with snapshot, and should used with libqemuio2.12.

area: host,host-image,fetcherfs
Signed-off-by: wanyaoqi <wanyaoqi1995@163.com>
2022-05-16 00:34:37 +08:00
Qiu Jian
5a022246be fix: set procutils execution LANG env 2022-05-12 18:45:59 +08:00
Zexi Li
c0074bc6a5 fix(cloudcommon): update splittable checksum (#14232) 2022-05-11 08:29:26 +08:00
Yousong Zhou
37fc897a11 Feature/yousong vpc elb (#11423)
* regiondrivers: kvm: lb: make "network" an optional argument

* loadbalancernetworks: add MacAddr field for lb with eip

* apis: compute: add LOADBALANCER to EIP_ASSOCIATE_VALID_TYPES

* regiondrivers: fix typo RequestAssociat{,e}Eip

* regiondrivers: kvm: RequestAssociatEip: standalone func for each type

* regiondrivers: kvm: RequestAssociateEip: support loadbalancer

* tasks: EipAssociateTask: add support for loadbalancer

* tasks: EipAssociateTask: allow using name for referring to instance

* elasticips: PerformAssociate: validate loadbalancer condition

* tasks: EipDissociateTask: support non-managed loadbalancer

* loadbalancers: add StartSyncstatus method for EipAssociateTask

* regiondrivers: kvm: allow creation of vpc lb

* loadbalanceragents: add timestamp fields for network objects

* climc: eips: add associate type loadbalancer

* mcclient: loadbalancernetworks: add Mac_Addr column

* vpcagent: models: add loadbalancernetworks

* vpcagent: ovn: route back vpc cidr block instead of all rest

* vpcagent: ovn: add ClaimLoadbalancerNetwork()

* mcclient: models: add LoadbalancerNetwork

* mcclient: models: add Network

* lbagent: models: use IBaseManager to accomodate joint manager

* lbagent: models: add {,Loadbalancer}Networks

* lbagent: models: export a few fields

* lbagent: models: add fields for vpc lb models

* iproute2: add NewAddressEx constructor

* lbagent: add worker for vpc lb

* vendor: add github.com/coreos/go-iptables

* lbagent: apihelper: use ovn worker

* lbagent: models: use pkg/compute/models

* mcclient: models: remove lb models

* lbagent: api: use pkg/apihelper

* vpcagent: models: add lblisteners and lbacls

* vpcagent: ovn: add lbacl support
2022-05-06 23:22:50 +08:00
Jian Qiu
1831f63ef1 fix: backup recover failure (#14199)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-04 23:28:26 +08:00
Jian Qiu
3f9be08fa3 Feature/qj encryption support snapshot backup (#14191)
* feature: encryption support snapshot and backup

* fix: encrypted snapshot create

* fix issues with backup encryption

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-03 11:39:55 +08:00
Jian Qiu
4375bad382 fix: deploy encrypted disk (#14187)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-05-02 09:07:03 +08:00
Zexi Li
dbe828cdee fix(baremetal): try clear jbod devices before create (#14182) 2022-05-01 21:36:11 +08:00
Zexi Li
efc8f27647 Merge pull request #14160 from swordqiu/hotfix/qj-logclient-i18n-for-backup-ops
fix: logclient i18n for backup ops
2022-04-28 09:45:14 +08:00
Jian Qiu
2dd1aeb8aa fix: mount disk readonly (#13152)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-28 09:26:45 +08:00
Qiu Jian
abc7083bc7 fix: logclient i18n for backup ops 2022-04-27 20:41:53 +08:00
Qiu Jian
8364e5b0d2 fix: glance convert vmdk fail 2022-04-27 14:03:56 +08:00
ioito
95c8b69be8 fix(region): huawei lb api 2022-04-18 17:59:55 +08:00
Qiu Jian
68bda2b1a0 fix: create table missing indexes 2022-04-11 22:08:42 +08:00
zhaoxiangchun
f82803f29d fix(region): app replace backgroud ctx 2022-04-11 14:51:36 +08:00
ioito
f7cd042c5a fix(region): google label encode 2022-04-08 17:54:17 +08:00
Jian Qiu
aee2d78186 feature: event log add severity and kind fields (#13919)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-06 06:57:44 +08:00
Jian Qiu
094c643dd0 fix: logout event log (#13916)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-04-06 01:30:22 +08:00
Zexi Li
7154da3225 Merge pull request #13865 from rainzm/notify/checksum
Security notify
2022-04-02 18:11:51 +08:00
Qiu Jian
cb89eae95e fix: support qemu backing file with json format 2022-04-01 21:08:39 +08:00
rainzm
f5d58cdee9 feat(cloudcommon): notify when the checksum of db table record test fail
1. remove pkg/cloudcommon/db dependency on pkg/cloudcommon
2. init db notifier in pkg/cloudcommon.InitDB
3. move interface 'IStartable' to pkg/util/logclient package which alone references above interface
2022-04-01 18:50:40 +08:00
ioito
03a494194b fix(region): curl vender update 2022-03-30 11:02:40 +08:00
Qiu Jian
742a9b54aa fix: aes decrypt failure 2022-03-26 15:18:25 +08:00
Jian Qiu
ce836b3f77 feature: qemu encryption support (#13733)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-03-26 14:52:42 +08:00
Zexi Li
c91a6e0139 Merge pull request #13769 from ioito/hotfix/qx-cloudpods-misc
fix(region): cloudpods misc fix
2022-03-24 21:24:17 +08:00
ioito
d76f2d20fb fix(region): add seclib aes 2022-03-24 18:07:28 +08:00