Cisco 3850 upgrade error

144 views
Skip to first unread message

rajthecomputerguy

unread,
Jul 18, 2019, 10:47:39 AM7/18/19
to Ansible Project
Hi team 

getting below error . Please help . this is happening when upgrading cisco 3850 


 12 - name: expand the IOS file and copy to 2 switches
 13   ios_command:
 14     commands:
 15       - 'software install file flash:{{ new_system_image }} on-reboot'
 16     timeout: 10000

Error message: 

The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_ios_command_payload_KqsA0e/ansible_ios_command_payload.zip/ansible/module_utils/network/ios/ios.py", line 145, in run_commands
    return connection.run_commands(commands=commands, check_rc=check_rc)
  File "/tmp/ansible_ios_command_payload_KqsA0e/ansible_ios_command_payload.zip/ansible/module_utils/connection.py", line 173, in __rpc__
    raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)

[DEPRECATION WARNING]: Param 'timeout' is deprecated. See the module docs for more information. This feature will be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
fatal: [10.177.131.110]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "auth_pass": null,
            "authorize": null,
            "commands": [
                "software install file flash:cat3k_caa-universalk9.16.06.05.SPA.bin on-reboot"
            ],
            "host": null,
            "interval": 1,
            "match": "all",
            "password": null,
            "port": null,
            "provider": null,
            "retries": 10,
            "ssh_keyfile": null,
            "timeout": 10000,
            "username": null,
            "wait_for": null
        }
    },
    "msg": "software install file flash:cat3k_caa-universalk9.16.06.05.SPA.bin on-reboot\r\n        ^\r\n% Invalid input detected at '^' marker.\r\n\r\nSwitch#"
}

rajthecomputerguy

unread,
Jul 22, 2019, 1:31:51 PM7/22/19
to Ansible Project
It has been fixed. thanks .

Dick Visser

unread,
Jul 22, 2019, 4:28:42 PM7/22/19
to ansible...@googlegroups.com
On Mon, 22 Jul 2019 at 19:31, rajthecomputerguy
<rajtheco...@gmail.com> wrote:
>
> It has been fixed. thanks .

Do you mind telling how?



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT

rajthecomputerguy

unread,
Jul 23, 2019, 8:03:16 AM7/23/19
to Ansible Project
"software install file flash" cmdlet is not supported for specific model of switch. 

"request platform software package install" works!!!

thanks

Pramod Thombare

unread,
Aug 8, 2019, 4:24:46 AM8/8/19
to Ansible Project
hello ,
I want to perform task on brocade and arista switch . Will you guide how ansible will connect with switches to perform tasks .....




=========================================================================
Reply all
Reply to author
Forward
0 new messages