Can't upload network template with private interface without vlan tag

Bug #1602817 reported by Max Lvov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Georgy Kibardin
8.0.x
Confirmed
Medium
Dmitry Dmitriev
Mitaka
Fix Committed
Medium
Max Yatsenko

Bug Description

Here is template http://pastebin.com/M6LmQnQ3
What I do:
1 Create env
2 Add some nodes to cluster
3 In template remove .999 from prv interface
4 Try to upload

What I expect:
Template uploaded:
What I get:
500 Internal server error ('id')
and no details in any log

Another way:
Do not proceed step 2
Ensure you don't have any nodes in cluster
Upload template.
Add nodes to cluster.

What I expect:
Nodes assigned
What I get:
I can't assign nodes to any role with private network

Also, this bug affected by https://bugs.launchpad.net/fuel/+bug/1539115 which makes troubleshooting very difficult.

Revision history for this message
Max Lvov (usrleon) wrote :

This bug seems to appear only if I use private network mapped to physical interface and doesn't appear if use sub-interface like eth0.999
Once I will have access to env, I will attach network template.

Revision history for this message
Max Lvov (usrleon) wrote :

Fixed bug cation and description

description: updated
summary: - Can't upload network template when nodes in cluster
+ Can't upload network template with private interface without vlan tag
Dmitry Klenov (dklenov)
tags: added: area-python
no longer affects: fuel/newton
Revision history for this message
Max Lvov (usrleon) wrote :

Sorry, forgot to mention this was on 8.0

Revision history for this message
Max Lvov (usrleon) wrote :

Ryan Moe has the fix for that. It works, but he wants to test it before to publish.

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → l23network (l23network)
tags: added: customer-found
Revision history for this message
Dmitry Dmitriev (dmdmitriev) wrote :

I have successfully uploaded template without VLAN tag on:

- Fuel 8
- Fuel 8 MU2

Template will be attached.

Revision history for this message
Dmitry Dmitriev (dmdmitriev) wrote :
Revision history for this message
Max Lvov (usrleon) wrote :

This patch was created by Ryan Moe and fixed my problem.

Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Registry Administrators (registry) → Fuel Sustaining (fuel-sustaining-team)
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Dmitry Guryanov (dguryanov)
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/391410

Changed in fuel:
status: Confirmed → In Progress
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
assignee: Dmitry Guryanov (dguryanov) → Fuel Sustaining (fuel-sustaining-team)
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Alexander Kislitsky (akislitsky)
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 10.0 → 10.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-web (master)

Change abandoned by Fuel DevOps Robot (<email address hidden>) on branch: master
Review: https://review.openstack.org/391410
Reason: This review is > 4 weeks without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
Max Lvov (usrleon) wrote :

Just affected this bug again on 9.1. Patch again helped.

Revision history for this message
Max Lvov (usrleon) wrote :

Some correction:
this time it was not private, but private-like custom network.

Revision history for this message
Max Lvov (usrleon) wrote :

Could someone finish that abandoned proposal?

Changed in fuel:
assignee: Alexander Kislitsky (akislitsky) → Georgy Kibardin (gkibardin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/391410
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=392f3859ff501489517668291b01f7fc46e759c8
Submitter: Jenkins
Branch: master

commit 392f3859ff501489517668291b01f7fc46e759c8
Author: Dmitry Guryanov <email address hidden>
Date: Fri Oct 28 13:20:09 2016 +0300

    Calculation of interface types from templates fixed

    In case of adding port on bond 'ether' type was set
    for interface. This was root cause of the issue -
    bond was processed as nic.

    Closes-Bug: #1602817
    Change-Id: I6a5136ce9ce5398aa6d55c795857769a7a41f7b0

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/mitaka)

Reviewed: https://review.openstack.org/482896
Committed: https://git.openstack.org/cgit/openstack/fuel-web/commit/?id=7a9cd4197bc0e1373cc2aeb2f3ff9a5f6a9c7485
Submitter: Jenkins
Branch: stable/mitaka

commit 7a9cd4197bc0e1373cc2aeb2f3ff9a5f6a9c7485
Author: Max Yatsenko <email address hidden>
Date: Wed Jul 12 13:34:03 2017 +0300

    Calculation of interface types from templates fixed

      In case of adding port on bond 'ether' type was set
    for interface. This was root cause of the issue -
    bond was processed as nic.
      This patch was based on [1] patch, but it was
    adapted for 'mitaka'.

    [1] https://review.openstack.org/#/c/391410/

    Closes-Bug: #1602817

    Change-Id: I2fb14eac3874796bfb099db0b681db253351850c

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.