ConfigException: No credentials being used on check_resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
High
|
Robert Gildein |
Bug Description
Deploying openstack-
[2022-08-04 18:03:11] SERVICE ALERT: juju-juju-
Service Unknown
[2022-08-04 18:03:01] SERVICE ALERT: juju-juju-
Service Unknown
[2022-08-04 18:02:31] SERVICE ALERT: juju-juju-
trying to run those checks from nagios result in error:
root@juju-
<function check at 0x7fe96537daf0> raised unknown exception '<class 'openstack.
=======
Traceback (most recent call last):
File "/usr/local/
function(*args, **kwargs)
File "/usr/local/
connection = openstack.
File "/usr/lib/
cloud_region = openstack.
File "/usr/lib/
return config.
File "/usr/lib/
config = self._get_
File "/usr/lib/
raise exceptions.
cinder services work though:
root@juju-
OK: All cinder services happy
running from openstack-
root@juju-
<function check at 0x7ff1605609d0> raised unknown exception '<class 'openstack.
=======
Traceback (most recent call last):
File "/usr/local/
function(*args, **kwargs)
File "/usr/local/
connection = openstack.
File "/usr/lib/
cloud_region = openstack.
File "/usr/lib/
return config.
File "/usr/lib/
config = self._get_
File "/usr/lib/
raise exceptions.
openstack.
=======
but sourcing the novarc nagios file works:
root@juju-
root@juju-
OK: servers
Related branches
- Eric Chen: Approve
- Rodrigo Barbieri (community): Approve
- BootStack Reviewers: Pending requested
-
Diff: 190 lines (+74/-18)3 files modifiedsrc/files/plugins/check_resources.py (+28/-8)
src/tests/functional/tests/test_deploy.py (+10/-4)
src/tests/unit/test_check_resources.py (+36/-6)
Changed in charm-openstack-service-checks: | |
status: | New → In Progress |
assignee: | nobody → Robert Gildein (rgildein) |
importance: | Undecided → High |
tags: | added: bseng-342 |
Changed in charm-openstack-service-checks: | |
status: | In Progress → Fix Committed |
Changed in charm-openstack-service-checks: | |
milestone: | none → 22.10 |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |
Changed in charm-openstack-service-checks: | |
status: | Fix Released → Fix Committed |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |
check_cinder_ services. py reads the credentials automatically:
parser. add_argument(
default= "/var/lib/ nagios/ nagios. novarc" ,
help=" Novarc file to use for this check",
"--env",
dest="env",
)