← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1998927] Re: openstack server add fixed ip --fixed-ip does not set correct ip address

 

Regression introduced by https://review.opendev.org/c/openstack/python-
openstackclient/+/820050

** Project changed: nova => python-openstackclient

-- 
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 python-openstackclient:
  Confirmed

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/python-openstackclient/+bug/1998927/+subscriptions



References