device_id and device_owner information are lost after disabling a port.

Solution Verified - Updated -

Issue

  • When I disabled a port on Horizon (OpenStack Dashboard) by making Admin State DOWN via [Admin] -> [Networks] -> Choose a network -> Choose [Ports] Tab, the Attached Device field became Detached state. After the port's Admin State is UP, however the ports cannot be usable.
  • device id and device type information are lost after disabling a port.

    • Example
    # neutron port-show bceedfb3-8505-43c3-b7bb-98a8298c53b8
    +-----------------------+---------------------------------------------------------------------------------------+
    | Field                 | Value                                                                                 |
    +-----------------------+---------------------------------------------------------------------------------------+
    | admin_state_up        | True                                                                                  |
    | allowed_address_pairs |                                                                                       |
    | binding:host_id       | rhosp7.example.com                                                                    |
    | binding:profile       | {}                                                                                    |
    | binding:vif_details   | {"port_filter": true, "ovs_hybrid_plug": true}                                        |
    | binding:vif_type      | ovs                                                                                   |
    | binding:vnic_type     | normal                                                                                |
    | device_id             |                                                                                       | <--- missing
    | device_owner          |                                                                                       | <--- missing
    | extra_dhcp_opts       |                                                                                       |
    | fixed_ips             | {"subnet_id": "c00350a9-c18b-4cb5-9a69-741b1d37e210", "ip_address": "192.168.130.10"} |
    | id                    | bceedfb3-8505-43c3-b7bb-98a8298c53b8                                                  |
    | mac_address           | fa:16:3e:26:15:42                                                                     |
    | name                  |                                                                                       |
    | network_id            | f25fecbd-03ec-4951-bc77-ebe8ef140895                                                  |
    | security_groups       |                                                                                       |
    | status                | ACTIVE                                                                                |
    | tenant_id             |                                                                                       |
    +-----------------------+---------------------------------------------------------------------------------------+
    

    On the other hand, the router which has the proper external network information.

  • After this issue occurs, assigning floating IPs on the router's network to VMs fails.
  • How do I recover this situation without deleting port?

Environment

  • Red Hat OpenStack Platform 7
  • Red Hat OpenStack Platform 8
  • Red Hat OpenStack Platform 9
  • Red Hat OpenStack Platform 10
  • horizon(OpenStack Dashboard)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content