nxos-ansible icon indicating copy to clipboard operation
nxos-ansible copied to clipboard

Module nxos_install_os is failing with Cisco MDS and httpapi connection mode.

Open gcezaralmeida opened this issue 2 years ago • 0 comments

So, I changed the ansible_connection to "ansible.netcommon.httpapi" and I getting an error during nxos_install_os phase:

TASK [Install NXOS] ********************************************************************************************************* failed: [switch02] (item={'kickstart': 'm9700-sf4ek9-kickstart-mz.9.3.1.bin', 'system': 'm9700-sf4ek9-mz.9.3.1.bin', 'model': 'DS-C9710'}) => {"ansible_loop_var": "item", "changed": false, "item": {"kickstart": "m9700-sf4ek9-kickstart-mz.9.3.1.bin", "model": "DS-C9710", "system": "m9700-sf4ek9-mz.9.3.1.bin"}, "msg": "Failed to upgrade device using command: ['terminal dont-ask', 'install all force system m9700-sf4ek9-mz.9.3.1.bin kickstart m9700-sf4ek9-kickstart-mz.9.3.1.bin']", "raw_data": ["400"]}

I checked the command above in the switch and it's appearing that cisco mds doesn't have "force" option. Maybe the Nexus switches have but MDS I don't think so. I tried manually to do the upgrade and the terminal doesn't accept the command, only when I remove the force option, it runs.

switchname# install all ? <CR> epld Install EPLD from EPLD image kickstart Boot-variable name ssi Boot-variable name system Boot-variable name

gcezaralmeida avatar Nov 27 '22 18:11 gcezaralmeida