Commit Graph
1120 Commits
Author SHA1 Message Date
邱剑 926fc3a3dd Merge pull request #369 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:feature/qj-rbac-support to release/2.3.0
* commit '5a8bd4848509782e3ce953e9faae864ee09a0d8b':
  改进:rpc支持
  make fmt
  remove slice nil check
  fix quota check rbac check logic
  增加 usages get 和 quotas get/update 的RBAC检查
  JointModel support
  改进:model资源支持rbac认证,需要打开enable_rbac选项,默认关闭。非model资源还不支持
2018-10-29 22:22:31 +08:00
Qiu Jian 5a8bd48485 改进:rpc支持 2018-10-29 22:10:00 +08:00
Yousong Zhou 719a4686ce lbagent: add telegraf support 2018-10-27 09:40:38 +00:00
Qiu Jian 0c06216364 JointModel support 2018-10-27 16:40:41 +08:00
Qiu Jian d0fef591f1 改进:model资源支持rbac认证,需要打开enable_rbac选项,默认关闭。非model资源还不支持 2018-10-27 14:34:09 +08:00
邱剑 93ddd2b26f Merge pull request #356 in YUNIONIO/onecloud from feature/rex-20181024-add-websocket-module to release/2.3.0
* commit '49d7bcb8f9cbd61f9461eac2b1784048a3f0c859':
  go fmt
  在 onecloud 环境增加 websocket client 的接口
  移除不需要的 import
  删除不需要的代码
  为websocket服务注册resource 模块、climc 命令行接口
2018-10-26 20:16:13 +08:00
邱剑 d843c37579 Automatic merge from release/2.2.0 -> release/2.3.0
* commit '8909d40566acc25085e34ce513b1e7c3716a1b81':
  允许创建host时候不指定zone
2018-10-26 15:16:39 +08:00
邱剑 8909d40566 Automatic merge from release/2.1.0 -> release/2.2.0
* commit 'd05d50d680b62a5b49ab3998b4cfa2294ff5864d':
  允许创建host时候不指定zone
2018-10-26 15:16:38 +08:00
Qiu Jian 97ae236e31 Merge branch 'release/2.0.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181026-2.1.0
Conflicts:
	cmd/climc/shell/serverdisks.go
2018-10-26 14:54:30 +08:00
Qiu Jian ec9ca59aa1 允许创建host时候不指定zone 2018-10-25 23:07:58 +08:00
Zhang Dongliang 187d951283 为websocket服务注册resource 模块、climc 命令行接口 2018-10-24 19:29:43 +08:00
wanyaoqi 6d21c7e0d2 baremetal ops
some bugfix
make dep
2018-10-23 21:01:00 +08:00
TangBin 58be5ccda9 add aws cli 2018-10-23 17:54:30 +08:00
Yousong Zhou 4f0b4ec7c9 govet: treewide
# yunion.io/x/onecloud/pkg/lbagent/utils
  pkg/lbagent/utils/configdir.go:134: unreachable code
  # yunion.io/x/onecloud/pkg/mcclient/modules
  pkg/mcclient/modules/mod_domains.go:243: Sprintf format %s has arg len(result.Data) of wrong type int
  # yunion.io/x/onecloud/pkg/lbagent/models
  pkg/lbagent/models/reflect.go:68: Errorf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/cloudcommon/db
  pkg/cloudcommon/db/db_dispatcher.go:1064: Sprintf call needs 1 arg but has 2 args
  # yunion.io/x/onecloud/pkg/scheduler/core
  pkg/scheduler/core/context.go:579: assignment copies lock value to dataItem.Networks: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/data_manager
  pkg/scheduler/data_manager/candidate_manager.go:353: Errorf format %#v reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/baremetal
  pkg/scheduler/algorithm/predicates/baremetal/network_predicate.go:145: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/scheduler/algorithm/predicates/guest
  pkg/scheduler/algorithm/predicates/guest/network_predicate.go:207: call of u.SetFiltedData copies lock value: sync.Map contains sync.Mutex
  # yunion.io/x/onecloud/pkg/cloudcommon/db/lockman
  pkg/cloudcommon/db/lockman/inmemory_test.go:49: loop variable id captured by func literal
  # yunion.io/x/onecloud/pkg/util/seclib2
  pkg/util/seclib2/seclib.go:56: unreachable code
  # yunion.io/x/onecloud/cmd/climc/shell
  cmd/climc/shell/alarmlogs.go:46: result of fmt.Errorf call not used
  # yunion.io/x/onecloud/pkg/util/aliyun
  pkg/util/aliyun/disk.go:267: Errorf format %s has arg size of wrong type int64
  pkg/util/aliyun/image.go:93: Sprintf format %s reads arg #1, but call has 0 args
  # yunion.io/x/onecloud/pkg/compute/models
  pkg/compute/models/cachedimages.go:161: Errorf format %d has arg imgId of wrong type string
  pkg/compute/models/disks.go:1274: Errorln call has possible formatting directive %s
  pkg/compute/models/guests.go:1749: Infof format %s has arg self.IsOwner(userCred) of wrong type bool
  pkg/compute/models/hosts.go:1134: Debugf format %s has arg storage of wrong type *models.SStorage
  pkg/compute/models/hosts.go:1135: Debugf format %s has arg self of wrong type *models.SHost
  # yunion.io/x/onecloud/pkg/util/azure
  pkg/util/azure/instance.go:536: unreachable code
  pkg/util/azure/network.go:128: unreachable code
  pkg/util/azure/storage.go:69: unreachable code
  # yunion.io/x/onecloud/pkg/util/azure/shell
  pkg/util/azure/shell/disk.go:20: unreachable code
  pkg/util/azure/shell/network.go:55: unreachable code
