Bug 1802411

Summary: “Create network” dialog box works incorrectly after checking invalid values in “Allocation Pools” area
Product: Red Hat OpenStack Reporter: Masayuki Igawa <migawa>
Component: python-django-horizonAssignee: Tatiana Ovchinnikova <tovchinn>
Status: CLOSED ERRATA QA Contact: Beth White <beth.white>
Severity: medium Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: ahyder, athomas, jrist, rdopiera, tovchinn
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-django-horizon-13.0.3-9.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-16 10:58:53 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
shrunk dialog box none

Description Masayuki Igawa 2020-02-13 05:36:14 UTC
Created attachment 1662872 [details]
shrunk dialog box

Description of problem:

When I make a network and subnet by the dialog box in the horizon dashboard, the box becomes something wrong (see attachments) if I submit wrong values in the “Allocation Pools” area then press the “Next” button.

After that, an error message (ie “Start address is larger than end address(value=x.x.x.x,x.x.x.x)”) shows up which is expected. However, I also can press the “Next” button even if it’s disabled. After pressing the disabled “Next” button, the box gets shrunk (“Enable DHCP”, “Allocation Pools”, “DNS Name Servers” and “Host Routes” areas disappear).

Then, I press the “Back” button and press the “Next” button again to move to the “Subnet Details” tab, “Create” button shows up strangely. And, I press the “Create” button, a network and subnet are created without DHCP and specified Allocation Pools. This should be a wrong behavior.

Version-Release number of selected component (if applicable):
 13(Queens) at least


How reproducible:
 Always

Steps to Reproduce:

1. Access http://HORIZON-SERVER/dashboard/project/networks/
2. Press “Create Network”
3. Enter “Network Name” in the “Network” tab, “Subnet Name”, “Network Address” in the “Subnet” tab whatever you want. Then enter a wrong “Allocation Pools” in the “Subnet Details” tab and press the “Create” button.
4. An error message shows up.
5. Press the disabled “Next” button.
6. The dialog box gets shrunk. (This is weird behavior.)
7. Press the “Back” button in the “Subnet Details” tab, then the “Next” button in the “Subnet” tab again.
8. Press the “Create” button in the “Subnet Details” tab.
9. A network and subnet creation is succeeded.

Actual results:
* The dialog becomes incorrect.
  * The “Create” button works partially. But the dialog is broken after pressing the button.
* An undesirable network is created after pushing the “Create” button. For example, DHCP is disabled, the subnet’s DHCP is disabled and “IP Allocation Pools” is the default setting.

Expected results:
* The dialog should be consistent always.
  * The “Create” button shouldn’t work. It should be disabled when the value is incorrect.
* Correct values should be applied or just raise an error at first.

Comment 17 errata-xmlrpc 2021-06-16 10:58:53 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 (Red Hat OpenStack Platform 13.0 bug fix and enhancement 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://access.redhat.com/errata/RHBA-2021:2385