Ask Your Question
0

fedora 21/kilo install - Could not prefetch keystone_service provider 'openstack'

asked 2015-06-27 09:14:59 -0500

egs gravatar image

Fedora 21, kilo packstack consistently gets same error. Following RDO Quickstart. Fresh install of fedora and packstack. SELinux disabled. No proxies involved.

From /var/tmp/packstack/20150627-092426-accG4D/openstack-setup.log

2015-06-27 09:25:07::INFO::shell::94::root:: [192.168.120.126] Executing script:
systemctl is-enabled NetworkManager
2015-06-27 09:25:07::INFO::shell::94::root:: [192.168.120.126] Executing script:
systemctl is-active NetworkManager
2015-06-27 09:25:07::INFO::shell::94::root:: [192.168.120.126] Executing script:
echo $HOME
2015-06-27 09:25:08::INFO::shell::94::root:: [localhost] Executing script:
cd /var/tmp/packstack/20150627-092426-accG4D/hieradata
tar --dereference -cpzf - ../hieradata | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.120.126 tar -C /var/tmp/packstack/42d208c101c94b5598e3435ff1edbdbf -xpzf -
cd /usr/lib/python2.7/site-packages/packstack/puppet
cd /var/tmp/packstack/20150627-092426-accG4D/manifests
tar --dereference -cpzf - ../manifests | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.120.126 tar -C /var/tmp/packstack/42d208c101c94b5598e3435ff1edbdbf -xpzf -
cd /usr/share/openstack-puppet/modules
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 StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@192.168.120.126 tar -C /var/tmp/packstack/42d208c101c94b5598e3435ff1edbdbf/modules -xpzf -
2015-06-27 09:26:22::ERROR::run_setup::1018::root:: Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 1013, in main
    _main(options, confFile, logFile)
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 655, in _main
    runSequences()
  File "/usr/lib/python2.7/site-packages/packstack/installer/run_setup.py", line 626, 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 210, in apply_puppet_manifest
    wait_for_puppet(currently_running, messages)
  File "/usr/lib/python2.7/site-packages/packstack/plugins/puppet_950.py", line 124, 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.120.126_keystone.pp
Error: Could not prefetch keystone_service provider 'openstack': Execution of '/usr/bin/openstack service list --quiet --format csv --long' returned 1: ERROR: cliff.app 'super' object has no attribute 'load_commands'^[[0m
You will find full trace in log /var/tmp/packstack/20150627-092426-accG4D/manifests/192.168.120.126_keystone.pp.log
2015-06-27 09:26:22::INFO::shell::94::root:: [192.168.120.126] Executing script:
rm -rf /var/tmp/packstack/42d208c101c94b5598e3435ff1edbdbf

From /var/tmp/packstack/20150627-092426-accG4D/manifests/192.168.120.126_keystone.pp.log

^[[1;31mWarning: Scope(Class[Concat::Setup]): concat::setup is ...
(more)
edit retag flag offensive close merge delete

Comments

I installed CentOS7 on the box. Followed the same process using the same answer file. Worked like a champ. Then on my Win7 box running VirtualBox I installed Fedora21 and all the vbox additions. Followed the same process. Updated additions, used --allinone Same error. Same place.

egs gravatar imageegs ( 2015-07-01 11:01:40 -0500 )edit

Facing the same issue, or you able to find a solution ?

Khayam gravatar imageKhayam ( 2015-07-03 00:41:24 -0500 )edit

Not for fedora 21. I installed CentOS7 and moved on. I have reproduced it in a VirtualBox VM and am ready and willing to try recommendations.

egs gravatar imageegs ( 2015-07-03 10:48:43 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2015-07-13 09:23:53 -0500

dbaxps gravatar image

updated 2015-07-13 09:27:33 -0500

There is solution which works for me at least in meantime on Fedora 22 :-

# dnf install -y https://rdoproject.org/repos/rdo-release.rpm
# dnf  install -y openstack-packstack  
# dnf install fedora-repos-rawhide
# dnf  --enablerepo=rawhide update openstack-packstack
# dnf install python3-pyOpenSSL.noarch python-service-identity.noarch python-ndg_httpsclient.noarch

At this point run :-

   # packstack  --gen-answer-file answer-file-aio.txt
    and set
    CONFIG_KEYSTONE_SERVICE_NAME=httpd
   # cd /usr/lib/python2.7/site-packages/packstack/puppet/templates

Apply third patch from http://textuploader.com/yn0v to provision_demo.pp Then run

 # cd ; packstack --answer-file=./answer-file-aio.txt
edit flag offensive delete link more

Comments

You can --provision-demo=n instead of applying the third patch.

David Hill gravatar imageDavid Hill ( 2015-07-13 15:14:35 -0500 )edit

Syntax like :-

packstack --answer-file=./answer-file-aio.txt --provision-demo=n

doesn't work for me

dbaxps gravatar imagedbaxps ( 2015-07-13 16:27:15 -0500 )edit

Did applying the patch fixed your issue?

David Hill gravatar imageDavid Hill ( 2015-07-14 13:57:32 -0500 )edit

Yes, you just read provision_demo.pp. Patch disables verification of demo's networks and neutron router. You may also view
https://www.rdoproject.org/forum/disc...

dbaxps gravatar imagedbaxps ( 2015-07-14 15:21:47 -0500 )edit
1

answered 2015-07-13 15:13:20 -0500

David Hill gravatar image

updated 2015-07-13 15:17:35 -0500

Hello guys,

You have to "pip install --upgrade cliff" in order to get passed this issue.  By default, every time you have an issue with openstack/packstack is because of python dependancies ... I've always managed to get through these errors by updating to the latest (or at least the minimum required) version.    I had less issues with devstack than packtack.

Thanks,

Dave

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-06-27 09:14:59 -0500

Seen: 2,551 times

Last updated: Jul 13 '15