HewlettPackard / oneview-ansible

This project is no longer being developed and has limited support. Please use the newer Ansible Collection project: https://github.com/HewlettPackard/oneview-ansible-collection
Apache License 2.0
104 stars 65 forks source link

Power operations reference name #373

Closed roostercactus closed 5 years ago

roostercactus commented 5 years ago

Scenario/Intent

While trying to power on (or power off) a blade in oneview what names can we use to reference a blade? So far the only valid "name" that works for me to power on or power off is, for example:

server_hardwares: name: My Blade, bay 5

as returned by oneview_server_hardware_facts.

Is this the only valid reference while performing power operations? I'd like to use something else...maybe uuid, or uri? I've tried several combinations and it only seems to allow 'server_hardwares.name' for powering on or off.

Environment Details

Steps to Reproduce


Expected Result

This works fine as long as I use the 'server_hardwares.name' value.

Actual Result

This works fine, but is there any other way to reference a blade to power on/off? I'd like to be able to use the 'server_hardwares.uuid' or 'server_hardwares.uri' reference. Is this possible? Any examples would be nice. Thanks.

sijeesh commented 5 years ago

@roostercactus , As of now, power operations expecting name of the server hardware in the data.

roostercactus commented 5 years ago

Hi, sure okay. I can work around it. Thanks for looking!