Exception on data import in racks

Bug #1595505 reported by Igor Shishkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
Medium
Alexander Lomski

Bug Description

2016-06-23 11:50:57,338 ERROR importers.tasks Task importers.tasks.bind_dcim_servers_to_inventory failed: .
Traceback (most recent call last):
  File "/usr/share/racks/webapp/importers/tasks.py", line 26, in task
    func(*args, **kwargs)
  File "/usr/share/racks/webapp/importers/tasks.py", line 69, in bind_dcim_servers_to_inventory
    importers.switches.bind_dcim_servers_to_inventory()
  File "/usr/share/racks/webapp/importers/switches.py", line 218, in bind_dcim_servers_to_inventory
    assert len(ports_with_address_and_server) == 1
AssertionError

Igor Shishkin (teran)
information type: Public → Private
Changed in fuel:
status: New → Confirmed
information type: Private → Public
Changed in fuel:
assignee: Fuel Infra Apps (fuel-infra-apps) → Alexander Lomski (aliaksandr-lomski)
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix proposed to fuel-infra/packages/python-django-racks (master)

Fix proposed to branch: master
Change author: Alexander Lomski <email address hidden>
Review: https://review.fuel-infra.org/22527

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Fuel Devops McRobotson (fuel-devops-robot) wrote : Fix merged to fuel-infra/packages/python-django-racks (master)

Reviewed: https://review.fuel-infra.org/22527
Submitter: Alexander Charykov <email address hidden>
Branch: master

Commit: 70c15a91be9523c5412e2ab3a40d7a97490006e1
Author: Alexander Lomski <email address hidden>
Date: Fri Jun 24 10:13:12 2016

Bugfix for DCIM import

DCIM import modifications introduced a new bug in DCIM-to-inventory
binding process, which previously assumed that any switch port with
a non-NULL `dcim_server_id` is connected to a server. Added additional
filter to exclude ports which now have non-NULL `dcim_server_id` but
are actually connected to other device types.

Tests modified accordingly.

Closes-Bug: #1595505
Change-Id: Ifa75e15bf62980ab7400287c48db6cf01921bef9

Changed in fuel:
status: In Progress → Fix Committed
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.