glance-api-service fails to start trying to find 'sheepdog' when there's no reference of it in glance-api.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Version Info
-------------
http://
$ rpm -qa | egrep -i 'glance'
python-
python-
openstack-
Description
--------------
I'm just trying to configure OpenStack services, manually, in a large KVM based guest (Fedora 19). These are Havana trunk bits. By default Sheepdog section was enabled, I commented out those services (refer below for config files).
Instructions to reproduce
-------
1/ Configure Glance service manually (Assumes Keystone is configured successfully):
$ yum install openstack-glance -y
$ openstack-db --init --service glance
$ keystone tenant-create --name services
$ keystone user-create --name glance --pass foobar
$ keystone user-role-add --user glance \
--role admin --tenant services
2/ Update the glance-api.conf::
$ openstack-config --set /etc/glance/
paste_deploy flavor keystone
$ openstack-config --set /etc/glance/
keystone_
$ openstack-config --set /etc/glance/
keystone_
$ openstack-config --set /etc/glance/
keystone_
3/ Update the glance-
$ openstack-config --set /etc/glance/
paste_deploy flavor keystone
$ openstack-config --set /etc/glance/
keystone_
$ openstack-config --set /etc/glance/
keystone_
$ openstack-config --set /etc/glance/
keystone_
4/ Start the glance-api.service
$ systemctl start openstack-
5/ Check the status of glance-api.service:
$ systemctl status openstack-
openstack-
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Wed 2013-07-17 23:17:59 EDT; 634ms ago
Process: 2230 ExecStart=
Jul 17 23:17:59 fedostk glance-api[2230]: Stdout: ''
Jul 17 23:17:59 fedostk glance-api[2230]: Stderr: '/bin/sh: collie: command not found\n'
Jul 17 23:17:59 fedostk glance-api[2230]: 2013-07-17 23:17:59.907 2230 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason...nning command.
Jul 17 23:17:59 fedostk glance-api[2230]: Command: collie
Jul 17 23:17:59 fedostk glance-api[2230]: Exit code: 127
Jul 17 23:17:59 fedostk glance-api[2230]: Stdout: ''
Jul 17 23:17:59 fedostk glance-api[2230]: Stderr: '/bin/sh: collie: command not found\n' Disabling add method.
Jul 17 23:17:59 fedostk glance-api[2230]: 2013-07-17 23:17:59.909 2230 CRITICAL glance [-] No module named cinderclient
Jul 17 23:17:59 fedostk systemd[1]: openstack-
Jul 17 23:17:59 fedostk systemd[1]: Unit openstack-
Log information
------------------
-> Glance api.log:
$ tail /var/log/
Command: collie
Exit code: 127
Stdout: ''
Stderr: '/bin/sh: collie: command not found\n'
2013-07-17 22:33:38.021 2138 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected error while running command.
Command: collie
Exit code: 127
Stdout: ''
Stderr: '/bin/sh: collie: command not found\n' Disabling add method.
2013-07-17 22:33:38.023 2138 CRITICAL glance [-] No module named cinderclient
:nohls
Configuration files
-------
-> glance-cache.conf
$ cat /etc/glance/
[DEFAULT]
log_file = /var/log/
image_cache_dir = /var/lib/
image_
image_
image_
registry_host = 0.0.0.0
registry_port = 9191
admin_
admin_user = glance
filesystem_
-> glance-api.conf
$ cat /etc/glance/
[DEFAULT]
default_store = file
bind_host = 0.0.0.0
bind_port = 9292
log_file = /var/log/
backlog = 4096
sql_connection = mysql:/
sql_
workers = 1
filesystem_
swift_
swift_
swift_
swift_store_key = a86850deb2742ec
swift_
swift_
swift_
swift_
swift_
delayed_delete = False
scrub_time = 43200
scrubber_
image_cache_dir = /var/lib/
[keystone_
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_
admin_user = glance
admin_password = foobar
[paste_deploy]
flavor = keystone
Other information
-------
glance-registry service runs just fine:
$ systemctl status openstack-
openstack-
Loaded: loaded (/usr/lib/
Active: active (running) since Wed 2013-07-17 23:17:45 EDT; 4s ago
Main PID: 2220 (glance-registry)
CGroup: name=systemd:
Jul 17 23:17:45 fedostk systemd[1]: Started OpenStack Image Service (code-named Glance) Registry server
Changed in glance (Ubuntu): | |
status: | Confirmed → Invalid |
Hm, on further investigation:
Just to try further, I installed Sheepdog and cinderclient (complianed above), and tried to start glance-api.service:
$ yum install sheepdog python-cinderclient -y
$ systemctl start glance-api.service
The service starts successfully:
$ systemctl status openstack- glance- api.service glance- api.service - OpenStack Image Service (code-named Glance) API server systemd/ system/ openstack- glance- api.service; disabled) /system/ openstack- glance- api.service
├─2286 /usr/bin/python /usr/bin/glance-api --config-file /etc/glance/ glance- api.conf
└─2292 /usr/bin/python /usr/bin/glance-api --config-file /etc/glance/ glance- api.conf
openstack-
Loaded: loaded (/usr/lib/
Active: active (running) since Wed 2013-07-17 23:30:13 EDT; 7s ago
Main PID: 2286 (glance-api)
CGroup: name=systemd:
Jul 17 23:30:13 fedostk systemd[1]: Starting OpenStack Image Service (code-named Glance) API server...
Jul 17 23:30:13 fedostk systemd[1]: Started OpenStack Image Service (code-named Glance) API server.
Jul 17 23:30:14 fedostk glance-api[2286]: 2013-07-17 23:30:14.094 2286 WARNING glance.store.base [-] Failed to configure store correctly: Store s3 could not be configured correctly. Reason: Coul...ng add method.
Jul 17 23:30:14 fedostk glance-api[2286]: 2013-07-17 23:30:14.171 2286 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: ...ng add method.