dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

ome_firmware - Filter updates by device and component #239

Closed TrevorSquillario closed 3 years ago

TrevorSquillario commented 3 years ago

Currently when you specify baseline_name it updates ALL devices in the baseline. This is creates a potentially disruptive situation for customers if they don't know this. Creating a separate baseline for each device is the current workaround and it's not the best way to do things, imo. This is not how you would do it in OME.

I would suggest making the module work like OME allowing you to filter the baseline by device and component name. The parameters device_service_tag, device_id could be used with baseline_name. Allowing you to update one device within a baseline and even one component on that device.

GregBowersock commented 3 years ago

Adding the ability for a single (or multiple) service tags to run against a baseline would be a huge help. This would allow for people to update a cluster one node at a time to make sure things are working and not require the entire cluster to be offline.

dwettstein commented 3 years ago

Actually, I'm a bit surprised that filtering a baseline by device is not possible yet. For us this is absolutely crucial!

dperez-sct commented 3 years ago

I have "found" that using idrac instead of openmanage you can upgrade standalone servers. I've used this, if it helps:

- dellemc.openmanage.idrac_firmware:
    idrac_ip: "{{ inventory_hostname }}-hwctl"
    idrac_user: "admin"
    idrac_password: "{{ idrac_password }}"
    share_name: "https://downloads.dell.com"
    reboot: True
    job_wait: True
    apply_update: True
dwettstein commented 3 years ago

Thanks for your suggestion. Unfortunately, this would imply that Ansible needs connectivity to all iDRACs directly, which we currently don't have, only OME has. Furthermore, you would have to handle the credentials for all these iDRACs properly.

dwettstein commented 3 years ago

Hey @Sajna-Shetty, @rajeevarakkal

Is someone currently working on that issue respectively feature? If yes, when can we expect it to be released? If no, I would offer to work on that and create a pull request.

Cheers