ansible / instruqt

Self-paced instruqt Training material
72 stars 60 forks source link

Error message in Network Automation lab #71

Closed dwainetp closed 2 years ago

dwainetp commented 2 years ago

Hi,

The network automation lab is giving the error shown in the screenshot. I've tried it multiple times and still get the same error.

image

IPvSean commented 2 years ago

Confirmed, will fix shortly

IPvSean commented 2 years ago

This took me awhile.... and took banging my heads with @craig-br and @cloin .....

The error here was something like:

fatal: [cisco -> backup-server]: FAILED! => {
    "msg": "failed to transfer file to /home/runner/.ansible/tmp/ansible-local-20n748gs3w/tmp9wxdf1z1 /home/rhel/.ansible/tmp/ansible-tmp-1647287771.4339669-86-4748376784878/AnsiballZ_file.py:\n\nExecuting: program /usr/bin/ssh host controller, user (unspecified), command scp -v -t /home/rhel/.ansible/tmp/ansible-tmp-1647287771.4339669-86-4748376784878/AnsiballZ_file.py\nOpenSSH_8.0p1, OpenSSL 1.1.1k  FIPS 25 Mar 2021\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug3: /etc/ssh/ssh_config line 52: Including file /etc/ssh/ssh_config.d/05-redhat.conf depth 0\r\ndebug1: Reading configuration data /etc/ssh/ssh_config.d/05-redhat.conf\r\ndebug2: checking match for 'final all' host controller originally controller\r\ndebug3: /etc/ssh/ssh_config.d/05-redhat.conf line 3: not matched 'final'\r\ndebug2: match not found\r\ndebug3: /etc/ssh/ssh_config.d/05-redhat.conf line 5: Including file /etc/crypto-policies/back-ends/openssh.config dep…

When we removed this code from the ansible.cfg->

[ssh_connection]
scp_if_ssh = True

It worked.... our best guess is this is a bug with scp + automation controller, related to this-> https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-fix-protocol-error-filename-does-not-match-request-when-fetching-a-file

We now use sftp versus scp (the default method) and just clearing out our older ansible.cfg (the configuration file). This should work now.

dwainetp commented 2 years ago

Thanks, Sean.

On Mon, Mar 14, 2022, 4:28 PM Sean Cavanaugh @.***> wrote:

Closed #71 https://github.com/ansible/instruqt/issues/71.

— Reply to this email directly, view it on GitHub https://github.com/ansible/instruqt/issues/71#event-6238498031, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQYH5PJOKXIMQUU2YKHBYK3U76OQRANCNFSM5NBBW5GQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>