[Openstack] Networker role node replacement cleanup

Solution In Progress - Updated -

Environment

  • Red Hat OpenStack Platform 16.2.6

Issue

When replacing a node of the custom role Networker the dhcp port from replaced node was not removed and consumes an IP.

Resolution

  1. Identify the port and that it's related to the old node (the replaced one).
[stack@director ~]$  openstack port list --long --fit-width | grep dhcp
[stack@director ~]$  openstack port show <port_id>
...
| binding_host_id         | <node_replaced>
...
| device_owner            | network:dhcp
| status                  | DOWN 
  1. Delete the port
[stack@director ~]$  openstack port delete <port>

Root Cause

A possible bug, related to the custom role, identified after the maintenance support of the version.

Diagnostic Steps

  1. Replace a Networker node following the doc Controller replacement.

  2. Check if all the agents from old nodes were removed. If there are old agents present, remove it as in the doc.

[stack@director ~]$  openstack network agent list | grep dhcp
  1. Check if there are dhcp ports in DOWN state.
    ~~~
    [stack@director ~]$ openstack port list --long --fit-width | grep dhcp

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments