Bug 1042933 - neutron-server fails to start when deploying Neutron controller host group via Foreman
Summary: neutron-server fails to start when deploying Neutron controller host group vi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-foreman-installer
Version: 4.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: 4.0
Assignee: Jason Guiditta
QA Contact: Omri Hochman
URL:
Whiteboard:
: 1043282 (view as bug list)
Depends On:
Blocks: 1040649
TreeView+ depends on / blocked
 
Reported: 2013-12-13 16:28 UTC by jliberma@redhat.com
Modified: 2016-04-26 16:50 UTC (History)
12 users (show)

Fixed In Version: openstack-foreman-installer-1.0.0-1.el6ost
Doc Type: Bug Fix
Doc Text:
Networking now requires 'neutron-db-manage stamp' be run at install time, prior to starting the Networking service. An exec as been added to the puppet manifest that calls 'neutron-db-manage stamp' before attempting to start the Networking server. The result is that the Networking server can be successfully started. Development work is currenly undergoing to enforce the order of resource execution. In the interim, a second run of puppet agent is expected to resolve this successfully.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:44:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description jliberma@redhat.com 2013-12-13 16:28:08 UTC
Description of problem:

Error while running puppet agent -tv after adding host to Neutron Controller host group:

"Error: Could not start Service[neutron-server]: Execution of '/sbin/service neutron-server start' returned 6: 
Error: /Stage[main]/Neutron::Server/Service[neutron-server]/ensure: change from stopped to running failed: Could not start Service[neutron-server]: Execution of '/sbin/service neutron-server start' returned 6: "

Starting from command line gives this error:

[root@rhos1 ~]# service neutron-server start
neutron-db-check: ERROR: neutron database does not have version information. You must run the "neutron-db-manage stamp" command before starting neutron services.

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

12.12.1 code release, openstack-neutron-2013.2-15.el6ost.noarch

How reproducible:

Every time with 12.11 and 12.12 puddles

Steps to Reproduce:
1. Install Foreman server and Neutron controller node base OS (RHEL 6.5)
2. Add 12.12.1 puddle + Lon's others repos and update
3. Run foreman_server.sh on Foreman server
4. Edit Neutron controller host group -- change admin password to 'password'
5. Run foreman_client.sh on Neutron controller node
6. Add Neutron controller node to the Neutron Controller host group in Foreman
7. Run puppet agent -tv on Neutron Controller node
8. Watch output for error near end of run

Actual results:

Error and neutron-server service fails to start

Expected results:

No errors and neutron-server service starts successfully

Additional info:

Comment 2 Steve Reichard 2013-12-13 18:41:29 UTC
So I repeated this result also using different systems.

Interestingly enough, if the test systems were subscribed to the Beta channels, I did not see this error.

Foreman was subscribed to the latest.

Comment 3 Ryan O'Hara 2013-12-15 21:51:07 UTC
Need a lot more information. Please provide:

- The NVR for both openstack-foreman-install and the packstack-modules-puppet.
- The neutron server logs.
- The neutron.conf file.

Comment 4 Jason Guiditta 2013-12-16 15:46:28 UTC
*** Bug 1043282 has been marked as a duplicate of this bug. ***

Comment 5 Jason Guiditta 2013-12-16 17:03:42 UTC
Ok, so there is a fix packstack added, we will likely do the same for now [1]
It really seems to me that the neutron puppet module should do the right thing here, and that adding code to packstack OR foreman is a temporary hack to get around that issue.  I may have to do the same as packstack for now in the foreman/quickstack modules, depending when/if this review lands for neutron puppet [2], which I have just asked dprince to try and get through, as it got marked abandoned.  Once I can get at a test environment that matches that reported, I'll test and post the foreman version of the packstack fix.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=1037675#c10
[2] https://review.openstack.org/#/c/50162/

Comment 6 Jason Guiditta 2013-12-16 17:26:42 UTC
Fix posted:

https://github.com/redhat-openstack/astapor/pull/89

Comment 9 Jason Guiditta 2013-12-17 19:32:57 UTC
Related bug is #1043964

Comment 11 Ryan O'Hara 2013-12-18 18:31:11 UTC
Tested RHOS 4.0 RC on RHEL 6.5 with:

openstack-foreman-installer-1.0.0-1.el6ost.noarch
packstack-modules-puppet-2013.2.1-0.20.dev936.el6ost.noarch

Neutron controller host deployed and neuutron-server is running as expected. Marking as VERIFIED.

Comment 13 errata-xmlrpc 2013-12-20 00:44:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


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