Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1618764

Summary: openstack undercloud install fails due to heat permissions error
Product: Red Hat OpenStack Reporter: J Turock <jturock>
Component: instack-undercloudAssignee: James Slagle <jslagle>
Status: CLOSED WORKSFORME QA Contact: Arik Chernetsky <achernet>
Severity: low Docs Contact:
Priority: low    
Version: 13.0 (Queens)CC: aschultz, emacchi, jturock, mburns
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-18 20:01:18 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:
Embargoed:
Attachments:
Description Flags
sosreport none

Description J Turock 2018-08-17 14:09:23 UTC
Description of problem:
openstack undercloud install
fails without permission changes and user creation.

Version-Release number of selected component (if applicable):
Running a fully up-to-date RHEL 7.5 (Maipo) VM on VMware ESXi 5.5
Using OpenStack 3.14.1

How reproducible:
Following the steps outlined here: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html-single/director_installation_and_usage/#installing-the-undercloud

Description:
Running "openstack undercloud install" fails with this error,
2018-08-16 15:11:38,632 INFO: Error: heat-manage --config-file /etc/heat/heat.conf db_sync returned 1 instead of one of [0]
2018-08-16 15:11:38,634 INFO: Error: /Stage[main]/Heat::Db::Sync/Exec[heat-dbsync]/returns: change from notrun to 0 failed: heat-manage --config-file /etc/heat/heat.conf db_sync returned 1 instead of one of [0]

Fix:
useradd heat
passwd heat
# copy and paste the heat password from ~stack/undercloud-passwords.conf 
chown -R heat:heat /etc/heat
chown -R heat:heat /usr/share/heat

Other similar issues came up. Fix:
chown -R glance:glance /etc/glance
chown -R keystone:keystone /etc/keystone
chown -R neutron:neutron /etc/neutron

Re-run:
openstack undercloud install

The installation fails a second time:
2018-08-16 15:40:27,571 ERROR: ERROR error creating the default Deployment Plan overcloud Check the create_default_deployment_plan execution in Mistral with openstack workflow execution list   Mistral execution ID: a0a6f4d4-778b-440a-a6c9-30d20f23a4fd

Fix:
source ~stack/stackrc
# Note, can't do this earlier because stackrc isn't created yet

Re-run:
openstack undercloud install

It installs successfully this time.

Comment 1 Alex Schultz 2018-08-17 16:42:49 UTC
Please provide a sosreport of the undercloud.

Comment 2 J Turock 2018-08-29 16:37:11 UTC
Created attachment 1479538 [details]
sosreport

Comment 3 Alex Schultz 2018-08-29 17:15:21 UTC
The attached sosreport appears to be from a successful undercloud installation and does not have the error previously reported.  I'll try and reproduce it

Comment 4 J Turock 2018-08-29 20:24:58 UTC
It was eventually successful, I did the steps mentioned earlier... To set up the environment I had created a VM on an ESXi 5.5 box, then downloaded a RHEL 7.5 iso from the Red Hat website and installed it to the VM. Then I went through all the steps outlined here: https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/13/html/director_installation_and_usage/

I can attempt to reproduce the bugs on another server, though not for a few days (quite busy over here). 

Thanks-

Comment 5 Alex Schultz 2018-09-18 20:01:18 UTC
I just reran the OSP13 undercloud install successfully.  Closing for now, feel free to reopen if you have further logs.