Skip to content
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

dellemc_idrac_storage_volume: status code doesn't match with the expected success code #154

Closed
bvivi57 opened this issue Sep 11, 2020 · 3 comments
Labels
area/idrac idrac modules/roles type/bug Something isn't working

Comments

@bvivi57
Copy link

bvivi57 commented Sep 11, 2020

When I try to create a new virtual disk by deleting the existing configuration, I get this error message.

status code doesn't match with the expected success code

My playbook (I use a Operator Account for connexion to IDRAC)

- name: "Create Volume System"
      dellemc_idrac_storage_volume:
        idrac_ip: "{{ idrac_ip }}"
        idrac_password: "{{ idrac_password }}"
        idrac_user: "{{ idrac_user }}"
        controller_id: "RAID.Integrated.1-1"
        volume_type: "RAID 1"
        disk_cache_policy: "Enabled"
        write_cache_policy: "WriteBack"
        read_cache_policy: "ReadAhead"
        raid_init_operation: Fast
        raid_reset_config: "True"
        state: create
        volumes:
         - name: "vd_sys"
           drives:
               id: ["Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1","Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1"]

I use ansible 2.9.7 with python3.6 omsdk 1.2.442

Ouput from Ansible

TASK [Create Volume System] ****************************************************
task path: /tmp/awx_5710_lfcynzi5/project/Playbook_kch_Dell_configure_storage.yml:26
<lonitx-r2b3-09> ESTABLISH LOCAL CONNECTION FOR USER: root
<lonitx-r2b3-09> EXEC /bin/sh -c 'echo ~root && sleep 0'
<lonitx-r2b3-09> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654 && echo ansible-tmp-1599841360.4608932-6611-74143111518654="` echo /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654 `" ) && sleep 0'
Using module file /usr/share/ansible/plugins/modules/remote_management/dellemc/dellemc_idrac_storage_volume.py
<lonitx-r2b3-09> PUT /var/lib/awx/.ansible/tmp/ansible-local-658128zuwkh0/tmp_54t2om1 TO /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654/AnsiballZ_dellemc_idrac_storage_volume.py
<lonitx-r2b3-09> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654/ /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654/AnsiballZ_dellemc_idrac_storage_volume.py && sleep 0'
<lonitx-r2b3-09> EXEC /bin/sh -c '/usr/libexec/platform-python /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654/AnsiballZ_dellemc_idrac_storage_volume.py && sleep 0'
<lonitx-r2b3-09> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1599841360.4608932-6611-74143111518654/ > /dev/null 2>&1 && sleep 0'
fatal: [lonitx-r2b3-09]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "capacity": null,
            "controller_id": "RAID.Integrated.1-1",
            "disk_cache_policy": "Enabled",
            "idrac_ip": "172.18.94.164",
            "idrac_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "idrac_port": 443,
            "idrac_user": "kepler",
            "media_type": null,
            "number_dedicated_hot_spare": 0,
            "protocol": null,
            "raid_init_operation": "Fast",
            "raid_reset_config": "True",
            "read_cache_policy": "ReadAhead",
            "span_depth": 1,
            "span_length": 1,
            "state": "create",
            "stripe_size": 65536,
            "volume_id": null,
            "volume_type": "RAID 1",
            "volumes": [
                {
                    "drives": {
                        "id": [
                            "Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1",
                            "Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1"
                        ]
                    },
                    "name": "vd_sys"
                }
            ],
            "write_cache_policy": "WriteBack"
        }
    },
    "msg": "returned status code doesn't match with the expected success code"
}
@jagadeeshnv jagadeeshnv added type/bug Something isn't working area/idrac idrac modules/roles labels Sep 14, 2020
@ljmc-github
Copy link

👍

grantcurell added a commit to grantcurell/dellemc-openmanage-ansible-modules that referenced this issue May 3, 2021
README.md:
- Added TOC
- Based on user feedback took @anupamaloke 's answer and provided an explanation for the required shares along with how to easily handle the share
- Changed the header Playbooks to Sample Playbooks so user's would have a better idea of what was there

dellemc_configure_idrac_eventing.py
dellemc_configure_idrac_services.py
dellemc_idrac_lc_attributes.py
dellemc_system_lockdown_mode.py
idrac_bios.py
idrac_firmware.py
idrac_network.py
idrac_syslog.pyidrac_timezone_ntp.py:
- Added error handling such that if a share is used and not valid the module gracefully fails.
- Fixes dell#266
- Fixes dell#194
- Fixes dell#154

All files:
- optimized imports

Signed-off-by: Grant Curell <grant_curell@dell.com>
@vzovko
Copy link

vzovko commented Nov 15, 2021

I'm having the same issue. In my case even when I try to create a new RAID 1 on a BOSS controller without any preexisting virtual disk.

My current workaround is using dellemc.openmanage.redfish_storage_volume to either create or initialize a virtual disk RAID 1 on a BOSS controller.

PowerEdge R640
BIOS: 2.12.2
iDRAC: 5.00.10.00
Collection: 4.2.0
omsdk: 1.2.478
Ansible: 2.11.6

@sachin-apa
Copy link
Collaborator

We have a new module idrac_storage_volume which should have fixedthis, please try and feel free to open a new issue if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/idrac idrac modules/roles type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants