Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

packstack --allinone - authentication problem

Hi all,

I am trying to configure OpenStack (Ocata) in VirtualBox guest system (host: Windows, guest: CentOS 7). This process can be successfully finished in my home envirnoment where quick start instruction fits my network configuration (single router, possibility of using bridge adapter in VirtualBox and static ip related with such bridge). However in my corporate network using static ip in guest system and connection with world using bridge adapter isn't possible. This is where problem begins.

I have tried to run packstack with different network configuration and it always fails.

My last try:

Single network adapter: NAT Network with ip set to 192.168.15.15, gateway: 192.168.15.1, mask: 24, promiscuous mode: All
Firewalld: disabled and stopped
NetworkManager: disabled and stopped
network: enabled and started
selinux settings: disabled
proxy set (corporate network requires proxy) - yum can install anything 
centos-release-openstack-ocata and openstack-packstack installed and updated

Executing following command: packstack --allinone --provision-demo=n leads to presenting big list of DONE operations and starts test/verification process

This process fails with following message:

ERROR: Error appeared during Puppet run: 192.168.15.15_controller.pp Error: Failed to apply catalog: Could not authenticate You will find full trace in log [...]

image description

openstack-setup.log

2017-05-10 13:30:20::INFO::shell::94::root:: [localhost] Executing script:
cd /var/tmp/packstack/20170510-132544-n1D_fQ/hieradata
tar --dereference -cpzf - ../hieradata | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.15.15 tar -C /var/tmp/packstack/4bb5c92886214f2387dbd75ada11d6ee -xpzf -
cd /usr/lib/python2.7/site-packages/packstack/puppet
cd /var/tmp/packstack/20170510-132544-n1D_fQ/manifests
tar --dereference -cpzf - ../manifests | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.15.15 tar -C /var/tmp/packstack/4bb5c92886214f2387dbd75ada11d6ee -xpzf -
cd /usr/share/openstack-puppet/modules
tar --dereference -cpzf - aodh apache ceilometer certmonger cinder concat firewall glance gnocchi heat horizon inifile ironic keystone magnum manila memcached mongodb mysql neutron nova nssdb openstack openstacklib oslo packstack panko rabbitmq redis remote rsync sahara ssh stdlib swift sysctl tempest trove vcsrepo vswitch xinetd | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.15.15 tar -C /var/tmp/packstack/4bb5c92886214f2387dbd75ada11d6ee/modules -xpzf -
2017-05-10 13:43:23::ERROR::run_setup::1027::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1002, in main
    single_step_aio_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 769, in single_step_aio_install
    single_step_install(options, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 800, in single_step_install
    _main(options, answerfilepath, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 678, in _main
    runSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 645, in runSequences
    controller.runAllSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/setup_controller.py", line 81, in runAllSequences
    sequence.run(config=self.CONF, messages=self.MESSAGES)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 109, in run
    step.run(config=config, messages=messages)
  File "/usr/lib/python2.7/site-packages/packstack/installer/core/sequences.py", line 50, in run
    self.function(config, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 214, in apply_puppet_manifest
    wait_for_puppet(currently_running, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 128, in wait_for_puppet
    validate_logfile(log)
  File "/usr/lib/python2.7/site-packages/packstack/modules/puppet.py", line 107, in validate_logfile
    raise PuppetError(message)
PuppetError: Error appeared during Puppet run: 192.168.15.15_controller.pp
Error: Failed to apply catalog: Could not authenticate
You will find full trace in log /var/tmp/packstack/20170510-132544-n1D_fQ/manifests/192.168.15.15_controller.pp.log

192.168.15.15_controller.pp.log

Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::config::end]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Keystone/Exec[keystone-manage fernet_setup]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/Openstacklib::Db::Mysql::Host_access[keystone_%]/Mysql_user[keystone_admin@%]/password_hash: password_hash changed '*64C5E2CD0AC7D4DC2E46162361BF5CF9626F3304' to '*8BC2B3BFFB67586DDAEED0B1A35A6E7788CBA983'
Notice: /Stage[main]/Keystone::Db::Mysql/Openstacklib::Db::Mysql[keystone]/Openstacklib::Db::Mysql::Host_access[keystone_127.0.0.1]/Mysql_user[keystone_admin@127.0.0.1]/password_hash: password_hash changed '*64C5E2CD0AC7D4DC2E46162361BF5CF9626F3304' to '*8BC2B3BFFB67586DDAEED0B1A35A6E7788CBA983'
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::db::end]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::dbsync::begin]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Db::Sync/Exec[keystone-manage db_sync]: Triggered 'refresh' from 2 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::dbsync::end]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone/Exec[keystone-manage bootstrap]: Triggered 'refresh' from 1 events
Notice: /Stage[main]/Keystone::Deps/Anchor[keystone::service::begin]: Triggered 'refresh' from 4 events
Notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 2 events
Error: Failed to apply catalog: Could not authenticate

Do you have any idea what I should do to make it work? Or how network configuration in VirtualBox should look like?

I spend a lot of time looking for working configuration (e.g. using Host-only adapter together with NAT). With no success :(