openstack-service-check incorrectly reports OVN metadata port as DOWN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
Undecided
|
Unassigned |
Bug 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-
See the commands' results below.
```
ubuntu@
- Device Owner: network:distributed
Fixed IP Addresses:
- ip_address: fc00:3d46:
subnet_id: e2cac8d2-
ID: 2a95c95d-
MAC Address: fa:16:3e:f7:db:16
Name: ''
Security Groups: null
Status: DOWN
Tags: []
- Device Owner: network:distributed
Fixed IP Addresses: []
ID: 44e3ac74-
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-
ID: 51d4a0bb-
MAC Address: fa:16:3e:92:7b:8a
Name: ''
Security Groups: null
Status: DOWN
Tags: []
ubuntu@
admin_state_up: true
allowed_
binding_host_id: ''
binding_profile: {}
binding_
binding_vif_type: unbound
binding_vnic_type: normal
created_at: '2022-10-
data_plane_status: null
description: ''
device_id: ovnmeta-
device_owner: network:distributed
device_profile: null
dns_assignment:
- fqdn: host-192-
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-
id: 51d4a0bb-
ip_allocation: immediate
mac_address: fa:16:3e:92:7b:8a
name: ''
network_id: 47e110ca-
numa_affinity_
port_security_
project_id: efd20e7f792f49d
propagate_
qos_network_
qos_policy_id: null
resource_request: null
revision_number: 2
security_group_ids: []
status: DOWN
tags: []
trunk_details: null
updated_at: '2022-10-
ubuntu@
- ID: 586d1335-
Name: ubuntu-subnet
Network: 47e110ca-
Subnet: 192.168.1.0/24
ubuntu@
allocation_pools:
- end: 192.168.1.254
start: 192.168.1.2
cidr: 192.168.1.0/24
created_at: '2022-10-
description: ''
dns_nameservers: []
dns_publish_
enable_dhcp: true
gateway_ip: 192.168.1.1
host_routes: []
id: 586d1335-
ip_version: 4
ipv6_address_mode: null
ipv6_ra_mode: null
name: ubuntu-subnet
network_id: 47e110ca-
project_id: efd20e7f792f49d
revision_number: 0
segment_id: null
service_types: []
subnetpool_id: null
tags: []
updated_at: '2022-10-
ubuntu@
[...]
- Stdout: |
ovnmeta-
UnitId: nova-compute/6
[...]
ubuntu@
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@
192.168.1.0/24 dev tap47e110ca-41 proto kernel scope link src 192.168.1.2
```
Related branches
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Eric Chen: Approve
- Sudeep Bhandari: Approve
- BootStack Reviewers: Pending requested
-
Diff: 238 lines (+110/-9)2 files modifiedsrc/files/plugins/check_resources.py (+46/-6)
src/tests/unit/test_check_resources.py (+64/-3)
description: | updated |
tags: | added: bseng-526 |
Changed in charm-openstack-service-checks: | |
status: | New → Fix Committed |
Changed in charm-openstack-service-checks: | |
milestone: | none → 23.01 |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |