Commit Graph

1371 Commits

Author SHA1 Message Date
Qiu Jian
c803b96fca fix: false delted field for deleted resources 2021-11-09 19:46:32 +08:00
Jian Qiu
c400485b3a fix: cleanup compile warnings (#12622)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-11-06 12:29:55 +08:00
Qu Xuan
b90811d0bd fix(region): avoid panic when query is nil 2021-11-01 16:32:20 +08:00
Qu Xuan
048d6fd8f1 fix(region): validate update 2021-10-27 17:55:56 +08:00
zhaoxiangchun
052a98a560 fix(cloudcommon): update db_dispatcher set order by to sqlchemy.SQuery
1. 支持对使用了聚合函数的field进行orderby 操作,如:sum(amount) as
   amount
2021-10-25 14:22:47 +08:00
tb365
3634601d3d host count add filters 2021-10-20 17:29:40 +08:00
Qu Xuan
8081389a8b fix(region): optimized validate delete condition query 2021-09-23 10:01:22 +08:00
rainzm
c2ff56a000 feat(region): add no_tags options to filter guests
no_tags filter the guests without `no_tags`
2021-08-30 16:47:26 +08:00
Zexi Li
00aa056e7d fix(keystone): appsrv listen multi port failed cause of race condition 2021-08-26 16:55:14 +08:00
Zexi Li
e82c77cce3 Merge pull request #12016 from zexi/automated-cherry-pick-of-#12014-upstream-release-3.7
Automated cherry pick of #12014: fix(cloudcommon): avoid service exit when etcd unreachable
2021-08-26 10:41:46 +08:00
Zexi Li
b8c5d18ac1 feat(cloudcommon): move ignore_nonrunning_guests option to common 2021-08-25 21:05:01 +08:00
Zexi Li
242d7eaa0f fix(cloudcommon): avoid service exit when etcd unreachable 2021-08-25 19:48:41 +08:00
Qu Xuan
1e7dce8c3d fix(region): add resource statistics filter params 2021-08-05 19:43:31 +08:00
Zexi Li
a0058edc16 Merge pull request #11730 from swordqiu/automated-cherry-pick-of-#11729-upstream-release-3.7
Automated cherry pick of #11729: fix: simplify SQL for distinct field query of tenant or domain names
2021-07-27 10:29:43 +08:00
Qiu Jian
db876b4480 fix: simplify SQL for distinct field query of tenant or domain names 2021-07-27 01:19:23 +08:00
Qu Xuan
5cdf5051a5 feat(region): add status count filter by params 2021-07-26 17:57:00 +08:00
zhaoxiangchun
629a3c55fd feat(monitor) 3.7 add monitor resource overview
1. 监控中增加资源统计
2. 资源在报警总览中的状态:
   init--未设置告警;alerting--发生告警;/attach--已关联策略并且报警消息正常
3.只涉及宿主机和虚拟机

https://bug.yunion.io/zentao/task-view-3130.html
2021-06-18 18:55:51 +08:00
Zexi Li
e76592de73 fix(baremetal): record uefi info 2021-06-16 12:49:56 +08:00
Zexi Li
160a6e4dbb feat(baremetal): support management of none BMC host 2021-06-16 12:49:56 +08:00
Qu Xuan
638d01485e fix(region): add status resource statistic 2021-06-15 14:16:23 +08:00
rainzm
15abea72a2 fix(cloudcommon): disable EventNotify for now
The front end is not yet open, temporarily disable it to avoid meaningless logic and requests
2021-05-12 10:41:03 +08:00
Zexi Li
d354f9c26f Merge pull request #10986 from ioito/automated-cherry-pick-of-#10985-upstream-release-3.7
Automated cherry pick of #10985: fix: add tag for databricks vm
2021-05-08 10:36:13 +08:00
Qu Xuan
082d5a9d61 fix: add tag for databricks vm 2021-05-08 09:28:22 +08:00
Yousong Zhou
2e82399204 db: add GetItemDetails 2021-05-07 19:43:15 +08:00
Qu Xuan
909eeeb782 fix(region): tag list key case insensitive 2021-04-27 11:55:33 +08:00
rainzm
702133be51 fix(region): use special localtask to run time-consuming provider synchronization task
CloudProviderSyncInfoTask will local cloudprovider. Make locaktask run
time-consuming task can avoid holding locks for a long time.
2021-04-23 17:02:20 +08:00
Zexi Li
7f05532204 Merge pull request #10889 from ioito/automated-cherry-pick-of-#10888-upstream-release-3.7
Automated cherry pick of #10888: fix(region): avoid panic when sync resources
2021-04-22 16:52:42 +08:00
Qu Xuan
f3a514a41a fix(region): avoid panic when sync resources 2021-04-22 16:29:16 +08:00
Qu Xuan
5d88767c9b fix(common): add debug info for lock 2021-04-22 16:10:06 +08:00
Qiu Jian
c1868f1dde fix(baremetal): baremetal ipmi probe reset link up state 2021-04-20 21:37:29 +08:00
Zexi Li
e1816106aa fix(cloudcommon): unify OS_ARCH constants 2021-04-15 10:53:05 +08:00
rainzm
c8d1ac215a fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty 2021-04-13 14:45:46 +08:00
Qu Xuan
287d5a5554 fix: actions domain filter by project doamin id 2021-04-12 11:41:54 +08:00
Zexi Li
52213bf234 Merge pull request #10620 from swordqiu/automated-cherry-pick-of-#10619-upstream-release-3.7
Automated cherry pick of #10619: fix(region): remove i18n lock and logs
2021-04-08 10:34:15 +08:00
rainzm
e671a218e9 feat(cloudcommon): set TaskNotifyUrl in GetTaskRequestHeader
To support cross-service task callbacks, you must set TaskNotifyUrl,
which is automatically added to TaskRequestHeader here
2021-04-07 18:50:29 +08:00
Qiu Jian
2749d2c708 fix(region): remove i18n lock and logs 2021-04-05 16:39:45 +08:00
Qu Xuan
0c72b07c3a fix: before insert 2021-04-01 21:25:58 +08:00
Yousong Zhou
b424a8f67d etcd: fix "fatal error: concurrent map writes"
Trace

	goroutine 1270434 [running]:
	runtime.throw(0x4b0cc5e, 0x15)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/panic.go:1116 +0x72 fp=0xc0011151f8 sp=0xc0011151c8 pc=0x439292
	runtime.mapdelete_faststr(0x40876e0, 0xc0006a54a0, 0xc001e84200, 0x3e)
		/home/yousong/.usr/go/goroot-1.15.6/src/runtime/map_faststr.go:377 +0x34c fp=0xc001115260 sp=0xc0011151f8 pc=0x41664c
	yunion.io/x/onecloud/pkg/cloudcommon/etcd.(*SEtcdClient).Unwatch(0xc0003130e0, 0xc001e84200, 0x3e)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/cloudcommon/etcd/etcd.go:353 +0x134 fp=0xc0011152d0 sp=0xc001115260 pc=0x10031f4
	yunion.io/x/onecloud/pkg/compute/models.(*SHostHealthChecker).WatchHost(0xc000c222a0, 0x5229ca0, 0xc000122000, 0xc001fbc4e0, 0x24)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/host_health.go:149 +0xd5 fp=0xc001115338 sp=0xc0011152d0 pc=0x1816395
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformOnline(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0xc000957c40, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3829 +0x227 fp=0xc0011153a0 sp=0xc001115338 pc=0x185a387
	yunion.io/x/onecloud/pkg/compute/models.(*SHost).PerformPing(0xc001fd8400, 0x5229d20, 0xc001c4d440, 0x52a0c60, 0xc000957c40, 0x5298900, 0xc001629aa0, 0x5298900, 0xc001629ae0, 0x0, ...)
		/home/yousong/go/src/yunion.io/x/onecloud/pkg/compute/models/hosts.go:3891 +0xbd fp=0xc001115430 sp=0xc0011153a0 pc=0x185acbd
2021-03-08 09:55:46 +08:00
Zexi Li
772579d3e8 fix(cloudcommon): add default domain of common options 2021-03-05 11:20:23 +08:00
Qu Xuan
d7be39edf8 fix: optimzed tag sync 2021-03-04 17:31:18 +08:00
zhaoxiangchun
c068badd36 fix(monitor): fix monitor export err
1.修复监控导出报错
2.db_dispatcher.ListItems 方法中对exportKeys的处理新增了一个方法
2021-03-02 11:57:14 +08:00
Yousong Zhou
9b13becd1d validators: set xx_id when possible 2021-02-23 15:34:23 +08:00
Qu Xuan
73fe4866d7 fix(region): support peer secgroup 2021-02-22 20:41:37 +08:00
rainzm
755e00750a feat: support EventNotify 2021-02-18 11:45:15 +08:00
rainzm
7dba32d990 feat(cloudcommon): add rolecache
rolecache 在原有cache的基础上,使用了 watch
的功能,所以数据的过期时间可以调的高一些,这里使用
roleCacheExpireHours 进行控制,默认设置为24小时。
2021-02-18 11:45:15 +08:00
yunion-ci-robot
f2fea0dde0 Merge pull request #10147 from zexi/automated-cherry-pick-of-#10146-upstream-release-3.7
Automated cherry pick of #10146: Feature/baremetal h3c oem
2021-02-06 13:32:24 +08:00
Zexi Li
44dff768b2 Merge pull request #10155 from ioito/automated-cherry-pick-of-#10154-upstream-release-3.7
Automated cherry pick of #10154: fix(logger): distinct field optimized for logger
2021-02-05 14:53:41 +08:00
Qu Xuan
14979480e3 fix(logger): distinct field optimized for logger 2021-02-04 21:15:02 +08:00
rainzm
9f927922a4 fix(cloudcommon): use NewGeneralError to construct error 2021-02-04 17:36:11 +08:00
Zexi Li
b5813e81b8 feat(baremetal): support H3C oem baremetal 2021-02-04 14:11:26 +08:00