FLAGS.instance_name_template needs to be more flexible

Bug #862637 reported by Chris Behrens
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Low
Chris Behrens

Bug Description

In sqlalchemy/models.py right now... Instance.name becomes FLAGS.instance_name_template % Instance.id
This needs to be more flexible. Something like FLAGS.instance_name_template % dict(instance.iteritems()) would be nice so we can specify "%(uuid)s" for FLAGS.instance_name_template

Chris Behrens (cbehrens)
Changed in nova:
importance: Undecided → Low
assignee: nobody → Chris Behrens (cbehrens)
status: New → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : A change has been merged to openstack/nova

Reviewed: https://review.openstack.org/748
Committed: http://github.com/openstack/nova/commit/48fc6611d15aaedc68747df150480250816fc04e
Submitter: Jenkins
Branch: master

 status fixcommitted
 done

commit 48fc6611d15aaedc68747df150480250816fc04e
Author: Chris Behrens <email address hidden>
Date: Thu Sep 29 21:27:18 2011 +0000

    Fixes bug 862637 -- make instance_name_template more flexible

    Allow use of %(uuid)s in the template.. along with any other Instance
    attribute.

    Change-Id: I0c0ed8cf51d5cfc632c957c4559014eb1d7844d1

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-1 → 2012.1
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.