Modfying interface with different class is not rejected
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Teresa Ho |
Bug Description
Brief Description
-------
Modifying existing pxeboot platform class to data class is not rejected. This leads to invalid configuration on compute and allows the user to unlock the compute host.
Severity
--------
Major
Steps to Reproduce
-------
1. Initial compute-0 config: Mgmt & Infra tagged on pxeboot network
[wrsroot@
+------
| uuid | name | class | type | vlan | ports | uses i/f | used by i/f | attributes | provider networks |
| | | | | id | | | | | |
+------
| 03752e08-
| 605cd718-
| e02152c2-
| | | | | | | | u'mgmt0'] | | |
| | | | | | | | | | |
| f849f250-
+------
2. Modify pxeboot platform to data without changing class to None.
[wrsroot@
+------
| Property | Value |
+------
| ifname | ens785f0 |
| iftype | ethernet |
| ports | [u'ens785f0'] |
| providernetworks | group0-data1 |
| imac | 3c:fd:fe:ac:61:6c |
| imtu | 9216 |
| ifclass | data |
| networks | pxeboot |
| aemode | None |
| schedpolicy | None |
| txhashpolicy | None |
| uuid | e02152c2-
| ihost_uuid | 273879c8-
| vlan_id | None |
| uses | [] |
| used_by | [u'vlan167', u'mgmt0'] |
| created_at | 2018-09-
| updated_at | 2018-09-
| sriov_numvfs | 0 |
| ipv4_mode | disabled |
| ipv6_mode | disabled |
| accelerated | [True] |
+------
3. Infra and mgmt tagged on data after modification.
[wrsroot@
+------
| uuid | name | class | type | vlan | ports | uses i/f | used by i/f | attributes | provider networks |
| | | | | id | | | | | |
+------
| 03752e08-
| 605cd718-
| e02152c2-
| | | | | | | | u'mgmt0'] | | |
| | | | | | | | | | |
| f849f250-
+------
4. unlocked compute-0 with unsupported configration and it allowed to unlock. Should unlock need to be rejected with invalid config?
[wrsroot@
+----+-
| id | hostname | personality | administrative | operational | availability |
+----+-
| 1 | controller-0 | controller | unlocked | enabled | available |
| 2 | controller-1 | controller | unlocked | enabled | available |
| 3 | storage-0 | storage | unlocked | enabled | available |
| 4 | storage-1 | storage | unlocked | enabled | available |
| 5 | compute-0 | compute | unlocked | disabled | offline |
| 6 | compute-1 | compute | unlocked | enabled | available |
| 7 | compute-2 | compute | unlocked | enabled | available |
| 8 | compute-3 | compute | unlocked | enabled | available |
| 9 | compute-4 | compute | unlocked | enabled | available |
+----+-
Expected Behavior
------------------ -------
Modying Interface with platform class to data class should be rejected.
Actual Behavior
-------
Modification is allowed.
[wrsroot@
+------
| Property | Value |
+------
| ifname | ens785f0 |
| iftype | ethernet |
| ports | [u'ens785f0'] |
| providernetworks | group0-data1 |
| imac | 3c:fd:fe:ac:61:6c |
| imtu | 9216 |
| ifclass | data |
| networks | pxeboot |
| aemode | None |
| schedpolicy | None |
| txhashpolicy | None |
| uuid | e02152c2-
| ihost_uuid | 273879c8-
| vlan_id | None |
| uses | [] |
| used_by | [u'vlan167', u'mgmt0'] |
| created_at | 2018-09-
| updated_at | 2018-09-
| sriov_numvfs | 0 |
| ipv4_mode | disabled |
| ipv6_mode | disabled |
| accelerated | [True] |
+------
Reproducibility
---------------
Reproducible
System Configuration
-------
Any
Branch/Pull Time/Commit
-------
StarlingX master as of 2018-09-18_20-18-00
tags: |
added: stx.1.0 removed: stx.2018.10 |
Targeting stx.2018.10; this issue is related to the Generalized Interface and Network Configuration Feature: /storyboard. openstack. org/#!/ story/2003087
https:/
which was recently submitted