Activity log for bug #1995292

Date Who What changed Old value New value Message
2022-10-31 15:04:26 Przemyslaw Hausman bug added bug
2022-10-31 15:08:29 Przemyslaw Hausman description According to [1], for each network, an OVN localport for use as a metadata proxy is created. This port is owned by network:dhcp (in Ussuri) or network:distributed (in Yoga) so that it gets auto deleted upon the removal of the network and it remains DOWN and is not bound to any chassis. openstack-service-checks discovers that ports are DOWN with a "check_ports" check, and triggers Nagios alerts, e.g. "CRITICAL: ports 3/11 are DOWN, 1/11 in UNKNOWN, 7/11 passed". If I understand correctly, these ports are DOWN by design and therefore openstack-service-checks should not report it as failure. See the commands' results below. 1. https://docs.openstack.org/networking-ovn/latest/contributor/design/metadata_api.html#metadata-proxy-management-logic ``` ubuntu@sdtpdc41s100001:~/deploy$ openstack port list --device-owner network:distributed --long --max-width 80 +----------+------+-------------+--------------------+--------+-----------------+--------------+------+ | ID | Name | MAC Address | Fixed IP Addresses | Status | Security Groups | Device Owner | Tags | +----------+------+-------------+--------------------+--------+-----------------+--------------+------+ | 2a95c95d | | fa:16:3e:f7 | ip_address='fc00:3 | DOWN | None | network:dist | | | -9049-41 | | :db:16 | d46:c1c5:8992:f816 | | | ributed | | | 01-9eb5- | | | :3eff:fef7:db16', | | | | | | 9398843a | | | subnet_id='e2cac8d | | | | | | b8e1 | | | 2-f773-4792-836a-3 | | | | | | | | | cbbfd8c9a8e' | | | | | | 44e3ac74 | | fa:16:3e:a0 | | DOWN | None | network:dist | | | -3d67-44 | | :97:d1 | | | | ributed | | | 51-8246- | | | | | | | | | 032f5afc | | | | | | | | | 880f | | | | | | | | | 51d4a0bb | | fa:16:3e:92 | ip_address='192.16 | DOWN | None | network:dist | | | -adc9-42 | | :7b:8a | 8.1.2', subnet_id= | | | ributed | | | 75-aabc- | | | '586d1335-2eca-438 | | | | | | 83f38045 | | | 5-b27d-969aedade76 | | | | | | 1dda | | | 6' | | | | | +----------+------+-------------+--------------------+--------+-----------------+--------------+------+ ubuntu@sdtpdc41s100001:~/deploy$ openstack port show 51d4a0bb-adc9-4275-aabc-83f380451dda --max-width 80 +-------------------------+----------------------------------------------------+ | Field | Value | +-------------------------+----------------------------------------------------+ | admin_state_up | UP | | allowed_address_pairs | | | binding_host_id | | | binding_profile | | | binding_vif_details | | | binding_vif_type | unbound | | binding_vnic_type | normal | | created_at | 2022-10-31T07:05:04Z | | data_plane_status | None | | description | | | device_id | ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 | | device_owner | network:distributed | | device_profile | None | | dns_assignment | fqdn='host-192-168-1-2.lightning.ndc-prod2.lan.', | | | hostname='host-192-168-1-2', | | | ip_address='192.168.1.2' | | dns_domain | | | dns_name | | | extra_dhcp_opts | | | fixed_ips | ip_address='192.168.1.2', | | | subnet_id='586d1335-2eca-4385-b27d-969aedade766' | | id | 51d4a0bb-adc9-4275-aabc-83f380451dda | | ip_allocation | immediate | | mac_address | fa:16:3e:92:7b:8a | | name | | | network_id | 47e110ca-4e33-4a18-8505-53edd34ae023 | | numa_affinity_policy | None | | port_security_enabled | False | | project_id | efd20e7f792f49d6982b9de4dbbb72b6 | | propagate_uplink_status | None | | qos_network_policy_id | None | | qos_policy_id | None | | resource_request | None | | revision_number | 2 | | security_group_ids | | | status | DOWN | | tags | | | trunk_details | None | | updated_at | 2022-10-31T07:05:04Z | +-------------------------+----------------------------------------------------+ ubuntu@sdtpdc41s100001:~/deploy$ openstack subnet list --name ubuntu-subnet +--------------------------------------+---------------+--------------------------------------+----------------+ | ID | Name | Network | Subnet | +--------------------------------------+---------------+--------------------------------------+----------------+ | 586d1335-2eca-4385-b27d-969aedade766 | ubuntu-subnet | 47e110ca-4e33-4a18-8505-53edd34ae023 | 192.168.1.0/24 | +--------------------------------------+---------------+--------------------------------------+----------------+ ubuntu@sdtpdc41s100001:~/deploy$ openstack subnet show ubuntu-subnet +----------------------+--------------------------------------+ | Field | Value | +----------------------+--------------------------------------+ | allocation_pools | 192.168.1.2-192.168.1.254 | | cidr | 192.168.1.0/24 | | created_at | 2022-10-31T07:05:04Z | | description | | | dns_nameservers | | | dns_publish_fixed_ip | None | | enable_dhcp | True | | gateway_ip | 192.168.1.1 | | host_routes | | | id | 586d1335-2eca-4385-b27d-969aedade766 | | ip_version | 4 | | ipv6_address_mode | None | | ipv6_ra_mode | None | | name | ubuntu-subnet | | network_id | 47e110ca-4e33-4a18-8505-53edd34ae023 | | project_id | efd20e7f792f49d6982b9de4dbbb72b6 | | revision_number | 0 | | segment_id | None | | service_types | | | subnetpool_id | None | | tags | | | updated_at | 2022-10-31T07:05:04Z | +----------------------+--------------------------------------+ ubuntu@sdtpdc41s100001:~/deploy$ juju run -a nova-compute sudo ip netns [...] - Stdout: | ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 (id: 0) UnitId: nova-compute/6 [...] ubuntu@sdtpdc41s100001:~/deploy$ juju ssh nova-compute/6 sudo ip netns exec ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 ip -o -4 a 1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever 2: tap47e110ca-41 inet 192.168.1.2/24 brd 192.168.1.255 scope global tap47e110ca-41\ valid_lft forever preferred_lft forever 2: tap47e110ca-41 inet 169.254.169.254/32 brd 169.254.169.254 scope global tap47e110ca-41\ valid_lft forever preferred_lft forever ubuntu@sdtpdc41s100001:~/deploy$ juju ssh nova-compute/6 sudo ip netns exec ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 ip r 192.168.1.0/24 dev tap47e110ca-41 proto kernel scope link src 192.168.1.2 ``` According to [1], for each network, an OVN localport for use as a metadata proxy is created. This port is owned by network:dhcp (in Ussuri) or network:distributed (in Yoga) so that it gets auto deleted upon the removal of the network and it remains DOWN and is not bound to any chassis. openstack-service-checks discovers that ports are DOWN with a "check_ports" check, and triggers Nagios alerts, e.g. "CRITICAL: ports 3/11 are DOWN, 1/11 in UNKNOWN, 7/11 passed". If I understand correctly, these ports are DOWN by design and therefore openstack-service-checks should not report it as failure. See the commands' results below. 1. https://docs.openstack.org/networking-ovn/latest/contributor/design/metadata_api.html#metadata-proxy-management-logic ``` ubuntu@sdtpdc41s100001:~/deploy$ openstack port list --device-owner network:distributed --long --format yaml - Device Owner: network:distributed Fixed IP Addresses: - ip_address: fc00:3d46:c1c5:8992:f816:3eff:fef7:db16 subnet_id: e2cac8d2-f773-4792-836a-3cbbfd8c9a8e ID: 2a95c95d-9049-4101-9eb5-9398843ab8e1 MAC Address: fa:16:3e:f7:db:16 Name: '' Security Groups: null Status: DOWN Tags: [] - Device Owner: network:distributed Fixed IP Addresses: [] ID: 44e3ac74-3d67-4451-8246-032f5afc880f MAC Address: fa:16:3e:a0:97:d1 Name: '' Security Groups: null Status: DOWN Tags: [] - Device Owner: network:distributed Fixed IP Addresses: - ip_address: 192.168.1.2 subnet_id: 586d1335-2eca-4385-b27d-969aedade766 ID: 51d4a0bb-adc9-4275-aabc-83f380451dda MAC Address: fa:16:3e:92:7b:8a Name: '' Security Groups: null Status: DOWN Tags: [] ubuntu@sdtpdc41s100001:~/deploy$ openstack port show 51d4a0bb-adc9-4275-aabc-83f380451dda --format yaml admin_state_up: true allowed_address_pairs: [] binding_host_id: '' binding_profile: {} binding_vif_details: {} binding_vif_type: unbound binding_vnic_type: normal created_at: '2022-10-31T07:05:04Z' data_plane_status: null description: '' device_id: ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 device_owner: network:distributed device_profile: null dns_assignment: - fqdn: host-192-168-1-2.lightning.ndc-prod2.lan. hostname: host-192-168-1-2 ip_address: 192.168.1.2 dns_domain: '' dns_name: '' extra_dhcp_opts: [] fixed_ips: - ip_address: 192.168.1.2 subnet_id: 586d1335-2eca-4385-b27d-969aedade766 id: 51d4a0bb-adc9-4275-aabc-83f380451dda ip_allocation: immediate mac_address: fa:16:3e:92:7b:8a name: '' network_id: 47e110ca-4e33-4a18-8505-53edd34ae023 numa_affinity_policy: null port_security_enabled: false project_id: efd20e7f792f49d6982b9de4dbbb72b6 propagate_uplink_status: null qos_network_policy_id: null qos_policy_id: null resource_request: null revision_number: 2 security_group_ids: [] status: DOWN tags: [] trunk_details: null updated_at: '2022-10-31T07:05:04Z' ubuntu@sdtpdc41s100001:~/deploy$ openstack subnet list --name ubuntu-subnet --format yaml - ID: 586d1335-2eca-4385-b27d-969aedade766 Name: ubuntu-subnet Network: 47e110ca-4e33-4a18-8505-53edd34ae023 Subnet: 192.168.1.0/24 ubuntu@sdtpdc41s100001:~/deploy$ openstack subnet show ubuntu-subnet --format yaml allocation_pools: - end: 192.168.1.254 start: 192.168.1.2 cidr: 192.168.1.0/24 created_at: '2022-10-31T07:05:04Z' description: '' dns_nameservers: [] dns_publish_fixed_ip: null enable_dhcp: true gateway_ip: 192.168.1.1 host_routes: [] id: 586d1335-2eca-4385-b27d-969aedade766 ip_version: 4 ipv6_address_mode: null ipv6_ra_mode: null name: ubuntu-subnet network_id: 47e110ca-4e33-4a18-8505-53edd34ae023 project_id: efd20e7f792f49d6982b9de4dbbb72b6 revision_number: 0 segment_id: null service_types: [] subnetpool_id: null tags: [] updated_at: '2022-10-31T07:05:04Z' ubuntu@sdtpdc41s100001:~/deploy$ juju run -a nova-compute sudo ip netns [...] - Stdout: |     ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 (id: 0)   UnitId: nova-compute/6 [...] ubuntu@sdtpdc41s100001:~/deploy$ juju ssh nova-compute/6 sudo ip netns exec ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 ip -o -4 a 1: lo inet 127.0.0.1/8 scope host lo\ valid_lft forever preferred_lft forever 2: tap47e110ca-41 inet 192.168.1.2/24 brd 192.168.1.255 scope global tap47e110ca-41\ valid_lft forever preferred_lft forever 2: tap47e110ca-41 inet 169.254.169.254/32 brd 169.254.169.254 scope global tap47e110ca-41\ valid_lft forever preferred_lft forever ubuntu@sdtpdc41s100001:~/deploy$ juju ssh nova-compute/6 sudo ip netns exec ovnmeta-47e110ca-4e33-4a18-8505-53edd34ae023 ip r 192.168.1.0/24 dev tap47e110ca-41 proto kernel scope link src 192.168.1.2 ```
2022-10-31 15:51:24 Bartosz Woronicz bug added subscriber mastier1
2022-11-01 07:47:40 Eric Chen tags bseng-526
2022-11-15 06:34:10 JamesLin merge proposal linked https://code.launchpad.net/~jneo8/charm-openstack-service-checks/+git/charm-openstack-service-checks/+merge/433018
2022-11-21 01:52:45 JamesLin charm-openstack-service-checks: status New Fix Committed
2023-01-10 12:20:16 Sudeep Bhandari charm-openstack-service-checks: milestone 23.01
2023-02-14 05:04:13 Sudeep Bhandari charm-openstack-service-checks: status Fix Committed Fix Released