Broken validation for empty dns list

Bug #1613614 reported by guochunting
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Vladimir Kozhukalov
Mitaka
Fix Released
Medium
Vladimir Kozhukalov

Bug Description

Detailed bug description:
  I let external dns blank when installing fuel 9.0, then create an openstack environment , can not get the "+" button in Openstack environment Network-Settings-Other-Host OS DNS Server.
Steps to reproduce:
  1. Install Fuel 9.0 with empty external empty dns.
  2. Create a new Openstack environment in fuel web UI.
  3. enter into page: Network-Settings-Other, i cannot get the "+" button to add dns servers
  4. make some modification in setttings ,then save.

Expected results:
  without any error.
  Or
  got the "+" button to add some dns servers

Actual result:
   no "+" button to add dns server
  and
  there is an error
    OpenStack Settings Configuration Error
    [dns_list] None is not of type 'array' Failed validating 'type' in schema['properties'] ['value']: {'items': {'type':'string'}, 'minItem': 1, 'type': 'array'} On instance['value']:None

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
milestone: none → 10.0
Changed in fuel:
assignee: nobody → Fuel Sustaining (fuel-sustaining-team)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Fuel UI Team (fuel-ui)
tags: added: area-ui
Revision history for this message
Julia Aranovich (jkirnosova) wrote :

According to schema dns_list should be an array and contain at least 1 item.
So, user should not be able to leave dns list blank during installation.

Or the schema should be changed accordingly to allow user not to set dns list.

tags: added: area-python
removed: area-ui
Changed in fuel:
assignee: Fuel UI Team (fuel-ui) → Fuel Sustaining (fuel-sustaining-team)
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Fuel UI Team (fuel-ui)
assignee: Fuel UI Team (fuel-ui) → Fuel Sustaining (fuel-sustaining-team)
summary: - can not save settings with empty dns in Fuel9.0 Web UI
+ Broken validation for empty dns
summary: - Broken validation for empty dns
+ Broken validation for empty dns list
Changed in fuel:
importance: High → Medium
Revision history for this message
Dmitry Klenov (dklenov) wrote :

Found in one of customer's environments, setting 'customer-found' tag.

tags: added: customer-found
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Vladimir Kozhukalov (kozhukalov)
Anton Matveev (amatveev)
tags: added: sla1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/389195

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/389664

Revision history for this message
Vladimir Kozhukalov (kozhukalov) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (stable/mitaka)

Reviewed: https://review.openstack.org/389195
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=bb6b3605b508e5caf68ef2d6c90bb0c94be98e62
Submitter: Jenkins
Branch: stable/mitaka

commit bb6b3605b508e5caf68ef2d6c90bb0c94be98e62
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Oct 20 16:18:15 2016 +0300

    Expose add botton when text_list is empty

    The issue is that when a text_list is empty
    there is nothing to render including 'add'
    and 'delete' buttons. We should provide the
    possibility to add items when the list is empty.

    Change-Id: I991ec3a885a6462f4a8afd7f96591fd7ec82a0b4
    Closes-Bug: #1613614

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (stable/mitaka)

Related fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/391742

tags: added: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/391757

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/391758

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/391760

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/391761

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/391763

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (stable/mitaka)

Reviewed: https://review.openstack.org/391763
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=229bd818059f793e272fb97feefa7631fe6dc0b7
Submitter: Jenkins
Branch: stable/mitaka

commit 229bd818059f793e272fb97feefa7631fe6dc0b7
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 12:12:09 2016 +0300

    Fix styles of text_list setting with empty value

    * fixed Add Value button margins
    * fixed description layout
    * DNS nameservers min=1 limit restored

    Partial-Bug: #1613614

    Change-Id: Idc175e3f629674e764a3921ef2f85e3278131cba

tags: added: in-stable-mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (master)

Reviewed: https://review.openstack.org/391761
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=b3718711a0ad58ace253397ebc9645ce40858582
Submitter: Jenkins
Branch: master

commit b3718711a0ad58ace253397ebc9645ce40858582
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Oct 20 16:18:15 2016 +0300

    Expose add botton when text_list is empty

    The issue is that when a text_list is empty
    there is nothing to render including 'add'
    and 'delete' buttons. We should provide the
    possibility to add items when the list is empty.

    Change-Id: I991ec3a885a6462f4a8afd7f96591fd7ec82a0b4
    Closes-Bug: #1613614
    (cherry picked from commit bb6b3605b508e5caf68ef2d6c90bb0c94be98e62)

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (master)

Fix proposed to branch: master
Review: https://review.openstack.org/392132

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (master)

Reviewed: https://review.openstack.org/392132
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=c16a8d46e03a3f8282303558d10d02e1b870db02
Submitter: Jenkins
Branch: master

commit c16a8d46e03a3f8282303558d10d02e1b870db02
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 12:12:09 2016 +0300

    Fix styles of text_list setting with empty value

    * fixed Add Value button margins
    * fixed description layout
    * DNS nameservers min=1 limit restored

    Partial-Bug: #1613614

    Change-Id: Idc175e3f629674e764a3921ef2f85e3278131cba

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/391742
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=670d71fb92e59e592b8f5c4a9108da5c5dac96d1
Submitter: Jenkins
Branch: stable/mitaka

commit 670d71fb92e59e592b8f5c4a9108da5c5dac96d1
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 11:18:59 2016 +0300

    Forbid empty value for NTP server list

    Default minimum of values in text_list setting value list
    was changed from 1 to 0 here: https://review.openstack.org/#/c/389195/
    So, min=1 limit should be restored
    for "NTP server list" setting not to change its functionality.

    Related-Bug: #1613614

    Change-Id: If354f86c5cd11fe7eb0dc07c7c4d1048dcb75363

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/389664
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=02927123f4081d2589281cedd5bb54074d7affed
Submitter: Jenkins
Branch: stable/mitaka

commit 02927123f4081d2589281cedd5bb54074d7affed
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Oct 21 14:11:47 2016 +0300

    text_list attributes could be empty

    The issue is that sometimes users want
    to be able to have emtpy lists for
    some attributes like for example upstream
    dns.

    Change-Id: Ib96b0cb051892e50f26a46ce33eeb477ef2a36f1
    Related-Bug: #1613614

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/394350

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/394350
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=7f7c2a526e764b9027e0d1befd1f913173f494ea
Submitter: Jenkins
Branch: master

commit 7f7c2a526e764b9027e0d1befd1f913173f494ea
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 11:18:59 2016 +0300

    Forbid empty value for NTP server list

    Default minimum of values in text_list setting value list
    was changed from 1 to 0 here: https://review.openstack.org/#/c/389195/
    So, min=1 limit should be restored
    for "NTP server list" setting not to change its functionality.

    Related-Bug: #1613614

    Change-Id: If354f86c5cd11fe7eb0dc07c7c4d1048dcb75363
    (cherry picked from commit 670d71fb92e59e592b8f5c4a9108da5c5dac96d1)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (stable/newton)

Reviewed: https://review.openstack.org/391760
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=f202c4cc29eb0081d79923208d074fbf5b0c3741
Submitter: Jenkins
Branch: stable/newton

commit f202c4cc29eb0081d79923208d074fbf5b0c3741
Author: Vladimir Kozhukalov <email address hidden>
Date: Thu Oct 20 16:18:15 2016 +0300

    Expose add botton when text_list is empty

    The issue is that when a text_list is empty
    there is nothing to render including 'add'
    and 'delete' buttons. We should provide the
    possibility to add items when the list is empty.

    Change-Id: I991ec3a885a6462f4a8afd7f96591fd7ec82a0b4
    Closes-Bug: #1613614
    (cherry picked from commit bb6b3605b508e5caf68ef2d6c90bb0c94be98e62)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-ui (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/396588

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-web (stable/newton)

Related fix proposed to branch: stable/newton
Review: https://review.openstack.org/396594

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-ui (stable/newton)

Reviewed: https://review.openstack.org/396588
Committed: https://git.openstack.org/cgit/openstack/fuel-ui/commit/?id=ef5969399cbd9eff88a88d3ff71a254fe2c907ce
Submitter: Jenkins
Branch: stable/newton

commit ef5969399cbd9eff88a88d3ff71a254fe2c907ce
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 12:12:09 2016 +0300

    Fix styles of text_list setting with empty value

    * fixed Add Value button margins
    * fixed description layout
    * DNS nameservers min=1 limit restored

    Partial-Bug: #1613614

    Change-Id: Idc175e3f629674e764a3921ef2f85e3278131cba
    (cherry picked from commit c16a8d46e03a3f8282303558d10d02e1b870db02)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (stable/newton)

Reviewed: https://review.openstack.org/396594
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=cc14adae6774d0c896e752ce0a124e23d643ff0d
Submitter: Jenkins
Branch: stable/newton

commit cc14adae6774d0c896e752ce0a124e23d643ff0d
Author: Julia Aranovich <email address hidden>
Date: Mon Oct 31 11:18:59 2016 +0300

    Forbid empty value for NTP server list

    Default minimum of values in text_list setting value list
    was changed from 1 to 0 here: https://review.openstack.org/#/c/391760/
    So, min=1 limit should be restored
    for "NTP server list" setting not to change its functionality.

    Related-Bug: #1613614

    Change-Id: If354f86c5cd11fe7eb0dc07c7c4d1048dcb75363
    (cherry picked from commit 670d71fb92e59e592b8f5c4a9108da5c5dac96d1)
    (cherry picked from commit 7f7c2a526e764b9027e0d1befd1f913173f494ea)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/391757
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=f548c96209b003d990c46a4e38e05715d952ca72
Submitter: Jenkins
Branch: stable/newton

commit f548c96209b003d990c46a4e38e05715d952ca72
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Oct 21 14:11:47 2016 +0300

    text_list attributes could be empty

    The issue is that sometimes users want
    to be able to have emtpy lists for
    some attributes like for example upstream
    dns.

    Change-Id: Ib96b0cb051892e50f26a46ce33eeb477ef2a36f1
    Related-Bug: #1613614

Revision history for this message
Dmitry Belyaninov (dbelyaninov) wrote :

Verified on snapshot #585

tags: removed: on-verification
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/fuel-ui 11.0.0.0rc1

This issue was fixed in the openstack/fuel-ui 11.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/391758
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=4f307da77164735c7261ea6f727fbc7d79ca1767
Submitter: Jenkins
Branch: master

commit 4f307da77164735c7261ea6f727fbc7d79ca1767
Author: Vladimir Kozhukalov <email address hidden>
Date: Fri Oct 21 14:11:47 2016 +0300

    text_list attributes could be empty

    The issue is that sometimes users want
    to be able to have emtpy lists for
    some attributes like for example upstream
    dns.

    Change-Id: Ib96b0cb051892e50f26a46ce33eeb477ef2a36f1
    Related-Bug: #1613614

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.