Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1265816

Summary: Manila Puppet Module Expects Glance Endpoint to Be Available for Upload of Service Image
Product: [Community] RDO Reporter: Dustin Schoenbrun <dschoenb>
Component: openstack-packstackAssignee: Martin Magr <mmagr>
Status: CLOSED EOL QA Contact: Shai Revivo <srevivo>
Severity: high Docs Contact:
Priority: unspecified    
Version: trunkCC: aortega, derekh, dschoenb, jpena, srevivo
Target Milestone: ---   
Target Release: Kilo   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-19 15:48:08 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
Packstack Answers File
none
OpenStack Setup Log
none
Manila Puppet Logs
none
Glance API Core Dump
none
Glance Registry Core Dump
none
Audit Log none

Description Dustin Schoenbrun 2015-09-23 20:26:42 UTC
Created attachment 1076296 [details]
Packstack Answers File

Description of problem:
During a packstack install of RDO Trunk (the Liberty prerelease) the Manila Puppet Module failed waiting for the Glance service to become available. Manila uses Glance to upload the service image required for the generic share driver to function. It appears that the issue is that packstack will wait until all services are installed before creating the API endpoints in Keystone. This causes the packstack installer to fail because the Glance service is unavailable.

Version-Release number of selected component (if applicable):
openstack-packstack-puppet-2015.2-dev1636.g3015bff.fc22.noarch
openstack-packstack-2015.2-dev1636.g3015bff.fc22.noarch

How reproducible:
Looks like every time you attempt to install Manila with packstack this will occur.

Steps to Reproduce:
1. Install a server with Fedora 22 x64
2. Create a new user called "stack" and assign password.
3. Add stack user to sudoers for passwordless access.
4. Add Delorean repositories
5. Install openstack-packstack (sudo yum install -y openstack-packstack)
6. Use packstack to generate an answer file (packstack --gen-answer-file=answer.txt)
7. Change the value of "CONFIG_MANILA_INSTALL" to be "y".
8. Use the answer file to install RDO with packstack (packstack --answer-file=answer.txt)

Actual results:
The Manila Puppet module fails due to the Glance endpoint not being available and the Packstack RDO install halts and fails.

Expected results:
The Manila Puppet module shall complete successfully and the Packstack RDO install shall complete successfully.

Additional info:
See attachments for the openstack-setup.log, Manila Puppet Log, and the answers file used.

Comment 1 Dustin Schoenbrun 2015-09-23 20:27:53 UTC
Created attachment 1076297 [details]
OpenStack Setup Log

Comment 2 Dustin Schoenbrun 2015-09-23 20:28:42 UTC
Created attachment 1076299 [details]
Manila Puppet Logs

Comment 3 Javier Peña 2015-09-24 08:41:27 UTC
This should be fixed by https://review.openstack.org/194114 . Actually, I can't reproduce it in my test setup (with CentOS7).

Can you check if Glance is working in your test environment when this error happens? If might be a Glance problem rather than a Manila one.

Comment 4 Dustin Schoenbrun 2015-09-24 14:47:59 UTC
Created attachment 1076581 [details]
Glance API Core Dump

It looks like the Glance API service and the Glance Registry are SegFaulting when they try to start up. That would certainly explain why Manila couldn't find the API endpoint. Attached is the Glance API core dump and I will also attach the Glance Registry Core Dump in the next comment.

Comment 5 Dustin Schoenbrun 2015-09-24 14:49:04 UTC
Created attachment 1076583 [details]
Glance Registry Core Dump

And here's the Glance Registry Core Dump.

Comment 6 Lon Hohberger 2015-09-24 15:05:07 UTC
Please run in permissive and attach /var/log/audit/audit.log - it sounds like there's an execmem issue which has come up due to use of python-cryptography and cffi.

Comment 7 Dustin Schoenbrun 2015-09-24 15:54:54 UTC
Created attachment 1076601 [details]
Audit Log

Here's the audit log from the packstack runs. It should contain the runs with both enforcing and permissive SELinux settings.

Comment 9 Chandan Kumar 2016-05-19 15:48:08 UTC
This bug is against a Version which has reached End of Life.
If it's still present in supported release (http://releases.openstack.org), please update Version and reopen.