miasma-lxd 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6d6d7870944c0f10b27669fcf10c2747a1e05e0
4
- data.tar.gz: 5a32a833ec551d6f2f0571fd7d7b4255aa7066fc
3
+ metadata.gz: 511a65757dbfaed9abad4c21a058fbfe60298408
4
+ data.tar.gz: 8133d36c29d5040cca8fbe919e29fc55364a82c9
5
5
  SHA512:
6
- metadata.gz: 1616da6d61d030184e9a6e121d78fb5ac8a3384b28a41f5e93daf988205ccbcea21c43510fbeacf1e8d14e55a4cbd8e3b2e1a7bc2780061280d30819403917e9
7
- data.tar.gz: 9a3bf74b0a277df16160fbfdaa993d99a34f2f5d4563c97d63b4e3fd10f88e7cad6c7a365e5ce201444f2ab736dfa14b6613ce990cd7c8c265bd54b97c9805ec
6
+ metadata.gz: 2860741b4e4a875cc9a5a9069646a731a4a16e940cbaa3c84a4791f68759d925a139c77827637cef08071bcbe1722588b188eab450d21739f9388bc4d680cec6
7
+ data.tar.gz: a5d92f3fde94674284b1ee7ac8caadde8045ed08c431ca7bb1ad1864aa9bd463dae9e0ec44610def49b3122cd8e9ea1cab90e1a144ac379a3a008ce629e37b88
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # v0.1.6
2
+ * Wait for instance to become available on create
3
+ * Retry start when instance still stopped on save
4
+
1
5
  # v0.1.4
2
6
  * Disable automatic body extraction on remote file fetch
3
7
 
@@ -1,4 +1,4 @@
1
1
  module MiasmaLxd
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.1.4')
3
+ VERSION = Gem::Version.new('0.1.6')
4
4
  end
@@ -17,7 +17,7 @@ module Miasma
17
17
  )
18
18
 
19
19
  # @return [Integer]
20
- DEFAULT_EXEC_TIMEOUT = 20
20
+ DEFAULT_EXEC_TIMEOUT = 30
21
21
 
22
22
  # Reload a server model's data
23
23
  #
@@ -113,15 +113,18 @@ module Miasma
113
113
  }
114
114
  )
115
115
  wait_for_operation(result.get(:body, :operation))
116
- request(
117
- :path => "containers/#{server.name}/state",
118
- :method => :put,
119
- :expects => 202,
120
- :json => {
121
- :action => :start
122
- }
123
- )
124
- wait_for_operation(result.get(:body, :operation))
116
+ until(server.state == :running)
117
+ request(
118
+ :path => "containers/#{server.name}/state",
119
+ :method => :put,
120
+ :expects => 202,
121
+ :json => {
122
+ :action => :start
123
+ }
124
+ )
125
+ wait_for_operation(result.get(:body, :operation), 60)
126
+ server.reload
127
+ end
125
128
  server.id = server.name
126
129
  server
127
130
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-lxd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-08 00:00:00.000000000 Z
11
+ date: 2015-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo-websocket