Check for services listening on ports assumes the service listen on 0.0.0.0
Bug #1843434 reported by
Frode Nordahl
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Triaged
|
Medium
|
Unassigned | ||
Watcher Charm |
Triaged
|
Medium
|
Unassigned | ||
charms.openstack |
Triaged
|
Medium
|
Unassigned |
Bug Description
In some circumstances they don't, and it would be great to be able to monitor them regardless.
The offending code appears to live in charm-helpers:
https:/
Changed in charms.openstack: | |
status: | New → Triaged |
Changed in charm-helpers: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in charms.openstack: | |
importance: | Undecided → Medium |
Changed in charm-watcher: | |
importance: | Undecided → Medium |
status: | New → Triaged |
To post a comment you must log in.
Hi all,
The problem occurs when HTTPS is not set, thus the charm uses HTTP only. When this is the case, this line here: https:/ /opendev. org/openstack/ charms. openstack/ src/branch/ master/ charms_ openstack/ adapters. py#L921
makes the IP being set to self.local_address instead of '0.0.0.0'.
By changing to HTTPS, this is correctly set to '0.0.0.0' and the check is successful. To be able to configure HTTPS though, you have to merge my patch, which is a BUG fix. See relevant ticket and patch here:
https:/ /bugs.launchpad .net/charm- watcher/ +bug/1903583 /review. opendev. org/#/c/ 761980/
https:/
Kind regards,
Stamatis