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

auto_assign_server_hardware does not work with DLs #451

Closed ckurka closed 4 years ago

ckurka commented 5 years ago

Scenario/Intent

[auto_assign_server_hardware does not work with DLs] This may not be an issue, since it looks like the code is only written for BY/SY based servers, need this as an enhancement to support pools of DL servers

Environment Details

Steps to Reproduce

[When running a playbook against DLs and auto_assign_server_hardware=True the Server profile never gets auto assigned to HW. From looking at the code it appears it auto_assign_server_hardware needs Server HW type/Name and Enclosure group ]

Expected Result

[SP is applied to the HW type automatically for DLs just like BLs or SY based servers]

Actual Result

Server Profile is created but never assigned to the Server Hardware (DLs)

changed: [localhost -> localhost] => { "ansible_facts": { "compliance_preview": { "automaticUpdates": [], "isOnlineUpdate": null, "manualUpdates": [], "type": "ServerProfileCompliancePreviewV1" }, "created": true, "serial_number": null, "server_hardware": null, "server_profile": { "affinity": null, "associatedServer": null, "bios": { "manageBios": true, "overriddenSettings": [ { "id": "PowerRegulator", "value": "StaticHighPerf" }, { "id": "MinProcIdlePower", "value": "NoCStates" }, { "id": "NumaGroupSizeOpt", "value": "Clustered" }, { "id": "IntelUpiPowerManagement", "value": "Disabled" }, { "id": "EmbNicEnable", "value": "Disabled" }, { "id": "MinProcIdlePkgState", "value": "NoState" }, { "id": "SubNumaClustering", "value": "Enabled" }, { "id": "EnergyPerfBias", "value": "MaxPerf" }, { "id": "UncoreFreqScaling", "value": "Maximum" }, { "id": "EnergyEfficientTurbo", "value": "Disabled" }, { "id": "CollabPowerControl", "value": "Disabled" }, { "id": "WorkloadProfile", "value": "Virtualization-MaxPerformance" } ] }, "boot": { "manageBoot": false, "order": [] }, "bootMode": { "manageMode": true, "mode": "UEFIOptimized", "pxeBootPolicy": "Auto" }, "category": "server-profiles", "connections": [], "created": "2019-09-24T14:19:54.601Z", "description": "Server Profile template for ESXI Bare Metal installs", "eTag": "1569334795952/1", "enclosureBay": null, "enclosureGroupUri": null, "enclosureUri": null, "firmware": { "firmwareActivationType": null, "firmwareBaselineUri": null, "firmwareInstallType": null, "firmwareScheduleDateTime": null, "forceInstallFirmware": false, "manageFirmware": false }, "hideUnusedFlexNics": null, "inProgress": false, "iscsiInitiatorName": "iqn.2015-02.com.hpe:oneview-98fc38d6-9a7f-4a51-8c72-51f1501664a1", "iscsiInitiatorNameType": "AutoGenerated", "localStorage": { "controllers": [ { "deviceSlot": "Embedded", "importConfiguration": false, "initialize": true, "logicalDrives": [ { "bootable": false, "driveNumber": null, "driveTechnology": null, "name": "boot", "numPhysicalDrives": 2, "raidLevel": "RAID1", "sasLogicalJBODId": null } ], "mode": "Mixed" } ], "sasLogicalJBODs": [] }, "macType": "Physical", "modified": "2019-09-24T14:19:55.952Z", "name": "esxi_profile_dl", "osDeploymentSettings": null, "refreshState": "NotRefreshing", "sanStorage": { "manageSanStorage": false, "sanSystemCredentials": [], "volumeAttachments": [] }, "serialNumber": null, "serialNumberType": "Physical", "serverHardwareTypeUri": "/rest/server-hardware-types/D8796A03-812E-45A4-924D-756E567A7231", "serverHardwareUri": null, "serverProfileTemplateUri": "/rest/server-profile-templates/a0617fb8-ce20-4af5-8803-02a1fee5cbdb", "state": "Normal", "status": "OK", "taskUri": "/rest/tasks/b4b5cc9d-085d-44f1-8355-313f68464e59", "templateCompliance": "Compliant", "type": "ServerProfileV7", "uri": "/rest/server-profiles/98fc38d6-9a7f-4a51-8c72-51f1501664a1", "uuid": null, "wwnType": "Physical" } }, "changed": true, "invocation": { "module_args": { "api_version": 1000, "auth_login_domain": null, "auto_assign_server_hardware": true, "config": "/root/oneview-ansible/demos/oneview_config.json", "data": { "name": "esxi_profile_dl", "serverProfileTemplateUri": "/rest/server-profile-templates/a0617fb8-ce20-4af5-8803-02a1fee5cbdb" }, "hostname": null, "image_streamer_hostname": null, "params": null, "password": null, "state": "present", "username": null, "validate_etag": true } }, "msg": "Server Profile created." }

VenkateshRavula commented 4 years ago

auto_assign_server_hardware is supported for DLs in latest release.