2018-10-22 12:33:41 +00:00
Yousong Zhou 5dd5767d94 govet: treewide struct tag fix
govet complains of the form

	struct field tag `required:true` not compatible with reflect.StructTag.Get: bad syntax for struct tag value
2018-10-22 12:31:12 +00:00
邱剑 affeb6b1bc Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'dec5b9c1a95372a2079cad8a4264c51c783557f6':
  修正:删除guest时候没有正确清理eip的数据
  allow snapshot-list --manager <cloud-provider-id-or-name>
  修正:补充2.2.0 purge eip/snapshot接口
2018-10-22 17:10:56 +08:00
李泽玺 5050763c32 Merge pull request #326 in YUNIONIO/onecloud from ~LIZEXI/onecloud:feature/lzx-webconsole-graphic to release/2.3.0
* commit 'cb11950f4ff008835007ff7ab0cc1a32cfa7307b':
  webconsole: websockify support base64 subprotocol
  webconsole: websockify adapt graphic protocol like vnc protocol
2018-10-22 15:17:06 +08:00
Qiu Jian 46a39b5612 allow snapshot-list --manager <cloud-provider-id-or-name> 2018-10-22 12:04:55 +08:00
Qiu Jian b27be13cc3 修正:补充2.2.0 purge eip/snapshot接口 2018-10-22 11:24:54 +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
Zexi Li 948a1895c7 webconsole: websockify adapt graphic protocol like vnc protocol 2018-10-20 15:58:12 +08:00
周有松 faab1758e1 Merge pull request #319 in YUNIONIO/onecloud from ~ZHOUYOUSONG/onecloud:bugfix/yousong-dnsrecords-minors to release/2.3.0
* commit 'e4bb883c608ceed482f9c1961c5197bc9fc64fca':
  region-dns: priority, weight for srv records
  climc: dnsrecords: specify multiple srv records
  dnsrecords: support multiple srv records
2018-10-19 17:32:33 +08:00
邱剑 d45e19231a Merge pull request #298 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:feature/qj-dynamic-schedtag to release/2.3.0
* commit 'cda404573cef53326e119dadca51dced877c9835':
  condition parser support in, len, strlen methods
  minor updates
  upgrade to go1.11
  minor updates
  cloudprovider show tenant info
  fix: scheduler cloudprovider ProjectId typo
  fix fmt
  scheduler: dynamicschedtags support
  parser improvement
  Minor fixes
  minor fixes
  Add manager_tenant_id to host details
  修正:cloudprovider/cloudacount的代码recode
  改进:增加schedpolicy和dynamicschedtag支持
2018-10-19 11:43:11 +08:00
Qiu Jian 0ee3de5ef8 minor updates 2018-10-19 00:01:18 +08:00
Yousong Zhou 1c64800f39 climc: dnsrecords: specify multiple srv records
- --srv host:port:weight:priority support
 - deprecate but keep compat with old --srv-host, --srv-port
 - dns-update now allows updating full records
2018-10-18 15:59:38 +00:00
张东亮 f4b3eff3af Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'ad538f6689965fc8da627794fe729f07d3e07c6f':
  fix: scheduler start auth interface
2018-10-18 19:33:26 +08:00
Zexi Li 0101570c86 fix: scheduler start auth interface 2018-10-18 19:32:12 +08:00
邱剑 510ad125db Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'a72b479bdb8bf848b48a315fb667ec4ee38142fc':
  改进:允许climc指定tls证书,允许服务指定tls证书
2018-10-18 16:01:19 +08:00
Qiu Jian dfa5a634ab 修正:cloudprovider/cloudacount的代码recode 2018-10-18 12:22:50 +08:00
Qiu Jian b319a5722b Merge branch 'release/2.3.0' of ssh://git.yunion.io/~qiujian/onecloud into feature/qj-dynamic-schedtag 2018-10-17 21:42:10 +08:00
邱剑 93bc41c167 Merge pull request #291 in YUNIONIO/onecloud from ~QUXUAN/onecloud:hotfix/qx-cloud-account to release/2.3.0
* commit 'e7bd5dfa66588a8e8fd2bcfb93ce401641945bc2':
  减少调用层级
  支持云账号主次之分
2018-10-17 21:16:44 +08:00
屈轩 e7bd5dfa66 减少调用层级 2018-10-17 21:03:12 +08:00
Qiu Jian 575ea95525 改进:允许climc指定tls证书,允许服务指定tls证书 2018-10-17 16:45:11 +08:00
Qiu Jian fc777095c1 改进:增加schedpolicy和dynamicschedtag支持 2018-10-17 08:12:21 +08:00
邱剑 05efb6c116 Merge pull request #296 in YUNIONIO/onecloud from ~ZHOUYOUSONG/onecloud:bugfix/yousong-dnsrecrods-enabled to release/2.3.0
* commit '7e3e8a01ce2c0a2251c4f05d12b1cfdda71b26a0':
  dns: fix compilation error
  climc: add dns-enable, dns-disable
  dnsrecords: add enabled field
2018-10-16 19:42:29 +08:00
屈轩 8ef86da0de Merge branch 'release/2.3.0' of ssh://git.yunion.io/~quxuan/onecloud into hotfix/qx-cloud-account 2018-10-16 18:38:47 +08:00
李泽玺 6a9ba82120 Merge pull request #292 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:feature/qj-host-usable-filter to release/2.3.0
* commit '98dc897eeb29c9adc2b080e87857e11b28fb73e7':
  增加:host-list增加usable过滤器
2018-10-16 18:08:15 +08:00
邱剑 9f6db4f986 Automatic merge from release/2.2.0 -> release/2.3.0
* commit '988adf7bd84dec69115a548bf1860af1fe1e27ca':
  add snapshot-list filter by storage type
2018-10-16 17:23:46 +08:00
Yousong Zhou 1bcfa41427 climc: add dns-enable, dns-disable 2018-10-16 09:11:43 +00:00
wanyaoqi 374d531931 add snapshot-list filter by storage type 2018-10-16 16:59:52 +08:00
邱剑 8772c01004 Automatic merge from release/2.2.0 -> release/2.3.0
* commit 'fb84a9e5086f74418a1f2a2352b926ff4effd34a':
  add disk-create-snapshot, bug fix
2018-10-16 13:55:19 +08:00
wanyaoqi e0751c0e15 add disk-create-snapshot, bug fix 2018-10-16 13:52:54 +08:00
Qiu Jian 98dc897eeb 增加:host-list增加usable过滤器 2018-10-15 21:39:48 +08:00
屈轩 197f1b32ee 支持云账号主次之分 2018-10-15 18:29:11 +08:00
邱剑 219015d50c Merge pull request #287 in YUNIONIO/onecloud from ~QIUJIAN/onecloud:feature/qj-keypair-improvment to release/2.3.0
* commit 'cfa4f5db945dcef09137c712370edcb3d8e33593':
  server show expired_at column
  修正:1. 阿里云自动设置Import/Export image ram授权,不再需要手动授权 2. 修正公有云注入userdata的问题
  Update vendor
  Update format
  Force format before build
  minor updates
  Update vendor
  改进:1. 部署VM时注入全局和项目公钥 2. 完善keypair的创建和导入功能 3. 其他
2018-10-15 18:20:30 +08:00
李泽玺 0cdf25150c Automatic merge from release/2.2.0 -> release/2.3.0
* commit '0f8f7e570ea1c99431a03193d55addef5f360830':
  add snapshot details
2018-10-15 11:02:09 +08:00
Qiu Jian 23443c07bc 修正:1. 阿里云自动设置Import/Export image ram授权,不再需要手动授权 2.
修正公有云注入userdata的问题
2018-10-13 20:36:15 +08:00
Zexi Li c42360a8b7 climc: k8s v1.12 option support 2018-10-13 18:05:27 +08:00
wanyaoqi 383ec5966a add snapshot details 2018-10-12 17:50:00 +08:00