Bug 1377775

Summary: Unable to install the director on the undercloud with redhat 7.2
Product: Red Hat OpenStack Reporter: bzubair
Component: rhosp-directorAssignee: Angus Thomas <athomas>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Omri Hochman <ohochman>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: bzubair, dbecker, dsneddon, dtantsur, jcoufal, mburns, morazi, rhel-osp-director-maint
Target Milestone: ---Flags: dsneddon: needinfo? (bzubair)
Target Release: 8.0 (Liberty)   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-12 15:22:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description bzubair 2016-09-20 15:01:54 UTC
Description of problem:
Unable to install undercloud with redhat 7.2 with director version 8

Version-Release number of selected component (if applicable):
rhosp7

How reproducible:
Follwing installation guide 
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/7/html/Director_Installation_and_Usage/chap-Installing_the_Undercloud.html


Steps to Reproduce:
1. Install Redhat 7.2
2. Subscribe to redhat 
3. Yum Update
4. Create user stack 
5. Installing via "openstack undercloud install" from user stack 

Actual results:
Failing after running the installation

************************************
Target: post-configure.d

Script                                     Seconds
---------------------------------------  ----------

10-iptables                                   0.674
68-ironic-conductor                           9.881
80-seedstack-masquerade                       0.151
98-undercloud-setup                          15.518
99-refresh-completed                          0.416

--------------------- END PROFILING ---------------------
[2016-09-20 10:40:58,283] (os-refresh-config) [INFO] Completed phase post-configure
os-refresh-config completed successfully
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 829, in install
    _post_config()
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 798, in _post_config
    _configure_ssh_keys(nova)
  File "/usr/lib/python2.7/site-packages/instack_undercloud/undercloud.py", line 759, in _configure_ssh_keys
    nova.keypairs.get('default')
  File "/usr/lib/python2.7/site-packages/novaclient/api_versions.py", line 371, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/v2/keypairs.py", line 68, in get
    "keypair")
  File "/usr/lib/python2.7/site-packages/novaclient/base.py", line 170, in _get
    _resp, body = self.api.client.get(url)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 448, in get
    return self._cs_request(url, 'GET', **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 404, in _cs_request
    self.authenticate()
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 561, in authenticate
    auth_url = self._v2_auth(auth_url)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 652, in _v2_auth
    return self._authenticate(url, body)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 665, in _authenticate
    **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 399, in _time_request
    resp, body = self.request(url, method, **kwargs)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 393, in request
    raise exceptions.from_response(resp, body, url, method)
novaclient.exceptions.ClientException: Unknown Error (HTTP 503)
Command 'instack-install-undercloud' returned non-zero exit status 1

***************************************

Expected results:
I think it should be able to complete it successfully

Additional info:

Comment 3 bzubair 2016-09-22 18:20:10 UTC
Any help is much appreciated by anybody ..

Thanks

Comment 4 Dan Sneddon 2016-10-14 20:12:55 UTC
(In reply to bzubair from comment #3)
> Any help is much appreciated by anybody ..
> 
> Thanks

This may be a configuration, or a permissions issue. Are you sure stack has passwordless sudo privileges?

Can you run this command without typing a password as the user stack?

sudo id

The output should be similar to:
uid=0(root) gid=0(root) groups=0(root) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Can you please attach the undercloud.conf that you configured prior to running "openstack undercloud install"? 

Also helpful would be the contents of these files:
/var/log/nova-api.log
/var/log/nova-compute.log
/var/log/keystone/keystone.log

Comment 5 Dmitry Tantsur 2016-12-12 15:22:45 UTC
Please reopen if you can provide the files Dan asked for. Thanks!