opiproject / ansible-opi-dpu

Ansible Modules for DPUs
Apache License 2.0
6 stars 8 forks source link

Service does not support `MultipartHttpPushUri` #60

Closed glimchb closed 5 months ago

glimchb commented 5 months ago

see log

ansible [core 2.16.4.post0]
  config file = None
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible
  python version = 3.11.8 (main, Mar 12 2024, 11:41:52) [GCC 12.2.0] (/usr/local/bin/python)
  jinja version = 3.1.3
  libyaml = True
No config file found; using defaults
Parsed 10.144.47.190, inventory source with host_list plugin
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
10.144.47.190 | SUCCESS => {
    "changed": false,
    "include_args": {
        "name": "bmc_fw_update"
    }
}
10.144.47.190 | SUCCESS => {
    "changed": false,
    "msg": "The arg spec validation passed",
    "validate_args_context": {
        "argument_spec_name": "main",
        "name": "bmc_fw_update",
        "path": "/opt/roles/bmc_fw_update",
        "type": "role"
    }
}
10.144.47.190 | SUCCESS => {
    "changed": false,
    "include_args": {
        "name": "get_bmc_facts"
    }
}
[DEPRECATION WARNING]: The default value 10 for parameter param1 is being 
deprecated and it will be replaced by 60. This feature will be removed from 
community.general in version 9.0.0. Deprecation warnings can be disabled by 
setting deprecation_warnings=False in ansible.cfg.
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178 `" && echo ansible-tmp-1710968949.83296-12-31661745801178="` echo /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178 `" ) && sleep 0'
Using module file /root/.ansible/collections/ansible_collections/community/general/plugins/modules/redfish_info.py
<localhost> PUT /root/.ansible/tmp/ansible-local-1r86efoj6/tmpkct47xv3 TO /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178/AnsiballZ_redfish_info.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178/ /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178/AnsiballZ_redfish_info.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178/AnsiballZ_redfish_info.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1710968949.83296-12-31661745801178/ > /dev/null 2>&1 && sleep 0'
10.144.47.190 | SUCCESS => {
    "changed": false,
    "invocation": {
        "module_args": {
            "auth_token": null,
            "baseuri": "10.144.47.190",
            "category": [
                "Update"
            ],
            "command": [
                "GetFirmwareInventory"
            ],
            "manager": null,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "timeout": null,
            "update_handle": null,
            "username": "ubuntu"
        }
    },
    "redfish_facts": {
        "firmware": {
            "entries": [
                {
                    "Id": "BMC_Firmware",
                    "Name": "Software Inventory",
                    "SoftwareId": "",
                    "Status": {
                        "Health": "OK",
                        "HealthRollup": "OK",
                        "State": "Enabled"
                    },
                    "Updateable": true,
                    "Version": "BF-23.04-3"
                },
                {
                    "Id": "Bluefield_FW_ERoT",
                    "Manufacturer": "NVIDIA",
                    "Name": "Software Inventory",
                    "SoftwareId": "0xFF00",
                    "Status": {
                        "Health": "OK",
                        "HealthRollup": "OK",
                        "State": "Enabled"
                    },
                    "Updateable": true,
                    "Version": "00.02.0127.0000_n02"
                }
            ],
            "ret": true
        }
    }
}
10.144.47.190 | SUCCESS => {
    "changed": false,
    "msg": "All items completed",
    "results": [
        {
            "ansible_facts": {
                "get_bmc_facts_all_fw_versions": {
                    "bmc_firmware": "BF-23.04-3"
                }
            },
            "ansible_loop_var": "item",
            "changed": false,
            "failed": false,
            "item": {
                "Id": "BMC_Firmware",
                "Name": "Software Inventory",
                "SoftwareId": "",
                "Status": {
                    "Health": "OK",
                    "HealthRollup": "OK",
                    "State": "Enabled"
                },
                "Updateable": true,
                "Version": "BF-23.04-3"
            }
        },
        {
            "ansible_facts": {
                "get_bmc_facts_all_fw_versions": {
                    "bluefield_fw_erot": "00.02.0127.0000_n02",
                    "bmc_firmware": "BF-23.04-3"
                }
            },
            "ansible_loop_var": "item",
            "changed": false,
            "failed": false,
            "item": {
                "Id": "Bluefield_FW_ERoT",
                "Manufacturer": "NVIDIA",
                "Name": "Software Inventory",
                "SoftwareId": "0xFF00",
                "Status": {
                    "Health": "OK",
                    "HealthRollup": "OK",
                    "State": "Enabled"
                },
                "Updateable": true,
                "Version": "00.02.0127.0000_n02"
            }
        }
    ]
}
10.144.47.190 | SUCCESS => {
    "msg": {
        "bluefield_fw_erot": "00.02.0127.0000_n02",
        "bmc_firmware": "BF-23.04-3"
    }
}
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804 `" && echo ansible-tmp-1710968951.0205364-39-165151680254804="` echo /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804 `" ) && sleep 0'
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/stat.py
<localhost> PUT /root/.ansible/tmp/ansible-local-1r86efoj6/tmp7_lwp9pl TO /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804/AnsiballZ_stat.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804/ /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804/AnsiballZ_stat.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804/AnsiballZ_stat.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1710968951.0205364-39-165151680254804/ > /dev/null 2>&1 && sleep 0'
10.144.47.190 | SUCCESS => {
    "changed": false,
    "invocation": {
        "module_args": {
            "checksum_algorithm": "sha1",
            "follow": false,
            "get_attributes": true,
            "get_checksum": true,
            "get_mime": true,
            "path": "/tmp/bf3-bmc-24.01-5_opn.fwpkg"
        }
    },
    "stat": {
        "exists": false
    }
}
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311 `" && echo ansible-tmp-1710968951.2358782-64-111055187255311="` echo /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311 `" ) && sleep 0'
Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/get_url.py
<localhost> PUT /root/.ansible/tmp/ansible-local-1r86efoj6/tmphrxakwvp TO /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/AnsiballZ_get_url.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/ /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/AnsiballZ_get_url.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/AnsiballZ_get_url.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/ > /dev/null 2>&1 && sleep 0'
10.144.47.190 | CHANGED => {
    "changed": true,
    "checksum_dest": null,
    "checksum_src": "f0e9379f3452092867b2ff7d6d8c1758d792471b",
    "dest": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
    "elapsed": 4,
    "gid": 0,
    "group": "root",
    "invocation": {
        "module_args": {
            "attributes": null,
            "backup": false,
            "checksum": "",
            "ciphers": null,
            "client_cert": null,
            "client_key": null,
            "decompress": true,
            "dest": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
            "force": false,
            "force_basic_auth": false,
            "group": null,
            "headers": null,
            "http_agent": "ansible-httpget",
            "mode": "0440",
            "owner": null,
            "selevel": null,
            "serole": null,
            "setype": null,
            "seuser": null,
            "timeout": 10,
            "tmp_dest": null,
            "unredirected_headers": [],
            "unsafe_writes": false,
            "url": "https://content.mellanox.com/BlueField/BMC/24.01-5-Jan-2024/bf3-bmc-24.01-5_opn.fwpkg",
            "url_password": null,
            "url_username": null,
            "use_gssapi": false,
            "use_netrc": true,
            "use_proxy": true,
            "validate_certs": true
        }
    },
    "md5sum": "d0a090db4a15cb72bc4131cb9c629d3f",
    "mode": "0440",
    "msg": "OK (67105977 bytes)",
    "owner": "root",
    "size": 67105977,
    "src": "/root/.ansible/tmp/ansible-tmp-1710968951.2358782-64-111055187255311/tmp2teanot7",
    "state": "file",
    "status_code": 200,
    "uid": 0,
    "url": "https://content.mellanox.com/BlueField/BMC/24.01-5-Jan-2024/bf3-bmc-24.01-5_opn.fwpkg"
}
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253 `" && echo ansible-tmp-1710968956.2643697-89-156955583989253="` echo /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253 `" ) && sleep 0'
Using module file /root/.ansible/collections/ansible_collections/community/general/plugins/modules/redfish_command.py
<localhost> PUT /root/.ansible/tmp/ansible-local-1r86efoj6/tmpi8ecuctg TO /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253/AnsiballZ_redfish_command.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253/ /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253/AnsiballZ_redfish_command.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253/AnsiballZ_redfish_command.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1710968956.2643697-89-156955583989253/ > /dev/null 2>&1 && sleep 0'
10.144.47.190 | FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "account_properties": {},
            "account_types": null,
            "auth_token": null,
            "baseuri": "10.144.47.190",
            "bios_attributes": null,
            "boot_next": null,
            "boot_override_mode": null,
            "bootdevice": null,
            "category": "Update",
            "command": [
                "MultipartHTTPPushUpdate"
            ],
            "id": null,
            "new_password": null,
            "new_username": null,
            "oem_account_types": null,
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "resource_id": null,
            "roleid": null,
            "session_uri": null,
            "strip_etag_quotes": false,
            "timeout": 600,
            "uefi_target": null,
            "update_apply_time": null,
            "update_creds": null,
            "update_handle": null,
            "update_image_file": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
            "update_image_uri": null,
            "update_oem_params": null,
            "update_protocol": null,
            "update_targets": [],
            "update_username": null,
            "username": "ubuntu",
            "virtual_media": null
        }
    },
    "msg": "Service does not support MultipartHttpPushUri"
}