Qiu Jian
258db2cb48
fix updates
2020-03-27 01:20:29 +08:00
Qiu Jian
732dcdcb61
feature: system resource domainize
2020-03-27 01:20:29 +08:00
Qiu Jian
3c9b368c43
feature: fix region list filters round 3
2020-03-12 20:55:22 +08:00
Qiu Jian
cf5498ac24
feature: recode structuralized GetExtraDetails and ListItemFilter
2020-03-04 14:01:25 +08:00
Yousong Zhou
aad7dddabb
lbbackend: fix nil ref when getting details
...
Return arguments of lbbackend.getVpc() can be both nil
[E 200224 10:13:18 httperrors.HTTPError(httperrors.go:53)] Send error {"fields":["runtime error: invalid memory address or nil pointer dereference"],"id":"Internal server error: {0}"}
...
panic(0x27da0c0, 0x57f4ff0)
/usr/local/go/src/runtime/panic.go:522 +0x1b5
yunion.io/x/onecloud/pkg/compute/models.(*SLoadbalancerBackend).GetExtraDetails(0xc0002af680, 0x33cde20, 0xc0010e61e0, 0x34246c0, 0xc008893de0, 0x341d940, 0xc012fe69d0, 0x1, 0x0, 0x0, ...)
/data/git/yunion-build/work/go/src/yunion.io/x/onecloud/pkg/compute/models/loadbalancerbackends.go:314 +0x37c
reflect.Value.call(0x2d87a00, 0xc0002af680, 0x8a13, 0x2db0aa8, 0x4, 0xc0044ad680, 0x4, 0x4, 0x2bd5d60, 0xc002a29cf0, ...)
/usr/local/go/src/reflect/value.go:447 +0x461
reflect.Value.Call(0x2d87a00, 0xc0002af680, 0x8a13, 0xc0044ad680, 0x4, 0x4, 0x2d87a00, 0xc0002af680, 0x16)
/usr/local/go/src/reflect/value.go:308 +0xa4
yunion.io/x/onecloud/pkg/cloudcommon/db.callFunc(0x2d87a00, 0xc0002af680, 0x8a13, 0xc000951688, 0x4, 0x4, 0xc0002af680, 0x8a13, 0x2dc0527, 0xb, ...)
/data/git/yunion-build/work/go/src/yunion.io/x/onecloud/pkg/cloudcommon/db/caller.go:78 +0x397
...
[I 200224 10:13:18 appsrv.(*Application).ServeHTTP(appsrv.go:237)] MfQCvNyik-obRBzFjFZy5ARfXcE= 500 5c1d82 GET /loadbalancerbackends?backend_group=Yunion-Tools&details=true&limit=20&offset=0 (10.40.156.64:57606) 57.90ms
Fixes 76d974f6d ("feature: api -> response struct")
2020-02-24 10:22:56 +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
Yousong Zhou
a363221e68
lb: support accessing backend with tls
2020-01-15 12:14:27 +08:00
Qiu Jian
45849355e6
fix: list documentation improvements
2020-01-14 04:17:15 +08:00
Qiu Jian
14c1ddaccb
feature: cloudprovider capability filter and listinput recode
2020-01-13 13:19:47 +08:00
Qiu Jian
3dba5360d7
quota recode
2019-12-12 11:31:41 +08:00
Yousong Zhou
8f6db51fd1
loadbalancerbackends: janitor: move to InitializeData
...
The janitor only makes sense when inside region service
2019-12-11 08:20:55 +00:00
Yousong Zhou
6536160157
lbbackends: 使用yunion.io/pkg/errors
2019-11-12 12:44:40 +00:00
TangBin
cc91e38075
huawei & qcloud elb bugfix
2019-10-09 16:02:33 +08:00
Zexi Li
c393c1deb3
fix: services model incorrect nullable define
2019-10-08 22:22:54 +08:00
Yousong Zhou
02b5a6672a
lbbackends: 改进错误信息传递
2019-09-19 10:37:39 +00:00
TangBin
e8b3972e0b
elb bugfix
2019-08-08 20:59:48 +08:00
TangBin
e4ef23515f
aws elb support
2019-07-28 11:25:54 +08:00
TangBin
976c8cb4d0
huawei elb support
2019-07-28 11:22:49 +08:00
Yousong Zhou
1140e08ac7
lbbackends: 若backend guest已删除getVpc返回空且不报错
2019-07-26 08:51:24 +00:00
ioito
895328879c
fix purge aliyun account error by lbbg
2019-07-04 21:08:24 +08:00
Qiu Jian
f34c8255f2
fix: 1. token add projects when no project specified 2.
...
IVirtualResourceManager add GetResourceCount() method 3. domainId not
initialized occasionally
2019-07-03 22:38:33 +08:00
Yousong Zhou
ad613d5110
lb: backends: 清理后端虚机已删除的backend
2019-06-17 03:44:54 +00:00
Yousong Zhou
b0399cc537
lb: backends: 仅针对guest类型后端查询vpcId
2019-06-17 03:44:54 +00:00
Zexi
261e4885c9
region: fix pending_deleted virtual resource filter by name
2019-06-13 15:17:04 +08:00
Qiu Jian
b7027934db
feature: 3-level policies, system/domain/project
2019-05-31 13:56:02 +08:00
Yousong Zhou
d3f4518967
lb: 添加PROXY协议支持
...
默认关闭(off),支持v1, v2, v2-ssl, v2-ssl-cn
可分别在listener, backend上控制
- 若listener.send_proxy不为off,以listener.backend_proxy为准
- 若listener.send_proxy为off,以backend.send_proxy为准
2019-05-30 13:06:07 +00:00
Yousong Zhou
c2a53710a8
loadbalancerbackends: 支持直接指定IP地址
2019-05-28 10:06:19 +00:00
ioito
c425737017
避免关不掉访问控制
2019-05-16 16:53:54 +08:00
ioito
584279a362
设置端口和权重后同步到公有云上
2019-05-14 20:50:15 +08:00
Qiu Jian
29c1fd3855
fix: clearn up codes that impacted by query.Count return value changes
2019-04-23 11:32:16 +08:00
屈轩
313a898360
Hotfix/qx cloudprovider info ( #368 )
...
* 通用返回cloudprovider info信息
* 通用返回cloudprovider info信息
2019-04-13 19:55:09 +08:00
Yousong Zhou
215626b5df
Bugfix/yousong lb delete ( #370 )
...
* lb: 修复backend group删除时未删backend
* lb: 预删子资源时排除掉已预删的资源
* lb: s/PreDeleteSubs/pendingDeleteSubs/
2019-04-13 00:18:09 +08:00
Jian Qiu
e3946e8485
fix: fail to delete removed cloud resources ( #364 )
...
* fix: fail to delete removed cloud resources
* fix: private_cloud and on_premise filter overlaps
* fix: loadbalancer* should use pending_delete to remove resources
2019-04-12 21:14:10 +08:00
Jian Qiu
a2417ef77b
Feature: allow delete cloud-account with resources ( #252 )
2019-04-08 22:04:33 +08:00
Qiu Jian
004d9b6f95
update copyright headers of all source
2019-03-29 14:47:48 +08:00
周有松
c24d3c7b6a
Automatic merge from release/2.7.0 -> release/2.8.0
...
* commit '1b6a8dcc57fa362b6631db913e3eee298eba385b':
同步完project信息后调用GetShortDesc
2019-03-26 21:16:37 +08:00
屈轩
50caa46699
同步完project信息后调用GetShortDesc
2019-03-26 19:38:42 +08:00
Zexi Li
076ad985cc
move consts to apis
2019-03-20 12:08:15 +08:00
Qiu Jian
6e8e415235
Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-recode-cloud-account-create-options
2019-03-14 12:11:54 +08:00
Qiu Jian
e74f31b7c0
fix: cleanup project sync codes
2019-03-14 09:46:29 +08:00
周有松
3abb73a9b0
Automatic merge from release/2.6.0 -> release/2.7.0
...
* commit 'f0f6172156f0c693117ee6dc77c9c54bc4f942ba':
lbagent: fix corpus versioning
mcclient: options: ignore ID when converting to params
lbagent: telegraf: add params influx_db_output_unsafe_ssl
mcclient: lbagent: allow setting telegraf config template
lb: 不记录来自lbagent的GET查询请求
treewide: s/HasSystemAdminPrivelege/HasSystemAdminPrivilege/g
2019-03-12 16:47:25 +08:00
Yousong Zhou
c6e4fff0d0
lb: 不记录来自lbagent的GET查询请求
...
要求
- _orig=lbagent
- userCred.HasSystemAdminPrivilege()
2019-03-12 03:39:20 +00:00
Qiu Jian
cb23c9c1a1
Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock
2019-03-06 00:11:44 +08:00
屈轩
0ce6b70998
更改ProjectSource -> ProjectSrc
2019-03-05 12:05:02 +08:00
屈轩
8bd0bc0024
补充其他资源项目同步
2019-03-04 16:36:47 +08:00
Qiu Jian
605cbb2558
Merge branch 'release/2.7.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-sync-with-lock
2019-03-04 01:42:39 +08:00
Qiu Jian
62ebc90f2a
feature: allow auto sychrnoization of cloud account
2019-03-04 01:09:34 +08:00
Qiu Jian
df0474e25a
fix: break dependencies of climc/mcclient on compute/models
2019-02-27 16:40:13 +08:00
邱剑
0edeb53d28
update models with db.Update interface
2019-02-22 12:06:13 +08:00