Commit Graph

65 Commits

Author SHA1 Message Date
Qiu Jian
732dcdcb61 feature: system resource domainize 2020-03-27 01:20:29 +08:00
Qiu Jian
da4dd2333a fix format 2020-03-10 09:44:43 +08:00
Qiu Jian
f127e258b4 fix: fix region list fitlers, round 1 2020-03-10 03:26:01 +08:00
Qiu Jian
cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +08:00
wanyaoqi
f5a0aaa8f0 fix guest network get desc 2020-02-24 16:00:55 +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
4221e214f0 guestnetworks: nic desc for onecloud vpc 2020-01-17 17:45:07 +08:00
Qiu Jian
4a8a79a786 bug fixes 2020-01-03 13:58:05 +08:00
Yousong Zhou
79904e8c20 networks: 确保外部network也有ifname_hint 2020-01-01 10:50:51 +08:00
Yousong Zhou
a592649ae1 guestnetworks: 加强ifname内容判断 2019-12-31 10:10:55 +08:00
Yousong Zhou
90e36bcc76 networks: newIfnameHint: 可读性改善 2019-12-31 10:10:55 +08:00
Qiu Jian
b31bc7fa3d feature: 1. baremetal server reuse host ip 2. server name use expression 2019-12-24 19:04:41 +08:00
Yousong Zhou
fdcc85507f guestnetworks: ignore empty preferIfname
Fixes cc02ac74 ("guestnetworks: check ifname uniqueness across different
networks")
2019-12-18 09:02:43 +00:00
Yousong Zhou
cc02ac74d4 guestnetworks: check ifname uniqueness across different networks
With PerformChangeIpAddr, it can happen that a guestnetwork from network
A can take a name that was originally allocated by network B
2019-12-12 15:42:47 +00:00
Qiu Jian
3dba5360d7 quota recode 2019-12-12 11:31:41 +08:00
Qiu Jian
7e02839d67 add doc and copyright 2019-10-16 14:08:57 +08:00
Yousong Zhou
417e2d291a guests: list details with nics details 2019-09-26 04:04:12 +00:00
Yousong Zhou
add3616007 guestnetworks: IsExit()减少一次数据库查询 2019-09-26 03:53:35 +00:00
Yousong Zhou
5bf89ae89b networks: 添加ifname_hint字段
- 升级部署时,从network.Name初始化
 - 创建时,尝试从network.Name取值,取不到则生成随机值
 - 不允许更新
2019-08-22 08:02:50 +00:00
Yousong Zhou
a7486641df wires: 添加mtu属性 2019-08-05 10:49:45 +00:00
wanyaoqi
df2de88204 fix guest get host wire from network 2019-07-31 14:31:48 +08:00
Qiu Jian
c8f17ac392 fix: server-change-ipaddr may ignore errors when changing ipaddr 2019-07-15 22:54:40 +08:00
Qiu Jian
cd809f1a24 fix: server-disk-list failed on wrong field name 2019-06-03 17:19:27 +08:00
Qiu Jian
b7027934db feature: 3-level policies, system/domain/project 2019-05-31 13:56:02 +08:00
Qiu Jian
a1c0099f58 fix: 1. network interface for prepaid-recycle VM incorrect
2. aliyun not support import image of RHEL
2019-04-25 08:47:45 +08:00
Qiu Jian
a95c0bac62 update query.Count to query.CountWithError 2019-04-23 12:02:35 +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
wanyaoqi
d13c229dbc 1. server export to libvirt generate virt install script
2. fix server import from libvirt
2019-04-17 17:48:05 +08:00
Qiu Jian
da57161fd0 fix: move all consts in compute/models to apis/compute 2019-04-17 09:23:19 +08:00
Jian Qiu
316335267a improve server-list performance (#193)
* improve server-list performance

FetchCustomizeColumns that fetch extra fields for all rows 3. separate
read and write http request session

* update vendor

* update: optimize multi-column indexes
2019-04-03 20:24:28 +08:00
wanyaoqi
b63f957c9c bugfix: guest desc and guest create backup (#155)
* bugfix:
    1. fix get network desc choose wrong host wire
    2. fix guest create backup doesn't cache iso image

* host wire detach filter by mac addr
2019-04-02 11:51:11 +08:00
Qiu Jian
004d9b6f95 update copyright headers of all source 2019-03-29 14:47:48 +08:00
Zexi Li
6df6880501 define scheduler apis output and input structs 2019-03-20 12:03:29 +08:00
Qiu Jian
2552c658c4 fix: recode host.getWiresOfId 2019-03-11 14:32:36 +08:00
Qiu Jian
7bdab6e02d feature: nic bonding/teaming support on region 2019-03-11 04:45:34 +08:00
Qiu Jian
4cd39a70c0 1.
增加server-change-ipaddr接口,允许在运行和关机更换主机的IP地址。
2. 允许主机加入一个network多次(目前允许2次)
2019-01-27 00:30:43 +08:00
wanyaoqi
2b4fac6a87 remove key index 2019-01-17 22:07:24 +08:00
Qiu Jian
2e587bd6ab glance重构 update 1
Conflicts:
	Gopkg.lock
	pkg/appsrv/appsrv.go
	pkg/cloudcommon/options.go
	pkg/compute/models/hosts.go
	pkg/compute/models/quotas.go
	pkg/compute/service/service.go
	pkg/mcclient/mcclient.go
2018-12-26 22:52:13 +08:00
Qiu Jian
a6b865e7a2 修正:1. sql.Rows使用后未关闭,导致占用db链接 2.
服务启动后,调用AppDBInit方法设置db连接池上限,避免耗尽mysql连接
3.
app和workmanager增加db属性,用来标示该worker和app是否使用数据库,从而估计需要设置的数据库连接的上限
2018-12-21 17:10:34 +08:00
Qiu Jian
e18302866b 1. GetShortDesc()改为GetShortDesc(ctx context.Context)
2.
VirtualResource的GetShortDesc()中增加owner_tenant_id和owner_tenant两个字段
2018-12-13 23:55:51 +08:00
邱剑
ef68401f28 Automatic merge from release/2.2.0 -> release/2.3.0
* commit '75dc6762ad31470e851759d717452f5cf53fc2e6':
  避免有重复ip时覆盖部分guest ip
2018-10-23 22:22:00 +08:00
邱剑
a2c1aaeac4 Merge pull request #349 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-guestnetwork to release/2.1.0
* commit '532c41e5a8d65e8fbe293e47e6af8d0f211cb55e':
  避免有重复ip时覆盖部分guest ip
2018-10-23 22:21:59 +08:00
屈轩
532c41e5a8 避免有重复ip时覆盖部分guest ip 2018-10-23 22:15:03 +08:00
邱剑
ea6ab42eb9 Merge pull request #331 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:hotfix/qj-reformat-long-codes to release/2.3.0
* commit 'd50d363d948c7efe05345ff7981b47b759deabe0':
  minor fixes
  增加keystone policy资源,格式化代码
2018-10-20 22:36:08 +08:00
Qiu Jian
0b17fe3547 增加keystone policy资源,格式化代码 2018-10-20 21:29:52 +08:00
Yousong Zhou
361d14a762 compute: fix test check
pkg/compute/models/guestnetworks.go:165: Sprintf format %d has arg time.Now().String() of wrong type string
	pkg/compute/models/loadbalancerbackends.go:114: Errorf call needs 3 args but has 4 args
	pkg/compute/models/cloudproviders.go:161: Sprintf call needs 1 arg but has 2 args
2018-10-19 13:48:53 +00:00
邱剑
2fd597681c Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'd08b1721617b2be3be7f136c675e98fcc5aad73b':
  Remove local terraform code
  卸载磁盘时,磁盘状态跟随变化
  guests: allow change nic bandwidth to 0
  处理卸载磁盘失败后情况: 重新挂载原有磁盘到虚拟机上
2018-10-18 18:37:04 +08:00
Yousong Zhou
c96849e334 guests: allow change nic bandwidth to 0
To restore the default no limit behavior
2018-10-18 07:18:58 +00:00
Qiu Jian
b17b24b232 Update format 2018-10-12 12:13:35 +08:00