openstack systemd services not enabled by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Glance Charm |
Triaged
|
High
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Wallaby |
Fix Released
|
High
|
Unassigned | ||
Xena |
Fix Released
|
High
|
Unassigned | ||
aodh (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
barbican (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
cinder (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
designate (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
glance (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
networking-baremetal (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned | ||
vitrage (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Impish |
Fix Released
|
High
|
Unassigned |
Bug Description
[Original Description]
I noticed that every time we have a controller reboot, the glance units (all three) return with glance-api service stopped, and the charm complains about it being stopped when it should be running.
Entering the units and manually starting those services fixes the problem and the charm goes happy. After doing this a few times, I noticed that those glance-api services are marked as "disabled" in systemd, and that's why they don't come back after a reboot.
Probably the charm should set them enabled when installing?
[Description]
OpenStack packages that specify debhelper (>= 10~) or debhelper-compat (= 10) do not generate a var/lib/
For example, on impish:
sudo apt install glance-api
systemctl status glance-api will show that the service is disabled
root@i1:~# systemctl status glance-api
● glance-api.service - OpenStack Image Service API
Loaded: loaded (/lib/systemd/
Active: active (running) since Tue 2022-03-01 21:04:49 UTC; 1min 5s ago
Once fixed, it will be enabled by default.
[TestCase]
Install any service from the affected package and it will be enabled by default once fixed.
[Regression Potential]
Moving to debhelper compat level 12 changes behavior as described in the man page at https:/
Changed in charm-glance: | |
assignee: | nobody → Tianqi Xiao (txiao) |
Changed in glance (Ubuntu): | |
importance: | High → Undecided |
status: | Triaged → Invalid |
Changed in networking-baremetal (Ubuntu): | |
status: | New → Invalid |
importance: | Undecided → High |
status: | Invalid → Triaged |
Changed in cloud-archive: | |
importance: | Undecided → High |
status: | Invalid → Triaged |
Changed in aodh (Ubuntu): | |
status: | New → Invalid |
Changed in aodh (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in barbican (Ubuntu): | |
status: | New → Invalid |
Changed in barbican (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in cinder (Ubuntu): | |
status: | New → Invalid |
Changed in cinder (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in designate (Ubuntu): | |
status: | New → Invalid |
Changed in designate (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in networking-baremetal (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in vitrage (Ubuntu): | |
status: | New → Invalid |
Changed in vitrage (Ubuntu Impish): | |
importance: | Undecided → High |
status: | New → Triaged |
description: | updated |
description: | updated |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
Changed in charm-glance: | |
assignee: | Tianqi Xiao (txiao) → nobody |
Just spawned a new glance lxd unit using charm version 312 and ended up with glance-api service started but with it's service disabled.
ubuntu@ app1maas001p: ~$ juju ssh glance/3 sudo systemctl status glance-api system/ glance- api.service; disabled; vendor preset: enabled) slice/glance- api.service
└ ─79156 /usr/bin/python3 /usr/bin/glance-api --config- file=/etc/ glance/ glance- api.conf --log-file= /var/log/ glance/ glance- api.log
● glance-api.service - OpenStack Image Service API
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2022-02-11 15:26:53 UTC; 986ms ago
Docs: man:glance-api(1)
Main PID: 79156 (glance-api)
Tasks: 1 (limit: 309316)
Memory: 39.7M
CGroup: /system.
Feb 11 15:26:53 juju-8d8c5a- 3-lxd-29 systemd[1]: Started OpenStack Image Service API.