← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1438316] [NEW] Glance does not notify systemd when the services are up.

 

Public bug reported:

Unlike keystone, glance does not notify systemd when the
api|registry|scrubber services are up.

root@controller:~# time systemctl start glance-api
Job for glance-api.service failed. See "systemctl status glance-api.service" and "journalctl -xe" for details.

real    1m30.310s
user    0m0.003s
sys     0m0.002s

The service actually starts but its status is not visible to systemd.

root@controller:~# systemctl status glance-api
● glance-api.service - OpenStack Image API Service
   Loaded: loaded (/usr/lib/systemd/system/glance-api.service; enabled; vendor preset: disabled)
   Active: activating (start) since Mon 2015-03-30 17:02:33 UTC; 41s ago
 Main PID: 810 (glance-api)
   CGroup: /system.slice/glance-api.service
           ├─810 /usr/bin/python2 /usr/bin/glance-api
           ├─829 /usr/bin/python2 /usr/bin/glance-api
           └─830 /usr/bin/python2 /usr/bin/glance-api

Mar 30 17:02:33 controller systemd[1]: Starting OpenStack Image API Service...
root@controller:~# echo $?
3

root@controller:~# ps aux |grep glance
glance     638  4.2  1.9 196948 78876 ?        Rs   16:51   0:01 /usr/bin/python2 /usr/bin/glance-api

Attached is a patch that resolves this issue, tested against 2015.1.0b3

** Affects: glance
     Importance: Undecided
         Status: New


** Tags: systemd

** Patch added: "0001-Enable-systemd-notification.patch"
   https://bugs.launchpad.net/bugs/1438316/+attachment/4361213/+files/0001-Enable-systemd-notification.patch

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1438316

Title:
  Glance does not notify systemd when the services are up.

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Unlike keystone, glance does not notify systemd when the
  api|registry|scrubber services are up.

  root@controller:~# time systemctl start glance-api
  Job for glance-api.service failed. See "systemctl status glance-api.service" and "journalctl -xe" for details.

  real    1m30.310s
  user    0m0.003s
  sys     0m0.002s

  The service actually starts but its status is not visible to systemd.

  root@controller:~# systemctl status glance-api
  ● glance-api.service - OpenStack Image API Service
     Loaded: loaded (/usr/lib/systemd/system/glance-api.service; enabled; vendor preset: disabled)
     Active: activating (start) since Mon 2015-03-30 17:02:33 UTC; 41s ago
   Main PID: 810 (glance-api)
     CGroup: /system.slice/glance-api.service
             ├─810 /usr/bin/python2 /usr/bin/glance-api
             ├─829 /usr/bin/python2 /usr/bin/glance-api
             └─830 /usr/bin/python2 /usr/bin/glance-api

  Mar 30 17:02:33 controller systemd[1]: Starting OpenStack Image API Service...
  root@controller:~# echo $?
  3

  root@controller:~# ps aux |grep glance
  glance     638  4.2  1.9 196948 78876 ?        Rs   16:51   0:01 /usr/bin/python2 /usr/bin/glance-api

  Attached is a patch that resolves this issue, tested against
  2015.1.0b3

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


Follow ups

References