availability-zone should be available in openstack metadata

Bug #1039579 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Scott Moser

Bug Description

I'd like to add 'availability-zone' to the openstack metadata service.

That piece of information, is configurable for each nova host (FLAGS.node_availability_zone). It gives some info about the "cloud" that is being run on is extremely useful for a generic guest. In EC2 Ubuntu selects mirrors based on it.

It doesn't seem completely obvious to do this because availability-zone is obtained via "ec2utils.get_availability_zone_by_host(services, instance['host'])".

Other than that, it seems like information that should be in metadata.

Changed in nova:
assignee: nobody → Scott Moser (smoser)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/11715
Committed: http://github.com/openstack/nova/commit/30e6879d8139e13fc70b0d1c8ef13d7ee03ca5c3
Submitter: Jenkins
Branch: master

commit 30e6879d8139e13fc70b0d1c8ef13d7ee03ca5c3
Author: Scott Moser <email address hidden>
Date: Tue Aug 21 11:16:02 2012 -0400

    add availability_zone to openstack metadata

    This adds the key 'availability_zone' to the metadata for openstack.

    'availability-zone' in EC2 is very useful to the instance to figure out
    where it is. For example, Ubuntu uses this information to determine
    mirror location on EC2.

    Fixes bug 1039579.

    Change-Id: I212d3854b75e08a67138b5cd0bea178c47840e11

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → folsom-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-rc1 → 2012.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.