vagrant-cloudstack 1.5.1 → 1.5.2

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
  SHA256:
3
- metadata.gz: d080a68ae597bf9a88abb59566e3fe84e1cb4eb018a4139ec7a7c968f7ef9f88
4
- data.tar.gz: 5b6e37340002a87d34c63c319f6e2d70d700f2af6bd074ed20b8c222c5023aa6
3
+ metadata.gz: 6019985a53dd946fc187fd0848a6d6100a2e1bffba735bce3763c8cde13b1140
4
+ data.tar.gz: 2202f98c83ac5933ae16c69ea1b0b2e8265d43411db468888600f199f8dc5b78
5
5
  SHA512:
6
- metadata.gz: 6baa746f63b7cda0063e46c41182fab7989f3fe38b30cf7dc534db33f741ff43f0981797f20fe98e83f98d0a823f3643947f7d7d29f3b6100ff33d8541874a1d
7
- data.tar.gz: '08d800fed8637887827040c62dbabbea9f860107099a37614d34e4a40c2af15a18423740074b91bc87b97b9d8199289960e8a14efb1058634779ea09de749d93'
6
+ metadata.gz: ae5196531d1dc40f27dd1d81e6d33112d52b2f3ab38f9ef5067be7f08f842f37d6ea4e62ab73b5dccc6b03978594a38472ef32a800408d58e246a5fde3b919c6
7
+ data.tar.gz: 39679ffd0a1797297626a5969512e015bd0d471a7aa466e3027bdb9b60759f4ab6a8cbaa9b725fa9b2efcfc1ba3be73e222dc1f19d70149c15a1c6ba3655c4a7
@@ -1,3 +1,9 @@
1
+ # 1.5.2 (02 Oct 2019)
2
+
3
+ Fixed bugs:
4
+
5
+ - `store_passwd` would sometimes try to lookup an async job status without including the job id causing an exception being raised [\#187](https://github.com/MissionCriticalCloud/vagrant-cloudstack/issues/187)
6
+
1
7
  # 1.5.1 (18 Apr 2019)
2
8
 
3
9
  **Implemented enhancements:**
@@ -24,7 +24,7 @@ GIT
24
24
  PATH
25
25
  remote: .
26
26
  specs:
27
- vagrant-cloudstack (1.5.1)
27
+ vagrant-cloudstack (1.5.2)
28
28
  fog (>= 1.32.0)
29
29
  fog-xml (>= 0.1.2)
30
30
 
@@ -49,7 +49,7 @@ GEM
49
49
  docile (1.3.0)
50
50
  dry-inflector (0.1.2)
51
51
  erubis (2.7.0)
52
- excon (0.64.0)
52
+ excon (0.67.0)
53
53
  faraday (0.15.4)
54
54
  multipart-post (>= 1.2, < 3)
55
55
  ffi (1.9.23)
@@ -90,7 +90,7 @@ GEM
90
90
  fog-xml (~> 0.1.1)
91
91
  ipaddress (~> 0.5)
92
92
  json (~> 2.0)
93
- fog-aliyun (0.3.3)
93
+ fog-aliyun (0.3.4)
94
94
  fog-core
95
95
  fog-json
96
96
  ipaddress (~> 0.8)
@@ -198,7 +198,7 @@ GEM
198
198
  fog-voxel (0.1.0)
199
199
  fog-core
200
200
  fog-xml
201
- fog-vsphere (3.0.0)
201
+ fog-vsphere (3.2.0)
202
202
  fog-core
203
203
  rbvmomi (>= 1.9, < 3)
204
204
  fog-xenserver (1.0.0)
@@ -233,7 +233,7 @@ GEM
233
233
  i18n (0.8.0)
234
234
  ipaddress (0.8.3)
235
235
  json (2.1.0)
236
- jwt (2.1.0)
236
+ jwt (2.2.1)
237
237
  listen (3.1.5)
238
238
  rb-fsevent (~> 0.9, >= 0.9.4)
239
239
  rb-inotify (~> 0.9, >= 0.9.7)
@@ -249,25 +249,25 @@ GEM
249
249
  mime-types-data (3.2016.0521)
250
250
  mini_portile2 (2.4.0)
251
251
  multi_json (1.13.1)
252
- multipart-post (2.0.0)
252
+ multipart-post (2.1.1)
253
253
  net-scp (1.2.1)
254
254
  net-ssh (>= 2.6.5)
255
255
  net-sftp (2.1.2)
256
256
  net-ssh (>= 2.6.5)
257
257
  net-ssh (4.2.0)
258
- nokogiri (1.10.2)
258
+ nokogiri (1.10.4)
259
259
  mini_portile2 (~> 2.4.0)
260
260
  nori (2.6.0)
261
261
  optimist (3.0.0)
262
- os (1.0.0)
263
- public_suffix (3.0.3)
262
+ os (1.0.1)
263
+ public_suffix (3.1.1)
264
264
  rake (10.5.0)
265
265
  rb-fsevent (0.10.3)
266
266
  rb-inotify (0.9.10)
267
267
  ffi (>= 0.5.0, < 2)
268
268
  rb-kqueue (0.2.5)
269
269
  ffi (>= 0.5.0)
270
- rbvmomi (2.1.1)
270
+ rbvmomi (2.2.0)
271
271
  builder (~> 3.0)
272
272
  json (>= 1.8)
273
273
  nokogiri (~> 1.5)
@@ -253,6 +253,7 @@ module VagrantPlugins
253
253
  options = compose_server_creation_options
254
254
 
255
255
  @server = @env[:cloudstack_compute].servers.create(options)
256
+ @server_job_id = @server.job_id
256
257
  rescue Fog::Compute::Cloudstack::NotFound => e
257
258
  # Invalid subnet doesn't have its own error so we catch and
258
259
  # check the error message here.
@@ -759,14 +760,14 @@ module VagrantPlugins
759
760
  def store_password
760
761
  password = nil
761
762
  if @server.password_enabled and @server.respond_to?('job_id')
762
- server_job_result = @env[:cloudstack_compute].query_async_job_result({:jobid => @server.job_id})
763
+ server_job_result = @env[:cloudstack_compute].query_async_job_result({:jobid => @server_job_id})
763
764
  if server_job_result.nil?
764
765
  @env[:ui].warn(' -- Failed to retrieve job_result for retrieving the password')
765
766
  return
766
767
  end
767
768
 
768
769
  while true
769
- server_job_result = @env[:cloudstack_compute].query_async_job_result({:jobid => @server.job_id})
770
+ server_job_result = @env[:cloudstack_compute].query_async_job_result({:jobid => @server_job_id})
770
771
  if server_job_result['queryasyncjobresultresponse']['jobstatus'] != 0
771
772
  password = server_job_result['queryasyncjobresultresponse']['jobresult']['virtualmachine']['password']
772
773
  break
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Cloudstack
3
- VERSION = '1.5.1'
3
+ VERSION = '1.5.2'
4
4
  end
5
5
  end
@@ -260,13 +260,14 @@ describe VagrantPlugins::Cloudstack::Action::RunInstance do
260
260
 
261
261
  allow(machine).to receive(:provider_config).and_return(provider_config)
262
262
  expect(server).to receive(:wait_for).and_return(ready = true)
263
+ allow(server).to receive(:job_id).and_return(JOB_ID)
263
264
  allow(server).to receive(:password_enabled).and_return(false)
264
265
  expect(cloudstack_compute).to receive(:servers).and_return(servers)
265
- allow(cloudstack_compute).to receive(:send).with(:list_zones, available: true).and_return(list_zones_response)
266
- allow(cloudstack_compute).to receive(:send).with(:list_service_offerings, listall: true)
266
+ allow(cloudstack_compute).to receive(:send).with(:list_zones, available: true, name: ZONE_NAME).and_return(list_zones_response)
267
+ allow(cloudstack_compute).to receive(:send).with(:list_service_offerings, listall: true, name: SERVICE_OFFERING_NAME)
267
268
  .and_return(list_service_offerings_response)
268
269
  allow(cloudstack_compute).to receive(:send)
269
- .with(:list_templates, zoneid: ZONE_ID, templatefilter: 'executable', listall: true)
270
+ .with(:list_templates, zoneid: ZONE_ID, templatefilter: 'executable', listall: true, name: TEMPLATE_NAME)
270
271
  .and_return(list_templates_response)
271
272
  allow(cloudstack_compute).to receive(:zones).and_return([cloudstack_zone])
272
273
  allow(servers).to receive(:create).with(create_servers_parameters).and_return(server)
@@ -413,7 +414,7 @@ describe VagrantPlugins::Cloudstack::Action::RunInstance do
413
414
  let(:volume) { double('Fog::Compute::Cloudstack::Volume') }
414
415
 
415
416
  before(:each) do
416
- allow(cloudstack_compute).to receive(:send).with(:list_disk_offerings, listall: true)
417
+ allow(cloudstack_compute).to receive(:send).with(:list_disk_offerings, listall: true, name: DISK_OFFERING_NAME)
417
418
  .and_return(list_disk_offerings_response)
418
419
  expect(cloudstack_compute).to receive(:volumes).and_return([volume])
419
420
  allow(volume).to receive(:server_id).and_return(SERVER_ID)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-cloudstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: bin
24
24
  cert_chain: []
25
- date: 2019-04-18 00:00:00.000000000 Z
25
+ date: 2019-10-02 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog