Cisco UCS driver not able to get boot device when the boot device is set to other than pxe

Bug #1478452 reported by Pradeep Varadarajulu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ironic
Fix Released
Medium
Gopi Krishna S

Bug Description

Steps to reproduce:
================

1. Enroll a UCS node.

2. By default the boot device is set to pxe.

stack@ir-cont:~/devstack$ ironic node-get-boot-device f0655b17-5327-432a-ae8d-f76cdff5c98b
+-------------+-------+
| Property | Value |
+-------------+-------+
| boot_device | pxe |
| persistent | None |
+-------------+-------+

3. Change the boot device to disk or cdrom
stack@ir-cont:~/devstack$ ironic node-set-boot-device f0655b17-5327-432a-ae8d-f76cdff5c98b disk
stack@ir-cont:~/devstack$ ironic node-set-boot-device f0655b17-5327-432a-ae8d-f76cdff5c98b cdrom

4. Get the boot device for the ironic node.
stack@ir-cont:~/devstack$ ironic node-get-boot-device f0655b17-5327-432a-ae8d-f76cdff5c98b
u'\'disk\'\n (HTTP 500)
stack@ir-cont:~/devstack$ ironic node-get-boot-device f0655b17-5327-432a-ae8d-f76cdff5c98b
u'\'cdrom\'\n (HTTP 500)

Tags: ucs
Changed in ironic:
assignee: nobody → Gopi Krishna S (saripurigopi)
status: New → Confirmed
Dmitry Tantsur (divius)
Changed in ironic:
importance: Undecided → High
tags: added: ucs
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ironic (master)

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

Changed in ironic:
status: Confirmed → In Progress
Revision history for this message
Lucas Alvares Gomes (lucasagomes) wrote :

This only affects the version 0.8.2.2 of the library right?

The documentation we have upstream is saying that the required version is 0.8.1.9 [1] (its pinned on this version, it's not the minimal required version).

[1] http://docs.openstack.org/developer/ironic/drivers/ucs.html?highlight=ucssdk#prerequisites

Changed in ironic:
importance: High → Medium
Revision history for this message
Gopi Krishna S (saripurigopi) wrote :

Yes Lucas, this was due to change in the UcsSdk v0.8.2.2. will update the prerequisites.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to ironic (master)

Reviewed: https://review.openstack.org/206528
Committed: https://git.openstack.org/cgit/openstack/ironic/commit/?id=eace02d8d627d39a9bbafc661f1687f66d81a993
Submitter: Jenkins
Branch: master

commit eace02d8d627d39a9bbafc661f1687f66d81a993
Author: saripurigopi <email address hidden>
Date: Tue Jul 28 18:19:32 2015 +0530

    UCS: node-get-boot-device is failing for Cisco servers

    The UCS to Ironic key mapping for supported boot devices was changed
    in UcsSdk v0.8.2.2. As a result of that, UCS drivers are failing while
    looking at the UCS to Ironic mapping devices dict.

    This change would address this problem.

    Change-Id: Id86c4e2a7dfde552f808fcf83baba4097d9fd0c5
    Closes-Bug: #1478452

Changed in ironic:
status: In Progress → Fix Committed
Changed in ironic:
milestone: none → 4.0.0
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.