We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For the CreateVolume command of the redfish_config module, the documentation doesn't mention the fact that CapacityBytes is a required parameter of the command. But it is effectively required on the line #L3732 of redfish_utils.py. https://github.com/ansible-collections/community.general/blob/9.4.0/plugins/module_utils/redfish_utils.py#L3732
redfish_config
CapacityBytes
So when i try to use this command without CapacityBytes, my task fail with :
"msg": "['RAIDType', 'Drives', 'CapacityBytes'] are required parameter to create a volume"
This parameter is not really needed and i can create a volume with curl without CapacityBytes
Bug Report
$ ansible --version ansible [core 2.15.3] ... python version = 3.11.0rc1 (main, Aug 12 2022, 10:02:14) [GCC 11.2.0] jinja version = 3.1.2
$ ansible-galaxy collection list community.general # /home/pyfontan/Dev/gitlab/ansible/ccin2p3/sysadmin_tools/.collections/ansible_collections Collection Version ----------------- ------- community.general 9.4.0
$ ansible-config dump --only-changed
Not relevant
- name: Create Volume community.general.redfish_config: category: Systems command: CreateVolume baseuri: "{{ baseuri }}" username: "{{ username }}" password: "{{ password }}" storage_subsystem_id: "DE07A000" volume_details: Name: "SYSTEM" RAIDType: "RAID1" Drives: - "/redfish/v1/Systems/1/Storage/DE07A000/Drives/36" - "/redfish/v1/Systems/1/Storage/DE07A000/Drives/37"
I expected the creation of the volume SYSTEM and the changed value of :
SYSTEM
{ "changed": true, "invocation": { "module_args": { "auth_token": null, "baseuri": "X.X.X.X", "bios_attributes": {}, "boot_order": [], "category": "Systems", "ciphers": null, "command": [ "CreateVolume" ], "hostinterface_config": {}, "hostinterface_id": null, "network_protocols": {}, "nic_addr": "null", "nic_config": {}, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "resource_id": null, "secure_boot_enable": true, "service_id": null, "sessions_config": {}, "storage_subsystem_id": "DE07A000", "strip_etag_quotes": false, "timeout": 60, "username": "XXX", "volume_details": { "Links": { "Drives": [ { "@odata.id": "/redfish/v1/Systems/1/Storage/DE07A000/Drives/36" }, { "@odata.id": "/redfish/v1/Systems/1/Storage/DE07A000/Drives/37" } ] }, "Name": "SYSTEM", "RAIDType": "RAID1" }, "volume_ids": [] } }, "msg": "Volume Created" }
{ "changed": false, "invocation": { "module_args": { "auth_token": null, "baseuri": "X.X.X.X", "bios_attributes": {}, "boot_order": [], "category": "Systems", "ciphers": null, "command": [ "CreateVolume" ], "hostinterface_config": {}, "hostinterface_id": null, "network_protocols": {}, "nic_addr": "null", "nic_config": {}, "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "resource_id": null, "secure_boot_enable": true, "service_id": null, "sessions_config": {}, "storage_subsystem_id": "DE07A000", "strip_etag_quotes": false, "timeout": 60, "username": "XXX", "volume_details": { "Drives": [ "/redfish/v1/Systems/1/Storage/DE07A000/Drives/36", "/redfish/v1/Systems/1/Storage/DE07A000/Drives/37" ], "Name": "SYSTEM", "RAIDType": "Mirrored" }, "volume_ids": [] } }, "msg": "['RAIDType', 'Drives', 'CapacityBytes'] are required parameter to create a volume" }
The text was updated successfully, but these errors were encountered:
Files identified in the description:
plugins/modules/redfish_config.py
If these files are incorrect, please update the component name section of the description or use the !component bot command.
component name
!component
click here for bot help
Sorry, something went wrong.
cc @TSKushal @Bhavya06 @jyundt @mraineri @rajeevkallur @renxulei @tomasg2012 @xmadsen click here for bot help
Successfully merging a pull request may close this issue.
Summary
For the CreateVolume command of the
redfish_config
module, the documentation doesn't mention the fact thatCapacityBytes
is a required parameter of the command.But it is effectively required on the line #L3732 of redfish_utils.py.
https://github.com/ansible-collections/community.general/blob/9.4.0/plugins/module_utils/redfish_utils.py#L3732
So when i try to use this command without
CapacityBytes
, my task fail with :This parameter is not really needed and i can create a volume with curl without
CapacityBytes
Issue Type
Bug Report
Component Name
redfish_config
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
OS / Environment
Not relevant
Steps to Reproduce
Expected Results
I expected the creation of the volume
SYSTEM
and the changed value of :Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: