mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
bug #4285: Add wait loop prior to elastic_ip association
(cherry picked from commit dacf4a3f50)
This commit is contained in:
1 parent
16f34db1a6
commit
c65a7bb5b8
2 files changed
+6
No files matched your search
@@ -1,4 +1,5 @@
|
||||
proxy_uri:
|
||||
state_wait_timeout_seconds: 300
|
||||
regions:
|
||||
default:
|
||||
region_name: us-east-1
|
||||
|
||||
@@ -297,6 +297,11 @@ class EC2Driver
|
||||
|
||||
if ec2_value(ec2_info, 'ELASTICIP')
|
||||
begin
|
||||
start_time = Time.now
|
||||
while instance.status == :pending
|
||||
break if Time.now - start_time > @state_change_timeout
|
||||
sleep 5
|
||||
end
|
||||
instance.associate_elastic_ip(ec2_value(ec2_info, 'ELASTICIP'))
|
||||
rescue => e
|
||||
STDERR.puts(e.message)
|
||||
|
||||
Reference in new issue
Block a user