cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
421 stars 149 forks source link

changing load order of metadata services, prioritizing configdrive #5

Closed gbarnas closed 9 years ago

gbarnas commented 9 years ago

In environments with some sites having configdrive (and no http), and other sites don't, the default priority of http metadata service would cause a delay of over 5 minutes before cloudbase-init finalizes the configuration of network and drive extending.

Changing the order to detect configdrive first and then http (if no config drive found), resolves this issue, and allows for one image to work both in platforms with and without http metadata services enabled.

openstack-gerrit commented 9 years ago

Thank you for contributing to stackforge/cloudbase-init!

stackforge/cloudbase-init uses Gerrit for code review.

Please visit http://docs.openstack.org/infra/manual/developers.html#development-workflow and follow the instructions there to upload your change to Gerrit.