ops_manager_cli 0.7.9 → 0.7.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5afd22d67afba9afb46ef67826bf802becea60c
4
- data.tar.gz: 424ecd73d4df7fe55c7539acd13269f20d83b96f
3
+ metadata.gz: cc677fa421b8538cf3e010f5562d75b7839e0cc7
4
+ data.tar.gz: c031e55d15e580ac83b0573a2afab9c58281f09f
5
5
  SHA512:
6
- metadata.gz: ef6a66952f444c15e260461d22a92965f5b46fabd9538a47aa798819dcef2f5b7fa41b8438d6020bcb8580acfe66ef56a6b4656ab6ff798a38c7dcb6bbd01029
7
- data.tar.gz: e5d3d31fdf8fc593aa4135a6535aa046c97dee82dee07fe598f6c5fdabc9be79f637dacc6e96842562a4bf548579c6520c090c61f44c6ba4d7e16c79722970e0
6
+ metadata.gz: b066502ceabc2a6afa66896c672aaae8b4da49bead018fc72efc51967faab41d45498d017c9bea814501dd733a01853f43e99e84f23bd0df6a7605d06d61506f
7
+ data.tar.gz: 7537c124c9711c0fa07258a87fb2f31cb2d1756b8d53074fe85676aafcff6393d9867a80228f96c1e2d07cb889957a04da6090166b8821a9719492372ee3d8f1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.7.9]://github.com/compozed/ops_manager_cli/tree/v0.7.9) (2018-10-8)
4
+ [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.9...v0.7.10)
5
+
6
+ - Fixes a bug uploading stemcells when using single-tile-deployments causing all tiles to
7
+ be assigned a stemcell, instead of the deployment targeted with single-tile-deployments
8
+ - Support handling CF::UAA::HTTPException when checking for existing Ops Managers
9
+ - Re-resolve bug related to deploying to AWS using instance profiles based on new Fog code
10
+
3
11
  ## [v0.7.9]://github.com/compozed/ops_manager_cli/tree/v0.7.9) (2018-06-18)
4
12
  [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.8...v0.7.9)
5
13
 
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  FROM ruby:2.4.1
2
2
 
3
3
  ENV GEM_NAME ops_manager_cli
4
- ENV GEM_VERSION 0.7.9
4
+ ENV GEM_VERSION 0.7.10
5
5
  ENV SPRUCE_VERSION 1.17.0
6
6
  ENV JQ_VERSION 1.5
7
7
  ENV OVFTOOL_VERSION 4.3.0-7948156
@@ -29,6 +29,5 @@ RUN wget -q -O /usr/local/bin/jq --no-check-certificate https://github.com/stedo
29
29
 
30
30
  # ================== Installs ops_manager_cli gem ==============
31
31
  COPY pkg/${GEM_NAME}-${GEM_VERSION}.gem /tmp/
32
- RUN echo ':ssl_verify_mode: 0' > ~/.gemrc
33
- RUN gem install /tmp/${GEM_NAME}-${GEM_VERSION}.gem
34
-
32
+ RUN echo ':ssl_verify_mode: 0' > ~/.gemrc \
33
+ && gem install /tmp/${GEM_NAME}-${GEM_VERSION}.gem
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'github_changelog_generator/task'
5
5
  RSpec::Core::RakeTask.new(:spec)
6
6
 
7
7
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
8
- config.max_issues = 50
8
+ config.max_issues = 5
9
9
  end
10
10
 
11
11
  task :default => :spec
@@ -125,17 +125,22 @@ class OpsManager
125
125
 
126
126
  def get_diagnostic_report
127
127
  authenticated_get("/api/v0/diagnostic_report")
128
- rescue Errno::ETIMEDOUT , Errno::EHOSTUNREACH, Net::HTTPFatalError, Net::OpenTimeout, HTTPClient::ConnectTimeoutError
128
+ rescue Errno::ETIMEDOUT , Errno::EHOSTUNREACH, Net::HTTPFatalError, Net::OpenTimeout, HTTPClient::ConnectTimeoutError, CF::UAA::HTTPException
129
129
  nil
130
130
  end
131
131
 
132
- def import_stemcell(filepath)
132
+ def import_stemcell(filepath, products = "all")
133
133
  return unless filepath
134
134
  tar = UploadIO.new(filepath, 'multipart/form-data')
135
135
  print_green "====> Uploading stemcell: #{filepath} ..."
136
+
136
137
  opts = { "stemcell[file]" => tar }
137
- res = nil
138
+ # if we specify specific products, don't update stemcell associations everywhere
139
+ if products != "all"
140
+ opts["stemcell[floating]"] = false
141
+ end
138
142
 
143
+ res = nil
139
144
  3.times do
140
145
  res = authenticated_multipart_post("/api/v0/stemcells", opts)
141
146
  case res.code
@@ -143,8 +148,8 @@ class OpsManager
143
148
  when '503' ; sleep(60)
144
149
  end
145
150
  end
146
-
147
151
  raise OpsManager::StemcellUploadError.new(res.body) unless res.code == '200'
152
+
148
153
  say_green 'done'
149
154
  res
150
155
  end
@@ -73,8 +73,6 @@ class OpsManager
73
73
  @connection ||= Fog::Compute.new({
74
74
  provider: config[:provider],
75
75
  use_iam_profile: config[:opts][:use_iam_profile],
76
- aws_access_key_id: "",
77
- aws_secret_access_key: "",
78
76
  })
79
77
  else
80
78
  @connection ||= Fog::Compute.new({
@@ -26,7 +26,11 @@ class OpsManager
26
26
 
27
27
  def run
28
28
  OpsManager.target_and_login(config[:target], config[:username], config[:password])
29
- import_stemcell(config[:stemcell])
29
+ if config[:single_tile_deploy]
30
+ import_stemcell(config[:stemcell], [installation.guid])
31
+ else
32
+ import_stemcell(config[:stemcell])
33
+ end
30
34
 
31
35
  case
32
36
  when installation.nil? || forced_deployment?
@@ -1,3 +1,3 @@
1
1
  class OpsManager
2
- VERSION = "0.7.9"
2
+ VERSION = "0.7.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.9
4
+ version: 0.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - CompoZed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2018-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler