"collie: command not found" when using default known_stores

Bug #1259403 reported by Xingchao Yu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-glance
Fix Released
Undecided
Xingchao Yu

Bug Description

In glance-api.conf, when we using known_stores's default value:

known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

If we just use file or rbd or other backend except sheepdog, when starting glance-api service , we would see the glance-api log throw errors something like:

2013-12-01 04:11:36.501 20725 INFO glance.store.filesystem [-] Directory to write image files does not exist (/var/lib/glance/images/). Creating.

2013-12-01 04:11:36.554 20725 ERROR glance.store.sheepdog [-] Error in store configuration: Unexpected error while running command.

Command: collie

Exit code: 127

Stdout: ''

Stderr: '/bin/sh: collie: command not found\n'

2013-12-01 04:11:36.685 20725 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.

So the only way to avoid this is to configure your own known_stores right, for example: if you don't use sheepdog, just remove it from the known_stores.

Xingchao Yu (yuxcer)
Changed in puppet-glance:
assignee: nobody → Xingchao Yu (yuxcer)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/61018

Changed in puppet-glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/82699

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-glance (master)

Reviewed: https://review.openstack.org/82699
Committed: https://git.openstack.org/cgit/stackforge/puppet-glance/commit/?id=e08774a2815fa596627cbb1057232ec8a6cce0d4
Submitter: Jenkins
Branch: master

commit e08774a2815fa596627cbb1057232ec8a6cce0d4
Author: Xingchao Yu <email address hidden>
Date: Tue Dec 10 13:56:34 2013 +0800

    Add known_stores option in class glance::api

    In glance-api, if you use known_stores's default value and didn't use
    all of the stores listed in known_stores, then glance-api service will
    throw an error to point out which store missing, see more description
    in related bug link.
    This patchset adds known_stores option in glance::api, so that users
    can configure it by their own needs.

    Change-Id: If08254f419d182b82cc50137383985834f40a6fd
    Closes-bug: #1259403

Changed in puppet-glance:
status: In Progress → Fix Committed
Mathieu Gagné (mgagne)
Changed in puppet-glance:
milestone: none → 4.0.0
Mathieu Gagné (mgagne)
Changed in puppet-glance:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.