Undetected errors during execution of keystone.pp

Bug #1506539 reported by Zdenek Dvorak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
New
Undecided
Unassigned

Bug Description

Hello,
I tried to install openstack - kilo using packstack. Installation was done according to described on page: https://www.rdoproject.org/Quickstart.

Openstack installation was started by command:
 packstack -d --allinone

....
This resulted in packstack error messge:
10.166.15.84_keystone.pp: [ ERROR ]
Applying Puppet manifests [ ERROR ]

ERROR : Error appeared during Puppet run: 10.166.15.84_keystone.pp
Error: Could not prefetch keystone_service provider 'openstack': undefined method `collect' for nil:NilClass
You will find full trace in log /var/tmp/packstack/20151015-013212-8HFmQj/manifests/10.166.15.84_keystone.pp.log
Please check log file /var/tmp/packstack/20151015-013212-8HFmQj/openstack-setup.log for more information
Additional information:
...

Here is related part of file 10.166.15.84_keystone.pp.log

...
Debug: Executing '/usr/bin/openstack service list --quiet --format csv --long'
Error: Could not prefetch keystone_service provider 'openstack': undefined method `collect' for nil:NilClass
/var/tmp/packstack/58f9cca5ff134cf8b2902bb01f6b889a/modules/keystone/lib/puppet/provider/keystone_service/openstack.rb:62:in `instances'
...
This error message is result of code code from file openstack.rb, which is part of packstack.
 60 def self.instances
 61 list = request('service', 'list', '--long')
 62 list.collect do |service|
 63 new(
 64 :name => service[:name],
 65 :ensure => :present,
 66 :type => service[:type],
 67 :description => service[:description],
 68 :id => service[:id]
 69 )
 70 end
 71 end

line 61 list = request('service', 'list', '--long') will start command : /usr/bin/openstack service list --quiet --format csv --long

result fo this commabd is in stderror: "ERROR: openstack Unable to establish connection to http://10.166.15.84"
and exit code is :1

line 62 " list.collect do |service| " is working with this error result and final error message
 Error: Could not prefetch keystone_service provider 'openstack': undefined method `collect' for nil:NilClass

Command "/usr/bin/openstack" is used during execution of keystone.pp. This command can fail because of problem with authentication, connection or some other. Puppet does not discover this error. As a result puppet will waist time in subsequent useless work, or generate misleading error message. This error makes debugging of packstack installation more complicated and time demanding.

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.