[nailgun] cannot reassign networks

Bug #1425907 reported by Aleksey Kasatkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Artem Roma
6.0.x
Won't Fix
Medium
Fuel Python (Deprecated)
6.1.x
Won't Fix
Medium
Fuel Python (Deprecated)
7.0.x
Won't Fix
Medium
Fuel Python (Deprecated)

Bug Description

When mapping of some networks is lost (e.g. https://bugs.launchpad.net/fuel/+bug/1425901 ) API does not allow to map networks back to node's interfaces. It only allows to remap networks which are mapped to node already.

The problem is in validator: https://github.com/stackforge/fuel-web/blob/master/nailgun/nailgun/api/v1/validators/network.py#L290
It should check against networks which can be available for node instead of networks which are on node currently.

tags: added: customer-found
Changed in fuel:
assignee: nobody → Fuel Python Team (fuel-python)
Dmitry Pyzhov (dpyzhov)
tags: added: size-s
Dmitry Pyzhov (dpyzhov)
tags: added: feature-validation
removed: nailgun
Revision history for this message
Nikolay Markov (nmarkov) wrote :

I think we need to discuss the desired behaviour thoroughly and then stick to it. Not sure if it can fit in 6.1, though.

Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

It is better be solved in 7.0 as adv-networking will make big impact on related stuff. Main cause of disappearing of interfaces is fixed in https://bugs.launchpad.net/fuel/+bug/1425901 so this issue is less painful now.

Changed in fuel:
milestone: 6.1 → 7.0
Changed in fuel:
milestone: 7.0 → 6.1
status: Triaged → New
Changed in fuel:
status: New → Triaged
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

https://bugs.launchpad.net/fuel/+bug/1425901 was fixed and interfaces are not changeable during/after deployment. So, it is enough to re-add node into environment if interfaces changes on it has led to loss of assigned networks.

Changed in fuel:
status: Triaged → Won't Fix
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
status: Won't Fix → Triaged
milestone: 6.1 → 7.0
status: Triaged → Won't Fix
status: Won't Fix → Triaged
Revision history for this message
Aleksey Kasatkin (alekseyk-ru) wrote :

It is relevant in 7.0 only in case when network template is not in use.
Move to 8.0 as it's Medium and it has workaround.

tags: added: known-issue
Changed in fuel:
milestone: 7.0 → 8.0
no longer affects: fuel/8.0
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Ivan Kliuk (ivankliuk)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Triaged → In Progress
Changed in fuel:
assignee: Ivan Kliuk (ivankliuk) → Fuel Python Team (fuel-python)
Changed in fuel:
status: Triaged → In Progress
Revision history for this message
Dmitry Pyzhov (dpyzhov) wrote :

I'm not sure if we should backport the fix to 7.0-updates. Looks risky to me.

Dmitry Pyzhov (dpyzhov)
no longer affects: fuel/8.0.x
Dmitry Pyzhov (dpyzhov)
tags: added: tricky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

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

commit e3207a9dff5b77590e5884460c28d4cd014cf9f8
Author: Ivan Kliuk <email address hidden>
Date: Thu Sep 17 16:25:11 2015 +0300

    Refactor network availability for node check

    Code of NetAssignmentValidator.validate updated with additional check
    which determines whether networks in input data can be assigned to node.
    The decision is made upon availability of particular net for node group
    in which the node is included. The validation is meant to substitute
    another check that does the same yet uses already assigned to the node's
    nics networks which has produced errorful behavior in some cases (see
    the bug's description)

    Change-Id: I028b50e32d7bf1b9d02674b861e2e5ff24b4f2d5
    Closes-bug: #1425907

Changed in fuel:
status: In Progress → Fix Committed
Dmitry Pyzhov (dpyzhov)
tags: added: area-python
tags: added: wontfix-risky
tags: added: on-verification
Revision history for this message
ElenaRossokhina (esolomina) wrote :

Verified on iso#570
[root@nailgun ~]# cat /etc/fuel/version.yaml
VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "8.0"
  api: "1.0"
  build_number: "570"
  build_id: "570"
  fuel-nailgun_sha: "558ca91a854cf29e395940c232911ffb851899c1"
  python-fuelclient_sha: "4f234669cfe88a9406f4e438b1e1f74f1ef484a5"
  fuel-agent_sha: "658be72c4b42d3e1436b86ac4567ab914bfb451b"
  fuel-nailgun-agent_sha: "b2bb466fd5bd92da614cdbd819d6999c510ebfb1"
  astute_sha: "b81577a5b7857c4be8748492bae1dec2fa89b446"
  fuel-library_sha: "c2a335b5b725f1b994f78d4c78723d29fa44685a"
  fuel-ostf_sha: "3bc76a63a9e7d195ff34eadc29552f4235fa6c52"
  fuel-mirror_sha: "fb45b80d7bee5899d931f926e5c9512e2b442749"
  fuelmenu_sha: "78ffc73065a9674b707c081d128cb7eea611474f"
  shotgun_sha: "63645dea384a37dde5c01d4f8905566978e5d906"
  network-checker_sha: "a43cf96cd9532f10794dce736350bf5bed350e9d"
  fuel-upgrade_sha: "616a7490ec7199f69759e97e42f9b97dfc87e85b"
  fuelmain_sha: "d605bcbabf315382d56d0ce8143458be67c53434"

Verification Scenario (after discussion with originator):
-bootstrap node and add it into cluster
-select network i/f with assigned network and shutdown it on the new node
-try to re-assign network from switched-off interface to another one
-turn i/f on and assign network to it

tags: removed: on-verification
Changed in fuel:
status: Fix Committed → Fix Released
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.