Bug 1472317

Summary: Unable to create Load Balancer using the new V2 panel provided by openstack-neutron-lbaas-ui package
Product: Red Hat OpenStack Reporter: Punit Kundal <pkundal>
Component: openstack-neutron-lbaas-uiAssignee: Radomir Dopieralski <rdopiera>
Status: CLOSED WONTFIX QA Contact: nlevinki <nlevinki>
Severity: medium Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: athomas, beth.white, gkadam, jjoyce, jmelvin, jschluet, mrunge, mschuppe, pcbho, rdopiera, slinaber, srevivo, tvignaud
Target Milestone: Upstream M3Keywords: Reopened, Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-29 15:49:37 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
"source_type" error while creating LB none

Description Punit Kundal 2017-07-18 13:00:22 UTC
Created attachment 1300471 [details]
"source_type" error while creating LB

Description of problem:

When trying to create load balancers through the V2 panel which is provided by the openstack-neutron-lbaas-ui package, the create operation fails with the source_type error. 

All works fine through the CLI. When trying to do so via the UI, it fails.


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

# rpm -qa | grep openstack-neutron-lbaas-ui
openstack-neutron-lbaas-ui-1.0.0-1.el7ost.noarch


How reproducible:
Always

Steps to Reproduce:
1. Deploy RHOSP 10 overcloud using director

2. Configure LBaaS using this documentation https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/10/html/networking_guide/sec-lbaas

3. Install the openstack-neutron-lbaas-ui package either via direct rpm install or via yum 

4. Restart the httpd service on the controller nodes and try to create LB using V2 panel.

This is what the logs show:

+++
2017-07-17 18:40:49,888 403037 WARNING horizon.exceptions Recoverable error: 'source_type'
2017-07-17 18:44:21,410 722955 WARNING horizon.exceptions Recoverable error: 'source_type'
2017-07-18 14:35:19,534 601132 WARNING horizon.exceptions Recoverable error: 'source_type'
2017-07-18 14:50:58,862 601131 WARNING horizon.exceptions Recoverable error: 'source_type'
+++

I could not find any other leads in the logs as to what might be causing this.


Actual results:

Load Balancers are not getting created through the UI

Expected results:

Load Balancers should be created successfully with the UI as the services are up and running on the controller nodes

Additional info:
screen shot of the error seen in the dashboard.

P.S I don't have enable_lb set to true in my env. it's been set to false.

Comment 4 Jeremy 2018-05-16 21:52:26 UTC
Hello,
Can we backport this fix to osp12. I see the target release is osp13. Also the workaround in commnet #3 does not work for osp12 we have tested by making the changes within the container and restarting the horizon container. Still doesn't work. Is there any other solution?

Comment 5 Radomir Dopieralski 2018-05-17 07:59:33 UTC
That is a question to the Neutron team, since the bug was apparently in the plugin.

Martin, can I assign the bug to you, or do you have a better idea how to handle it?

Comment 6 Martin Schuppert 2018-05-17 10:03:59 UTC
(In reply to Radomir Dopieralski from comment #5)
> That is a question to the Neutron team, since the bug was apparently in the
> plugin.
> 
> Martin, can I assign the bug to you, or do you have a better idea how to
> handle it?

I am not sure what the issue here is with OSP12. I am not from the neutron team,
so probably not the correct one to assign it if it is neutron related.

@Jeremy, I have just run a quick test on an OSP12 lab env and I am able to create a router when configured lbaasv2 and using the above steps from comment 3. What issue you see?


1) configure lbaasv2 
https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/12/html/networking_guide/sec-lbaas

2) install the openstack-neutron-lbaas-ui package
# yum install openstack-neutron-lbaas-ui

# rpm -qa |grep openstack-neutron-lbaas-ui
openstack-neutron-lbaas-ui-3.0.1-3.el7ost.noarch

3) enable the lb plugin in OPENSTACK_NEUTRON_NETWORK in the horizon container ( /var/lib/config-data/puppet-generated/horizon/etc/openstack-dashboard/local_settings )
    'enable_lb': True,

4) restart horizon container

I was able to create a route , set the gateway network and add ports via horizon:

$ neutron router-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------+----------------------------------+-------------------------------------------------------------------------------------------------------+------+
| id                                   | name         | tenant_id                        | external_gateway_info                                                                                 | ha   |
+--------------------------------------+--------------+----------------------------------+-------------------------------------------------------------------------------------------------------+------+
| ac50ea79-67e1-4a8a-982e-2a12d2aa8177 | test-horizon | 07c68d9e1b704d5e952ac9658105bf5c | {"network_id": "b16c68ae-8b49-4350-b932-bde8fb2bfeb5", "enable_snat": true, "external_fixed_ips": []} | True |

$ neutron l3-agent-list-hosting-router ac50ea79-67e1-4a8a-982e-2a12d2aa8177
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------------------+----------------+-------+----------+
| id                                   | host                     | admin_state_up | alive | ha_state |
+--------------------------------------+--------------------------+----------------+-------+----------+
| 0812d5fa-4ae5-4d2d-90e6-6249890b604b | controller-1.localdomain | True           | :-)   | standby  |
| a79c974b-9708-48ec-8959-ce954f354e73 | controller-2.localdomain | True           | :-)   | standby  |
| 4255d0f3-ea1d-49b9-8341-030a854a47af | controller-0.localdomain | True           | :-)   | active   |
+--------------------------------------+--------------------------+----------------+-------+----------+

Note: I have not done any further functional tests with the created router.

Comment 11 Beth White 2018-10-30 14:45:32 UTC
Closed
Bugs on needinfo > 30d 
Please re-open if needed.