CRITICAL alert when ports are unbound
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This bug report is of the same essence as #2004210
When a port is created within a project, but not attached to a device, nagios reports a CRITICAL alert.
$ /usr/local/
CRITICAL: ports 1/3 are DOWN, 2/3 passed
$ openstack port show test -f yaml
admin_state_up: true
allowed_
binding_host_id: ''
binding_profile: {}
binding_
binding_vif_type: unbound
binding_vnic_type: normal
created_at: '2023-05-
data_plane_status: null
description: ''
device_id: ''
device_owner: ''
dns_assignment:
- fqdn: host-192-
hostname: host-192-168-21-194
ip_address: 192.168.21.194
dns_domain: ''
dns_name: ''
extra_dhcp_opts: []
fixed_ips:
- ip_address: 192.168.21.194
subnet_id: 84430095-
id: 2ac8713e-
ip_allocation: immediate
location:
cloud: ''
project:
domain_id: 3dbad36fa7c9476
domain_name: null
id: 2cfb0895647a402
name: admin
region_name: ''
zone: null
mac_address: fa:16:3e:a7:7b:1e
name: test
network_id: 188bf901-
port_security_
project_id: 2cfb0895647a402
propagate_
qos_network_
qos_policy_id: null
resource_request: null
revision_number: 1
security_group_ids:
- 7abcd68d-
status: DOWN
tags: []
trunk_details: null
updated_at: '2023-05-
If there is an unbound port, a DOWN status should not be a critical alert. Maybe a WARNING or even INFO but definitely not CRITICAL.
Related branches
- JamesLin: Approve
- Chi Wai CHAN: Approve
- 🤖 prod-jenkaas-bootstack: Approve (continuous-integration)
- Tianqi Xiao (community): Needs Fixing
- BootStack Reviewers: Pending requested
-
Diff: 69 lines (+22/-3)2 files modifiedsrc/files/plugins/check_resources.py (+5/-0)
src/tests/unit/test_check_resources.py (+17/-3)
Changed in charm-openstack-service-checks: | |
importance: | Undecided → Medium |
status: | New → Triaged |
tags: | added: bseng-1234 |
tags: | added: good-first-bug |
Changed in charm-openstack-service-checks: | |
status: | Triaged → Fix Committed |
Changed in charm-openstack-service-checks: | |
milestone: | none → 23.07 |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |