Commit Graph
1636 Commits
Author SHA1 Message Date
TangBin 0065572242 bugfix 2018-10-25 19:35:23 +08:00
Zhang Dongliang 743655fca3 在 onecloud 环境增加 websocket client 的接口 2018-10-25 19:30:06 +08:00
TangBin 704ec7887b bugfix 2018-10-25 19:18:28 +08:00
TangBin 705b3a14c9 bugfix 2018-10-25 19:11:29 +08:00
TangBin 1e280ba39f image bugfix 2018-10-25 19:03:16 +08:00
TangBin 943f312ff8 image filter by own 2018-10-25 18:47:01 +08:00
TangBin 94d93bee07 security group list update 2018-10-25 18:26:25 +08:00
TangBin a2baa3bfb8 filter snapshot by owner 2018-10-25 17:18:06 +08:00
TangBin 0c109e98b3 fill zero 2018-10-25 16:54:02 +08:00
TangBin a63fd49914 add fill struct method 2018-10-25 16:28:37 +08:00
TangBin 3fee2d00a8 remove useless code 2018-10-24 19:49:50 +08:00
TangBin 7f6acfcc17 remove useless function 2018-10-24 19:38:52 +08:00
TangBin bcf7e6f80b add eip 2018-10-24 18:20:11 +08:00
TangBin 3d479e776f add eip 2018-10-24 18:11:44 +08:00
TangBin 70a00a0e4c add more instance filed 2018-10-24 18:02:48 +08:00
TangBin f30f561477 add util method 2018-10-24 17:46:55 +08:00
TangBin 136382f95b remove regions print 2018-10-24 11:56:55 +08:00
屈轩 9971d6cf88 重写Azure 2018-10-24 10:30:24 +08:00
Qiu Jian 1cb96585bc Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181023-2.3.0 2018-10-23 22:31:47 +08:00
wanyaoqi a3a5259505 add disk type in snapshots 2018-10-23 22:07:04 +08:00
TangBin 58be5ccda9 add aws cli 2018-10-23 17:54:30 +08:00
TangBin 7db7bcb2ca add image download/upload method 2018-10-23 16:26:53 +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
TangBin aa10e8c968 temp 2018-10-22 20:15:36 +08:00
TangBin 66a899bc55 add vmimport init method 2018-10-22 19:44:43 +08:00
TangBin e4cade7db1 add role create method 2018-10-22 18:55:37 +08:00
TangBin c34c4b6219 add create image method 2018-10-22 17:06:50 +08:00
TangBin d4b9032d06 add create image method 2018-10-22 17:06:22 +08:00
Qiu Jian 75752dc915 Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181022-1-2.3.0
Conflicts:
	pkg/compute/models/guests.go
2018-10-22 15:27:31 +08:00
Zhang Dongliang 3d7723499d 云服务器关联安全组后,操作日志记录内容应该是“关联安全组” 2018-10-22 15:20:56 +08:00
Qiu Jian 73eff73289 Merge branch 'release/2.2.0' of ssh://git.yunion.io/~qiujian/onecloud into hotfix/qj-resolve-conflict-20181022-2.3.0
Conflicts:
	pkg/httperrors/httperrors.go
2018-10-22 12:29:07 +08:00
Qiu Jian 4d1d4e56fd 修正:worker timeout之后需要从worker
manager中移除,不再占用worker的数量限额,否则timeout之后,并不能解决整个服务被卡住的问题
2018-10-22 01:38:52 +08:00
TangBin 7781169005 add network operation method 2018-10-20 18:38:52 +08:00
TangBin 32af975709 add keypair operation methods 2018-10-20 18:30:30 +08:00
TangBin 84c52fd12b add todo 2018-10-20 18:00:24 +08:00
TangBin 15f8b398af add instance types 2018-10-20 17:54:21 +08:00
TangBin 10fffe2183 add instance operation methods 2018-10-20 16:12:58 +08:00
TangBin 46c45acbfa add image operation methods 2018-10-20 15:10:43 +08:00
TangBin 7690ba544f add eip operation methods 2018-10-20 14:36:33 +08:00
TangBin 77d8811f2f add disk operation methods 2018-10-20 14:03:11 +08:00
TangBin ad41fd76b6 bugfix 2018-10-19 19:23:51 +08:00
TangBin 76a0f1037e temp 2018-10-19 18:31:41 +08:00
Zhang Dongliang 06f588ad64 go fmt 2018-10-19 16:08:11 +08:00
TangBin ba5710cf70 add secrule parse 2018-10-19 11:47:42 +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 cda404573c condition parser support in, len, strlen methods 2018-10-19 02:06:07 +08:00
Qiu Jian 0ee3de5ef8 minor updates 2018-10-19 00:01:18 +08:00
Qiu Jian 125f70fe45 upgrade to go1.11 2018-10-18 21:00:39 +08:00
TangBin fc94fdad01 add secgroup rule convert util 2018-10-18 20:15:00 +08:00