158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
# File 'lib/egon/overcloud/undercloud_handle/node.rb', line 158
def introspect_node_status(node_uuid)
uri = "http://#{@auth_url}:5050/v1/introspection/#{node_uuid}"
response = Fog::Core::Connection.new(uri, false).request({
:expects => 200,
:headers => {'Content-Type' => 'application/json',
'Accept' => 'application/json',
'X-Auth-Token' => auth_token},
:method => 'GET'
})
body = Fog::JSON.decode(response.body)
finished = body['finished']
if finished
if body['error']
raise body['error']
end
create_flavor_from_node(get_node(node_uuid))
end
finished
end
|