[Bug 1960636] Re: openstack systemd services not enabled by default

Corey Bryant 1960636 at bugs.launchpad.net
Tue Mar 1 21:07:10 UTC 2022


** 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 at 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
OpenStack, which is subscribed to Ubuntu Cloud Archive.
https://bugs.launchpad.net/bugs/1960636

Title:
  openstack systemd services not enabled by default

Status in OpenStack Glance Charm:
  Triaged
Status in Ubuntu Cloud Archive:
  Triaged
Status in Ubuntu Cloud Archive wallaby series:
  Triaged
Status in Ubuntu Cloud Archive xena series:
  Triaged
Status in aodh package in Ubuntu:
  Invalid
Status in barbican package in Ubuntu:
  Invalid
Status in cinder package in Ubuntu:
  Invalid
Status in designate package in Ubuntu:
  Invalid
Status in glance package in Ubuntu:
  Invalid
Status in networking-baremetal package in Ubuntu:
  Triaged
Status in vitrage package in Ubuntu:
  Invalid
Status in aodh source package in Impish:
  Triaged
Status in barbican source package in Impish:
  Triaged
Status in cinder source package in Impish:
  Triaged
Status in designate source package in Impish:
  Triaged
Status in glance source package in Impish:
  Triaged
Status in networking-baremetal source package in Impish:
  Triaged
Status in vitrage source package in Impish:
  Triaged

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/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 at 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

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




More information about the Ubuntu-openstack-bugs mailing list