User can use only 2 Guest OS DNS Servers

Bug #1493392 reported by Anastasia Palkina on 2015-09-08
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
High
Ivan Kliuk
7.0.x
High
Ivan Kliuk
8.0.x
High
Ivan Kliuk

Bug Description

1. Create environment by default
2. Open "Networks" tab
3. Click "Plus" button for "Guest OS DNS Servers" and add new DNS, for example, 10.128.0.1
4. Click "Save Settings" button
5. Error appeared (see first screen)

Verification failed.
[u'8.8.4.4', u'8.8.8.8', u'10.128.0.1'] is too long Failed validating 'maxItems' in schema['properties']['networking_parameters']['properties']['dns_nameservers']: {'items': {'anyOf': [{'format': 'ipv4'}, {'format': 'ipv6'}], 'type': 'string'}, 'maxItems': 2, 'minItems': 2, 'type': 'array', 'uniqueItems': True} On instance['networking_parameters']['dns_nameservers']: [u'8.8.4.4', u'8.8.8.8', u'10.128.0.1']

6. Click "Minus" button for two fields and try to save settings
7. Error appeared (see second screen)

Verification failed.
[u'8.8.4.4'] is too short Failed validating 'minItems' in schema['properties']['networking_parameters']['properties']['dns_nameservers']: {'items': {'anyOf': [{'format': 'ipv4'}, {'format': 'ipv6'}], 'type': 'string'}, 'maxItems': 2, 'minItems': 2, 'type': 'array', 'uniqueItems': True} On instance['networking_parameters']['dns_nameservers']: [u'8.8.4.4']

So user can use only 2 Guest OS DNS Servers in reality.

{"build_id": "287", "build_number": "287", "release_versions": {"2015.1.0-7.0": {"VERSION": {"build_id": "287", "build_number": "287", "api": "1.0", "fuel-library_sha": "43224223dab8cf9627b5ecf737e60216a3fdd114", "nailgun_sha": "46a7a2177a0b7ef91422284c1c90295fee8f5c84", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "1ce8ecd8beb640f2f62f73435f4e18d1469979ac", "astute_sha": "a717657232721a7fafc67ff5e1c696c9dbeb0b95", "fuel-ostf_sha": "1f08e6e71021179b9881a824d9c999957fcc7045", "release": "7.0", "fuelmain_sha": "6b83d6a6a75bf7bca3177fcf63b2eebbf1ad0a85"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "43224223dab8cf9627b5ecf737e60216a3fdd114", "nailgun_sha": "46a7a2177a0b7ef91422284c1c90295fee8f5c84", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d7027952870a35db8dc52f185bb1158cdd3d1ebd", "openstack_version": "2015.1.0-7.0", "fuel-agent_sha": "082a47bf014002e515001be05f99040437281a2d", "production": "docker", "python-fuelclient_sha": "1ce8ecd8beb640f2f62f73435f4e18d1469979ac", "astute_sha": "a717657232721a7fafc67ff5e1c696c9dbeb0b95", "fuel-ostf_sha": "1f08e6e71021179b9881a824d9c999957fcc7045", "release": "7.0", "fuelmain_sha": "6b83d6a6a75bf7bca3177fcf63b2eebbf1ad0a85"}

Dmitry Pyzhov (dpyzhov) on 2015-09-08
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
Anastasia Palkina (apalkina) wrote :
summary: - [u'8.8.4.4', u'8.8.8.8', u'10.128.0.1'] is too long Failed validating
- 'maxItems'
+ User can use only 2 Guest OS DNS Servers
description: updated
description: updated
Ivan Kliuk (ivankliuk) on 2015-09-08
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Ivan Kliuk (ivankliuk)
Ivan Kliuk (ivankliuk) on 2015-09-08
Changed in fuel:
status: New → In Progress

Reviewed: https://review.openstack.org/221657
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=d911865a4c0e72fe7d8ba2503e788c87987a097d
Submitter: Jenkins
Branch: master

commit d911865a4c0e72fe7d8ba2503e788c87987a097d
Author: Ivan Kliuk <email address hidden>
Date: Sat Sep 5 02:40:03 2015 +0300

    Change validation schema for DNS server list

    IP address list is used instead of IP address range for validation DNS server
    list. Added positive cases in validators' unit tests.

    Change-Id: I7f367ffc863bddde84526c562a5c5cee719ad59a
    Closes-bug: #1493392

Changed in fuel:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/221340
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=6265bb38b33154b21c9b21c96a81c22d8900a90c
Submitter: Jenkins
Branch: stable/7.0

commit 6265bb38b33154b21c9b21c96a81c22d8900a90c
Author: Ivan Kliuk <email address hidden>
Date: Sat Sep 5 02:40:03 2015 +0300

    Change validation schema for DNS server list

    IP address list is used instead of IP address range for validation DNS server
    list. Added positive cases in validators' unit tests.

    Change-Id: I7f367ffc863bddde84526c562a5c5cee719ad59a
    Closes-bug: #1493392

Already merged to master. Setting status to 'Fix committed' for 8.0 milestone

tags: added: on-verification
Vladimir Khlyunev (vkhlyunev) wrote :

ISO 298 (RC3) - Verified

Anastasia Palkina (apalkina) wrote :

Verified on ISO #108

"build_id": "108", "openstack_version": "2015.1.0-8.0", "build_number": "108", "release_versions": {"2015.1.0-8.0": {"VERSION": {"build_id": "108", "openstack_version": "2015.1.0-8.0", "build_number": "108", "api": "1.0", "fuel-library_sha": "acfcfd289ca454585687b6ff9651b53e4ffaf0cd", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d66f188a1832a9c23b04884a14ef00fc5605ec6d", "fuel-nailgun_sha": "ec56b54491ecb0182f66e675f549825abc1a96ee", "fuel-agent_sha": "e881f0dabd09af4be4f3e22768b02fe76278e20e", "production": "docker", "python-fuelclient_sha": "286939d3be220828f52e73b65928ed39662e1853", "astute_sha": "0f753467a3f16e4d46e7e9f1979905fb178e4d5b", "fuel-ostf_sha": "37c5d6113408a29cabe0f416fe99cf20e2bca318", "release": "8.0", "fuelmain_sha": "8e5e75302b2534fd38e4b41b795957111ac75543"}}}, "auth_required": true, "api": "1.0", "fuel-library_sha": "acfcfd289ca454585687b6ff9651b53e4ffaf0cd", "feature_groups": ["mirantis"], "fuel-nailgun-agent_sha": "d66f188a1832a9c23b04884a14ef00fc5605ec6d", "fuel-nailgun_sha": "ec56b54491ecb0182f66e675f549825abc1a96ee", "fuel-agent_sha": "e881f0dabd09af4be4f3e22768b02fe76278e20e", "production": "docker", "python-fuelclient_sha": "286939d3be220828f52e73b65928ed39662e1853", "astute_sha": "0f753467a3f16e4d46e7e9f1979905fb178e4d5b", "fuel-ostf_sha": "37c5d6113408a29cabe0f416fe99cf20e2bca318", "release": "8.0", "fuelmain_sha": "8e5e75302b2534fd38e4b41b795957111ac75543"

Dmitry Pyzhov (dpyzhov) on 2015-10-22
tags: added: area-python
Dmitry Pyzhov (dpyzhov) on 2015-11-30
Changed in fuel:
milestone: 7.0 → 8.0
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers