** Description changed:

- 
+ [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/dpkg/info/<package>.postinst script that enables the 
corresponding systemd service.
+ 
+ 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/system/glance-api.service; disabled; vendor 
preset: enabled)
+      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]
+ TBD

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1960636

Title:
  openstack systemd services not enabled by default

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-glance/+bug/1960636/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to