Bug 1320293 - rhel-osp-director: 7.3->8.0 undercloud+ssl upgrade fails: /bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED]
Summary: rhel-osp-director: 7.3->8.0 undercloud+ssl upgrade fails: /bin/openstack toke...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: rhosp-director
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ga
: 8.0 (Liberty)
Assignee: Angus Thomas
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-22 18:56 UTC by Alexander Chuzhoy
Modified: 2016-03-23 14:10 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-23 14:10:07 UTC
Target Upstream Version:


Attachments (Terms of Use)
install-undercloud.log (164.57 KB, application/x-gzip)
2016-03-22 18:57 UTC, Alexander Chuzhoy
no flags Details

Description Alexander Chuzhoy 2016-03-22 18:56:30 UTC
rhel-osp-director: 7.3->8.0 undercloud+ssl upgrade fails: /bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED]


Environment:
instack-undercloud-2.2.6-1.el7ost.noarch

Steps to reproduce:
1. Deploy 7.3 with undercloud+ssl 
2. Attempt to upgrade the undercloud to 8.0 and run "openstack undercloud install".

Result:
Notice: /Stage[main]/Apache::Service/Service[httpd]: Triggered 'refresh' from 3 events
Error: /Stage[main]/Neutron::Keystone::Auth/Keystone::Resource::Service_identity[neutron]/Keystone_user[neutron]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                                    
Error: /Stage[main]/Heat::Keystone::Auth/Keystone::Resource::Service_identity[heat]/Keystone_user[heat]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                                             
Error: /Stage[main]/Aodh::Keystone::Auth/Keystone::Resource::Service_identity[aodh]/Keystone_user[aodh]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                                             
Error: /Stage[main]/Nova::Keystone::Auth/Keystone::Resource::Service_identity[nova service, user nova]/Keystone_user[nova]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                          
Error: /Stage[main]/Glance::Keystone::Auth/Keystone::Resource::Service_identity[glance]/Keystone_user[glance]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                                       
Error: /Stage[main]/Ironic::Keystone::Auth/Keystone::Resource::Service_identity[ironic]/Keystone_user[ironic]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)                                                                                       
Error: /Stage[main]/Ceilometer::Keystone::Auth/Keystone::Resource::Service_identity[ceilometer]/Keystone_user[ceilometer]: Could not evaluate: Execution of '/bin/openstack token issue --format value' returned 1: SSL exception connecting to https://192.0.2.2:13000/v3/auth/tokens: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)   


Expected result:
No errors.

Comment 2 Alexander Chuzhoy 2016-03-22 18:57:50 UTC
Created attachment 1139195 [details]
install-undercloud.log

Comment 3 Ben Nemec 2016-03-22 19:46:30 UTC
I would guess that this is because we don't set OS_CACERT in stackrc anymore.  The cacert file needs to be installed in the undercloud trust store before running an upgrade.  The same thing has to happen for new installations of 8.0 using SSL.

What needs to be run is:

sudo cp cacert.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust extract

This is documented upstream in http://docs.openstack.org/developer/tripleo-docs/installation/installation.html#installing-the-undercloud

Comment 4 Jaromir Coufal 2016-03-23 14:08:07 UTC
No blocker, documentation needed. Can we address the automation of that? How difficult it would be?

Comment 5 Mike Burns 2016-03-23 14:10:07 UTC
I'll roll this into our documentation.  This is a one time change for upgrades from 7 to 8, so no need for future automation.


Note You need to log in before you can comment on or make changes to this bug.