opiproject / ansible-opi-dpu

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

bf2 fw update fails #58

Closed glimchb closed 5 months ago

glimchb commented 5 months ago

see error log from https://github.com/opiproject/opi-poc/actions/runs/8351321782/job/22859463927 here :

2024-03-19T23:10:46.3350960Z Current runner version: '2.314.1'
2024-03-19T23:10:46.3359384Z Runner name: 'tgen1'
2024-03-19T23:10:46.3360191Z Runner group name: 'Default'
2024-03-19T23:10:46.3361179Z Machine name: 'tgen1'
2024-03-19T23:10:46.3366268Z ##[group]GITHUB_TOKEN Permissions
2024-03-19T23:10:46.3369053Z Actions: write
2024-03-19T23:10:46.3369726Z Checks: write
2024-03-19T23:10:46.3370226Z Contents: write
2024-03-19T23:10:46.3370707Z Deployments: write
2024-03-19T23:10:46.3371287Z Discussions: write
2024-03-19T23:10:46.3371805Z Issues: write
2024-03-19T23:10:46.3372255Z Metadata: read
2024-03-19T23:10:46.3372794Z Packages: write
2024-03-19T23:10:46.3373256Z Pages: write
2024-03-19T23:10:46.3373829Z PullRequests: write
2024-03-19T23:10:46.3374425Z RepositoryProjects: write
2024-03-19T23:10:46.3375001Z SecurityEvents: write
2024-03-19T23:10:46.3375569Z Statuses: write
2024-03-19T23:10:46.3376091Z ##[endgroup]
2024-03-19T23:10:46.3380473Z Secret source: Actions
2024-03-19T23:10:46.3381621Z Prepare workflow directory
2024-03-19T23:10:46.4452311Z Prepare all required actions
2024-03-19T23:10:46.4776177Z Complete job name: opi-ansible
2024-03-19T23:10:46.6592618Z ##[group]Run docker run --rm ghcr.io/opiproject/ansible-opi-dpu:main 172.22.4.2 --module-name include_role --args name=bmc_fw_update -vvv -i "172.22.4.2," -e dpu_bmc_username='root' -e dpu_bmc_password='NvidiaBf2#Pass'
2024-03-19T23:10:46.6596823Z docker run --rm ghcr.io/opiproject/ansible-opi-dpu:main 172.22.4.2 --module-name include_role --args name=bmc_fw_update -vvv -i "172.22.4.2," -e dpu_bmc_username='root' -e dpu_bmc_password='NvidiaBf2#Pass'
2024-03-19T23:10:46.6645944Z shell: /usr/bin/bash -e {0}
2024-03-19T23:10:46.6646700Z ##[endgroup]
2024-03-19T23:10:47.6556294Z ansible [core 2.16.4.post0]
2024-03-19T23:10:47.6558428Z   config file = None
2024-03-19T23:10:47.6562202Z   configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
2024-03-19T23:10:47.6567062Z   ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
2024-03-19T23:10:47.6571685Z   ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
2024-03-19T23:10:47.6574882Z   executable location = /usr/local/bin/ansible
2024-03-19T23:10:47.6578005Z   python version = 3.11.8 (main, Mar 12 2024, 11:41:52) [GCC 12.2.0] (/usr/local/bin/python)
2024-03-19T23:10:47.6581052Z   jinja version = 3.1.3
2024-03-19T23:10:47.6582547Z   libyaml = True
2024-03-19T23:10:47.6583976Z No config file found; using defaults
2024-03-19T23:10:47.6586376Z Parsed 172.22.4.2, inventory source with host_list plugin
2024-03-19T23:10:47.6589591Z Skipping callback 'default', as we already have a stdout callback.
2024-03-19T23:10:47.6592939Z Skipping callback 'minimal', as we already have a stdout callback.
2024-03-19T23:10:47.6596354Z Skipping callback 'oneline', as we already have a stdout callback.
2024-03-19T23:10:47.7362387Z 172.22.4.2 | SUCCESS => {
2024-03-19T23:10:47.7364469Z     "changed": false,
2024-03-19T23:10:47.7366090Z     "include_args": {
2024-03-19T23:10:47.7367636Z         "name": "bmc_fw_update"
2024-03-19T23:10:47.7369323Z     }
2024-03-19T23:10:47.7370427Z }
2024-03-19T23:10:47.7661345Z 172.22.4.2 | SUCCESS => {
2024-03-19T23:10:47.7663369Z     "changed": false,
2024-03-19T23:10:47.7665060Z     "msg": "The arg spec validation passed",
2024-03-19T23:10:47.7667103Z     "validate_args_context": {
2024-03-19T23:10:47.7668971Z         "argument_spec_name": "main",
2024-03-19T23:10:47.7670740Z         "name": "bmc_fw_update",
2024-03-19T23:10:47.7672652Z         "path": "/opt/roles/bmc_fw_update",
2024-03-19T23:10:47.7674654Z         "type": "role"
2024-03-19T23:10:47.7675927Z     }
2024-03-19T23:10:47.7677079Z }
2024-03-19T23:10:47.7950906Z 172.22.4.2 | SUCCESS => {
2024-03-19T23:10:47.7952736Z     "changed": false,
2024-03-19T23:10:47.7954187Z     "include_args": {
2024-03-19T23:10:47.7955788Z         "name": "get_bmc_facts"
2024-03-19T23:10:47.7957380Z     }
2024-03-19T23:10:47.7958372Z }
2024-03-19T23:10:50.2506742Z [DEPRECATION WARNING]: The default value 10 for parameter param1 is being 
2024-03-19T23:10:50.2510375Z deprecated and it will be replaced by 60. This feature will be removed from 
2024-03-19T23:10:50.2513073Z community.general in version 9.0.0. Deprecation warnings can be disabled by 
2024-03-19T23:10:50.2515278Z setting deprecation_warnings=False in ansible.cfg.
2024-03-19T23:10:50.2565152Z <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
2024-03-19T23:10:50.2568041Z <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
2024-03-19T23:10:50.2574829Z <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910 `" && echo ansible-tmp-1710889847.819257-12-128960203242910="` echo /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910 `" ) && sleep 0'
2024-03-19T23:10:50.2581934Z Using module file /root/.ansible/collections/ansible_collections/community/general/plugins/modules/redfish_info.py
2024-03-19T23:10:50.2587966Z <localhost> PUT /root/.ansible/tmp/ansible-local-1l02li0nq/tmphx9tn_81 TO /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910/AnsiballZ_redfish_info.py
2024-03-19T23:10:50.2595034Z <localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910/ /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910/AnsiballZ_redfish_info.py && sleep 0'
2024-03-19T23:10:50.2601708Z <localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910/AnsiballZ_redfish_info.py && sleep 0'
2024-03-19T23:10:50.2607116Z <localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1710889847.819257-12-128960203242910/ > /dev/null 2>&1 && sleep 0'
2024-03-19T23:10:50.2609960Z 172.22.4.2 | SUCCESS => {
2024-03-19T23:10:50.2610978Z     "changed": false,
2024-03-19T23:10:50.2611935Z     "invocation": {
2024-03-19T23:10:50.2612869Z         "module_args": {
2024-03-19T23:10:50.2613885Z             "auth_token": null,
2024-03-19T23:10:50.2615050Z             "baseuri": "172.22.4.2",
2024-03-19T23:10:50.2616265Z             "category": [
2024-03-19T23:10:50.2617238Z                 "Update"
2024-03-19T23:10:50.2618188Z             ],
2024-03-19T23:10:50.2619025Z             "command": [
2024-03-19T23:10:50.2620085Z                 "GetFirmwareInventory"
2024-03-19T23:10:50.2621293Z             ],
2024-03-19T23:10:50.2622158Z             "manager": null,
2024-03-19T23:10:50.2623517Z             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
2024-03-19T23:10:50.2625030Z             "timeout": null,
2024-03-19T23:10:50.2626121Z             "update_handle": null,
2024-03-19T23:10:50.2627270Z             "username": "root"
2024-03-19T23:10:50.2628292Z         }
2024-03-19T23:10:50.2629021Z     },
2024-03-19T23:10:50.2629773Z     "redfish_facts": {
2024-03-19T23:10:50.2630725Z         "firmware": {
2024-03-19T23:10:50.2631701Z             "entries": [
2024-03-19T23:10:50.2632629Z                 {
2024-03-19T23:10:50.2633662Z                     "Id": "a5e46d02_running",
2024-03-19T23:10:50.2635092Z                     "Name": "Software Inventory",
2024-03-19T23:10:50.2636406Z                     "Status": {
2024-03-19T23:10:50.2637581Z                         "Health": "OK",
2024-03-19T23:10:50.2638922Z                         "HealthRollup": "OK",
2024-03-19T23:10:50.2640257Z                         "State": "Enabled"
2024-03-19T23:10:50.2641451Z                     },
2024-03-19T23:10:50.2642452Z                     "Updateable": true,
2024-03-19T23:10:50.2644036Z                     "Version": "2.8.2-46-g779031c1d9"
2024-03-19T23:10:50.2645342Z                 }
2024-03-19T23:10:50.2646271Z             ],
2024-03-19T23:10:50.2647099Z             "ret": true
2024-03-19T23:10:50.2648011Z         }
2024-03-19T23:10:50.2648741Z     }
2024-03-19T23:10:50.2649411Z }
2024-03-19T23:10:50.3164422Z 172.22.4.2 | SUCCESS => {
2024-03-19T23:10:50.3166059Z     "changed": false,
2024-03-19T23:10:50.3167110Z     "msg": "All items completed",
2024-03-19T23:10:50.3168913Z     "results": [
2024-03-19T23:10:50.3169805Z         {
2024-03-19T23:10:50.3170603Z             "ansible_facts": {
2024-03-19T23:10:50.3172569Z                 "get_bmc_facts_a5e46d02_running": "2.8.2-46-g779031c1d9"
2024-03-19T23:10:50.3174107Z             },
2024-03-19T23:10:50.3175026Z             "ansible_loop_var": "item",
2024-03-19T23:10:50.3176277Z             "changed": false,
2024-03-19T23:10:50.3177354Z             "failed": false,
2024-03-19T23:10:50.3178359Z             "item": {
2024-03-19T23:10:50.3179379Z                 "Id": "a5e46d02_running",
2024-03-19T23:10:50.3180765Z                 "Name": "Software Inventory",
2024-03-19T23:10:50.3182045Z                 "Status": {
2024-03-19T23:10:50.3183116Z                     "Health": "OK",
2024-03-19T23:10:50.3184366Z                     "HealthRollup": "OK",
2024-03-19T23:10:50.3185629Z                     "State": "Enabled"
2024-03-19T23:10:50.3186776Z                 },
2024-03-19T23:10:50.3187723Z                 "Updateable": true,
2024-03-19T23:10:50.3189512Z                 "Version": "2.8.2-46-g779031c1d9"
2024-03-19T23:10:50.3190792Z             }
2024-03-19T23:10:50.3191581Z         }
2024-03-19T23:10:50.3192290Z     ]
2024-03-19T23:10:50.3192977Z }
2024-03-19T23:10:50.3305607Z 172.22.4.2 | FAILED! => {
2024-03-19T23:10:50.3314791Z     "msg": "The task includes an option with an undefined variable. The error was: 'get_bmc_facts_bmc_firmware' is undefined. 'get_bmc_facts_bmc_firmware' is undefined\n\nThe error appears to be in '/opt/roles/bmc_fw_update/tasks/main.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Print BMC Version\n  ^ here\n"
2024-03-19T23:10:50.3322009Z }
2024-03-19T23:10:50.6905663Z ##[error]Process completed with exit code 2.
2024-03-19T23:10:50.7665689Z Cleaning up orphan processes
glimchb commented 5 months ago

57 will help with addition of defining bmc_firmware as argument

glimchb commented 5 months ago

after #59 fix new log:

2024-03-22T01:48:45.1400657Z Current runner version: '2.314.1'
2024-03-22T01:48:45.1408627Z Runner name: 'tgen1'
2024-03-22T01:48:45.1409474Z Runner group name: 'Default'
2024-03-22T01:48:45.1410462Z Machine name: 'tgen1'
2024-03-22T01:48:45.1414940Z ##[group]GITHUB_TOKEN Permissions
2024-03-22T01:48:45.1417465Z Actions: write
2024-03-22T01:48:45.1417992Z Checks: write
2024-03-22T01:48:45.1418452Z Contents: write
2024-03-22T01:48:45.1418917Z Deployments: write
2024-03-22T01:48:45.1419430Z Discussions: write
2024-03-22T01:48:45.1419869Z Issues: write
2024-03-22T01:48:45.1420344Z Metadata: read
2024-03-22T01:48:45.1420890Z Packages: write
2024-03-22T01:48:45.1421312Z Pages: write
2024-03-22T01:48:45.1421801Z PullRequests: write
2024-03-22T01:48:45.1422336Z RepositoryProjects: write
2024-03-22T01:48:45.1422869Z SecurityEvents: write
2024-03-22T01:48:45.1423410Z Statuses: write
2024-03-22T01:48:45.1423876Z ##[endgroup]
2024-03-22T01:48:45.1428069Z Secret source: Actions
2024-03-22T01:48:45.1429128Z Prepare workflow directory
2024-03-22T01:48:45.2552483Z Prepare all required actions
2024-03-22T01:48:45.2870590Z Complete job name: opi-ansible
2024-03-22T01:48:45.4574641Z ##[group]Run docker run --rm --pull=always ghcr.io/opiproject/ansible-opi-dpu:main 172.22.4.2 --module-name include_role --args name=bmc_fw_update -vvv -i "172.22.4.2," -e dpu_bmc_username='root' -e dpu_bmc_password='NvidiaBf2#Pass' -e bmc_fw_update_inventory_name='a5e46d02_running'
2024-03-22T01:48:45.4579378Z docker run --rm --pull=always ghcr.io/opiproject/ansible-opi-dpu:main 172.22.4.2 --module-name include_role --args name=bmc_fw_update -vvv -i "172.22.4.2," -e dpu_bmc_username='root' -e dpu_bmc_password='NvidiaBf2#Pass' -e bmc_fw_update_inventory_name='a5e46d02_running'
2024-03-22T01:48:45.4622918Z shell: /usr/bin/bash -e {0}
2024-03-22T01:48:45.4623586Z ##[endgroup]
2024-03-22T01:48:46.2429268Z main: Pulling from opiproject/ansible-opi-dpu
2024-03-22T01:48:46.2433343Z Digest: sha256:3a5b97cc03eaaba5292960351ab03a4b3a919cec079b3c83a9b48a71532c0bfb
2024-03-22T01:48:46.2438231Z Status: Image is up to date for ghcr.io/opiproject/ansible-opi-dpu:main
2024-03-22T01:48:47.0406483Z ansible [core 2.16.4.post0]
2024-03-22T01:48:47.0408330Z   config file = None
2024-03-22T01:48:47.0411411Z   configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
2024-03-22T01:48:47.0415079Z   ansible python module location = /usr/local/lib/python3.11/site-packages/ansible
2024-03-22T01:48:47.0418299Z   ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
2024-03-22T01:48:47.0420854Z   executable location = /usr/local/bin/ansible
2024-03-22T01:48:47.0423284Z   python version = 3.11.8 (main, Mar 12 2024, 11:41:52) [GCC 12.2.0] (/usr/local/bin/python)
2024-03-22T01:48:47.0425699Z   jinja version = 3.1.3
2024-03-22T01:48:47.0426951Z   libyaml = True
2024-03-22T01:48:47.0428250Z No config file found; using defaults
2024-03-22T01:48:47.0430135Z Parsed 172.22.4.2, inventory source with host_list plugin
2024-03-22T01:48:47.0432809Z Skipping callback 'default', as we already have a stdout callback.
2024-03-22T01:48:47.0435561Z Skipping callback 'minimal', as we already have a stdout callback.
2024-03-22T01:48:47.0438259Z Skipping callback 'oneline', as we already have a stdout callback.
2024-03-22T01:48:47.1041006Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:47.1042518Z     "changed": false,
2024-03-22T01:48:47.1043650Z     "include_args": {
2024-03-22T01:48:47.1045157Z         "name": "bmc_fw_update"
2024-03-22T01:48:47.1046634Z     }
2024-03-22T01:48:47.1047501Z }
2024-03-22T01:48:47.1435247Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:47.1437208Z     "changed": false,
2024-03-22T01:48:47.1438572Z     "msg": "The arg spec validation passed",
2024-03-22T01:48:47.1440318Z     "validate_args_context": {
2024-03-22T01:48:47.1441852Z         "argument_spec_name": "main",
2024-03-22T01:48:47.1443317Z         "name": "bmc_fw_update",
2024-03-22T01:48:47.1444936Z         "path": "/opt/roles/bmc_fw_update",
2024-03-22T01:48:47.1887954Z         "type": "role"
2024-03-22T01:48:47.1888911Z     }
2024-03-22T01:48:47.1889557Z }
2024-03-22T01:48:47.1890335Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:47.1892137Z     "changed": false,
2024-03-22T01:48:47.1892926Z     "include_args": {
2024-03-22T01:48:47.1894492Z         "name": "get_bmc_facts"
2024-03-22T01:48:47.1898488Z     }
2024-03-22T01:48:47.1901070Z }
2024-03-22T01:48:49.5417456Z [DEPRECATION WARNING]: The default value 10 for parameter param1 is being 
2024-03-22T01:48:49.5418589Z deprecated and it will be replaced by 60. This feature will be removed from 
2024-03-22T01:48:49.5419572Z community.general in version 9.0.0. Deprecation warnings can be disabled by 
2024-03-22T01:48:49.5420394Z setting deprecation_warnings=False in ansible.cfg.
2024-03-22T01:48:49.5440865Z <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
2024-03-22T01:48:49.5441937Z <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
2024-03-22T01:48:49.5444893Z <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529 `" && echo ansible-tmp-1711072127.1840947-12-51228278975529="` echo /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529 `" ) && sleep 0'
2024-03-22T01:48:49.5447593Z Using module file /root/.ansible/collections/ansible_collections/community/general/plugins/modules/redfish_info.py
2024-03-22T01:48:49.5449575Z <localhost> PUT /root/.ansible/tmp/ansible-local-1w5ma2vg2/tmpeh0swcpf TO /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529/AnsiballZ_redfish_info.py
2024-03-22T01:48:49.5452129Z <localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529/ /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529/AnsiballZ_redfish_info.py && sleep 0'
2024-03-22T01:48:49.5454564Z <localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529/AnsiballZ_redfish_info.py && sleep 0'
2024-03-22T01:48:49.5456480Z <localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1711072127.1840947-12-51228278975529/ > /dev/null 2>&1 && sleep 0'
2024-03-22T01:48:49.5457508Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:49.5457884Z     "changed": false,
2024-03-22T01:48:49.5458327Z     "invocation": {
2024-03-22T01:48:49.5458677Z         "module_args": {
2024-03-22T01:48:49.5459049Z             "auth_token": null,
2024-03-22T01:48:49.5459470Z             "baseuri": "172.22.4.2",
2024-03-22T01:48:49.5459906Z             "category": [
2024-03-22T01:48:49.5460266Z                 "Update"
2024-03-22T01:48:49.5460613Z             ],
2024-03-22T01:48:49.5460932Z             "command": [
2024-03-22T01:48:49.5461324Z                 "GetFirmwareInventory"
2024-03-22T01:48:49.5461762Z             ],
2024-03-22T01:48:49.5462084Z             "manager": null,
2024-03-22T01:48:49.5462590Z             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
2024-03-22T01:48:49.5463162Z             "timeout": null,
2024-03-22T01:48:49.5463576Z             "update_handle": null,
2024-03-22T01:48:49.5464007Z             "username": "root"
2024-03-22T01:48:49.5464390Z         }
2024-03-22T01:48:49.5464669Z     },
2024-03-22T01:48:49.5464950Z     "redfish_facts": {
2024-03-22T01:48:49.5465312Z         "firmware": {
2024-03-22T01:48:49.5465675Z             "entries": [
2024-03-22T01:48:49.5466033Z                 {
2024-03-22T01:48:49.5466400Z                     "Id": "a5e46d02_running",
2024-03-22T01:48:49.5466933Z                     "Name": "Software Inventory",
2024-03-22T01:48:49.5467432Z                     "Status": {
2024-03-22T01:48:49.5467850Z                         "Health": "OK",
2024-03-22T01:48:49.5468347Z                         "HealthRollup": "OK",
2024-03-22T01:48:49.5468853Z                         "State": "Enabled"
2024-03-22T01:48:49.5469294Z                     },
2024-03-22T01:48:49.5469669Z                     "Updateable": true,
2024-03-22T01:48:49.5470267Z                     "Version": "2.8.2-46-g779031c1d9"
2024-03-22T01:48:49.5470893Z                 }
2024-03-22T01:48:49.5471213Z             ],
2024-03-22T01:48:49.5471535Z             "ret": true
2024-03-22T01:48:49.5471870Z         }
2024-03-22T01:48:49.5472149Z     }
2024-03-22T01:48:49.5472409Z }
2024-03-22T01:48:49.5931249Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:49.5931728Z     "changed": false,
2024-03-22T01:48:49.5932152Z     "msg": "All items completed",
2024-03-22T01:48:49.5932580Z     "results": [
2024-03-22T01:48:49.5932898Z         {
2024-03-22T01:48:49.5933205Z             "ansible_facts": {
2024-03-22T01:48:49.5933660Z                 "get_bmc_facts_all_fw_versions": {
2024-03-22T01:48:49.5934463Z                     "a5e46d02_running": "2.8.2-46-g779031c1d9"
2024-03-22T01:48:49.5934980Z                 }
2024-03-22T01:48:49.5935302Z             },
2024-03-22T01:48:49.5935650Z             "ansible_loop_var": "item",
2024-03-22T01:48:49.5936119Z             "changed": false,
2024-03-22T01:48:49.5936534Z             "failed": false,
2024-03-22T01:48:49.5937584Z             "item": {
2024-03-22T01:48:49.5939181Z                 "Id": "a5e46d02_running",
2024-03-22T01:48:49.5940557Z                 "Name": "Software Inventory",
2024-03-22T01:48:49.5941847Z                 "Status": {
2024-03-22T01:48:49.5942913Z                     "Health": "OK",
2024-03-22T01:48:49.5944168Z                     "HealthRollup": "OK",
2024-03-22T01:48:49.5945467Z                     "State": "Enabled"
2024-03-22T01:48:49.5946620Z                 },
2024-03-22T01:48:49.5947541Z                 "Updateable": true,
2024-03-22T01:48:49.5949047Z                 "Version": "2.8.2-46-g779031c1d9"
2024-03-22T01:48:49.5950287Z             }
2024-03-22T01:48:49.5951046Z         }
2024-03-22T01:48:49.5951764Z     ]
2024-03-22T01:48:49.5952453Z }
2024-03-22T01:48:49.6200861Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:49.6202028Z     "ansible_facts": {
2024-03-22T01:48:49.6203745Z         "bmc_fw_update_cur_fw_version": "2.8.2-46-g779031c1d9"
2024-03-22T01:48:49.6205247Z     },
2024-03-22T01:48:49.6206206Z     "changed": false
2024-03-22T01:48:49.6207102Z }
2024-03-22T01:48:49.6485152Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:49.6486491Z     "msg": {
2024-03-22T01:48:49.6487910Z         "a5e46d02_running": "2.8.2-46-g779031c1d9"
2024-03-22T01:48:49.6489233Z     }
2024-03-22T01:48:49.6489924Z }
2024-03-22T01:48:50.0290225Z <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
2024-03-22T01:48:50.0293712Z <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
2024-03-22T01:48:50.0300641Z <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661 `" && echo ansible-tmp-1711072129.667401-40-130178572440661="` echo /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661 `" ) && sleep 0'
2024-03-22T01:48:50.0307361Z Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/stat.py
2024-03-22T01:48:50.0312018Z <localhost> PUT /root/.ansible/tmp/ansible-local-1w5ma2vg2/tmpcrsnx6ex TO /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661/AnsiballZ_stat.py
2024-03-22T01:48:50.0318800Z <localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661/ /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661/AnsiballZ_stat.py && sleep 0'
2024-03-22T01:48:50.0325225Z <localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661/AnsiballZ_stat.py && sleep 0'
2024-03-22T01:48:50.0330565Z <localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1711072129.667401-40-130178572440661/ > /dev/null 2>&1 && sleep 0'
2024-03-22T01:48:50.0333371Z 172.22.4.2 | SUCCESS => {
2024-03-22T01:48:50.0334390Z     "changed": false,
2024-03-22T01:48:50.0335354Z     "invocation": {
2024-03-22T01:48:50.0336289Z         "module_args": {
2024-03-22T01:48:50.0337385Z             "checksum_algorithm": "sha1",
2024-03-22T01:48:50.0338667Z             "follow": false,
2024-03-22T01:48:50.0340470Z             "get_attributes": true,
2024-03-22T01:48:50.0341700Z             "get_checksum": true,
2024-03-22T01:48:50.0342862Z             "get_mime": true,
2024-03-22T01:48:50.0344348Z             "path": "/tmp/bf3-bmc-24.01-5_opn.fwpkg"
2024-03-22T01:48:50.0345681Z         }
2024-03-22T01:48:50.0346416Z     },
2024-03-22T01:48:50.0347145Z     "stat": {
2024-03-22T01:48:50.0347969Z         "exists": false
2024-03-22T01:48:50.0348887Z     }
2024-03-22T01:48:50.0349550Z }
2024-03-22T01:48:55.4800147Z <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
2024-03-22T01:48:55.4802586Z <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
2024-03-22T01:48:55.4809842Z <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734 `" && echo ansible-tmp-1711072130.0535338-65-69300711921734="` echo /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734 `" ) && sleep 0'
2024-03-22T01:48:55.4817271Z Using module file /usr/local/lib/python3.11/site-packages/ansible/modules/get_url.py
2024-03-22T01:48:55.4822038Z <localhost> PUT /root/.ansible/tmp/ansible-local-1w5ma2vg2/tmp7mm58ihy TO /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/AnsiballZ_get_url.py
2024-03-22T01:48:55.4828916Z <localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/ /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/AnsiballZ_get_url.py && sleep 0'
2024-03-22T01:48:55.4835376Z <localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/AnsiballZ_get_url.py && sleep 0'
2024-03-22T01:48:55.4840510Z <localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/ > /dev/null 2>&1 && sleep 0'
2024-03-22T01:48:55.4843389Z 172.22.4.2 | CHANGED => {
2024-03-22T01:48:55.4844390Z     "changed": true,
2024-03-22T01:48:55.4845379Z     "checksum_dest": null,
2024-03-22T01:48:55.4846965Z     "checksum_src": "f0e9379f3452092867b2ff7d6d8c1758d792471b",
2024-03-22T01:48:55.4848879Z     "dest": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
2024-03-22T01:48:55.4850181Z     "elapsed": 4,
2024-03-22T01:48:55.4851052Z     "gid": 0,
2024-03-22T01:48:55.4851870Z     "group": "root",
2024-03-22T01:48:55.4852793Z     "invocation": {
2024-03-22T01:48:55.4853886Z         "module_args": {
2024-03-22T01:48:55.4854901Z             "attributes": null,
2024-03-22T01:48:55.4856025Z             "backup": false,
2024-03-22T01:48:55.4857088Z             "checksum": "",
2024-03-22T01:48:55.4858131Z             "ciphers": null,
2024-03-22T01:48:55.4859268Z             "client_cert": null,
2024-03-22T01:48:55.4860408Z             "client_key": null,
2024-03-22T01:48:55.4861512Z             "decompress": true,
2024-03-22T01:48:55.4863006Z             "dest": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
2024-03-22T01:48:55.4864387Z             "force": false,
2024-03-22T01:48:55.4865491Z             "force_basic_auth": false,
2024-03-22T01:48:55.4866712Z             "group": null,
2024-03-22T01:48:55.4867736Z             "headers": null,
2024-03-22T01:48:55.4869060Z             "http_agent": "ansible-httpget",
2024-03-22T01:48:55.4870375Z             "mode": "0440",
2024-03-22T01:48:55.4871396Z             "owner": null,
2024-03-22T01:48:55.4872394Z             "selevel": null,
2024-03-22T01:48:55.4873428Z             "serole": null,
2024-03-22T01:48:55.4874428Z             "setype": null,
2024-03-22T01:48:55.4875454Z             "seuser": null,
2024-03-22T01:48:55.4876447Z             "timeout": 10,
2024-03-22T01:48:55.4877470Z             "tmp_dest": null,
2024-03-22T01:48:55.4878623Z             "unredirected_headers": [],
2024-03-22T01:48:55.4879904Z             "unsafe_writes": false,
2024-03-22T01:48:55.4882505Z             "url": "https://content.mellanox.com/BlueField/BMC/24.01-5-Jan-2024/bf3-bmc-24.01-5_opn.fwpkg",
2024-03-22T01:48:55.4884810Z             "url_password": null,
2024-03-22T01:48:55.4886412Z             "url_username": null,
2024-03-22T01:48:55.4887557Z             "use_gssapi": false,
2024-03-22T01:48:55.4888668Z             "use_netrc": true,
2024-03-22T01:48:55.4889766Z             "use_proxy": true,
2024-03-22T01:48:55.4890886Z             "validate_certs": true
2024-03-22T01:48:55.4891968Z         }
2024-03-22T01:48:55.4892720Z     },
2024-03-22T01:48:55.4893708Z     "md5sum": "d0a090db4a15cb72bc4131cb9c629d3f",
2024-03-22T01:48:55.4895056Z     "mode": "0440",
2024-03-22T01:48:55.4896005Z     "msg": "OK (67105977 bytes)",
2024-03-22T01:48:55.4897094Z     "owner": "root",
2024-03-22T01:48:55.4898019Z     "size": 67105977,
2024-03-22T01:48:55.4900149Z     "src": "/root/.ansible/tmp/ansible-tmp-1711072130.0535338-65-69300711921734/tmps7wago1e",
2024-03-22T01:48:55.4902196Z     "state": "file",
2024-03-22T01:48:55.4903121Z     "status_code": 200,
2024-03-22T01:48:55.4904064Z     "uid": 0,
2024-03-22T01:48:55.4906236Z     "url": "https://content.mellanox.com/BlueField/BMC/24.01-5-Jan-2024/bf3-bmc-24.01-5_opn.fwpkg"
2024-03-22T01:48:55.4908350Z }
2024-03-22T01:48:57.3404519Z <localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
2024-03-22T01:48:57.3407151Z <localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
2024-03-22T01:48:57.3415171Z <localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298 `" && echo ansible-tmp-1711072135.503062-90-164349271096298="` echo /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298 `" ) && sleep 0'
2024-03-22T01:48:57.3422349Z Using module file /root/.ansible/collections/ansible_collections/community/general/plugins/modules/redfish_command.py
2024-03-22T01:48:57.3427875Z <localhost> PUT /root/.ansible/tmp/ansible-local-1w5ma2vg2/tmpqpb9s83w TO /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298/AnsiballZ_redfish_command.py
2024-03-22T01:48:57.3435058Z <localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298/ /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298/AnsiballZ_redfish_command.py && sleep 0'
2024-03-22T01:48:57.3441975Z <localhost> EXEC /bin/sh -c '/usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298/AnsiballZ_redfish_command.py && sleep 0'
2024-03-22T01:48:57.3447415Z <localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1711072135.503062-90-164349271096298/ > /dev/null 2>&1 && sleep 0'
2024-03-22T01:48:57.3450255Z 172.22.4.2 | FAILED! => {
2024-03-22T01:48:57.3451273Z     "changed": false,
2024-03-22T01:48:57.3452223Z     "invocation": {
2024-03-22T01:48:57.3453137Z         "module_args": {
2024-03-22T01:48:57.3454220Z             "account_properties": {},
2024-03-22T01:48:57.3455471Z             "account_types": null,
2024-03-22T01:48:57.3456646Z             "auth_token": null,
2024-03-22T01:48:57.3457784Z             "baseuri": "172.22.4.2",
2024-03-22T01:48:57.3459018Z             "bios_attributes": null,
2024-03-22T01:48:57.3460211Z             "boot_next": null,
2024-03-22T01:48:57.3461370Z             "boot_override_mode": null,
2024-03-22T01:48:57.3462617Z             "bootdevice": null,
2024-03-22T01:48:57.3463749Z             "category": "Update",
2024-03-22T01:48:57.3464889Z             "command": [
2024-03-22T01:48:57.3466025Z                 "MultipartHTTPPushUpdate"
2024-03-22T01:48:57.3467273Z             ],
2024-03-22T01:48:57.3468108Z             "id": null,
2024-03-22T01:48:57.3469106Z             "new_password": null,
2024-03-22T01:48:57.3470240Z             "new_username": null,
2024-03-22T01:48:57.3471415Z             "oem_account_types": null,
2024-03-22T01:48:57.3472971Z             "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
2024-03-22T01:48:57.3474495Z             "resource_id": null,
2024-03-22T01:48:57.3475618Z             "roleid": null,
2024-03-22T01:48:57.3476681Z             "session_uri": null,
2024-03-22T01:48:57.3477850Z             "strip_etag_quotes": false,
2024-03-22T01:48:57.3479445Z             "timeout": 600,
2024-03-22T01:48:57.3480510Z             "uefi_target": null,
2024-03-22T01:48:57.3481677Z             "update_apply_time": null,
2024-03-22T01:48:57.3482927Z             "update_creds": null,
2024-03-22T01:48:57.3484103Z             "update_handle": null,
2024-03-22T01:48:57.3485944Z             "update_image_file": "/tmp/bf3-bmc-24.01-5_opn.fwpkg",
2024-03-22T01:48:57.3487543Z             "update_image_uri": null,
2024-03-22T01:48:57.3488800Z             "update_oem_params": null,
2024-03-22T01:48:57.3490058Z             "update_protocol": null,
2024-03-22T01:48:57.3491292Z             "update_targets": [],
2024-03-22T01:48:57.3492470Z             "update_username": null,
2024-03-22T01:48:57.3493663Z             "username": "root",
2024-03-22T01:48:57.3494796Z             "virtual_media": null
2024-03-22T01:48:57.3495851Z         }
2024-03-22T01:48:57.3496562Z     },
2024-03-22T01:48:57.3497693Z     "msg": "Service does not support MultipartHttpPushUri"
2024-03-22T01:48:57.3499179Z }
2024-03-22T01:48:57.7091408Z ##[error]Process completed with exit code 2.
2024-03-22T01:48:57.7867561Z Cleaning up orphan processes
glimchb commented 5 months ago

probably dupplicated with #60 ... multi-part-http-push is new command