-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: SetBiosAttributes inconsistent across platforms #648
Comments
@sistarers, could you please use the dellemc.openmanage ansible collection to configure the BIOS attributes like below and let us know the results:
|
When running the recommended task with ansible 9, I receive the following error on the mx760c blades. I have not tried the new method on the mx740c's since the old method worked with them. Also, with the new method (dellemc.openmanage.idrac_bios) I am able to set all iscsi parameters relevant to our use case except the IscsiInitiatorName. The error below gives more details. ansible [core 2.16.6] TASK [CONFIGURE iSCSI IQN on blade BIOS OME] **************************************************** ` tasks:
` |
@sistarers, my first guess would be that the
Could you please check what is the value that you are setting in |
When I enter the same value in the iSCSI Initiator Name field using the virtual console, the device will allow the value to be used. Also, if the desired value is already set on the device, then the ome idrac module does not respond with an error. Finally, setting the value using the string with variables works on the mx740c using the redfish module if that helps at all.
[A screenshot of a computer Description automatically generated]
Ss
Warm Regards,
Scott Sistare
From: anupamaloke ***@***.***>
Sent: Monday, April 29, 2024 3:02 PM
To: dell/dellemc-openmanage-ansible-modules ***@***.***>
Cc: sistarers ***@***.***>; Mention ***@***.***>
Subject: Re: [dell/dellemc-openmanage-ansible-modules] [BUG]: SetBiosAttributes inconsistent across platforms (Issue #648)
@sistarers<https://github.com/sistarers>, my first guess would be that the iScsiInitiatorName format is not in line with the standards and therefore you are getting an error. As per the BIOS attribute registry, the iScsiInitiatorName must be in line with the below expression:
"ValueExpression": "^(iqn|IQN)\\.[0-9a-zA-Z\\.\\-]+[0-9a-zA-Z\\-](\\:[0-9a-zA-Z\\-\\.\\:]*)?$|^$",
Could you please check what is the value that you are setting in IscsiInitiatorName: "iqn.{{ year }}-{{ month }}.jmn.ncrc:host-10{{ blade_index_id|int }}"?
-
Reply to this email directly, view it on GitHub<#648 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCSA555QA6AEXGF2XUGH3LY72KMBAVCNFSM6AAAAABGZNHURKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGQ2TMNZYGY>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@sistarers, I tried setting the iSCSI initiator name via the iDRAC GUI (Configuration > BIOS Settings > Network Settings) and it errors there too. However the following name works -
|
@sistarers, we have identified this as a bug in the iDRAC and an issue has been raised internally to get this addressed as part of the next iDRAC release in Sep. Meanwhile, you might have to use a unique name without the |
I finally made time to test this and the suggestion to remove the - from the iqn string worked. However, now I am unable to set this value (IscsiDev1Con1VlanId and IscsiDev1Con2VlanId) using the same playbook. I'll open a separate issue to track that bug. |
Bug Description
Our Dell rep Steven Carter encouraged us to open an issue. We have 4 devices in development 2 each of the following
mx760c: idrac version 7.10.30.05, system bios version 2.1.5
mx740c: idrac version 7.00.00.171, system bios version 2.9.4
when executing the following task, the m760c's return the error fatal: [cmc_deviceID]: FAILED! => {"changed": false, "msg": "HTTP Error 400 on PATCH request to 'https://10.x.y.z/redfish/v1/Systems/System.Embedded.1/Bios/Settings', extended message: 'Unable to set the object properties because an incorrect object value is entered.'"}
we believe this error occurs while trying to set the IscsiInitiatorName to a specific value because all other values in the task are set as configured. The IscsiInitiatorName field is blank when the job is created and the reboot occurs. The m740c's do not have the same issue. Running the same task on that platform yields the appropriate results.
Please advise a work around or guidance on how to address this bug.
name: Set Blade Unique ID
set_fact:
blade_index_id: "{{ ansible_play_hosts_all.index(inventory_hostname) + 1 }}"
tags:
name: CONFIGURE unique iSCSI on attributes on blade BIOS
community.general.redfish_config:
category: Systems
command: SetBiosAttributes
bios_attributes:
IscsiDev1Con1Ip: "192.168.5.{{ 10 + blade_index_id|int }}"
IscsiDev1Con1Mask: "255.255.255.0"
IscsiDev1Con2Ip: "192.168.5.{{ 20 + blade_index_id|int }}"
IscsiDev1Con2Mask: "255.255.255.0"
IscsiInitiatorName: "iqn.{{ year }}-{{ month }}.jmn.ncrc:host-{{ blade_index_id|int }}"
baseuri: "{{ baseuri }}"
<<: *blade_login
register: unique_bios_iscsi_attributes
tags:
Component or Module Name
community.general.redfish_config
Ansible Version
Ansible core 2.13.6
Python Version
python 3.9.13
iDRAC/OME/OME-M version
mx760c: idrac version 7.10.30.05, system bios version 2.1.5
mx740c: idrac version 7.00.00.171, system bios version 2.9.4
Operating System
there is no bootable o/s on the blades, this is by design due to the requirement to provision blades with any o/s as selected by the customer
Playbook Used
name: Set Blade Unique ID
set_fact:
blade_index_id: "{{ ansible_play_hosts_all.index(inventory_hostname) + 1 }}"
tags:
name: CONFIGURE unique iSCSI on attributes on blade BIOS
community.general.redfish_config:
category: Systems
command: SetBiosAttributes
bios_attributes:
IscsiDev1Con1Ip: "192.168.5.{{ 10 + blade_index_id|int }}"
IscsiDev1Con1Mask: "255.255.255.0"
IscsiDev1Con2Ip: "192.168.5.{{ 20 + blade_index_id|int }}"
IscsiDev1Con2Mask: "255.255.255.0"
IscsiInitiatorName: "iqn.{{ year }}-{{ month }}.jmn.ncrc:host-{{ blade_index_id|int }}"
baseuri: "{{ baseuri }}"
<<: *blade_login
register: unique_bios_iscsi_attributes
tags:
Logs
fatal: [cmc_deviceID]: FAILED! => {"changed": false, "msg": "HTTP Error 400 on PATCH request to 'https://10.x.y.z/redfish/v1/Systems/System.Embedded.1/Bios/Settings', extended message: 'Unable to set the object properties because an incorrect object value is entered.'"}
Steps to Reproduce
reset bios to defaults using both the SetBiosDefaultSettings and SetBios Attributes commands with specific values to reset
Expected Behavior
we expect the iscsi attributes to be set with appropriate values per the scripts on the mx760c's just like the mx740c's properly allow writing the values
Actual Behavior
mx760c's fail during the write of the IscsiInitiatorName setting
Screenshots
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: