OpenStack Glance Authentication and Changed Swift Password

Input data: OpenStack Icehouse, glance with swift backend. Admin username and password for swift service were changed. After this requests to download some images started to fail.

# glance --debug image-download <image_id> --file image_store_to --progress

returns 500 error for some image_ids and works for other.

in glance-api service log I see that for some reason previous user/password is still in use:

...
[glance.registry.client.v1.client]: 2014-12-31 02:49:47,235 DEBUG client.do_requ
est Registry request GET /images/<image_id> HTTP 200 r
equest id req-71062b81-963a-41c9-b6a6-3120f2f6f60b
[keystoneclient.session]: 2014-12-31 02:49:47,236 DEBUG session.request REQ: cur
l -i -X POST http://<keystone_node>:5000/v2.0/tokens -H "Content-Type
: application/json" -H "User-Agent: python-keystoneclient"
[keystoneclient.session]: 2014-12-31 02:49:47,236 DEBUG session.request REQ BODY
: {"auth": {"tenantName": "service", "passwordCredentials": {"username": "<previous_user>"
, "password": "<previous_password>"}}}
...

Some Comments on Jakshi’s Accessing Chef Attributes in Serverspec Tests Blog Post

Here is an awesome post pouring some light on using node attributes during ServerSpec tests, but I have one tiny addition. It’s useful to have node attributes supplied by Ohai, so I’d add this to the respective recipe: --- a/test/fixtures/cookbooks/test-helper/recipes/default.rb 2014-12-19 16:55:02.636535159 -0800 +++ b/test/fixtures/cookbooks/test-helper/recipes/default.rb 2014-11-24 20:28:35.083708281 -0800 @@ -20,6 +20,7 @@ attrs = {} + attrs = attrs.deep_merge(node.automatic_attrs) unless node.automatic_attrs.empty? attrs = attrs.deep_merge(node.default_attrs) unless node.default_attrs.empty? attrs = attrs.deep_merge(node.normal_attrs) unless node.

Chef 11 Hangs Trying to Deal With Unresolvable Dependencies

Recently hit the problem with Chef server 11.0.12-1.ubuntu.12.04 trying to test updates for OpenStack StackForge cookbooks. stable/havana cookbooks depend on the cookbook openstack-common ~> 8.0, stable/icehouse depend on the cookbook openstack-common ~> 9.0

Chef: Attribute Overrides in Recipes Is a Bad Idea

I like Chef, but some aspects of its internal kitchenary are pretty poorly documented (or I’m not good enough with Chef to understand why it should behave this exact way).

I’ve hit an annoying problem trying to fix library in a chef cookbook: