all instances have user data
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Undecided
|
Chuck Short |
Bug Description
Hi,
I just noticed that all of my instances are showing user-data in the metadata service even if the instance was not started with any user-data. Launch an instance like:
$ img=f57b91f2-
$ nova boot sm-foo-user-data --flavor m1.tiny --key_name $key --image $img sm-foo-no-user-data
Then, inside the instance you'll see:
$ wget -O - -q http://
meta-data/
user-data
Previously (and in EC2) user-data is not listed. This indicates it is Null rather than "".
I see in the database:
mysql> select id, hostname, user_data from instances;
+----+-
| id | hostname | user_data |
+----+-
| 4 | sm-foo-
| 6 | sm-foo-user-data | W3B5dGhvbjogKio
+----+-
I think I would have expected a NULL there for user_data.
I know the metadata service code has explicit checks for this:
nova/api/
if instance.
else:
I'm not actually sure at what point this regressed. It seems present in the folsom nova installation I have access to.
Is there a way to determine that userdata is None rather than "" ?
Perhaps the web service code is just doing it wrong?
Changed in nova: | |
milestone: | none → folsom-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | folsom-rc1 → 2012.2 |
I see this on folsom as well.