IBP: virtual usb emulated disk fails provision

Bug #1462397 reported by Alexander Gordeev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alexander Gordeev

Bug Description

cisco virtual hdd/fdd device acts like a normal block device as /dev/sdb, but behaves as empty drive with not inserted disk (cd, dvd, fdd, etc.).

when fuel-agent tried to recognize it, but fails with
2015-06-05T13:25:33.973645+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent ProcessExecutionError: Unexpected error while running command.
2015-06-05T13:25:33.973770+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent Command: blockdev --getsz --getro --getss --getpbsz --getsize64 --getiomin --getioopt --getra --getalignoff --getmaxsect /dev/sdb
2015-06-05T13:25:33.973892+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent Exit code: 1
2015-06-05T13:25:33.974011+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent Stdout: ''
2015-06-05T13:25:33.974130+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent Stderr: '/dev/sdb: No medium found\n'
2015-06-05T13:25:33.974250+00:00 info: 2015-06-05 13:25:33.762 2881 TRACE fuel_agent.cmd.agent

Revision history for this message
Alexander Gordeev (a-gordeev) wrote :
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
importance: Critical → High
Revision history for this message
Alexander Gordeev (a-gordeev) wrote :

this removable device was filtered out during discovery stage by nailgun-agent.

it does filtering by vendor ID and only accepts only removable devices from very few vendors.

https://github.com/stackforge/fuel-web/blob/master/bin/agent#L46-L48

https://github.com/stackforge/fuel-web/blob/master/bin/agent#L276-L278

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/188841

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

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

commit 9c7b155475a0a16d248214e08127f378f2021182
Author: Alexander Gordeev <email address hidden>
Date: Fri Jun 5 19:12:22 2015 +0300

    IBP: accept removable block devices only from vendor list

    fuel-agent should ignore removable block device if their vendor
    isn't in approved vendor list.
    It's a backport of what has been already implemented in
    nailgun-agent.

    Change-Id: I406eb4d9539f1be55f97dce73cf2f611941fabd4
    Closes-Bug: #1462397

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

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/189663

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (stable/6.1)

Reviewed: https://review.openstack.org/189663
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=84b357674474b6a7fdcedd60a5a4ea12db09efa1
Submitter: Jenkins
Branch: stable/6.1

commit 84b357674474b6a7fdcedd60a5a4ea12db09efa1
Author: Alexander Gordeev <email address hidden>
Date: Fri Jun 5 19:12:22 2015 +0300

    IBP: accept removable block devices only from vendor list

    fuel-agent should ignore removable block device if their vendor
    isn't in approved vendor list.
    It's a backport of what has been already implemented in
    nailgun-agent.

    Change-Id: I406eb4d9539f1be55f97dce73cf2f611941fabd4
    Closes-Bug: #1462397
    (cherry picked from commit 9c7b155475a0a16d248214e08127f378f2021182)

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.