[network, common]: usage of common/libraries/cli functions presuppose keystone client being installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack + Chef |
Fix Released
|
Low
|
Stephan Renatus |
Bug Description
When using the cookbooks to just deploy parts of the infrastructure in a node, it can happen that you only want to use parts of openstack-network. When doing so, however, the ruby_block in openstack-
https:/
fails because identity_uuid, from openstack-
https:/
will try to shell out `keystone tenant-list` without having installed any python-
I suppose including openstack-
Traceback for the curious:
Errno::ENOENT
-------------
No such file or directory - keystone
Cookbook Trace:
---------------
/var/chef/
/var/chef/
/var/chef/
Resource Declaration:
-------
# In /var/chef/
161: ruby_block 'query service tenant uuid' do
162: # query keystone for the service tenant uuid
163: block do
164: begin
165: admin_user = node['openstack
166: admin_tenant = node['openstack
167: env = openstack_
168: tenant_id = identity_uuid 'tenant', 'name', 'service', env
169: Chef::Log.
170: node.set[
171: rescue RuntimeError => e
172: Chef::Log.
173: end
174: end
175: action :run
Compiled Resource:
------------------
# Declared in /var/chef/
ruby_block("query service tenant uuid") do
action [:run]
retries 0
retry_delay 2
guard_interpreter :default
block_name "query service tenant uuid"
cookbook_name "openstack-network"
recipe_name "common"
block #<Proc:
only_if { #code block }
end
Changed in openstack-chef: | |
milestone: | none → icehouse-rc1 |
Changed in openstack-chef: | |
milestone: | icehouse-rc1 → icehouse-stable |
Changed in openstack-chef: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/100252
Review: https:/