Bug 1193582 - [Neutron][Staypuft] Single Controller fails to create router
Summary: [Neutron][Staypuft] Single Controller fails to create router
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: ruby193-rubygem-staypuft
Version: 6.0 (Juno)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: z2
: Installer
Assignee: Scott Seago
QA Contact: Alexander Chuzhoy
URL:
Whiteboard:
: 1196770 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-17 16:03 UTC by Joe Talerico
Modified: 2022-07-09 07:12 UTC (History)
9 users (show)

Fixed In Version: ruby193-rubygem-staypuft-0.5.0-20.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, the default value of the 'l3_ha' option was set to 'true' in all circumstances. This would cause deployments with a single controller to fail or exhibit errors such as "HANotEnoughAvailableAgents: Not enough l3 agents" when running neutron-related commands under certain conditions. With this update, the 'l3_ha' option is now automatically set to 'false' in deployments with a single controller, preventing neutron-related commands from failing due to this state.
Clone Of:
Environment:
Last Closed: 2015-04-07 15:08:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0791 0 normal SHIPPED_LIVE Important: Red Hat Enterprise Linux OpenStack Platform Installer update 2015-04-07 19:07:29 UTC

Description Joe Talerico 2015-02-17 16:03:21 UTC
Description of problem:
Deploying with a single controller then trying to create a router results in error: 

2015-02-17 10:53:53.005 423 ERROR neutron.api.v2.resource [req-ea6ef748-2191-4aa1-895c-e16f22a10b90 None] create failed
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource Traceback (most recent call last):
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/resource.py", line 87, in resource
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     result = method(request=request, **args)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/api/v2/base.py", line 448, in create
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     obj = obj_creator(request.context, **kwargs)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_hamode_db.py", line 360, in create_router
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     self.delete_router(context, router_dict['id'])
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/openstack/common/excutils.py", line 82, in __exit__
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     six.reraise(self.type_, self.value, self.tb)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_hamode_db.py", line 356, in create_router
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     self._create_ha_interfaces(context, router_db, ha_network)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_hamode_db.py", line 299, in _create_ha_interfaces
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     num_agents = self.get_number_of_agents_for_scheduling(context)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource   File "/usr/lib/python2.7/site-packages/neutron/db/l3_hamode_db.py", line 265, in get_number_of_agents_for_scheduling
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource     num_agents=num_agents)
2015-02-17 10:53:53.005 423 TRACE neutron.api.v2.resource HANotEnoughAvailableAgents: Not enough l3 agents available to ensure HA. Minimum required 2, available 1.



ruby193-rubygem-staypuft-0.5.19-1.el7ost.noarch

Comment 5 Mike Burns 2015-02-26 17:18:36 UTC
*** Bug 1196770 has been marked as a duplicate of this bug. ***

Comment 6 Scott Seago 2015-03-06 17:12:38 UTC
PR is here and merged: https://github.com/theforeman/staypuft/pull/427

Comment 8 Alexander Chuzhoy 2015-03-16 17:25:27 UTC
Verified:
Environment:
rhel-osp-installer-client-0.5.7-1.el7ost.noarch
openstack-foreman-installer-3.0.17-1.el7ost.noarch
rhel-osp-installer-0.5.7-1.el7ost.noarch
ruby193-rubygem-staypuft-0.5.21-1.el7ost.noarch
openstack-puppet-modules-2014.2.12-1.el7ost.noarch
ruby193-rubygem-foreman_openstack_simplify-0.0.6-8.el7ost.noarch



Was able to create a router on a deployment with 1 controller:


[root@maca25400702875 ~(openstack_admin)]# neutron router-list
+--------------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| id                                   | name | external_gateway_info                                                                                                                                                                   | distributed | ha    |
+--------------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
| 4b716c59-64bd-41c3-92e8-c5d7ff3f88e4 | r1   | {"network_id": "e281aca7-a5f2-448b-bb6a-a92146483264", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "4c799bc4-be40-4744-9690-410a6b5e2834", "ip_address": "10.8.30.102"}]} | False       | False |
+--------------------------------------+------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------+
[root@maca25400702875 ~(openstack_admin)]# neutron router-show r1
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Field                 | Value                                                                                                                                                                                   |
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| admin_state_up        | True                                                                                                                                                                                    |
| distributed           | False                                                                                                                                                                                   |
| external_gateway_info | {"network_id": "e281aca7-a5f2-448b-bb6a-a92146483264", "enable_snat": true, "external_fixed_ips": [{"subnet_id": "4c799bc4-be40-4744-9690-410a6b5e2834", "ip_address": "10.8.30.102"}]} |
| ha                    | False                                                                                                                                                                                   |
| id                    | 4b716c59-64bd-41c3-92e8-c5d7ff3f88e4                                                                                                                                                    |
| name                  | r1                                                                                                                                                                                      |
| routes                |                                                                                                                                                                                         |
| status                | ACTIVE                                                                                                                                                                                  |
| tenant_id             | 2ac3d5ad4c764903aeb1d9e3efcff0a1                                                                                                                                                        |
+-----------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

Comment 10 errata-xmlrpc 2015-04-07 15:08:38 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.

https://rhn.redhat.com/errata/RHSA-2015-0791.html

Comment 11 Andrew Dahms 2015-06-30 23:36:06 UTC
Setting 'requires_doc_text' to '-' in accordance with a discussion with mburns where it was clarified that this issue has now been resolved.


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