You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: cisco.nxos.nxos_install | Disruptively install compliant OS and Kickstart image.when: software_kickstart is definedcisco.nxos.nxos_command:
commands:
- command: install all kickstart bootflash:///{{ software_kickstart }} system bootflash:///{{ software_image }}prompt: Do you want to continue with the installation (y/n)? [n]answer: yvars:
ansible_command_timeout: 3600register: software_installedrescue:
- name: cisco.nxos.nxos_install | Reset the connection.ansible.builtin.meta: reset_connectionalways:
- name: cisco.nxos.nxos_install | Wait for device to reboot.ansible.builtin.wait_for_connection:
delay: 90timeout: 600
When running that it stops here:
N7K# show install all statusThere is an on-going installation...Enter Ctrl-C to go back to the prompt.<Tue Nov 28 14:41:19>Verifying image bootflash:/n7000-s2-kickstart.8.4.6a.bin for boot variable "kickstart".-- SUCCESS<Tue Nov 28 14:41:26>Verifying image bootflash:/n7000-s2-dk9.8.4.6a.bin for boot variable "system".-- SUCCESS<Tue Nov 28 14:42:41>Performing module support checks.-- SUCCESS<Tue Nov 28 14:44:01>Verifying image type.-- SUCCESS<Tue Nov 28 14:45:54>Extracting "system" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:45:55>Extracting "kickstart" version from image bootflash:/n7000-s2-kickstart.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:45:56>Extracting "bios" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:46:14>Extracting "lc1n7k" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:49:42>Notifying services about system upgrade.-- SUCCESSCompatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------1 yes disruptive reset Reset due to single supervisor3 yes disruptive reset Reset due to single supervisorImages will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------1 system 6.2(14) 8.4(6a) yes1 kickstart 6.2(14) 8.4(6a) yes1 bios v2.19.0(04/23/2021):v2.19.0(04/23/2021) v2.19.0(04/23/2021) no3 lc1n7k 6.2(14) 8.4(6a) yes3 bios v2.0.32(12/16/13):v2.0.32(12/16/13) v2.0.33(04/06/20) yesSwitch will be reloaded for disruptive upgrade.
EXPECTED RESULTS
but when i do it manually it goes further like this:
N7K# show install all statusThere is an on-going installation...Enter Ctrl-C to go back to the prompt.<Tue Nov 28 14:41:19>Verifying image bootflash:/n7000-s2-kickstart.8.4.6a.bin for boot variable "kickstart".-- SUCCESS<Tue Nov 28 14:41:26>Verifying image bootflash:/n7000-s2-dk9.8.4.6a.bin for boot variable "system".-- SUCCESS<Tue Nov 28 14:42:41>Performing module support checks.-- SUCCESS<Tue Nov 28 14:44:01>Verifying image type.-- SUCCESS<Tue Nov 28 14:45:54>Extracting "system" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:45:55>Extracting "kickstart" version from image bootflash:/n7000-s2-kickstart.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:45:56>Extracting "bios" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:46:14>Extracting "lc1n7k" version from image bootflash:/n7000-s2-dk9.8.4.6a.bin.-- SUCCESS<Tue Nov 28 14:49:42>Notifying services about system upgrade.-- SUCCESSCompatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------1 yes disruptive reset Reset due to single supervisor3 yes disruptive reset Reset due to single supervisorImages will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------1 system 6.2(14) 8.4(6a) yes1 kickstart 6.2(14) 8.4(6a) yes1 bios v2.19.0(04/23/2021):v2.19.0(04/23/2021) v2.19.0(04/23/2021) no3 lc1n7k 6.2(14) 8.4(6a) yes3 bios v2.0.32(12/16/13):v2.0.32(12/16/13) v2.0.33(04/06/20) yesSwitch will be reloaded for disruptive upgrade.Install is in progress, please wait.<Tue Nov 28 14:50:05>Performing runtime checks.-- SUCCESS<Tue Nov 28 14:50:46>Setting boot variables.-- SUCCESS<Tue Nov 28 14:51:24>Performing configuration copy.-- SUCCESSModule 1: <Tue Nov 28 14:51:37>Upgrading bios/loader/bootrom.Warning: please do not remove or power off the module at this time.-- SUCCESSModule 3: <Tue Nov 28 14:51:38>Upgrading bios/loader/bootrom.Warning: please do not remove or power off the module at this time.-- SUCCESSFinishing the upgrade, switch will reboot in 10 seconds.
This is what the prompt looks like when running the installation
Compatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------1 yes disruptive reset Reset due to single supervisor3 yes disruptive reset Reset due to single supervisorImages will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------1 system 6.2(14) 8.4(6a) yes1 kickstart 6.2(14) 8.4(6a) yes1 bios v2.19.0(04/23/2021):v2.19.0(04/23/2021) v2.19.0(04/23/2021) no3 lc1n7k 6.2(14) 8.4(6a) yes3 bios v2.0.32(12/16/13):v2.0.32(12/16/13) v2.0.33(04/06/20) yesSwitch will be reloaded for disruptive upgrade.Do you want to continue with the installation (y/n)? [n] yInstall is in progress, please wait.Performing runtime checks.
[####################] 100% -- SUCCESSSetting boot variables.
[####################] 100% -- SUCCESSPerforming configuration copy.
[####################] 100% -- SUCCESSModule 1: Upgrading bios/loader/bootrom.Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESSModule 3: Upgrading bios/loader/bootrom.Warning: please do not remove or power off the module at this time.
[####################] 100% -- SUCCESSFinishing the upgrade, switch will reboot in 10 seconds.
ACTUAL RESULTS
Just hangs on the "switch will be reloaded for disruptive upgrade".
The text was updated successfully, but these errors were encountered:
@jorgenspange Seems like the problem here is two-folded. The fact that this did not work even with nxos_install_os tells me that something else might be broken. If the terminal prompt not being answered was the only issue, executing terminal dont-ask before the install all kickstart .. command should have fixed it, which is something that the nxos_install_os module does internally.
We've had image upgrade issues in the past with N7Ks and the fixes varied on a case by case basis. For this particular issue, we can start off with adding terminal dont-ask before the image upgrade command in the first playbook you shared, just to confirm if it's actually a prompt issue. If the issue continues to persist even after that, then please update this thread, and I'll share the next steps.
SUMMARY
My prompt/answer in cisco.nxos.nxos_command does not do anything
ISSUE TYPE
COMPONENT NAME
cisco.nxos.nxos_command
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Macbook PRO M1 Pro 2021
Sonoma 14.1.1
STEPS TO REPRODUCE
When upgrading Cisco Nexus 7k this does not work
When running that it stops here:
EXPECTED RESULTS
but when i do it manually it goes further like this:
This is what the prompt looks like when running the installation
ACTUAL RESULTS
Just hangs on the "switch will be reloaded for disruptive upgrade".
The text was updated successfully, but these errors were encountered: