MTU is invalid by default
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
High
|
Julia Aranovich | ||
Newton |
Fix Released
|
High
|
Julia Aranovich |
Bug Description
Steps to reproduce:
1. create an environment (any settings)
2. add a node to the environment and go to the node interfaces configuration screen
3. check the node NICS' settings
Expected result: all NICS' settings are valid by default
Actual result: MTU setting is marked as invalid on UI for each NIC.
UI highlights MTU field because it has "number" type and "null" value. "null" isn't recognized by UI as valid number input value.
Proposed solution is to change MTU settings in the following way:
mtu: {
metadata: {...},
use_custom_mtu: {
type: 'checkbox'
value: false,
label: 'Use custom MTU value',
description: ?,
weight: 10
},
custom_mtu: {
type: 'number',
value: 42,
min: 42,
max: ?,
weight: 20,
label: 'Custom MTU value',
description: ?,
restrictions: ['nic_attribute
}
}
This will guarantee having not a null value for number input and will make MTU settings UX more clear.
Changed in fuel: | |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Andriy Popovych (popovych-andrey) |
Changed in fuel: | |
status: | Confirmed → In Progress |
Changed in fuel: | |
status: | In Progress → Fix Committed |
tags: | added: on-verification |
tags: | added: on-verification |
Seems that this bug affects change of setting for NFV. It is impossible to enable sr-iov and dpdk on interafce nither via FUEL UI or API:
Update attributes of nodes ... 2016-11-30 12:19:51 - INFO factory.py:36 -- ------- ------- ------- ------- ------- ------[ START Step 009. Update attributes of nodes ]------ ------- ------- ------- ------- ------- ------- >>>
<<< -------
2016-11-30 12:19:51 - INFO fuel_web_ client. py:1148 -- Get nailgun node by slave-02 devops node env.py: 130 -- Set `cpu_pinning/ nova/value` to `18` client. py:1148 -- Get nailgun node by slave-03 devops node env.py: 130 -- Set `hugepages/ nova/value/ 2048` to `16000` env.py: 130 -- Set `hugepages/ nova/value/ 1048576` to `10` client. py:1148 -- Get nailgun node by slave-04 devops node _Config_ sr-iov_ ceph.Step009_ update_ nodes at 0x7fadbb2d8488> _Config_ sr-iov_ ceph.Step009_ update_ nodes at 0x7fadbb2d8488> _Config_ sr-iov_ ceph.Step009_ update_ nodes at 0x7fadbb2d8488> _Config_ sr-iov_ ceph.Step009_ update_ nodes at 0x7fadbb2d8488> ======= ======= ======= ======= =====[ FINISH Deploy cluster for tests CASE TOOK 49.0 min 33 sec ]====== ======= ======= ======= ======= ======= >>>
2016-11-30 12:19:51 - INFO test_deploy_
2016-11-30 12:19:51 - INFO fuel_web_
2016-11-30 12:19:52 - INFO test_deploy_
2016-11-30 12:19:52 - INFO test_deploy_
2016-11-30 12:19:52 - INFO fuel_web_
FAIL
Run network checker ... SKIP: Failure in <function Case_DeployEnv_
Deploy environment ... SKIP: Failure in <function Case_DeployEnv_
Run network checker ... SKIP: Failure in <function Case_DeployEnv_
Run health checker ... SKIP: Failure in <function Case_DeployEnv_
Finish test case ... 2016-11-30 12:19:53 - INFO base.py:116 --
<<< =======
ok
======= ======= ======= ======= ======= ======= ======= ======= ======= ======= ------- ------- ------- ------- ------- ------- ------- ------- ------- jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-devops- venv/local/ lib/python2. 7/site- packages/ proboscis/ case.py" , line 296, in testng_ method_ mistake_ capture_ func ty.capture_ type_error( s_func) jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-devops- venv/local/ lib/python2. 7/site- packages/ proboscis/ compatability/ exceptions_ 2_6.py" , line 27, in capture_type_error jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-devops- venv/local/ lib/python2. 7/site- packages/ proboscis/ case.py" , line 350, in func test_case. state.get_ state() ) jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-qa/ system_ test/core/ factory. py", line 37, in wrapper jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-qa/ system_ test/tests/ test_deploy_ env.py" , line 235, in update_nodes s_list= interfaces_ list) jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- scripts/ fuel-qa/ system_ test/tests/ test_deploy_ env.py" , line 205, in _update_ node_interfaces values= interface_ dict) jenkins/ workspace/ 9.x_SR- IOV_Ceph_ baremetal/ mos-ci- deployment- ...
FAIL: Update attributes of nodes
-------
Traceback (most recent call last):
File "/home/
compatabili
File "/home/
func()
File "/home/
func(
File "/home/
result = func(*args, **kwargs)
File "/home/
replacement
File "/home/
dict_
File "/home/