You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should increase it to 60 minutes until we have a reasonable way to set it to something higher via the machine_image resource. Currently on Rackspace Private Cloud backended with CloudFiles for image storage, even 40gb images can take 35-45 minutes.
defready_image(action_handler,image_spec,image_options)actual_image=image_for(image_spec)ifactual_image.nil?raise'Cannot ready an image that does not exist'elseifactual_image.status != 'ACTIVE'action_handler.report_progress'Waiting for image to be active ...'wait_until_ready_image(action_handler,image_spec,actual_image)elseaction_handler.report_progress"Image #{image_spec.name} is active!"endendenddefwait_until_ready_image(action_handler,image_spec,image=nil)wait_until_image(action_handler,image_spec,image){image.status == 'ACTIVE'}enddefwait_until_image(action_handler,image_spec,image=nil, &block)image ||= image_for(image_spec)time_elapsed=0sleep_time=10max_wait_time=300if !yield(image)action_handler.report_progress"waiting for image #{image_spec.name} (#{image.id} on #{driver_url}) to be active ..."whiletime_elapsed < max_wait_time && !yield(image)action_handler.report_progress"been waiting #{time_elapsed}/#{max_wait_time} -- sleeping #{sleep_time} seconds for image #{image_spec.name} (#{image.id} on #{driver_url}) to be ACTIVE instead of #{image.status}..."sleep(sleep_time)image.reloadtime_elapsed += sleep_timeendunlessyield(image)raise"Image #{image.id} did not become ready within #{max_wait_time} seconds"endaction_handler.report_progress"Image #{image_spec.name} is now ready"endend
The text was updated successfully, but these errors were encountered:
hh
added a commit
to hh/chef-provisioning-fog
that referenced
this issue
Jun 7, 2016
We should increase it to 60 minutes until we have a reasonable way to set it to something higher via the machine_image resource. Currently on Rackspace Private Cloud backended with CloudFiles for image storage, even 40gb images can take 35-45 minutes.
Here is the hardcoding in https://github.com/chef/chef-provisioning-fog/blob/master/lib/chef/provisioning/fog_driver/providers/openstack.rb:
And here is the call chain:
The text was updated successfully, but these errors were encountered: