Ask Your Question
1

packstack-openstack installation on Centos 7 Error - Newton [closed]

asked 2016-11-10 14:05:44 -0600

abe gravatar image

updated 2016-11-15 17:56:38 -0600

Hello,

here is the output and error. Please do let me know if you need me to post any other logs. I cannot hit the dashboard on the IP address/dashboard

System config: centos 7 on Xeon CPU + 16 GB memory Packstack on mitaka branch

 Copying Puppet modules and manifests       [ DONE ]
 Applying 10.211.0.250_controller.pp
10.211.0.250_controller.pp:                       [ ERROR ]           
Applying Puppet manifests                         [ ERROR ]

 ERROR : Error appeared during Puppet run: 10.211.0.250_controller.pp
 Error: Could not start Service[nova-cert]: Execution of '/usr/bin/systemctl start openstack-nova-cert' returned 1: Job for     openstack-nova-cert.service failed because the control process exited with error code. See "systemctl status openstack-nova-cert.service" and "journalctl -xe" for details.

$systemctl status openstack-nova-scheduler.serviceopenstack-nova-scheduler.service
openstack-nova-scheduler.serviceopenstack-nova-scheduler.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
$journalctl -xe
Subject: Unit openstack-nova-conductor.service has begun start-up
Defined-By: systemd
Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Unit openstack-nova-conductor.service has begun starting up.
Nov 10 12:41:33 aodh-evaluator[8901]: Traceback (most recent call last):
Nov 10 12:41:33 aodh-evaluator[8901]: File "/usr/bin/aodh-evaluator", line 6, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from aodh.cmd.alarm import evaluator
Nov 10 12:41:33 aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/aodh/cmd/alarm.py", line 20, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from aodh import evaluator as evaluator_svc
Nov 10 12:41:33 aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/aodh/evaluator/__init__.py", line 37, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from aodh import keystone_client
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/aodh/keystone_client.py", line 20, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from keystoneauth1 import loading as ka_loading
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/__init__.py", line 18, in   <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from keystoneauth1.loading import session
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/keystoneauth1/loading/session.py", line 20, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from keystoneauth1 import session
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/keystoneauth1/session.py", line 26, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: import requests
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/requests/__init__.py", line 64, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from . import utils
Nov 10 12:41:33  aodh-evaluator[8901]: File "/usr/lib/python2.7/site-packages/requests/utils.py", line 29, in <module>
Nov 10 12:41:33  aodh-evaluator[8901]: from .exceptions import InvalidURL, InvalidHeader, FileModeWarning
Nov 10 12:41:33 aodh-evaluator[8901]: ImportError: cannot import name InvalidHeader
Nov 10 12:41:33  systemd[1]: openstack-aodh-evaluator.service: main process exited, code=exited, status=1/FAILURE
Nov 10 12:41:33  systemd[1]: Unit openstack-aodh-evaluator.service entered failed state.
Nov ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by abe
close date 2016-11-17 13:09:46.066811

Comments

It's newton branch. Due to presence controller.pp. I guess so, unless they dropped packstack on stable RDO Mitaka.

dbaxps gravatar imagedbaxps ( 2016-11-11 04:59:32 -0600 )edit

@dbaxps Nope it is mitaka, I specifically ran this cmd : yum install -y centos-release-openstack-mitaka

abe gravatar imageabe ( 2016-11-11 10:51:14 -0600 )edit

PLease, post content of repos of /etc/yum.repos.d/ related to RDO.
As update1 to question.

dbaxps gravatar imagedbaxps ( 2016-11-11 11:07:47 -0600 )edit

@dbaxps Added the requested files. Looks like it is newton. i can post another file: CentOS-OpenStack-mitaka.repo

abe gravatar imageabe ( 2016-11-11 11:40:22 -0600 )edit

What does systemctl status openstack-nova-cert.service show? The journal output doesn't appear to relate to the actual error.

sgordon gravatar imagesgordon ( 2016-11-11 19:40:41 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
2

answered 2016-11-11 13:07:30 -0600

dbaxps gravatar image

updated 2016-11-16 11:45:40 -0600

UPDATE 11/16/2016
See Packstack install RDO Newton with Keystone API V2 on CentOS 7.2
I was unable to find patch https://review.openstack.org/gitweb?p...
in RDO Newton trunk "current-passed-ci", so you still have to set up RDO Newton via packstack with Keystone API v2.0
See also :-
https://bugzilla.redhat.com/show_bug....
In particular, focus on Section "External Trackers"

You can double check that file /usr/lib/python2.7/site-packages/packstack/plugins/keystone_100.py still has
on line 141 :-
 {"CMD_OPTION": "keystone-api-version",
             "PROMPT": "Enter the Keystone API version string.",
             "OPTION_LIST": ['v2.0', 'v3'],
             "VALIDATORS": [validators.validate_options],
             "DEFAULT_VALUE": 'v2.0',
             "MASK_INPUT": False,
             "LOOSE_VALIDATION": False,
             "CONF_NAME": 'CONFIG_KEYSTONE_API_VERSION',
             "USE_DEFAULT": True,
             "NEED_CONFIRM": False,
             "CONDITION": False},

@abe, you made a mistake setting up delorean repos for Newton. I have system running RDO Newton on bare metal right now

[root@Server72Centos ~(keystone_admin)]# rpm -qa \*openstack-packstack\*
openstack-packstack-puppet-9.0.0-0.20161021225918.af7b24a.el7.centos.noarch
openstack-packstack-9.0.0-0.20161021225918.af7b24a.el7.centos.noarch

END UPDATE

UPDATE 11/15/2016
See the most recent official instructions here
https://www.redhat.com/archives/rdo-l...
https://www.redhat.com/archives/rdo-l...
e.g install just one mentioned rpm and enable required repo
If following link above you will experience failures open bug with bugzilla
END UPDATE

Yes. It was Newton. Try delorean trunks for RDO Mitaka current-passed-ci

yum -y install yum-plugin-priorities
curl -o /etc/yum.repos.d/delorean-mitaka.repo  http://buildlogs.centos.org/centos/7/cloud/x86_64/rdo-trunk-mitaka-tested/delorean.repo
curl -o /etc/yum.repos.d/delorean-deps-mitaka.repo https://trunk.rdoproject.org/centos7-mitaka/delorean-deps.repo

I would expect different packstack behaviour on Mitaka , unless changes, providing regression to packstack, were back ported . I am talking about ability to split Storage and Controller nodes on versions prior to Newton.

I just verified RDO Newton trunks have
openstack-packstack-9.0.0-0.20160922140727.3f43120.el7.centos.src.rpm
RDO Mitaka trunks have
openstack-packstack-8.0.0-0.20160601145552.c5daafd.el7.centos.src.rpm
So I still expect old style packstack on Mitaka
edit flag offensive delete link more

Comments

@dbaxps. I appreciate your response.

After yum priority package installation, there are 1800 packages excluded due to priority protection. Now i cant run yum -y update

Can you please explain the yum installation steps for a working openstack with packstack on cent-os? That would be helpful. Thank

abe gravatar imageabe ( 2016-11-11 17:11:21 -0600 )edit

I posted instructions. Try only mentioned repos for RDO Mitaka packstack install , nothing else. RDO MItaka trunk "current-passed-ci" has precedence over stable Mitaka. Read what does "yum -y install yum-plugin-priorities" . It provides this precedence.

dbaxps gravatar imagedbaxps ( 2016-11-12 02:12:34 -0600 )edit

@dbaxps Here is what I am doing, I have installed yum-plugin-priorities yum install https://trunk.rdoproject.org/centos7-... yum install http://buildlogs.centos.org/centos/7/... $yum update -y

abe gravatar imageabe ( 2016-11-14 10:43:28 -0600 )edit

1857 packages excluded due to repository priority protections No packages marked for update

abe gravatar imageabe ( 2016-11-14 10:46:18 -0600 )edit

Go ahead , attempt to install RDO Mitaka via packstack as usual.

dbaxps gravatar imagedbaxps ( 2016-11-14 11:01:01 -0600 )edit
0

answered 2016-11-16 23:23:53 -0600

silently gravatar image

updated 2016-11-16 23:25:40 -0600

Nov 10 12:41:33 aodh-evaluator[8901]: ImportError: cannot import name InvalidHeader

reinstall this python library:       pip install requests

or install requests by source code : https://pypi.python.org/pypi/requests/2.7.0#downloads (https://pypi.python.org/pypi/requests...)

I have resolved this problem by reinstall requests .

edit flag offensive delete link more
0

answered 2016-11-17 13:06:06 -0600

abe gravatar image

updated 2016-11-17 13:09:07 -0600

fresh install of cent os and your blog(http://dbaxps.blogspot.com/2016/11/packstack-install-rdo-newton-with.html) worked for me. Im running openstack now! thanks for all the feedback/responses @dbaxps

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-11-10 14:04:58 -0600

Seen: 5,950 times

Last updated: Nov 17 '16