Commit Graph
1337 Commits
Author SHA1 Message Date
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
rainzm cef91402fb feat(region): support synchronize vmware's network configuration to the local
1. move prepare-nets in cloudaccounts_prepare.go
2. when creating vmware account, auto synchronize vmware's network and
synchronize cloudprovider
3. support actively triggering the synchronization of the vmware network
2021-02-03 12:00:24 +08:00
Qu Xuan 965315ac77 fix(region): avoid update tags task loop 2021-02-01 19:56:40 +08:00
rainzm 95de795c8b fix(notify): be compatible with member's permission changes
every user can create, modify and delete their own receiver info
2021-01-29 20:09:41 +08:00
Zexi Li b8b4c16c87 Merge pull request #10035 from ioito/hotfix/qx-task-err
fix(region): avoid worker discarded after state unchanged
2021-01-28 20:50:16 +08:00
Yousong Zhou 0cfc5f2311 feat(cloudcommon): opslog: log joint models 2021-01-27 18:48:18 +08:00
Qu Xuan 74eeb43e4d fix(region): avoid worker discarded after state unchanged 2021-01-27 14:57:27 +08:00
Zexi Li 960cf2a8b0 Merge pull request #9981 from rainzm/notify/webconsole_lang
fix(notify): send websocket messages according to language preference
2021-01-21 21:32:55 +08:00
rainzm 09337d9231 fix(notify): send websocket messages according to language preference 2021-01-21 19:42:39 +08:00
rainzm 1c3eea6886 feat(cloudcommon): send message with mobile in NotifyWithTag 2021-01-21 18:53:44 +08:00
Jian QiuandQiu Jian 9a7b9bec2d fix(cloudcommon): missing set_meta opslog (#9914)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-17 11:32:47 +08:00
Zexi Li 53651de276 Merge pull request #9891 from rainzm/notify/alert_fix
Repair of abnormal login notification
2021-01-15 10:31:01 +08:00
rainzm a68888979f refactor(climc): remove dependence for yunion.io/x/pkg/cloudcommon/db 2021-01-14 19:00:55 +08:00
rainzm 8316dadb05 feat(cloudcommon): send it directly if there is no template corresponding to the topic 2021-01-14 17:08:47 +08:00
rainzm 7357b6e0a2 feat(cloudcommon): expand notifyclient
1. support new params in creating notification
2. adapt keystone because `auth.GetAdminSession` doesn't work in keystone
2021-01-13 19:39:03 +08:00
rainzm f8bace5b4e feat(notify): add template about topic USER_LOGIN_EXCEPTION 2021-01-13 19:35:54 +08:00
Qu Xuan c226568ec0 fix(region): allowed to manually refresh cloudimage 2021-01-07 21:27:57 +08:00
wanyaoqi fa077dbe9b feat(region): stop guest before freeze 2021-01-05 15:13:56 +08:00
376dfa44d8 feature(region): sync cloud tags to local user tags (#9752)
* refact(region): sync cloud tags to user tags

* fix(region): sync exttags to user tags

Co-authored-by: lvyangyang <lvyangyang@yunion.cn>
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2021-01-03 00:17:59 +08:00
rainzm cc11aed9e8 feat(db): progressive inspection when determining the required scope 2020-12-29 14:56:01 +08:00
Qu Xuan 108d6827e8 feat(region): disks and eip delete with server 2020-12-28 11:29:12 +08:00
yunion-ci-robot 9411d7ed25 Merge pull request #9587 from tb365/bugfix/tb-bugfix-122202
fix(region): cloudregion&zone add namei18n
2020-12-26 17:53:51 +08:00
lvyangyang 68cf1eaea5 refact(region): resource tags 2020-12-26 16:00:26 +08:00
TangBin b67be9b0dd fix(region): remove i18n fix & zone &region name support i18n 2020-12-26 09:50:21 +08:00
TangBin 01d5977bd6 fix(region): aws sync vpc access mode bugfix 2020-12-26 09:50:21 +08:00
TangBin ea7ea1f08c fix(region): cloudregion&zone add namei18n 2020-12-26 09:50:20 +08:00
Zexi Li 35293ec9c3 Merge pull request #9609 from wanyaoqi/bugfix/wyq/fix-list-image-by-os-arch
fix(glance): list image by os arch use startwith
2020-12-24 17:34:23 +08:00
rainzm 2eebef810f feat(cloudcommon): determine the notification template based on the user’s language preference 2020-12-23 17:07:25 +08:00
wanyaoqi 8386506560 fix(glance): list image by os arch use startwith 2020-12-23 16:23:43 +08:00
Qiu Jian abbcac09ab fix(cloudcommon): query filter ineffective for splitable
query string may be modified in listItemQuery routine, which cause some query
filter is removed and hence ineffective when query over splitable
2020-12-20 20:29:55 +08:00
Zexi Li b300d5e4e6 Merge pull request #9534 from swordqiu/hotfix/qj-rbac-policy-refresh-internal-seconds
fix(cloudcommon): add rbac_policy_refresh_internval_seconds option
2020-12-20 02:08:30 +08:00
Zexi Li 972f7f4ab4 Merge pull request #9527 from swordqiu/hotfix/qj-split-table-empty-panic
fix(cloudcommon): panic when query an empty splitable model manager
2020-12-20 02:07:45 +08:00
Qiu Jian 792bfe533c fix(cloudcommon): add rbac_policy_refresh_internval_seconds option
Add new option rbac_policy_refresh_interval_seconds to control the
valid duration of a policy cache. The option is introduced at 3.6.
Replace option rbac_policy_sync_period_seconds.
2020-12-20 01:31:54 +08:00