Commit Graph

1419 Commits

Author SHA1 Message Date
Zexi Li
bc7d77cd0c Merge pull request #11489 from rainzm/region/remove_debug
fix(cloudcommon): remove unnecessary  debug info
2021-06-25 18:31:39 +08:00
rainzm
15ee20a4ab fix(cloudcommon): remove unnecessary debug info 2021-06-25 17:03:50 +08:00
Qu Xuan
a87a8f2f41 fix(common): batch validate create 2021-06-25 15:49:02 +08:00
rainzm
311d0efb80 feat(notify,region): improvement of news subscription 2021-06-24 10:30:01 +08:00
rainzm
1d1bb6c381 feat(notify): advanced notify config and robot
1. Notify config has now become a domain resource, so that each domain can have its own configuration about notify.
   The domains has no configuration will use system config.
2. Robot separates from config and becomes a shared project resource. Sending information to robot can
   choose which robot to send to.
2021-06-24 10:29:35 +08:00
zhaoxiangchun
4ac0042153 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 17:46:40 +08:00
yunion-ci-robot
6110b13ff9 Merge pull request #11205 from zexi/feat/bm-no-bmc-management
feat(baremetal): support management of none BMC host
2021-06-16 23:26:53 +08:00
Zexi Li
6179886b7c fix(baremetal): record uefi info 2021-06-16 12:49:17 +08:00
Qu Xuan
aef09a0504 fix(region): add status resource statistic 2021-06-15 14:10:13 +08:00
Qu Xuan
705e068a6e fix(common): supported dry run 2021-06-09 20:12:44 +08:00
Zexi Li
6c5bba7dd2 feat(baremetal): support management of none BMC host 2021-05-25 21:06:47 +08:00
rainzm
a28ff0400a 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:34:41 +08:00
Zexi Li
074c68f251 Merge pull request #10985 from ioito/hotfix/qx-azure-databricks
fix: add tag for databricks vm
2021-05-08 10:36:07 +08:00
Qu Xuan
12b72a6e10 fix: add tag for databricks vm 2021-05-08 09:28:00 +08:00
Yousong Zhou
627ea8ccc9 db: add GetItemDetails 2021-05-07 19:28:56 +08:00
Qu Xuan
3e3e9b7cf2 fix(region): tag list key case insensitive 2021-04-27 11:54:10 +08:00
Zexi Li
527f5c498c Merge pull request #9933 from ioito/hotfix/qx-task-info-dump
fix(common): dump task info when stucking
2021-04-26 11:38:24 +08:00
Zexi Li
d3b337b418 Merge pull request #8016 from ioito/optimized/cloud-resource-sync
fix: 优化同步,避免长时间加锁
2021-04-26 11:38:11 +08:00
Qu Xuan
7b845d17c7 fix(common): dump task info when stucking 2021-04-26 10:45:38 +08:00
ioito
f9f0c8f3cb fix: 优化同步,避免长时间加锁 2021-04-23 18:55:02 +08:00
rainzm
520fae50a6 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:01:12 +08:00
Zexi Li
e8d2debe4d Merge pull request #10888 from ioito/hotfix/qx-task-ctx
fix(region): avoid panic when sync resources
2021-04-22 16:52:34 +08:00
Qu Xuan
568687c436 fix(region): avoid panic when sync resources 2021-04-22 16:23:01 +08:00
Qu Xuan
5edf37c549 fix(common): add debug info for lock 2021-04-22 16:09:32 +08:00
Qiu Jian
55cfb0ba45 fix(baremetal): baremetal ipmi probe reset link up state 2021-04-20 21:36:13 +08:00
Zexi Li
e82a3deb7e fix(cloudcommon): unify OS_ARCH constants 2021-04-15 10:52:34 +08:00
rainzm
ed6f183db6 fix(cloudcommon): use rbac authentication dedicated to the list interface in GetModelProperty 2021-04-13 14:40:08 +08:00
Qu Xuan
12bb6ac8e5 fix: actions domain filter by project doamin id 2021-04-12 11:40:57 +08:00
Zexi Li
0b7a41087c Merge pull request #10619 from swordqiu/hotfix/qj-remove-i18n-lock
fix(region): remove i18n lock and logs
2021-04-08 10:34:04 +08:00
rainzm
f7add55303 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 17:01:08 +08:00
Qiu Jian
c03f0da14e fix(region): remove i18n lock and logs 2021-04-05 16:34:57 +08:00
Qu Xuan
7f8cf5adc3 fix: before insert 2021-04-01 21:24:11 +08:00
Yousong Zhou
651c4b687d 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:54:24 +08:00
Zexi Li
29ef9d8ba6 fix(cloudcommon): add default domain of common options 2021-03-05 10:49:03 +08:00
Qu Xuan
68e28bfe49 fix: optimzed tag sync 2021-03-04 17:30:56 +08:00
Zexi Li
0eeb75d945 Merge pull request #10292 from zhaoxiangchun/bugfix/zxc-monitor-resouceName
fix(monitor): fix monitor export err
2021-03-02 14:29:34 +08:00
zhaoxiangchun
97c107f7e9 fix(monitor): fix monitor export err
1.修复监控导出报错
2.db_dispatcher.ListItems 方法中对exportKeys的处理新增了一个方法
2021-03-02 11:52:44 +08:00
Yousong Zhou
2f7bd7a7a2 validators: set xx_id when possible 2021-02-23 15:29:12 +08:00
Zexi Li
deb18965a2 Merge pull request #10233 from ioito/feat/qx-peer-secgroup
fix(region): support peer secgroup
2021-02-22 20:39:36 +08:00
Qu Xuan
7417452ec6 fix(region): support peer secgroup 2021-02-22 16:18:36 +08:00
rainzm
b45edf2f18 feat: support EventNotify 2021-02-18 11:16:57 +08:00
rainzm
f352cf4e31 feat(cloudcommon): add rolecache
rolecache 在原有cache的基础上,使用了 watch
的功能,所以数据的过期时间可以调的高一些,这里使用
roleCacheExpireHours 进行控制,默认设置为24小时。
2021-02-18 11:14:58 +08:00
yunion-ci-robot
93faf828dd Merge pull request #10146 from zexi/feature/baremetal-h3c-oem
Feature/baremetal h3c oem
2021-02-06 13:32:24 +08:00
Zexi Li
e309bce029 Merge pull request #10154 from ioito/hotfix/qx-action-log-distinct-field
fix(logger): distinct field optimized for logger
2021-02-05 14:53:32 +08:00
Qu Xuan
2cfbda9a59 fix(logger): distinct field optimized for logger 2021-02-04 20:40:07 +08:00
rainzm
ec4dfc471a fix(cloudcommon): use NewGeneralError to construct error 2021-02-04 17:06:25 +08:00
Zexi Li
3a3675108e feat(baremetal): support H3C oem baremetal 2021-02-04 14:09:58 +08:00
Zexi Li
a563e4f608 Merge pull request #9723 from rainzm/vmware/dvs_wire
Optimization of vmware network
2021-02-03 18:06:45 +08:00
Qu Xuan
cdd111ca00 fix(cloudevent): add distinct filed for cloudevent 2021-02-03 17:48:24 +08:00
rainzm
2177b62110 feat(region): support merging wire
1. support merging networks under a wire
2. auto merge networks under a wire when set 'merge_network' when merge
this wire
2021-02-03 12:08:23 +08:00