[openstack-dev] [Fuel] Node renaming in Fuel
Dmitry Ukov
dukov at mirantis.com
Wed Sep 10 13:19:03 UTC 2014
Hello Fuelers,
I've figured out that there is a blueprint regarding node naming (
https://blueprints.launchpad.net/fuel/+spec/node-naming). It looks like
this this feature really has not been started. That being said all
necessary preparations in Nailgun code have been already done. The only
thing that is needed to be done is to enable this feature (in fact 4 lines
of code).
--- a/nailgun/nailgun/objects/node.py
+++ b/nailgun/nailgun/objects/node.py
@@ -654,7 +654,10 @@ class Node(NailgunObject):
@classmethod
def make_slave_name(cls, instance):
- return u"node-{node_id}".format(node_id=instance.id)
+ if instance.name.startswith("Untitled"):
+ return u"node-{node_id}".format(node_id=instance.id)
+ else:
+ return u"{node_id}".format(node_id=instance.name.lower())
@classmethod
def make_slave_fqdn(cls, instance):
Should I consider this as a bug or this blueprint will be implemented in
the nearest future?
--
Kind regards
Dmitry Ukov
IT Engineer
Mirantis, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140910/393a0032/attachment.html>
More information about the OpenStack-dev
mailing list