Bug 1295954 - Packstack Installation Fails Due to Error "Could Not Prefetch neutron_network provider 'neutron'"
Summary: Packstack Installation Fails Due to Error "Could Not Prefetch neutron_network...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-packstack
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 8.0 (Liberty)
Assignee: Ivan Chavero
QA Contact: yeylon@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-05 22:06 UTC by Dustin Schoenbrun
Modified: 2016-04-18 07:14 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-02 16:22:57 UTC
Target Upstream Version:


Attachments (Terms of Use)
The setup log from Packstack (8.06 KB, text/plain)
2016-01-05 22:06 UTC, Dustin Schoenbrun
no flags Details
Puppet Logs (5.11 KB, application/octet-stream)
2016-01-05 22:07 UTC, Dustin Schoenbrun
no flags Details

Description Dustin Schoenbrun 2016-01-05 22:06:27 UTC
Created attachment 1111948 [details]
The setup log from Packstack

Description of problem:
When using packstack to install OpenStack the installation will fail with the following error:
ERROR : Error appeared during Puppet run: 10.8.0.58_provision_demo.pp
Error: Could not prefetch neutron_network provider 'neutron': No resource and no name in property hash in neutron instance

Version-Release number of selected component (if applicable):
openstack-packstack-puppet-7.0.0-0.10.dev1684.g87ec498.el7ost.noarch
openstack-packstack-7.0.0-0.10.dev1684.g87ec498.el7ost.noarch

How reproducible:
100%

Steps to Reproduce:
1. Install RHEL 7.2
2. Install openstack-packstack package
3. Run the command "packstack --allinone"
4. The packstack installation will fail with the error shown above

Actual results:
Packstack All-In-One installation fails with the error shown above.

Expected results:
The packstack All-In-One installation shall succeed and an OpenStack instance shall be available.

Additional info:

Comment 2 Dustin Schoenbrun 2016-01-05 22:07:06 UTC
Created attachment 1111949 [details]
Puppet Logs

Comment 3 Tom Barron 2016-01-06 00:20:07 UTC
So, fwiw, I just hit this 50% of the time - i.e., I tried twice, hit it the first time and not the second.

There was a difference between the two trials that I'll mention though I dunno if it's relevant.  When I hit the issue, I went directly from the install of 7.2 to installation of rhos-osp, installation of packstack, and run of packstack.  When the issue was avoided, I rebooted after the install step, and before the reboot I applied the workaround with rebuild of initramfs from https://bugzilla.redhat.com/show_bug.cgi?id=1178497.  So I did a clean reboot before installing rhos-osp and running packstack.(and have discovered I need the workaround to shutdown for the clean reboot).

Comment 4 Javier Peña 2016-01-21 12:16:15 UTC
I have not been able to reproduce this issue so far. Did you try to run packstack --allinone twice?

From the log files, the most relevant piece is:

Notice: Puppet::Type::Neutron_subnet::ProviderNeutron: Unable to complete neutron request due to non-fatal error: "Execution of '/usr/bin/neutron subnet-create --format=shell --name=public_subnet --disable-dhcp --tenant_id=6f0353eb39bb4945aaf44f920d11c457 public 172.24.4.224/28' returned 1: Multiple network matches found for name 'public', use an ID to be more specific.". Retrying for 3 sec

That means there is more than one network named "public", which should never happen.

If you manage to reproduce it, please add --debug to the command-line, and include all log files from /var/tmp/packstack/latest/manifests.

Comment 5 Dustin Schoenbrun 2016-02-02 16:22:57 UTC
Yeah, it looks like it's an artifact of running Packstack twice. Looks like I'd have to go through and manually delete the Neutron networks before firing up Packstack again for a second attempt. Might be something that needs to be documented somewhere that if your first try fails, the second run might fail for another reason. Looks like things are alright now so I'll mark it as closed.


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