Public bug reported:
Description
===========
When trying to create attach a fixed ip (be it a provider IP) to an instance
directly, I see different behaviour when using `nova interface-attach` and
`openstack server add fixed ip`. The former assigns the ip successfully whereas
the latter assigns a different ip in the same network
Steps to reproduce
==================
1. Create VM
2. Attach interface with `nova --debug interface-attach --net-id <netid>
--fixed-ip <ip> <serverid>`
3. Remove interface with `openstack server remove network <serverid> <netid>`
4. Attach interface with openstack --debug server add fixed ip <serverid>
--fixed-ip-address <ip> <netid>`
Expected result
===============
Both 2) and 4) should lead to the requested IP be attached
Actual result
=============
Only 2) assigns requested ip. 4) assigns a different ip in the same network.
Environment
===========
1. Exact version of OpenStack you are running? Yoga (nova 25.0.1)
2. Which hypervisor did you use? Libvirt 8.0.0 + KVM 4.2.1
What's the version of that?
2. Which storage type did you use? Ceph
3. Which networking type did you use? Neutron with OVN
Logs & Configs
==============
Please see attached file for debug logs
** Affects: nova
Importance: Undecided
Status: New
** Attachment added: "nova_vs_openstack_cli_logs.txt"
https://bugs.launchpad.net/bugs/1998927/+attachment/5634810/+files/nova_vs_openstack_cli_logs.txt
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1998927
Title:
openstack server add fixed ip --fixed-ip does not set correct ip
address
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
When trying to create attach a fixed ip (be it a provider IP) to an instance
directly, I see different behaviour when using `nova interface-attach` and
`openstack server add fixed ip`. The former assigns the ip successfully whereas
the latter assigns a different ip in the same network
Steps to reproduce
==================
1. Create VM
2. Attach interface with `nova --debug interface-attach --net-id <netid>
--fixed-ip <ip> <serverid>`
3. Remove interface with `openstack server remove network <serverid> <netid>`
4. Attach interface with openstack --debug server add fixed ip <serverid>
--fixed-ip-address <ip> <netid>`
Expected result
===============
Both 2) and 4) should lead to the requested IP be attached
Actual result
=============
Only 2) assigns requested ip. 4) assigns a different ip in the same network.
Environment
===========
1. Exact version of OpenStack you are running? Yoga (nova 25.0.1)
2. Which hypervisor did you use? Libvirt 8.0.0 + KVM 4.2.1
What's the version of that?
2. Which storage type did you use? Ceph
3. Which networking type did you use? Neutron with OVN
Logs & Configs
==============
Please see attached file for debug logs
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1998927/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp