dns_name was reset,when delete VM or detach-interface

Bug #1583739 reported by bailin.zhang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
neutron
Expired
Low
Unassigned

Bug Description

When delete VM ,or detach port. the dns_name of port should be retained ,when it was assigned by the user

At this fix: https://bugs.launchpad.net/nova/mitaka/+bug/1572593. reset dns_name directly.

Tags: dns
Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

Do you expect a case like the following?

1. create a port for vm
2. boot vm with the port
3. update dns_name of the port(e.g. new_dns_name)
4. delete vm
5. now dns_name of the port is clear

Do you hope that dns_name keeps "new_dns_name" in 5?

tags: added: dns
Changed in neutron:
status: New → Incomplete
Revision history for this message
bailin.zhang (bailin-zhang) wrote :

1. create a port
2. update dns-name of port
3. boot VM with this port
4. delete the Vm
5. now dns-name was reset

Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

In my env(master branch), boot of 3 fails because "ortNotUsableDNS: Port 53cbccb3-49e5-4457-9890-8d2a701a458d not usable for instance 64865c07-df75-4de2-87bb-a8cdd80431dd. Value newdnsname assigned to dns_name attribute does not match instance's hostname vm1" happens.

Revision history for this message
bailin.zhang (bailin-zhang) wrote :

At the doc: http://docs.openstack.org/mitaka/networking-guide/adv-config-dns.html
"Instead of having the Compute service create the port for the instance, the user might have created it and assigned a value to its dns_name attribute. In this case, the value assigned to the dns_name attribute must be equal to the value that Compute service will assign to the instance’s hostname, in this example my-vm. Otherwise, the instance boot will fail"

Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

What do you mean? Do you expect a case like the following?

1. create a port for vm
2. update dns-name of port(VM name which you will name to VM. This is "VM-TEST" here)
2. boot vm(the name is "VM-TEST") with the port
4. delete vm
5. now dns_name of the port is clear

However you hope dns_name of the port is "VM-TEST", right? First why did you update dns-name of the port in 2?

Revision history for this message
bailin.zhang (bailin-zhang) wrote :

If the dns_name of port was assigned by the user, this port can be attach to the VM named "VM-TEST" only.

When delete vm, dns_name of the port is clear. This port can be attach to any VM.

Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

> When delete vm, dns_name of the port is clear. This port can be attach to any VM.
I think it's correct behavior.

Revision history for this message
bailin.zhang (bailin-zhang) wrote :

Before the port can be attache to the VM named "VM-TEST", but now It can be attache to any VM.
Can let a person feel confused.

I think of some solutions:
1. If the dns name is pre-existing, the dns_name of port will be retained when vm delete.
2. Prohibit users to modify dns-name manually.
3. Add a few comments, tell the uses dns-name will be clear at the process.

Revision history for this message
Hirofumi Ichihara (ichihara-hirofumi) wrote :

I'm not sure that there is a use case which users manually set dns-name. IMO, if there is no case, it's better to deny PUT to dns_name. And I also think that it's reasonable that we could add the comments into the documentation.

Changed in neutron:
assignee: nobody → bailin.zhang (bailin-zhang)
Revision history for this message
Graham Hayes (grahamhayes) wrote :

This seems like something that could be set in policy - services like LBaaS / Nova / Trove might want to interact with this part of the API, but maybe not users.

But, is there any reason that nova should fail to boot with a different name? I can see situations where the port might get a generated DNS name (to create both forward and reverse DNS for all ports by default), but allow it to be updated by the user to be something different.

Might be different bug report though.

Changed in neutron:
importance: Undecided → Low
Zhigang Li (li-zhigang3)
Changed in neutron:
assignee: bailin.zhang (bailin-zhang) → Zhigang Li (li-zhigang3)
status: Incomplete → In Progress
Revision history for this message
Armando Migliaccio (armando-migliaccio) wrote :

This bug is > 180 days without activity. We are unsetting assignee and milestone and setting status to Incomplete in order to allow its expiry in 60 days.

If the bug is still valid, then update the bug status.

Changed in neutron:
assignee: Zhigang Li (li-zhigang3) → nobody
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for neutron because there has been no activity for 60 days.]

Changed in neutron:
status: Incomplete → Expired
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.