ruzickap / packer-templates

Scripts and Templates used for generating Vagrant images
Apache License 2.0
443 stars 113 forks source link

Ansible wsman timeout - windows-10-enterprise-x64-eval #411

Closed RockyBukake closed 2 years ago

RockyBukake commented 2 years ago

tail of packer log file :

==> qemu: Connected to WinRM!
==> qemu: Running local shell script: /home/xxx/downloads/packer-templates/tmp/packer-shell332670743
==> qemu: [DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names
==> qemu: to new standard, use callbacks_enabled instead. This feature will be removed
==> qemu: from ansible-core in version 2.15. Deprecation warnings can be disabled by
==> qemu: setting deprecation_warnings=False in ansible.cfg.
==> qemu: [DEPRECATION WARNING]: ansible.posix.skippy has been deprecated. See the plugin
==> qemu:  documentation for more details. This feature will be removed from
==> qemu: ansible.posix in a release after 2022-06-01. Deprecation warnings can be
==> qemu: disabled by setting deprecation_warnings=False in ansible.cfg.
    qemu:
    qemu: PLAY [all] *********************************************************************
    qemu:
    qemu: TASK [Gathering Facts] *********************************************************
    qemu: Tuesday 05 July 2022  20:34:05 +0100 (0:00:00.028)       0:00:00.028 **********
    qemu: fatal: [127.0.0.1]: UNREACHABLE! => {"changed": false, "msg": "ssl: HTTPSConnectionPool(host='127.0.0.1', port=5986): Max retries exceeded with url: /wsman (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fd3fadfa8c0>: Failed to establish a new connection: [Errno 111] Connection refused'))", "unreachable": true}
    qemu:
    qemu: PLAY RECAP *********************************************************************
    qemu: 127.0.0.1                  : ok=0    changed=0    unreachable=1    failed=0    skipped=0    rescued=0    ignored=0
    qemu:
    qemu: Tuesday 05 July 2022  20:34:05 +0100 (0:00:00.047)       0:00:00.076 **********
    qemu: ===============================================================================
    qemu: Gathering Facts --------------------------------------------------------- 0.05s
==> qemu: Provisioning step had errors: Running the cleanup provisioner, if present...
==> qemu: Deleting output directory...
Build 'qemu' errored after 17 minutes 54 seconds: Script exited with non-zero exit status: 4.Allowed exit codes are: [0]

==> Wait completed after 17 minutes 54 seconds

==> Some builds didn't complete successfully and had errors:
--> qemu: Script exited with non-zero exit status: 4.Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.
ruzickap commented 2 years ago

I believe I saw this before. Can you check if you are using Ansible 5.x: https://github.com/ruzickap/packer-templates/blob/bb7e89ebad5f347a99d2a863f2a9bdba9b3bbbdb/.github/workflows/build.yml#L210

It seems like Ansible 6.x is not fully compatible with 5.x - I need to look at it...

RockyBukake commented 2 years ago

Yes, that was the issue thanks