Module not working with new auth_keys
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-nova |
Fix Released
|
Medium
|
Bruno Bompastor |
Bug Description
I was running packstack liberty with nova-network (packstack --allinone --os-neutron-
tar --dereference -cpzf - apache ceilometer certmonger cinder concat firewall glance galera heat horizon inifile ironic keystone manila memcached mongodb mysql neutron nova nssdb openstack packstack qpid rabbitmq redis remote rsync sahara ssh stdlib swift sysctl tempest trove vcsrepo vlan vswitch xinetd openstacklib | ssh -o StrictHostKeyCh
2015-11-25 11:03:08:
File "/usr/lib/
single_
File "/usr/lib/
single_
File "/usr/lib/
_main(options, answerfilepath, logFile)
File "/usr/lib/
runSequences()
File "/usr/lib/
controller.
File "/usr/lib/
sequence.
File "/usr/lib/
step.
File "/usr/lib/
self.
File "/usr/lib/
wait_
File "/usr/lib/
validate_
File "/usr/lib/
raise PuppetError(
PuppetError: Error appeared during Puppet run: _nova.pp
Error: File: /etc/nova/nova.conf does not contain all required sections. Nova types will not work if nova is not correctly configured.^[[0m
You will find full trace in log /var/tmp/
It seems that nova provider needs to update the auth_keys. I fixed it with this patch:
Author: Bruno Bompastor <email address hidden>
Date: Wed Nov 25 11:28:17 2015 +0100
Update auth keys for nova
diff --git a/lib/puppet/
index 06b90c5..1faa51b 100644
--- a/lib/puppet/
+++ b/lib/puppet/
@@ -39,8 +39,8 @@ class Puppet:
def self.get_
#needed keys for authentication
- auth_keys = ['auth_host', 'auth_port', 'auth_protocol',
- 'admin_
+ auth_keys = ['auth_uri', 'admin_
+ 'admin_password']
conf = nova_conf
if conf and conf['keystone_
@@ -59,7 +59,7 @@ class Puppet:
def self.get_
q = nova_credentials
- "#{q['auth_
+ "#{q['auth_uri']}"
end
def self.auth_endpoint
Cheers,
Bruno Bompastor.
affects: | puppet-nova → packstack |
@Bruno, thank you for your bug report. Are you willing to submit a patch in openstack/ puppet- nova?