ucs-m powerstatus fails when already off

Bug #1326456 reported by Chris Ricker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cisco Openstack
In Progress
Medium
Chip

Bug Description

One smaller bug with the new fence_ucs script. powerstatus errors when the node is already off

poweron,poweroff,reboot all tested fine though

root@ci-build:~# cobbler system powerstatus --name=ci-os-con1
task started: 2014-06-04_124223_power
task started (id=Power management (status), time=Wed Jun 4 12:42:23 2014)
cobbler power configuration is:
      type : ucs
      address: 172.20.231.30:org-CI
      user : admin
      id : CI_OS_Con1.C1B6
running: /usr/sbin/fence_ucs
received on stdout: Status: ON

received on stderr:
*** TASK COMPLETE ***
root@ci-build:~# cobbler system poweroff --name=ci-os-con1
task started: 2014-06-04_124234_power
task started (id=Power management (off), time=Wed Jun 4 12:42:34 2014)
cobbler power configuration is:
      type : ucs
      address: 172.20.231.30:org-CI
      user : admin
      id : CI_OS_Con1.C1B6
running: /usr/sbin/fence_ucs
received on stdout: Success: Powered OFF

received on stderr:
*** TASK COMPLETE ***
root@ci-build:~# cobbler system powerstatus --name=ci-os-con1
task started: 2014-06-04_124242_power
task started (id=Power management (status), time=Wed Jun 4 12:42:42 2014)
cobbler power configuration is:
      type : ucs
      address: 172.20.231.30:org-CI
      user : admin
      id : CI_OS_Con1.C1B6
running: /usr/sbin/fence_ucs
received on stdout: Status: OFF

received on stderr:
running: /usr/sbin/fence_ucs
received on stdout: Status: OFF

received on stderr:
running: /usr/sbin/fence_ucs
received on stdout: Status: OFF

received on stderr:
running: /usr/sbin/fence_ucs
received on stdout: Status: OFF

received on stderr:
running: /usr/sbin/fence_ucs
received on stdout: Status: OFF

received on stderr:
Exception occured: <class 'cobbler.cexceptions.CX'>
Exception value: 'command failed (rc=2), please validate the physical setup and cobbler config'
Exception Info:
  File "/usr/lib/python2.7/dist-packages/cobbler/utils.py", line 129, in die
    raise CX(msg)

failed to execute power task on ci-os-con1
*** TASK COMPLETE ***
root@ci-build:~#

Chip (cbaesema)
Changed in openstack-cisco:
status: New → In Progress
Changed in openstack-cisco:
milestone: i.1 → none
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.