cloudinit/datasource
Janne Paenkaelae 2f954dcdc2 AWS: Eucalyptus 4.x compatibility fix
For Eucalyptus 4.0.1 requesting metadata seem to work differently as with EC2.

In Euca:
> curl http://169.254.169.254/2009-04-04
<?xml version="1.0"?><Response><Errors><Error><Code>404 Not Found</Code><Message>unknown</Message></Error></Errors><RequestID>unknown</RequestID></Response>core@localhost ~ $

> curl http://169.254.169.254/2009-04-04/
dynamic
meta-data
user-data

In AWS EC2
> curl http://169.254.169.254/2009-04-04
"" (zero bytes)

> curl http://169.254.169.254/2009-04-04/
dynamic
meta-data
user-data

As the isAvailable() function in metadata.go tests only for errorcode
it fails in Euca.
2014-09-24 20:33:29 +03:00
..
configdrive configdrive: return an empty network config when filename is empty 2014-09-13 21:51:51 -07:00
file datasource: Add FetchNetworkConfig 2014-08-26 13:04:43 -07:00
metadata AWS: Eucalyptus 4.x compatibility fix 2014-09-24 20:33:29 +03:00
proc_cmdline datasource: Add FetchNetworkConfig 2014-08-26 13:04:43 -07:00
url datasource: Add FetchNetworkConfig 2014-08-26 13:04:43 -07:00
datasource.go datasource: Add FetchNetworkConfig 2014-08-26 13:04:43 -07:00