Glance does not notify systemd when the services are up.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Alberto Murillo |
Bug Description
Unlike keystone, glance does not notify systemd when the api|registry|
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/
Active: activating (start) since Mon 2015-03-30 17:02:33 UTC; 41s ago
Main PID: 810 (glance-api)
CGroup: /system.
├─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
Changed in glance: | |
assignee: | nobody → Alberto Murillo (powerbsd-o) |
status: | New → In Progress |
Changed in glance: | |
status: | In Progress → Fix Released |
status: | Fix Released → In Progress |
This is the sample glance-api.service file I used
[Unit] OpenStack Image API Service
Description=
After=syslog.target network.target
[Service] /usr/bin/ glance- api
Type=notify
NotifyAccess=all
Restart=always
User=glance
ExecStart=
[Install] multi-user. target
WantedBy=