check_allocations doesn't work on Bionic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
Undecided
|
JamesLin |
Bug Description
Affects: Bionic
Workaround: Upgrade to Focal
Description:
The /usr/local/
# sudo -u nagios /usr/local/
Traceback (most recent call last):
File "/usr/local/
main()
File "/usr/local/
alerts = check_allocatio
File "/usr/local/
instances = get_instances(
File "/usr/local/
nova_instances = get_nova_
File "/usr/local/
for vm in compute.
File "/usr/lib/
cls.
File "/usr/lib/
extra_
openstack.
This appears to be an artifact related to the version of python3-
As the o-s-c charm doesn't appear to have a charmed way of pulling packages from UCA, the workaround is to upgrade to Focal, which currently has version 0.46.0-0ubuntu1 of python3-
Suggestion for fix: consider only rendering this check on Focal or newer, and adding an appropriate note in config.yaml re: this restriction.
Related branches
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Erhan Sunar (community): Approve
- Eric Chen: Approve
- BootStack Reviewers: Pending requested
-
Diff: 81 lines (+52/-1)2 files modifiedsrc/lib/lib_openstack_service_checks.py (+11/-0)
src/tests/unit/test_lib.py (+41/-1)
tags: | added: bseng-497 |
Changed in charm-openstack-service-checks: | |
status: | New → Fix Committed |
Changed in charm-openstack-service-checks: | |
assignee: | nobody → JamesLin (jneo8) |
Changed in charm-openstack-service-checks: | |
milestone: | none → 23.01 |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |
Update information: The link to the openstacksdk connect function: /github. com/openstack/ openstacksdk/ blob/8cdf409c3d 6fc3639e85292c5 692f92031b4a172 /openstack/ __init_ _.py#L25
https:/