Comment 0 for bug 1089989

Revision history for this message
Gerard Dethier (g-dethier) wrote :

In CloudStack's documentation, it is stated that meta/user-data can be retrieved from CloudStack's Virtual Router (VR): (see http://incubator.apache.org/cloudstack/docs/en-US/Apache_CloudStack/4.0.0-incubating/html/Admin_Guide/user-data-and-meta-data.html). However, cloud-init retrieves these information from default gateway. VR and default gateway may be the same machine (i.e. have the same address) in some cases, but that is not be always true (actually, in my case, it is not).

The fix seems easy: in file 'DataSourceCloudStack.py', the method 'get_default_gateway' should be corrected.

I may provide a patch soon, if it can help.