Hostname of server is not updated when update instance name

Bug #1645272 reported by huangtianhua
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Wishlist
Zhenyu Zheng

Bug Description

Currently we can update instance name and description using update API,
but it only performs update in data in DB, the hostname in VM is still
unchanged.

1. create a server with name 'old'
2. update the name of server to 'new'
3. get the details of server from nova, the name has been updated
4. restart (stop and then start)/reboot the nova server
5. login the server, and found the hostname has not been udpate to 'new'

Changed in nova:
assignee: nobody → huangtianhua (huangtianhua)
summary: - Hostname of server is not updated
+ Hostname of server is not updated when update instance name
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/404583

Changed in nova:
status: New → In Progress
Changed in nova:
assignee: huangtianhua (huangtianhua) → Zhenyu Zheng (zhengzhenyu)
Revision history for this message
melanie witt (melwitt) wrote :

I don't think this is a bug or defect, that is, such a change would be a deliberate change of functionality that would need a spec.

Changed in nova:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Stephen Finucane (<email address hidden>) on branch: master
Review: https://review.openstack.org/404583

Revision history for this message
Matt Riedemann (mriedem) wrote :

As noted this isn't a bug, so marking it invalid. Would require a spec to change this behavior, but I doubt we'd do it, since nova shouldn't have access to the guest once it's created. You'd have to rebuild the server if you wanted to change the hostname in the guest.

Changed in nova:
status: In Progress → Invalid
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.