This is using python3 from the system and hitting systemd tasks limit
Bug #1998152 reported by
Shunde Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Prometheus Openstack Exporter Charm |
Invalid
|
Undecided
|
Unassigned | ||
prometheus-openstack-exporter-snap |
Fix Released
|
Critical
|
Giuseppe Petralia |
Bug Description
This is affecting the snap. It was tested with 0.1.9 latest/edge but should affect also previous releases.
2 issues:
1. python3 symlinks are broken inside the snap, and when installed on bionic it uses python3 from the system (python 3.6)
2. Snap service is hitting systemd tasks limit and then throwing BlockingIOError
Related branches
~peppepetra/prometheus-openstack-exporter-snap:lp1998152
Ready for review
for merging
into
prometheus-openstack-exporter-snap:master
- Erhan Sunar (community): Approve
- Gabriel Cocenza (community): Approve
- Martin Kalcok (community): Approve
- Canonical IS SAs: Pending requested
-
Diff: 64 lines (+16/-7)3 files modifiedprometheus-openstack-exporter (+2/-6)
snap/snapcraft.yaml (+13/-0)
snap_cmd_wrapper (+1/-1)
tags: | added: sts |
description: | updated |
summary: |
- revision 25 not working on bionic + prometheus-openstack-exporter snap hitting tasks limit and using python3 + from the system |
summary: |
- prometheus-openstack-exporter snap hitting tasks limit and using python3 - from the system + This is using python3 from the system and hitting systemd tasks limit |
Changed in prometheus-openstack-exporter-snap: | |
status: | New → Fix Released |
To post a comment you must log in.
The new prometheus- openstack- exporter version 0.1.9 (in snap's latest/edge channel currently) requires Python3.8, which is not the default Python on Bionic but it is the default Python on Focal.
# ls -l /snap/prometheu s-openstack- exporter/ current/ bin/
...
lrwxrwxrwx 1 root root 7 Jul 30 12:32 python -> python3
lrwxrwxrwx 1 root root 18 Jul 30 12:33 python3 -> /usr/bin/python3.8
When running on Bionic, it throws a lot of errors in syslog.
Nov 30 06:28:44 juju-34915b- openstack- 39 prometheus- openstack- exporter. prometheus- openstack- exporter[ 8211]: File "/usr/lib/ python3. 8/socketserver. py", line 316, in _handle_ request_ noblock openstack- 39 prometheus- openstack- exporter. prometheus- openstack- exporter[ 8211]: self.process_ request( request, client_address) openstack- 39 prometheus- openstack- exporter. prometheus- openstack- exporter[ 8211]: File "/usr/lib/ python3. 8/socketserver. py", line 603, in process_request openstack- 39 prometheus- openstack- exporter. prometheus- openstack- exporter[ 8211]: pid = os.fork() openstack- 39 prometheus- openstack- exporter. prometheus- openstack- exporter[ 8211]: BlockingIOError: [Errno 11] Resource temporarily unavailable
Nov 30 06:28:44 juju-34915b-
Nov 30 06:28:44 juju-34915b-
Nov 30 06:28:44 juju-34915b-
Nov 30 06:28:44 juju-34915b-
To solve that, Python3.8 needs to be installed on Bionic.
apt install python3.8 libpython3.8
However snap doesn't do this, neither does the charm.
So maybe we need to add this to the charm? e.g. if running exporter 0.1.9 on Bionic, the charm should install Python3.8 and its lib.