Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

k8s module src options doesn't seems to work #307

Closed
sylvainOL opened this issue Nov 17, 2020 · 15 comments · Fixed by #320
Closed

k8s module src options doesn't seems to work #307

sylvainOL opened this issue Nov 17, 2020 · 15 comments · Fixed by #320
Assignees
Labels
has_pr This issue has a related PR that may close it. verified The issue is reproduced

Comments

@sylvainOL
Copy link

sylvainOL commented Nov 17, 2020

SUMMARY

Use of src options for k8s module seems to work only if Ansible Controller and Host are the same

ISSUE TYPE
  • Bug Report
COMPONENT NAME

k8s
role version: v1.1.1

ANSIBLE VERSION
ansible 2.10.1
  config file = /Users/sylvain/.ansible.cfg
  configured module search path = ['/Users/sylvain/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible
  executable location = /Users/sylvain/.pyenv/versions/3.8.1/bin/ansible
  python version = 3.8.1 (default, May 12 2020, 14:29:45) [Clang 11.0.0 (clang-1100.0.33.8)]
CONFIGURATION
ANSIBLE_PIPELINING(/Users/sylvain/.ansible.cfg) = True
DEFAULT_FORKS(/Users/sylvain/.ansible.cfg) = 50
DEFAULT_LOAD_CALLBACK_PLUGINS(/Users/sylvain/.ansible.cfg) = True
DEFAULT_STDOUT_CALLBACK(/Users/sylvain/.ansible.cfg) = yaml
DEFAULT_VAULT_PASSWORD_FILE(/Users/sylvain/.ansible.cfg) = /Users/sylvain/.local/.vault
HOST_KEY_CHECKING(/Users/sylvain/.ansible.cfg) = False
RETRY_FILES_ENABLED(/Users/sylvain/.ansible.cfg) = False
OS / ENVIRONMENT

had the issue on both MacOs and Debian

STEPS TO REPRODUCE

use two different machines:

  • one where you launch the playbook
  • one where you'd like to use k8s module (other in the playbook)

first playbook I tried

- hosts: other
  tasks:
    - name: generate k8s yaml
      copy:
        content: >
          apiVersion: apps/v1
          Kind: Deployment
          Metadata:
            name: nginx-deployment
            labels:
              app: nginx
          Spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/deploy.yml
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        src: /tmp/deploy.yml

second playbook tried (the same as before but generating the file on controller side):

- hosts: other
  tasks:
    - name: generate k8s yaml
      delegate_to: localhost
      copy:
        content: >
          apiVersion: apps/v1
          Kind: Deployment
          Metadata:
            name: nginx-deployment
            labels:
              app: nginx
          Spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/deploy.yml
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        src: /tmp/deploy.yml
EXPECTED RESULTS

I would have expected that one of the tries (preferrably first as it's the way it works with all modules) would have created the deployment.

ACTUAL RESULTS

FIRST TRY

we have an error (ansible.errors.AnsibleFileNotFound: Could not find or access '/tmp/deploy.yml' on the Ansible Controller.) saying the file should be on the Ansible controller.

And we don't see actual command on other server:

Nov 17 15:46:24 control01-onap-master systemd[1]: Started Session 54 of user debian.
Nov 17 15:46:25 control01-onap-master ansible-ansible.legacy.setup: Invoked with filter=* gather_subset=['all'] fact_path=/etc/ansible/facts.d gather_timeout=10
Nov 17 15:46:26 control01-onap-master ansible-ansible.legacy.stat: Invoked with checksum_algorithm=sha1 get_checksum=True follow=False path=/tmp/deploy.yml get_md5=False get_mime=True get_attributes=True
Nov 17 15:46:26 control01-onap-master ansible-ansible.legacy.file: Invoked with force=False _original_basename=tmpva9jas6e owner=None follow=True group=None unsafe_writes=False state=file setype=None access_time=None dest=/tmp/deploy.yml selevel=None access_time_format=%Y%m%d%H%M.%S modification_time=None path=/tmp/deploy.yml src=None serole=None seuser=None recurse=False _diff_peek=None mode=None modification_time_format=%Y%m%d%H%M.%S attributes=None

full playbook run:

ansible-playbook 2.10.1
  config file = /Users/sylvain/.ansible.cfg
  configured module search path = ['/Users/sylvain/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible
  executable location = /Users/sylvain/.pyenv/versions/3.8.1/bin/ansible-playbook
  python version = 3.8.1 (default, May 12 2020, 14:29:45) [Clang 11.0.0 (clang-1100.0.33.8)]
Using /Users/sylvain/.ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /private/tmp/inventory as it did not pass its verify_file() method
script declined parsing /private/tmp/inventory as it did not pass its verify_file() method
auto declined parsing /private/tmp/inventory as it did not pass its verify_file() method
Parsed /private/tmp/inventory inventory source with ini plugin
Loading collection community.kubernetes from /Users/sylvain/.ansible/collections/ansible_collections/community/kubernetes
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
Loading collection community.general from /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible_collections/community/general
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
Loading callback plugin community.general.yaml of type stdout, v2.0 from /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible_collections/community/general/plugins/callback/yaml.py

PLAYBOOK: test.yaml ******************************************************************************************************************************************************************************************************************************
Positional arguments: test.yaml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/private/tmp/inventory',)
forks: 50
1 plays in test.yaml

PLAY [other] *************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:1
<other> Attempting python interpreter discovery
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<master.onap.eu> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python3.5\n/usr/bin/python2.7\n/usr/bin/python3\n/usr/bin/python\nENDFOUND\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'{"osrelease_content": "PRETTY_NAME=\\"Debian GNU/Linux 9 (stretch)\\"\\nNAME=\\"Debian GNU/Linux\\"\\nVERSION_ID=\\"9\\"\\nVERSION=\\"9 (stretch)\\"\\nID=debian\\nHOME_URL=\\"https://www.debian.org/\\"\\nSUPPORT_URL=\\"https://www.debian.org/support\\"\\nBUG_REPORT_URL=\\"https://bugs.debian.org/\\"\\n", "platform_dist_result": ["debian", "9.6", ""]}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/setup.py
Pipelining is enabled.
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_fibre_channel_wwn": [], "module_setup": true, "ansible_distribution_version": "9.6", "ansible_board_name": "NA", "ansible_distribution_file_variety": "Debian", "ansible_env": {"LANG": "en_US.UTF-8", "LC_TERMINAL": "iTerm2", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1000", "SHLVL": "1", "LC_TERMINAL_VERSION": "3.4.0", "PWD": "/home/debian", "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/games", "SSH_CLIENT": "10.0.2.3 41454 22", "LOGNAME": "debian", "USER": "debian", "HOME": "/home/debian", "MAIL": "/var/mail/debian", "SSH_CONNECTION": "10.0.2.3 41454 10.253.0.25 22", "XDG_SESSION_ID": "54", "_": "/bin/sh"}, "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_default_ipv4": {"macaddress": "fa:16:3e:47:b8:b5", "network": "10.253.0.0", "mtu": 8950, "broadcast": "10.253.0.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "10.253.0.25", "interface": "eth0", "type": "ether", "gateway": "10.253.0.1"}, "ansible_swapfree_mb": 0, "ansible_cilium_vxlan": {"macaddress": "4a:57:88:31:28:c6", "mtu": 8950, "device": "cilium_vxlan", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::4857:88ff:fe31:28c6"}], "active": true, "type": "ether"}, "ansible_cmdline": {"console": "ttyS0,115200", "earlyprintk": "ttyS0,115200", "root": "UUID=7b1f6f54-2d8b-4008-8a64-a7165506727f", "net.ifnames": "0", "consoleblank": "0", "biosdevname": "0", "BOOT_IMAGE": "/boot/vmlinuz-4.9.0-8-amd64", "ro": true, "systemd.show_status": "true"}, "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_machine_id": "2a1cf03486cb4456a53ceeb1397d31ff", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_cilium_net": {"macaddress": "7a:04:f3:e1:f2:6b", "type": "ether", "mtu": 8950, "device": "cilium_net", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::7804:f3ff:fee1:f26b"}], "active": true, "speed": 10000}, "ansible_pkg_mgr": "apt", "ansible_distribution": "Debian", "ansible_cilium_host": {"macaddress": "4a:71:4d:4d:d9:a7", "type": "ether", "mtu": 8950, "device": "cilium_host", "promisc": false, "ipv4": {"broadcast": "", "netmask": "255.255.255.255", "network": "10.233.64.199", "address": "10.233.64.199"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::4871:4dff:fe4d:d9a7"}], "active": true, "speed": 10000}, "ansible_iscsi_iqn": "", "ansible_lxc_health": {"macaddress": "b2:f5:d5:29:5d:1c", "type": "ether", "mtu": 8950, "device": "lxc_health", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::b0f5:d5ff:fe29:5d1c"}], "active": true, "speed": 10000}, "ansible_all_ipv6_addresses": ["fe80::42:bff:fef3:3ac9", "fe80::f816:3eff:fe47:b8b5", "fe80::4871:4dff:fe4d:d9a7", "fe80::40d6:c8ff:fe47:eede", "fe80::b0f5:d5ff:fe29:5d1c", "fe80::d06e:57ff:fe6a:3e27", "fe80::4857:88ff:fe31:28c6", "fe80::7804:f3ff:fee1:f26b"], "ansible_uptime_seconds": 25809, "ansible_kernel": "4.9.0-8-amd64", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 13, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 13, "final", 0]}, "ansible_is_chroot": false, "gather_subset": ["all"], "ansible_board_asset_tag": "NA", "ansible_user_shell": "/bin/bash", "ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_user_id": "debian", "ansible_selinux_python_present": false, "ansible_board_serial": "NA", "ansible_kernel_version": "#1 SMP Debian 4.9.130-2 (2018-10-27)", "ansible_local": {}, "ansible_kube_ipvs0": {"macaddress": "3e:4b:2e:56:24:f7", "promisc": false, "mtu": 1500, "device": "kube-ipvs0", "ipv4_secondaries": [{"broadcast": "10.233.0.3", "netmask": "255.255.255.255", "network": "10.233.0.3", "address": "10.233.0.3"}, {"broadcast": "10.233.23.95", "netmask": "255.255.255.255", "network": "10.233.23.95", "address": "10.233.23.95"}, {"broadcast": "10.233.59.76", "netmask": "255.255.255.255", "network": "10.233.59.76", "address": "10.233.59.76"}, {"broadcast": "10.233.22.67", "netmask": "255.255.255.255", "network": "10.233.22.67", "address": "10.233.22.67"}, {"broadcast": "10.233.38.108", "netmask": "255.255.255.255", "network": "10.233.38.108", "address": "10.233.38.108"}, {"broadcast": "10.233.39.128", "netmask": "255.255.255.255", "network": "10.233.39.128", "address": "10.233.39.128"}], "ipv4": {"broadcast": "10.233.0.1", "netmask": "255.255.255.255", "network": "10.233.0.1", "address": "10.233.0.1"}, "active": false, "type": "ether"}, "ansible_processor_vcpus": 4, "ansible_docker0": {"macaddress": "02:42:0b:f3:3a:c9", "interfaces": [], "mtu": 1500, "device": "docker0", "promisc": false, "stp": false, "ipv4": {"broadcast": "172.17.255.255", "netmask": "255.255.0.0", "network": "172.17.0.0", "address": "172.17.0.1"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::42:bff:fef3:3ac9"}], "active": false, "type": "bridge", "id": "8000.02420bf33ac9"}, "ansible_processor": ["0", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "1", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "2", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "3", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHM61TQ91gBtQqZk49aW49gIJJqrO1AI+YsK/rr1/RS7d3bljBnRd79p+VMkqPnCyjMT9x52D0wb/yPuzNsDqJc=", "ansible_user_gid": 1000, "ansible_system_vendor": "OpenStack Foundation", "ansible_swaptotal_mb": 0, "ansible_distribution_major_version": "9", "ansible_lxcfd6d13edc7cd": {"macaddress": "d2:6e:57:6a:3e:27", "type": "ether", "mtu": 8950, "device": "lxcfd6d13edc7cd", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::d06e:57ff:fe6a:3e27"}], "active": true, "speed": 10000}, "ansible_real_group_id": 1000, "ansible_lsb": {"release": "9.6", "major_release": "9", "codename": "stretch", "id": "Debian", "description": "Debian GNU/Linux 9.6 (stretch)"}, "ansible_default_ipv6": {}, "ansible_machine": "x86_64", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_user_gecos": "Cloud-init-user,,,", "ansible_processor_threads_per_core": 1, "ansible_eth0": {"macaddress": "fa:16:3e:47:b8:b5", "type": "ether", "pciid": "virtio0", "module": "virtio_net", "mtu": 8950, "device": "eth0", "promisc": false, "ipv4": {"broadcast": "10.253.0.255", "netmask": "255.255.255.0", "network": "10.253.0.0", "address": "10.253.0.25"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::f816:3eff:fe47:b8b5"}], "active": true, "speed": -1}, "ansible_system": "Linux", "ansible_processor_nproc": 4, "ansible_bios_vendor": "SeaBIOS", "ansible_all_ipv4_addresses": ["172.17.0.1", "10.253.0.25", "169.254.25.10", "10.233.64.199", "10.233.0.1", "10.233.0.3", "10.233.23.95", "10.233.59.76", "10.233.22.67", "10.233.38.108", "10.233.39.128"], "ansible_python_version": "2.7.13", "ansible_product_version": "18.3.0", "ansible_service_mgr": "systemd", "ansible_memory_mb": {"real": {"total": 5971, "used": 4736, "free": 1235}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 980, "free": 4991}}, "ansible_user_dir": "/home/debian", "ansible_hostnqn": "", "ansible_real_user_id": 1000, "ansible_virtualization_role": "guest", "ansible_dns": {"nameservers": ["10.253.0.2"], "domain": "openstacklocal", "search": ["openstacklocal"]}, "ansible_effective_group_id": 1000, "ansible_lo": {"mtu": 65536, "device": "lo", "promisc": false, "ipv4": {"broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 5971, "ansible_device_links": {"masters": {}, "labels": {}, "ids": {"sde1": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b-part1"], "sdc1": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a-part1"], "sdb1": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b-part1"], "sdc": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a"], "sdd": ["scsi-0QEMU_QEMU_HARDDISK_a40465fa-55da-49d9-9"], "sde": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b"], "sda": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0"], "sdb": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b"], "sda1": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part1"]}, "uuids": {"sdc1": ["91eee682-b4ee-42d3-9dc2-b85c4e5f58db"], "sdb1": ["93126b94-35fe-477f-b987-a3fec6d12b4d"], "sde1": ["225f99f8-b630-4b5e-b085-0dce713672a0"], "sda1": ["7b1f6f54-2d8b-4008-8a64-a7165506727f"]}}, "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_apparmor": {"status": "disabled"}, "ansible_board_vendor": "NA", "ansible_bios_date": "04/01/2014", "ansible_memfree_mb": 1235, "ansible_board_version": "NA", "ansible_nodelocaldns": {"macaddress": "ea:ac:e0:49:82:ae", "mtu": 1500, "device": "nodelocaldns", "promisc": false, "ipv4": {"broadcast": "169.254.25.10", "netmask": "255.255.255.255", "network": "169.254.25.10", "address": "169.254.25.10"}, "active": false, "type": "ether"}, "ansible_chassis_vendor": "Red Hat", "ansible_processor_count": 4, "ansible_hostname": "control01-onap-master", "ansible_interfaces": ["docker0", "cilium_net", "cilium_host", "kube-ipvs0", "lo", "nodelocaldns", "lxcfd6d13edc7cd", "cilium_vxlan", "lxcf21b01629876", "dummy0", "lxc_health", "eth0"], "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_fqdn": "control01-onap-master.novalocal", "ansible_mounts": [{"block_used": 12553, "uuid": "93126b94-35fe-477f-b987-a3fec6d12b4d", "size_total": 10724835328, "block_total": 2618368, "mount": "/var/log", "block_available": 2605815, "size_available": 10673418240, "fstype": "xfs", "inode_total": 5241856, "options": "rw,nosuid,nodev,noexec,noatime,attr2,inode64,noquota", "device": "/dev/sdb1", "inode_used": 68, "block_size": 4096, "inode_available": 5241788}, {"block_used": 478611, "uuid": "225f99f8-b630-4b5e-b085-0dce713672a0", "size_total": 5356126208, "block_total": 1307648, "mount": "/var/lib/docker", "block_available": 829037, "size_available": 3395735552, "fstype": "xfs", "inode_total": 2620416, "options": "rw,noatime,attr2,inode64,noquota", "device": "/dev/sde1", "inode_used": 24402, "block_size": 4096, "inode_available": 2596014}, {"block_used": 755653, "uuid": "7b1f6f54-2d8b-4008-8a64-a7165506727f", "size_total": 10534256640, "block_total": 2571840, "mount": "/", "block_available": 1816187, "size_available": 7439101952, "fstype": "ext4", "inode_total": 655360, "options": "rw,relatime,errors=remount-ro,data=ordered", "device": "/dev/sda1", "inode_used": 68009, "block_size": 4096, "inode_available": 587351}, {"block_used": 10939, "uuid": "91eee682-b4ee-42d3-9dc2-b85c4e5f58db", "size_total": 10724835328, "block_total": 2618368, "mount": "/var/lib/kubelet", "block_available": 2607429, "size_available": 10680029184, "fstype": "xfs", "inode_total": 5241856, "options": "rw,noatime,attr2,inode64,noquota", "device": "/dev/sdc1", "inode_used": 208, "block_size": 4096, "inode_available": 5241648}], "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDfhXE/aeCLRnfN7NvpkE6eaihHNCLkcpkwU0eyAgZpO6dvGWin31rnNs3pIxqj1WZ2V/q3sAl/6m4D0mnsGom3Hco5X63dVVSXwWzgnO03r7YYONE1drx2fO+0l4FrWiGdME5cpKcgWMjm1qKmZrrDYq7FZ7Xa81uuT8dWCTNh5L2GM56Ruio4m21mxmZNRyTVb/TcMcUYCEJzJoGhcq8998Zusj5c69QPNIhEAvA3ziHbzGE+NEso9nFktdeB0L7/6xAKPil3Z1lpsI1iHlJCykPAUIWdpyB6CXz0/nDPTV+3r4vH4JeTOE4GdaOs3w1AW0acI8bHRIpOw1cXYPRL", "ansible_nodename": "control01-onap-master", "ansible_dummy0": {"macaddress": "aa:d4:a1:42:42:42", "mtu": 1500, "device": "dummy0", "promisc": false, "active": false, "type": "ether"}, "ansible_domain": "novalocal", "ansible_distribution_file_path": "/etc/os-release", "ansible_virtualization_type": "openstack", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIH5MlxzPwKKQ7nxtElx50eqdtfVMsnaz2vDkL+QZPCVy", "ansible_processor_cores": 1, "ansible_chassis_serial": "NA", "ansible_bios_version": "1.11.0-2.el7", "ansible_date_time": {"weekday_number": "2", "iso8601_basic_short": "20201117T154713", "tz": "UTC", "weeknumber": "46", "hour": "15", "year": "2020", "minute": "47", "tz_offset": "+0000", "month": "11", "epoch": "1605628033", "iso8601_micro": "2020-11-17T15:47:13.085330Z", "weekday": "Tuesday", "time": "15:47:13", "date": "2020-11-17", "iso8601": "2020-11-17T15:47:13Z", "day": "17", "iso8601_basic": "20201117T154713085330", "second": "13"}, "ansible_distribution_release": "stretch", "ansible_os_family": "Debian", "ansible_effective_user_id": 1000, "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_product_name": "OpenStack Nova", "ansible_devices": {"sdd": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "209715200", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_a40465fa-55da-49d9-9"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {}, "holders": [], "size": "100.00 GB"}, "sde": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "10485760", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sde1": {"sectorsize": 512, "uuid": "225f99f8-b630-4b5e-b085-0dce713672a0", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b-part1"], "uuids": ["225f99f8-b630-4b5e-b085-0dce713672a0"]}, "sectors": "10481664", "start": "2048", "holders": [], "size": "5.00 GB"}}, "holders": [], "size": "5.00 GB"}, "sda": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sda1": {"sectorsize": 512, "uuid": "7b1f6f54-2d8b-4008-8a64-a7165506727f", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part1"], "uuids": ["7b1f6f54-2d8b-4008-8a64-a7165506727f"]}, "sectors": "20969439", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}, "sdb": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sdb1": {"sectorsize": 512, "uuid": "93126b94-35fe-477f-b987-a3fec6d12b4d", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b-part1"], "uuids": ["93126b94-35fe-477f-b987-a3fec6d12b4d"]}, "sectors": "20967424", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}, "sdc": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sdc1": {"sectorsize": 512, "uuid": "91eee682-b4ee-42d3-9dc2-b85c4e5f58db", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a-part1"], "uuids": ["91eee682-b4ee-42d3-9dc2-b85c4e5f58db"]}, "sectors": "20967424", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}}, "ansible_user_uid": 1000, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANP4nVJ/9oTBJIRkvci4BG2d7msSIRPBiC3VjP0yJEc/0Ch0an3YEN5LUotCarEJLi7XR18o6b4O2NiRwVpG7kvAfx/EmNcAlmrkTgaldg+Go5F0FFKbyQWAT6MXw7w7yb5azXrLEsITWhZbnSJz155WRTSgGVeIX9g3Bh3/V+LVAAAAFQDjpEmZSA9laytRvyIbzLTvg1LdFQAAAIEAsPFoyEawCtEs4qDI5qYAoQ0Pta2sfH9Nz4PACUIeg6FkVREekAjFstHaFwmBYgMVXVO/VJN+uz/oHM03kCV+jCYMshVNoydHtD9akkYREYfqDijeFBmQwOQjYqxCpxM2+FiQTlFYeIU6EDpIHtI5GfOFapNFkuqoiVcyT3eJHNcAAACBAIkXDRiaRo2fC+7/9Q9SXIkSlmlVLRh3iqG7oNDmbjX5EgkHGrWjbOqvE7/2Fp1avzXRZo9ALFvDlMFD8qc8u9FEeUXt2BdFsvfcahvPKSABmTH5chylL2xi6ARwqQgRYsr4gBqhV4Qw5XP5fjlTDyPUQYMC1gY/7PuodJ/GhzXv", "ansible_proc_cmdline": {"console": ["tty0", "ttyS0,115200"], "earlyprintk": "ttyS0,115200", "root": "UUID=7b1f6f54-2d8b-4008-8a64-a7165506727f", "net.ifnames": "0", "consoleblank": "0", "biosdevname": "0", "BOOT_IMAGE": "/boot/vmlinuz-4.9.0-8-amd64", "ro": true, "systemd.show_status": "true"}, "ansible_chassis_version": "RHEL 7.6.0 PC (i440FX + PIIX, 1996)", "ansible_system_capabilities": [""], "ansible_lxcf21b01629876": {"macaddress": "42:d6:c8:47:ee:de", "type": "ether", "mtu": 8950, "device": "lxcf21b01629876", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::40d6:c8ff:fe47:eede"}], "active": true, "speed": 10000}, "ansible_chassis_asset_tag": "NA"}}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
[DEPRECATION WARNING]: Distribution debian 9.6 on host other should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [other]
META: ran handlers

TASK [generate k8s yaml] *************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:3
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<master.onap.eu> (0, b'/home/debian\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/debian/.ansible/tmp `"&& mkdir "` echo /home/debian/.ansible/tmp/ansible-tmp-1605628033.447737-15260-268571314774460 `" && echo ansible-tmp-1605628033.447737-15260-268571314774460="` echo /home/debian/.ansible/tmp/ansible-tmp-1605628033.447737-15260-268571314774460 `" ) && sleep 0'"'"''
<master.onap.eu> (0, b'ansible-tmp-1605628033.447737-15260-268571314774460=/home/debian/.ansible/tmp/ansible-tmp-1605628033.447737-15260-268571314774460\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/stat.py
Pipelining is enabled.
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'\n{"invocation": {"module_args": {"checksum_algorithm": "sha1", "get_checksum": true, "follow": false, "path": "/tmp/deploy.yml", "get_md5": false, "get_mime": true, "get_attributes": true}}, "stat": {"charset": "us-ascii", "uid": 1000, "exists": true, "attr_flags": "e", "woth": false, "isreg": true, "device_type": 0, "mtime": 1605627665.045826, "block_size": 4096, "inode": 393574, "isgid": false, "size": 340, "executable": false, "isuid": false, "readable": true, "version": "30124942", "pw_name": "debian", "gid": 1000, "ischr": false, "wusr": true, "writeable": true, "mimetype": "text/plain", "blocks": 8, "xoth": false, "islnk": false, "nlink": 1, "issock": false, "rgrp": true, "gr_name": "debian", "path": "/tmp/deploy.yml", "xusr": false, "atime": 1605627673.7546244, "isdir": false, "ctime": 1605627665.6058774, "isblk": false, "wgrp": false, "checksum": "474c351ed6d3f715126dfd1cbb181556796677a3", "dev": 2049, "roth": true, "isfifo": false, "mode": "0644", "xgrp": false, "rusr": true, "attributes": ["extents"]}, "changed": false}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/file.py
Pipelining is enabled.
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'\n{"group": "debian", "uid": 1000, "changed": false, "owner": "debian", "state": "file", "gid": 1000, "mode": "0644", "path": "/tmp/deploy.yml", "invocation": {"module_args": {"force": false, "_original_basename": "tmpmj9aiae9", "owner": null, "follow": true, "group": null, "unsafe_writes": false, "state": "file", "setype": null, "access_time": null, "dest": "/tmp/deploy.yml", "selevel": null, "access_time_format": "%Y%m%d%H%M.%S", "modification_time": null, "path": "/tmp/deploy.yml", "src": null, "serole": null, "seuser": null, "recurse": false, "_diff_peek": null, "mode": null, "modification_time_format": "%Y%m%d%H%M.%S", "attributes": null}}, "diff": {"after": {"path": "/tmp/deploy.yml"}, "before": {"path": "/tmp/deploy.yml"}}, "size": 340}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'rm -f -r /home/debian/.ansible/tmp/ansible-tmp-1605628033.447737-15260-268571314774460/ > /dev/null 2>&1 && sleep 0'"'"''
<master.onap.eu> (0, b'', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
ok: [other] => changed=false
  checksum: 474c351ed6d3f715126dfd1cbb181556796677a3
  dest: /tmp/deploy.yml
  diff:
    after:
      path: /tmp/deploy.yml
    before:
      path: /tmp/deploy.yml
  gid: 1000
  group: debian
  invocation:
    module_args:
      _diff_peek: null
      _original_basename: tmpmj9aiae9
      access_time: null
      access_time_format: '%Y%m%d%H%M.%S'
      attributes: null
      dest: /tmp/deploy.yml
      follow: true
      force: false
      group: null
      mode: null
      modification_time: null
      modification_time_format: '%Y%m%d%H%M.%S'
      owner: null
      path: /tmp/deploy.yml
      recurse: false
      selevel: null
      serole: null
      setype: null
      seuser: null
      src: null
      state: file
      unsafe_writes: false
  mode: '0644'
  owner: debian
  path: /tmp/deploy.yml
  size: 340
  state: file
  uid: 1000

TASK [add deploy] ********************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:28
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<master.onap.eu> (0, b'/home/debian\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/debian/.ansible/tmp `"&& mkdir "` echo /home/debian/.ansible/tmp/ansible-tmp-1605628034.811645-15287-193588087366311 `" && echo ansible-tmp-1605628034.811645-15287-193588087366311="` echo /home/debian/.ansible/tmp/ansible-tmp-1605628034.811645-15287-193588087366311 `" ) && sleep 0'"'"''
<master.onap.eu> (0, b'ansible-tmp-1605628034.811645-15287-193588087366311=/home/debian/.ansible/tmp/ansible-tmp-1605628034.811645-15287-193588087366311\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'rm -f -r /home/debian/.ansible/tmp/ansible-tmp-1605628034.811645-15287-193588087366311/ > /dev/null 2>&1 && sleep 0'"'"''
<master.onap.eu> (0, b'', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14676\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
The full traceback is:
Traceback (most recent call last):
  File "/Users/sylvain/.ansible/collections/ansible_collections/community/kubernetes/plugins/action/k8s.py", line 68, in run
    src = self._find_needle('files', src)
  File "/Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/plugins/action/__init__.py", line 1232, in _find_needle
    return self._loader.path_dwim_relative_stack(path_stack, dirname, needle)
  File "/Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/parsing/dataloader.py", line 327, in path_dwim_relative_stack
    raise AnsibleFileNotFound(file_name=source, paths=[to_native(p) for p in search])
ansible.errors.AnsibleFileNotFound: Could not find or access '/tmp/deploy.yml' on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [other]: FAILED! => changed=false
  msg: |-
    Could not find or access '/tmp/deploy.yml' on the Ansible Controller.
    If you are using a module and expect the file to exist on the remote, see the remote_src option

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
other                      : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

SECOND TRY

As said by First run error, we put the file on the controller.

But we see here that the module tries to launch itself but the file is missing (as it's on the controller...)

Nov 17 15:49:42 control01-onap-master systemd[1]: Started Session 55 of user debian.
Nov 17 15:49:42 control01-onap-master kubelet[20742]: I1117 15:49:42.791092   20742 setters.go:73] Using node IP: "10.253.0.25"
Nov 17 15:49:42 control01-onap-master kubelet[20742]: W1117 15:49:42.791156   20742 setters.go:152] adding overridden hostname of control01-onap-master to cloudprovider-reported addresses
Nov 17 15:49:43 control01-onap-master ansible-ansible.legacy.setup: Invoked with filter=* gather_subset=['all'] fact_path=/etc/ansible/facts.d gather_timeout=10
Nov 17 15:49:45 control01-onap-master ansible-community.kubernetes.k8s: Invoked with force=False wait_sleep=5 apply=False client_key=None persist_config=None namespace=None resource_definition=None state=present template=None api_key=NOT_LOGGING_PARAMETER client_cert=None api_version=v1 username=None ca_cert=None src=/tmp/deploy.yml wait_condition=None host=None wait_timeout=120 proxy=None validate=None password=NOT_LOGGING_PARAMETER wait=False append_hash=False merge_type=None kind=None name=None kubeconfig=None context=None validate_certs=None
ansible-playbook 2.10.1
  config file = /Users/sylvain/.ansible.cfg
  configured module search path = ['/Users/sylvain/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible
  executable location = /Users/sylvain/.pyenv/versions/3.8.1/bin/ansible-playbook
  python version = 3.8.1 (default, May 12 2020, 14:29:45) [Clang 11.0.0 (clang-1100.0.33.8)]
Using /Users/sylvain/.ansible.cfg as config file
setting up inventory plugins
host_list declined parsing /private/tmp/inventory as it did not pass its verify_file() method
script declined parsing /private/tmp/inventory as it did not pass its verify_file() method
auto declined parsing /private/tmp/inventory as it did not pass its verify_file() method
Parsed /private/tmp/inventory inventory source with ini plugin
Loading collection community.kubernetes from /Users/sylvain/.ansible/collections/ansible_collections/community/kubernetes
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
Loading collection community.general from /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible_collections/community/general
redirecting (type: callback) ansible.builtin.yaml to community.general.yaml
Loading callback plugin community.general.yaml of type stdout, v2.0 from /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible_collections/community/general/plugins/callback/yaml.py

PLAYBOOK: test.yaml ******************************************************************************************************************************************************************************************************************************
Positional arguments: test.yaml
verbosity: 4
connection: smart
timeout: 10
become_method: sudo
tags: ('all',)
inventory: ('/private/tmp/inventory',)
forks: 50
1 plays in test.yaml

PLAY [other] *************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:1
<other> Attempting python interpreter discovery
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'echo PLATFORM; uname; echo FOUND; command -v '"'"'"'"'"'"'"'"'/usr/bin/python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python3.5'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.7'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python2.6'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/libexec/platform-python'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'/usr/bin/python3'"'"'"'"'"'"'"'"'; command -v '"'"'"'"'"'"'"'"'python'"'"'"'"'"'"'"'"'; echo ENDFOUND && sleep 0'"'"''
<master.onap.eu> (0, b'PLATFORM\nLinux\nFOUND\n/usr/bin/python\n/usr/bin/python3.5\n/usr/bin/python2.7\n/usr/bin/python3\n/usr/bin/python\nENDFOUND\n', b'OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W \'[%h]:%p\' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: Control socket "/Users/sylvain/.ansible/cp/04df850fe5" does not exist\r\ndebug1: Executing proxy command: exec ssh -vvv -W \'[master.onap.eu]:22\' rebond.opnfv.fr\r\ndebug3: timeout: 10000 ms remain after connect\r\ndebug1: identity file /Users/sylvain/.ssh/id_ed25519 type 3\r\ndebug1: identity file /Users/sylvain/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/sylvain/.ssh/id_rsa_OL type 0\r\ndebug1: identity file /Users/sylvain/.ssh/id_rsa_OL-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: kex_exchange_identification: banner line 0: -----------------------------------\r\ndebug1: kex_exchange_identification: banner line 1: IP utilis\xc3\xa9es:\r\ndebug1: kex_exchange_identification: banner line 2:  - 192.168.1.22\r\ndebug1: kex_exchange_identification: banner line 3: >> Proxy d\xc3\xa9sactiv\xc3\xa9\r\ndebug1: kex_exchange_identification: banner line 4: >> R\xc3\xa9seau maison\r\ndebug1: kex_exchange_identification: banner line 5: -----------------------------------\r\nOpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 90: Applying options for rebond.opnfv.fr\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: /Users/sylvain/.ssh/config line 174: Applying options for *.opnfv.fr\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug2: resolve_canonicalize: hostname 161.105.253.100 is address\r\ndebug2: ssh_connect_direct\r\ndebug1: Connecting to 161.105.253.100 [161.105.253.100] port 22.\r\ndebug1: Connection established.\r\ndebug1: identity file /Users/sylvain/.ssh/id_ed25519 type 3\r\ndebug1: identity file /Users/sylvain/.ssh/id_ed25519-cert type -1\r\ndebug1: identity file /Users/sylvain/.ssh/id_rsa_OL type 0\r\ndebug1: identity file /Users/sylvain/.ssh/id_rsa_OL-cert type -1\r\ndebug1: Local version string SSH-2.0-OpenSSH_8.1\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_6.8p1-hpn14v4\r\ndebug1: match: OpenSSH_6.8p1-hpn14v4 pat OpenSSH* compat 0x04000000\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: Authenticating to 161.105.253.100:22 as \'user\'\r\ndebug3: hostkeys_foreach: reading file "/dev/null"\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,zlib@openssh.com,zlib\r\ndebug2: compression stoc: none,zlib@openssh.com,zlib\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com\r\ndebug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com,chacha20-poly1305@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256@libssh.org\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:0UGN7fTs4QaeKlLhevSZvy87qC9/lhuEu2uft4Y1/Kc\r\ndebug3: hostkeys_foreach: reading file "/dev/null"\r\nWarning: Permanently added \'161.105.253.100\' (ECDSA) to the list of known hosts.\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug1: Will attempt key: /Users/sylvain/.ssh/id_ed25519 ED25519 SHA256:DNf1EM9S+GtD18jHcynQj0FVPrLKZXPmJPs2qyYno0k explicit\r\ndebug1: Will attempt key: /Users/sylvain/.ssh/id_rsa_OL RSA SHA256:mEVM06IMyj67nkPivvCky6mNbP9emfNKXM74y7sGiOs explicit\r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey\r\ndebug3: start over, passed a different list publickey\r\ndebug3: preferred publickey,keyboard-interactive,password\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: keyboard-interactive,password\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU\r\ndebug3: sign_and_send_pubkey: signing using ssh-rsa\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to 161.105.253.100 ([161.105.253.100]:22).\r\ndebug3: ssh_init_stdio_forwarding: master.onap.eu:22\r\ndebug1: channel_connect_stdio_fwd master.onap.eu:22\r\ndebug1: channel 0: new [stdio-forward]\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug1: getpeername failed: Bad file descriptor\r\ndebug3: send packet: type 90\r\ndebug2: fd 3 setting TCP_NODELAY\r\ndebug3: ssh_packet_set_tos: set IP_TOS 0x48\r\ndebug1: Requesting no-more-sessions@openssh.com\r\ndebug3: send packet: type 80\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: network\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 0: callback start\r\ndebug2: channel_input_open_confirmation: channel 0: callback done\r\ndebug2: channel 0: open confirm rwindow 2097152 rmax 32768\r\ndebug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Debian-10+deb9u4\r\ndebug1: match: OpenSSH_7.4p1 Debian-10+deb9u4 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002\r\ndebug2: fd 5 setting O_NONBLOCK\r\ndebug2: fd 4 setting O_NONBLOCK\r\ndebug1: Authenticating to master.onap.eu:22 as \'debian\'\r\ndebug3: hostkeys_foreach: reading file "/dev/null"\r\ndebug3: send packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT sent\r\ndebug3: receive packet: type 20\r\ndebug1: SSH2_MSG_KEXINIT received\r\ndebug2: local client KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c\r\ndebug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ssh-ed25519-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: zlib@openssh.com,zlib,none\r\ndebug2: compression stoc: zlib@openssh.com,zlib,none\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug2: peer server KEXINIT proposal\r\ndebug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1\r\ndebug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519\r\ndebug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com\r\ndebug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1\r\ndebug2: compression ctos: none,zlib@openssh.com\r\ndebug2: compression stoc: none,zlib@openssh.com\r\ndebug2: languages ctos: \r\ndebug2: languages stoc: \r\ndebug2: first_kex_follows 0 \r\ndebug2: reserved 0 \r\ndebug1: kex: algorithm: curve25519-sha256\r\ndebug1: kex: host key algorithm: ecdsa-sha2-nistp256\r\ndebug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: zlib@openssh.com\r\ndebug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: zlib@openssh.com\r\ndebug3: send packet: type 30\r\ndebug1: expecting SSH2_MSG_KEX_ECDH_REPLY\r\ndebug3: receive packet: type 31\r\ndebug1: Server host key: ecdsa-sha2-nistp256 SHA256:BtLq/36FVyKv9zL5BmmKlah5AdW81roiIiwBcIhKQXo\r\ndebug3: hostkeys_foreach: reading file "/dev/null"\r\nWarning: Permanently added \'master.onap.eu\' (ECDSA) to the list of known hosts.\r\ndebug3: send packet: type 21\r\ndebug2: set_newkeys: mode 1\r\ndebug1: rekey out after 134217728 blocks\r\ndebug1: SSH2_MSG_NEWKEYS sent\r\ndebug1: expecting SSH2_MSG_NEWKEYS\r\ndebug3: receive packet: type 21\r\ndebug1: SSH2_MSG_NEWKEYS received\r\ndebug2: set_newkeys: mode 0\r\ndebug1: rekey in after 134217728 blocks\r\ndebug1: Will attempt key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug1: Will attempt key: /Users/sylvain/.ssh/id_ed25519 ED25519 SHA256:DNf1EM9S+GtD18jHcynQj0FVPrLKZXPmJPs2qyYno0k explicit\r\ndebug1: Will attempt key: /Users/sylvain/.ssh/id_rsa_OL RSA SHA256:mEVM06IMyj67nkPivvCky6mNbP9emfNKXM74y7sGiOs explicit\r\ndebug2: pubkey_prepare: done\r\ndebug3: send packet: type 5\r\ndebug3: receive packet: type 7\r\ndebug1: SSH2_MSG_EXT_INFO received\r\ndebug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>\r\ndebug3: receive packet: type 6\r\ndebug2: service_accept: ssh-userauth\r\ndebug1: SSH2_MSG_SERVICE_ACCEPT received\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 51\r\ndebug1: Authentications that can continue: publickey,password\r\ndebug3: start over, passed a different list publickey,password\r\ndebug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_lookup publickey\r\ndebug3: remaining preferred: ,gssapi-keyex,hostbased,publickey\r\ndebug3: authmethod_is_enabled publickey\r\ndebug1: Next authentication method: publickey\r\ndebug1: Offering public key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug3: send packet: type 50\r\ndebug2: we sent a publickey packet, wait for reply\r\ndebug3: receive packet: type 60\r\ndebug1: Server accepts key: /Users/sylvain/Library/Group Containers/E78WKS7W4U.io.coressh.ssh/.ssh/privatekey/id_rsa RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU agent\r\ndebug3: sign_and_send_pubkey: RSA SHA256:tAMY076LOO2ID2vuDCEAaVuslkPPW+SRil5W6EUW1aU\r\ndebug3: sign_and_send_pubkey: signing using ssh-rsa\r\ndebug3: send packet: type 50\r\ndebug3: receive packet: type 52\r\ndebug1: Enabling compression at level 6.\r\ndebug1: Authentication succeeded (publickey).\r\nAuthenticated to master.onap.eu (via proxy).\r\ndebug1: setting up multiplex master socket\r\ndebug3: muxserver_listen: temporary control path /Users/sylvain/.ansible/cp/04df850fe5.ErfcGPUCAXqjOje2\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug3: fd 3 is O_NONBLOCK\r\ndebug3: fd 3 is O_NONBLOCK\r\ndebug1: channel 0: new [/Users/sylvain/.ansible/cp/04df850fe5]\r\ndebug3: muxserver_listen: mux listener channel 0 fd 3\r\ndebug1: control_persist_detach: backgrounding master process\r\ndebug2: control_persist_detach: background process is 17972\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug1: forking to background\r\ndebug1: Entering interactive session.\r\ndebug1: pledge: id\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\ndebug1: multiplexing control connection\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug3: fd 6 is O_NONBLOCK\r\ndebug1: channel 1: new [mux-control]\r\ndebug3: channel_post_mux_listener: new mux channel 1 fd 6\r\ndebug3: mux_master_read_cb: channel 1: hello sent\r\ndebug2: set_control_persist_exit_time: cancel scheduled exit\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x00000001 len 4\r\ndebug2: mux_master_process_hello: channel 1 slave version 4\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000004 len 4\r\ndebug2: mux_master_process_alive_check: channel 1: alive check\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_master_read_cb: channel 1 packet type 0x10000002 len 509\r\ndebug2: mux_master_process_new_session: channel 1: request tty 0, X 0, agent 0, subsys 0, term "xterm-256color", cmd "/bin/sh -c \'echo PLATFORM; uname; echo FOUND; command -v \'"\'"\'/usr/bin/python\'"\'"\'; command -v \'"\'"\'python3.7\'"\'"\'; command -v \'"\'"\'python3.6\'"\'"\'; command -v \'"\'"\'python3.5\'"\'"\'; command -v \'"\'"\'python2.7\'"\'"\'; command -v \'"\'"\'python2.6\'"\'"\'; command -v \'"\'"\'/usr/libexec/platform-python\'"\'"\'; command -v \'"\'"\'/usr/bin/python3\'"\'"\'; command -v \'"\'"\'python\'"\'"\'; echo ENDFOUND && sleep 0\'", env 3\r\ndebug3: mux_master_process_new_session: got fds stdin 7, stdout 8, stderr 9\r\ndebug2: fd 8 setting O_NONBLOCK\r\ndebug2: fd 9 setting O_NONBLOCK\r\ndebug1: channel 2: new [client-session]\r\ndebug2: mux_master_process_new_session: channel_new: 2 linked to control channel 1\r\ndebug2: channel 2: send open\r\ndebug3: send packet: type 90\r\ndebug3: receive packet: type 80\r\ndebug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0\r\ndebug3: receive packet: type 91\r\ndebug2: channel_input_open_confirmation: channel 2: callback start\r\ndebug2: client_session2_setup: id 2\r\ndebug1: Sending environment.\r\ndebug1: Sending env LANG = fr_FR.UTF-8\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending env LC_TERMINAL_VERSION = 3.4.0\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending env LC_TERMINAL = iTerm2\r\ndebug2: channel 2: request env confirm 0\r\ndebug3: send packet: type 98\r\ndebug1: Sending command: /bin/sh -c \'echo PLATFORM; uname; echo FOUND; command -v \'"\'"\'/usr/bin/python\'"\'"\'; command -v \'"\'"\'python3.7\'"\'"\'; command -v \'"\'"\'python3.6\'"\'"\'; command -v \'"\'"\'python3.5\'"\'"\'; command -v \'"\'"\'python2.7\'"\'"\'; command -v \'"\'"\'python2.6\'"\'"\'; command -v \'"\'"\'/usr/libexec/platform-python\'"\'"\'; command -v \'"\'"\'/usr/bin/python3\'"\'"\'; command -v \'"\'"\'python\'"\'"\'; echo ENDFOUND && sleep 0\'\r\ndebug2: channel 2: request exec confirm 1\r\ndebug3: send packet: type 98\r\ndebug3: mux_session_confirm: sending success reply\r\ndebug2: channel_input_open_confirmation: channel 2: callback done\r\ndebug2: channel 2: open confirm rwindow 0 rmax 32768\r\ndebug2: channel 2: rcvd adjust 2097152\r\ndebug3: receive packet: type 99\r\ndebug2: channel_input_status_confirm: type 99 id 2\r\ndebug2: exec request accepted on channel 2\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype exit-status reply 0\r\ndebug3: mux_exit_message: channel 2: exit message, exitval 0\r\ndebug3: receive packet: type 98\r\ndebug1: client_input_channel_req: channel 2 rtype eow@openssh.com reply 0\r\ndebug2: channel 2: rcvd eow\r\ndebug2: channel 2: chan_shutdown_read (i0 o0 sock -1 wfd 7 efd 9 [write])\r\ndebug2: channel 2: input open -> closed\r\ndebug3: receive packet: type 96\r\ndebug2: channel 2: rcvd eof\r\ndebug2: channel 2: output open -> drain\r\ndebug3: receive packet: type 97\r\ndebug2: channel 2: rcvd close\r\ndebug3: channel 2: will not send data after close\r\ndebug3: channel 2: will not send data after close\r\ndebug2: channel 2: obuf empty\r\ndebug2: channel 2: chan_shutdown_write (i3 o1 sock -1 wfd 8 efd 9 [write])\r\ndebug2: channel 2: output drain -> closed\r\ndebug2: channel 2: send close\r\ndebug3: send packet: type 97\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: gc: notify user\r\ndebug3: mux_master_session_cleanup_cb: entering for channel 2\r\ndebug2: channel 1: rcvd close\r\ndebug2: channel 1: output open -> drain\r\ndebug2: channel 1: chan_shutdown_read (i0 o1 sock 6 wfd 6 efd -1 [closed])\r\ndebug2: channel 1: input open -> closed\r\ndebug2: channel 2: gc: user detached\r\ndebug2: channel 2: is dead\r\ndebug2: channel 2: garbage collecting\r\ndebug1: channel 2: free: client-session, nchannels 3\r\ndebug3: channel 2: status: The following connections are open:\r\n  #1 mux-control (t16 nr0 i3/0 o1/0 e[closed]/0 fd 6/6/-1 sock 6 cc -1)\r\n  #2 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/9 sock -1 cc -1)\r\n\r\ndebug2: channel 1: obuf empty\r\ndebug2: channel 1: chan_shutdown_write (i3 o1 sock 6 wfd 6 efd -1 [closed])\r\ndebug2: channel 1: output drain -> closed\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: gc: notify user\r\ndebug3: mux_master_control_cleanup_cb: entering for channel 1\r\ndebug2: channel 1: gc: user detached\r\ndebug2: channel 1: is dead (local)\r\ndebug2: channel 1: garbage collecting\r\ndebug1: channel 1: free: mux-control, nchannels 2\r\ndebug3: channel 1: status: The following connections are open:\r\n  #1 mux-control (t16 nr0 i3/0 o3/0 e[closed]/0 fd 6/6/-1 sock 6 cc -1)\r\n\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\ndebug2: set_control_persist_exit_time: schedule exit in 60 seconds\r\n')
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'{"osrelease_content": "PRETTY_NAME=\\"Debian GNU/Linux 9 (stretch)\\"\\nNAME=\\"Debian GNU/Linux\\"\\nVERSION_ID=\\"9\\"\\nVERSION=\\"9 (stretch)\\"\\nID=debian\\nHOME_URL=\\"https://www.debian.org/\\"\\nSUPPORT_URL=\\"https://www.debian.org/support\\"\\nBUG_REPORT_URL=\\"https://bugs.debian.org/\\"\\n", "platform_dist_result": ["debian", "9.6", ""]}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/setup.py
Pipelining is enabled.
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (0, b'\n{"invocation": {"module_args": {"filter": "*", "gather_subset": ["all"], "fact_path": "/etc/ansible/facts.d", "gather_timeout": 10}}, "ansible_facts": {"ansible_fibre_channel_wwn": [], "module_setup": true, "ansible_distribution_version": "9.6", "ansible_board_name": "NA", "ansible_distribution_file_variety": "Debian", "ansible_env": {"LANG": "C", "LC_TERMINAL": "iTerm2", "LC_ALL": "C", "SHELL": "/bin/bash", "XDG_RUNTIME_DIR": "/run/user/1000", "LC_NUMERIC": "C", "SHLVL": "1", "HOME": "/home/debian", "LC_TERMINAL_VERSION": "3.4.0", "PWD": "/home/debian", "SSH_CLIENT": "10.0.2.3 41458 22", "LOGNAME": "debian", "USER": "debian", "PATH": "/usr/local/bin:/usr/bin:/bin:/usr/games", "MAIL": "/var/mail/debian", "SSH_CONNECTION": "10.0.2.3 41458 10.253.0.25 22", "XDG_SESSION_ID": "56", "_": "/bin/sh"}, "ansible_userspace_bits": "64", "ansible_architecture": "x86_64", "ansible_default_ipv4": {"macaddress": "fa:16:3e:47:b8:b5", "network": "10.253.0.0", "mtu": 8950, "broadcast": "10.253.0.255", "alias": "eth0", "netmask": "255.255.255.0", "address": "10.253.0.25", "interface": "eth0", "type": "ether", "gateway": "10.253.0.1"}, "ansible_swapfree_mb": 0, "ansible_cilium_vxlan": {"macaddress": "4a:57:88:31:28:c6", "mtu": 8950, "device": "cilium_vxlan", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::4857:88ff:fe31:28c6"}], "active": true, "type": "ether"}, "ansible_cmdline": {"console": "ttyS0,115200", "earlyprintk": "ttyS0,115200", "root": "UUID=7b1f6f54-2d8b-4008-8a64-a7165506727f", "net.ifnames": "0", "consoleblank": "0", "biosdevname": "0", "BOOT_IMAGE": "/boot/vmlinuz-4.9.0-8-amd64", "ro": true, "systemd.show_status": "true"}, "ansible_ssh_host_key_ed25519_public_keytype": "ssh-ed25519", "ansible_machine_id": "2a1cf03486cb4456a53ceeb1397d31ff", "ansible_userspace_architecture": "x86_64", "ansible_product_uuid": "NA", "ansible_cilium_net": {"macaddress": "7a:04:f3:e1:f2:6b", "type": "ether", "mtu": 8950, "device": "cilium_net", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::7804:f3ff:fee1:f26b"}], "active": true, "speed": 10000}, "ansible_pkg_mgr": "apt", "ansible_distribution": "Debian", "ansible_cilium_host": {"macaddress": "4a:71:4d:4d:d9:a7", "type": "ether", "mtu": 8950, "device": "cilium_host", "promisc": false, "ipv4": {"broadcast": "", "netmask": "255.255.255.255", "network": "10.233.64.199", "address": "10.233.64.199"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::4871:4dff:fe4d:d9a7"}], "active": true, "speed": 10000}, "ansible_iscsi_iqn": "", "ansible_lxc_health": {"macaddress": "b2:f5:d5:29:5d:1c", "type": "ether", "mtu": 8950, "device": "lxc_health", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::b0f5:d5ff:fe29:5d1c"}], "active": true, "speed": 10000}, "ansible_all_ipv6_addresses": ["fe80::42:bff:fef3:3ac9", "fe80::f816:3eff:fe47:b8b5", "fe80::4871:4dff:fe4d:d9a7", "fe80::40d6:c8ff:fe47:eede", "fe80::b0f5:d5ff:fe29:5d1c", "fe80::d06e:57ff:fe6a:3e27", "fe80::4857:88ff:fe31:28c6", "fe80::7804:f3ff:fee1:f26b"], "ansible_uptime_seconds": 26034, "ansible_kernel": "4.9.0-8-amd64", "ansible_system_capabilities_enforced": "True", "ansible_python": {"executable": "/usr/bin/python", "version": {"micro": 13, "major": 2, "releaselevel": "final", "serial": 0, "minor": 7}, "type": "CPython", "has_sslcontext": true, "version_info": [2, 7, 13, "final", 0]}, "ansible_is_chroot": false, "gather_subset": ["all"], "ansible_board_asset_tag": "NA", "ansible_user_shell": "/bin/bash", "ansible_product_serial": "NA", "ansible_form_factor": "Other", "ansible_distribution_file_parsed": true, "ansible_fips": false, "ansible_user_id": "debian", "ansible_selinux_python_present": false, "ansible_board_serial": "NA", "ansible_kernel_version": "#1 SMP Debian 4.9.130-2 (2018-10-27)", "ansible_local": {}, "ansible_kube_ipvs0": {"macaddress": "3e:4b:2e:56:24:f7", "promisc": false, "mtu": 1500, "device": "kube-ipvs0", "ipv4_secondaries": [{"broadcast": "10.233.0.3", "netmask": "255.255.255.255", "network": "10.233.0.3", "address": "10.233.0.3"}, {"broadcast": "10.233.23.95", "netmask": "255.255.255.255", "network": "10.233.23.95", "address": "10.233.23.95"}, {"broadcast": "10.233.59.76", "netmask": "255.255.255.255", "network": "10.233.59.76", "address": "10.233.59.76"}, {"broadcast": "10.233.22.67", "netmask": "255.255.255.255", "network": "10.233.22.67", "address": "10.233.22.67"}, {"broadcast": "10.233.38.108", "netmask": "255.255.255.255", "network": "10.233.38.108", "address": "10.233.38.108"}, {"broadcast": "10.233.39.128", "netmask": "255.255.255.255", "network": "10.233.39.128", "address": "10.233.39.128"}], "ipv4": {"broadcast": "10.233.0.1", "netmask": "255.255.255.255", "network": "10.233.0.1", "address": "10.233.0.1"}, "active": false, "type": "ether"}, "ansible_processor_vcpus": 4, "ansible_docker0": {"macaddress": "02:42:0b:f3:3a:c9", "interfaces": [], "mtu": 1500, "device": "docker0", "promisc": false, "stp": false, "ipv4": {"broadcast": "172.17.255.255", "netmask": "255.255.0.0", "network": "172.17.0.0", "address": "172.17.0.1"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::42:bff:fef3:3ac9"}], "active": false, "type": "bridge", "id": "8000.02420bf33ac9"}, "ansible_processor": ["0", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "1", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "2", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)", "3", "GenuineIntel", "Intel Xeon Processor (Skylake, IBRS)"], "ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBHM61TQ91gBtQqZk49aW49gIJJqrO1AI+YsK/rr1/RS7d3bljBnRd79p+VMkqPnCyjMT9x52D0wb/yPuzNsDqJc=", "ansible_user_gid": 1000, "ansible_system_vendor": "OpenStack Foundation", "ansible_swaptotal_mb": 0, "ansible_distribution_major_version": "9", "ansible_lxcfd6d13edc7cd": {"macaddress": "d2:6e:57:6a:3e:27", "type": "ether", "mtu": 8950, "device": "lxcfd6d13edc7cd", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::d06e:57ff:fe6a:3e27"}], "active": true, "speed": 10000}, "ansible_real_group_id": 1000, "ansible_lsb": {"release": "9.6", "major_release": "9", "codename": "stretch", "id": "Debian", "description": "Debian GNU/Linux 9.6 (stretch)"}, "ansible_default_ipv6": {}, "ansible_machine": "x86_64", "ansible_ssh_host_key_rsa_public_keytype": "ssh-rsa", "ansible_user_gecos": "Cloud-init-user,,,", "ansible_processor_threads_per_core": 1, "ansible_eth0": {"macaddress": "fa:16:3e:47:b8:b5", "type": "ether", "pciid": "virtio0", "module": "virtio_net", "mtu": 8950, "device": "eth0", "promisc": false, "ipv4": {"broadcast": "10.253.0.255", "netmask": "255.255.255.0", "network": "10.253.0.0", "address": "10.253.0.25"}, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::f816:3eff:fe47:b8b5"}], "active": true, "speed": -1}, "ansible_system": "Linux", "ansible_processor_nproc": 4, "ansible_bios_vendor": "SeaBIOS", "ansible_all_ipv4_addresses": ["172.17.0.1", "10.253.0.25", "169.254.25.10", "10.233.64.199", "10.233.0.1", "10.233.0.3", "10.233.23.95", "10.233.59.76", "10.233.22.67", "10.233.38.108", "10.233.39.128"], "ansible_python_version": "2.7.13", "ansible_product_version": "18.3.0", "ansible_service_mgr": "systemd", "ansible_memory_mb": {"real": {"total": 5971, "used": 4737, "free": 1234}, "swap": {"cached": 0, "total": 0, "free": 0, "used": 0}, "nocache": {"used": 980, "free": 4991}}, "ansible_user_dir": "/home/debian", "ansible_hostnqn": "", "ansible_real_user_id": 1000, "ansible_virtualization_role": "guest", "ansible_dns": {"nameservers": ["10.253.0.2"], "domain": "openstacklocal", "search": ["openstacklocal"]}, "ansible_effective_group_id": 1000, "ansible_lo": {"mtu": 65536, "device": "lo", "promisc": false, "ipv4": {"broadcast": "", "netmask": "255.0.0.0", "network": "127.0.0.0", "address": "127.0.0.1"}, "ipv6": [{"scope": "host", "prefix": "128", "address": "::1"}], "active": true, "type": "loopback"}, "ansible_memtotal_mb": 5971, "ansible_device_links": {"masters": {}, "labels": {}, "ids": {"sde1": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b-part1"], "sdc1": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a-part1"], "sdb1": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b-part1"], "sdc": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a"], "sdd": ["scsi-0QEMU_QEMU_HARDDISK_a40465fa-55da-49d9-9"], "sde": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b"], "sda": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0"], "sdb": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b"], "sda1": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part1"]}, "uuids": {"sdc1": ["91eee682-b4ee-42d3-9dc2-b85c4e5f58db"], "sdb1": ["93126b94-35fe-477f-b987-a3fec6d12b4d"], "sde1": ["225f99f8-b630-4b5e-b085-0dce713672a0"], "sda1": ["7b1f6f54-2d8b-4008-8a64-a7165506727f"]}}, "ansible_ssh_host_key_dsa_public_keytype": "ssh-dss", "ansible_apparmor": {"status": "disabled"}, "ansible_board_vendor": "NA", "ansible_bios_date": "04/01/2014", "ansible_memfree_mb": 1234, "ansible_board_version": "NA", "ansible_nodelocaldns": {"macaddress": "ea:ac:e0:49:82:ae", "mtu": 1500, "device": "nodelocaldns", "promisc": false, "ipv4": {"broadcast": "169.254.25.10", "netmask": "255.255.255.255", "network": "169.254.25.10", "address": "169.254.25.10"}, "active": false, "type": "ether"}, "ansible_chassis_vendor": "Red Hat", "ansible_processor_count": 4, "ansible_hostname": "control01-onap-master", "ansible_interfaces": ["docker0", "cilium_net", "cilium_host", "kube-ipvs0", "lo", "nodelocaldns", "lxcfd6d13edc7cd", "cilium_vxlan", "lxcf21b01629876", "dummy0", "lxc_health", "eth0"], "ansible_selinux": {"status": "Missing selinux Python library"}, "ansible_fqdn": "control01-onap-master.novalocal", "ansible_mounts": [{"block_used": 12555, "uuid": "93126b94-35fe-477f-b987-a3fec6d12b4d", "size_total": 10724835328, "block_total": 2618368, "mount": "/var/log", "block_available": 2605813, "size_available": 10673410048, "fstype": "xfs", "inode_total": 5241856, "options": "rw,nosuid,nodev,noexec,noatime,attr2,inode64,noquota", "device": "/dev/sdb1", "inode_used": 68, "block_size": 4096, "inode_available": 5241788}, {"block_used": 478611, "uuid": "225f99f8-b630-4b5e-b085-0dce713672a0", "size_total": 5356126208, "block_total": 1307648, "mount": "/var/lib/docker", "block_available": 829037, "size_available": 3395735552, "fstype": "xfs", "inode_total": 2620416, "options": "rw,noatime,attr2,inode64,noquota", "device": "/dev/sde1", "inode_used": 24402, "block_size": 4096, "inode_available": 2596014}, {"block_used": 755652, "uuid": "7b1f6f54-2d8b-4008-8a64-a7165506727f", "size_total": 10534256640, "block_total": 2571840, "mount": "/", "block_available": 1816188, "size_available": 7439106048, "fstype": "ext4", "inode_total": 655360, "options": "rw,relatime,errors=remount-ro,data=ordered", "device": "/dev/sda1", "inode_used": 68008, "block_size": 4096, "inode_available": 587352}, {"block_used": 10939, "uuid": "91eee682-b4ee-42d3-9dc2-b85c4e5f58db", "size_total": 10724835328, "block_total": 2618368, "mount": "/var/lib/kubelet", "block_available": 2607429, "size_available": 10680029184, "fstype": "xfs", "inode_total": 5241856, "options": "rw,noatime,attr2,inode64,noquota", "device": "/dev/sdc1", "inode_used": 208, "block_size": 4096, "inode_available": 5241648}], "ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABAQDfhXE/aeCLRnfN7NvpkE6eaihHNCLkcpkwU0eyAgZpO6dvGWin31rnNs3pIxqj1WZ2V/q3sAl/6m4D0mnsGom3Hco5X63dVVSXwWzgnO03r7YYONE1drx2fO+0l4FrWiGdME5cpKcgWMjm1qKmZrrDYq7FZ7Xa81uuT8dWCTNh5L2GM56Ruio4m21mxmZNRyTVb/TcMcUYCEJzJoGhcq8998Zusj5c69QPNIhEAvA3ziHbzGE+NEso9nFktdeB0L7/6xAKPil3Z1lpsI1iHlJCykPAUIWdpyB6CXz0/nDPTV+3r4vH4JeTOE4GdaOs3w1AW0acI8bHRIpOw1cXYPRL", "ansible_nodename": "control01-onap-master", "ansible_dummy0": {"macaddress": "aa:d4:a1:42:42:42", "mtu": 1500, "device": "dummy0", "promisc": false, "active": false, "type": "ether"}, "ansible_domain": "novalocal", "ansible_distribution_file_path": "/etc/os-release", "ansible_virtualization_type": "openstack", "ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIH5MlxzPwKKQ7nxtElx50eqdtfVMsnaz2vDkL+QZPCVy", "ansible_processor_cores": 1, "ansible_chassis_serial": "NA", "ansible_bios_version": "1.11.0-2.el7", "ansible_date_time": {"weekday_number": "2", "iso8601_basic_short": "20201117T155058", "tz": "UTC", "weeknumber": "46", "hour": "15", "year": "2020", "minute": "50", "tz_offset": "+0000", "month": "11", "epoch": "1605628258", "iso8601_micro": "2020-11-17T15:50:58.333035Z", "weekday": "Tuesday", "time": "15:50:58", "date": "2020-11-17", "iso8601": "2020-11-17T15:50:58Z", "day": "17", "iso8601_basic": "20201117T155058333035", "second": "58"}, "ansible_distribution_release": "stretch", "ansible_os_family": "Debian", "ansible_effective_user_id": 1000, "ansible_ssh_host_key_ecdsa_public_keytype": "ecdsa-sha2-nistp256", "ansible_product_name": "OpenStack Nova", "ansible_devices": {"sdd": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "209715200", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_a40465fa-55da-49d9-9"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {}, "holders": [], "size": "100.00 GB"}, "sde": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "10485760", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sde1": {"sectorsize": 512, "uuid": "225f99f8-b630-4b5e-b085-0dce713672a0", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_87775fee-7db1-4171-b-part1"], "uuids": ["225f99f8-b630-4b5e-b085-0dce713672a0"]}, "sectors": "10481664", "start": "2048", "holders": [], "size": "5.00 GB"}}, "holders": [], "size": "5.00 GB"}, "sda": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sda1": {"sectorsize": 512, "uuid": "7b1f6f54-2d8b-4008-8a64-a7165506727f", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_drive-scsi0-0-0-0-part1"], "uuids": ["7b1f6f54-2d8b-4008-8a64-a7165506727f"]}, "sectors": "20969439", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}, "sdb": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sdb1": {"sectorsize": 512, "uuid": "93126b94-35fe-477f-b987-a3fec6d12b4d", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_03fbe2f9-ec56-44b6-b-part1"], "uuids": ["93126b94-35fe-477f-b987-a3fec6d12b4d"]}, "sectors": "20967424", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}, "sdc": {"scheduler_mode": "deadline", "rotational": "1", "vendor": "QEMU", "sectors": "20971520", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a"], "uuids": []}, "sas_device_handle": null, "sas_address": null, "virtual": 1, "host": "", "sectorsize": "512", "removable": "0", "support_discard": "4096", "model": "QEMU HARDDISK", "partitions": {"sdc1": {"sectorsize": 512, "uuid": "91eee682-b4ee-42d3-9dc2-b85c4e5f58db", "links": {"masters": [], "labels": [], "ids": ["scsi-0QEMU_QEMU_HARDDISK_6bfb5a59-93b4-4870-a-part1"], "uuids": ["91eee682-b4ee-42d3-9dc2-b85c4e5f58db"]}, "sectors": "20967424", "start": "2048", "holders": [], "size": "10.00 GB"}}, "holders": [], "size": "10.00 GB"}}, "ansible_user_uid": 1000, "ansible_ssh_host_key_dsa_public": "AAAAB3NzaC1kc3MAAACBANP4nVJ/9oTBJIRkvci4BG2d7msSIRPBiC3VjP0yJEc/0Ch0an3YEN5LUotCarEJLi7XR18o6b4O2NiRwVpG7kvAfx/EmNcAlmrkTgaldg+Go5F0FFKbyQWAT6MXw7w7yb5azXrLEsITWhZbnSJz155WRTSgGVeIX9g3Bh3/V+LVAAAAFQDjpEmZSA9laytRvyIbzLTvg1LdFQAAAIEAsPFoyEawCtEs4qDI5qYAoQ0Pta2sfH9Nz4PACUIeg6FkVREekAjFstHaFwmBYgMVXVO/VJN+uz/oHM03kCV+jCYMshVNoydHtD9akkYREYfqDijeFBmQwOQjYqxCpxM2+FiQTlFYeIU6EDpIHtI5GfOFapNFkuqoiVcyT3eJHNcAAACBAIkXDRiaRo2fC+7/9Q9SXIkSlmlVLRh3iqG7oNDmbjX5EgkHGrWjbOqvE7/2Fp1avzXRZo9ALFvDlMFD8qc8u9FEeUXt2BdFsvfcahvPKSABmTH5chylL2xi6ARwqQgRYsr4gBqhV4Qw5XP5fjlTDyPUQYMC1gY/7PuodJ/GhzXv", "ansible_proc_cmdline": {"console": ["tty0", "ttyS0,115200"], "earlyprintk": "ttyS0,115200", "root": "UUID=7b1f6f54-2d8b-4008-8a64-a7165506727f", "net.ifnames": "0", "consoleblank": "0", "biosdevname": "0", "BOOT_IMAGE": "/boot/vmlinuz-4.9.0-8-amd64", "ro": true, "systemd.show_status": "true"}, "ansible_chassis_version": "RHEL 7.6.0 PC (i440FX + PIIX, 1996)", "ansible_system_capabilities": [""], "ansible_lxcf21b01629876": {"macaddress": "42:d6:c8:47:ee:de", "type": "ether", "mtu": 8950, "device": "lxcf21b01629876", "promisc": false, "ipv6": [{"scope": "link", "prefix": "64", "address": "fe80::40d6:c8ff:fe47:eede"}], "active": true, "speed": 10000}, "ansible_chassis_asset_tag": "NA"}}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
[DEPRECATION WARNING]: Distribution debian 9.6 on host other should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [other]
META: ran handlers

TASK [generate k8s yaml] *************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:3
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: sylvain
<localhost> EXEC /bin/sh -c 'echo ~sylvain && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /Users/sylvain/.ansible/tmp `"&& mkdir "` echo /Users/sylvain/.ansible/tmp/ansible-tmp-1605628258.554116-18005-162920816285620 `" && echo ansible-tmp-1605628258.554116-18005-162920816285620="` echo /Users/sylvain/.ansible/tmp/ansible-tmp-1605628258.554116-18005-162920816285620 `" ) && sleep 0'
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/stat.py
Pipelining is enabled.
<localhost> EXEC /bin/sh -c '/Users/sylvain/.pyenv/versions/3.8.1/bin/python3.8 && sleep 0'
Using module file /Users/sylvain/.pyenv/versions/3.8.1/lib/python3.8/site-packages/ansible/modules/file.py
Pipelining is enabled.
<localhost> EXEC /bin/sh -c '/Users/sylvain/.pyenv/versions/3.8.1/bin/python3.8 && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /Users/sylvain/.ansible/tmp/ansible-tmp-1605628258.554116-18005-162920816285620/ > /dev/null 2>&1 && sleep 0'
ok: [other] => changed=false
  checksum: 474c351ed6d3f715126dfd1cbb181556796677a3
  dest: /tmp/deploy.yml
  diff:
    after:
      path: /tmp/deploy.yml
    before:
      path: /tmp/deploy.yml
  gid: 20
  group: staff
  invocation:
    module_args:
      _diff_peek: null
      _original_basename: tmpflhbxlzb
      access_time: null
      access_time_format: '%Y%m%d%H%M.%S'
      attributes: null
      dest: /tmp/deploy.yml
      follow: true
      force: false
      group: null
      mode: null
      modification_time: null
      modification_time_format: '%Y%m%d%H%M.%S'
      owner: null
      path: /tmp/deploy.yml
      recurse: false
      selevel: null
      serole: null
      setype: null
      seuser: null
      src: null
      state: file
      unsafe_writes: false
  mode: '0644'
  owner: sylvain
  path: /tmp/deploy.yml
  size: 340
  state: file
  uid: 501

TASK [add deploy] ********************************************************************************************************************************************************************************************************************************
task path: /private/tmp/test.yaml:29
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'echo ~ && sleep 0'"'"''
<master.onap.eu> (0, b'/home/debian\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo /home/debian/.ansible/tmp `"&& mkdir "` echo /home/debian/.ansible/tmp/ansible-tmp-1605628259.922497-18026-134917846636356 `" && echo ansible-tmp-1605628259.922497-18026-134917846636356="` echo /home/debian/.ansible/tmp/ansible-tmp-1605628259.922497-18026-134917846636356 `" ) && sleep 0'"'"''
<master.onap.eu> (0, b'ansible-tmp-1605628259.922497-18026-134917846636356=/home/debian/.ansible/tmp/ansible-tmp-1605628259.922497-18026-134917846636356\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
Using module file /Users/sylvain/.ansible/collections/ansible_collections/community/kubernetes/plugins/modules/k8s.py
Pipelining is enabled.
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
<master.onap.eu> (1, b'\n{"msg": "Error accessing /tmp/deploy.yml. Does the file exist?", "failed": true, "invocation": {"module_args": {"force": false, "wait_sleep": 5, "apply": false, "client_key": null, "persist_config": null, "namespace": null, "resource_definition": null, "state": "present", "template": null, "api_key": null, "client_cert": null, "api_version": "v1", "username": null, "ca_cert": null, "src": "/tmp/deploy.yml", "wait_condition": null, "host": null, "wait_timeout": 120, "proxy": null, "validate": null, "password": null, "wait": false, "append_hash": false, "merge_type": null, "kind": null, "name": null, "kubeconfig": null, "context": null, "validate_certs": null}}}\n', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n")
<master.onap.eu> Failed to connect to the host via ssh: OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/sylvain/.ssh/config
debug1: /Users/sylvain/.ssh/config line 6: Applying options for *
debug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu
debug3: kex names ok: [diffie-hellman-group1-sha1]
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr
debug1: auto-mux: Trying existing master
debug2: fd 3 setting O_NONBLOCK
debug2: mux_client_hello_exchange: master version 4
debug3: mux_client_forwards: request forwardings: 0 local, 0 remote
debug3: mux_client_request_session: entering
debug3: mux_client_request_alive: entering
debug3: mux_client_request_alive: done pid = 17975
debug3: mux_client_request_session: session request sent
debug3: mux_client_read_packet: read header failed: Broken pipe
debug2: Received exit status from master 1
<master.onap.eu> ESTABLISH SSH CONNECTION FOR USER: None
<master.onap.eu> SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 -o ControlPath=/Users/sylvain/.ansible/cp/04df850fe5 master.onap.eu '/bin/sh -c '"'"'rm -f -r /home/debian/.ansible/tmp/ansible-tmp-1605628259.922497-18026-134917846636356/ > /dev/null 2>&1 && sleep 0'"'"''
<master.onap.eu> (0, b'', b"OpenSSH_8.1p1, LibreSSL 2.7.3\r\ndebug1: Reading configuration data /Users/sylvain/.ssh/config\r\ndebug1: /Users/sylvain/.ssh/config line 6: Applying options for *\r\ndebug1: /Users/sylvain/.ssh/config line 57: Applying options for master.onap.eu\r\ndebug3: kex names ok: [diffie-hellman-group1-sha1]\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 47: Applying options for *\r\ndebug1: Setting implicit ProxyCommand from ProxyJump: ssh -vvv -W '[%h]:%p' rebond.opnfv.fr\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 17975\r\ndebug3: mux_client_request_session: session request sent\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n")
fatal: [other]: FAILED! => changed=false
  invocation:
    module_args:
      api_key: null
      api_version: v1
      append_hash: false
      apply: false
      ca_cert: null
      client_cert: null
      client_key: null
      context: null
      force: false
      host: null
      kind: null
      kubeconfig: null
      merge_type: null
      name: null
      namespace: null
      password: null
      persist_config: null
      proxy: null
      resource_definition: null
      src: /tmp/deploy.yml
      state: present
      template: null
      username: null
      validate: null
      validate_certs: null
      wait: false
      wait_condition: null
      wait_sleep: 5
      wait_timeout: 120
  msg: Error accessing /tmp/deploy.yml. Does the file exist?

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
other                      : ok=2    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
@geerlingguy
Copy link
Collaborator

geerlingguy commented Nov 17, 2020

@sylvainOL - One quick question: for the copy task, you're using the folded scalar option:

        content: >
          apiVersion: apps/v1
          Kind: Deployment
          Metadata:
            name: nginx-deployment
            labels:
              app: nginx

That seems like it would result in an invalid file being copied into place, with contents like:

apiVersion: apps/v1 Kind: Deployment Metadata: name: nginx-deployment labels: app: nginx

Can you try using the literal scalar instead, so newlines are preserved?

        content: |
          apiVersion: apps/v1
          Kind: Deployment
          Metadata:
            name: nginx-deployment
            labels:
              app: nginx

@sylvainOL
Copy link
Author

Hi @geerlingguy, the file is OK when I look at it:

cat /tmp/deploy.yml
apiVersion: apps/v1 Kind: Deployment Metadata:
  name: nginx-deployment
  labels:
    app: nginx
Spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

But I can make the test with | (Actually, I've created this bug report by simplifying a playbook I'm working on where the files are retrieved by url --> https://gitlab.com/Orange-OpenSource/lfn/infra/kubernetes-monitoring-role/-/blob/ansible_collection/tasks/prometheus-stack-helmv2.yml)

@sylvainOL
Copy link
Author

cat /tmp/deploy.yml
apiVersion: apps/v1
Kind: Deployment
Metadata:
  name: nginx-deployment
  labels:
    app: nginx
Spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80

results (with one -v as I believe it changes nothing):

ansible-playbook -i inventory /tmp/test.yaml -v
Using /Users/sylvain/.ansible.cfg as config file

PLAY [other] *************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Distribution debian 9.6 on host other should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [other]

TASK [generate k8s yaml] *************************************************************************************************************************************************************************************************************************
changed: [other] => changed=true
checksum: 1f748fd324c582f828ce615845f5cd350d430607
dest: /tmp/deploy.yml
gid: 1000
group: debian
md5sum: 039a0a630dae61c7a8ba461bbd11a06d
mode: '0644'
owner: debian
size: 340
src: /home/debian/.ansible/tmp/ansible-tmp-1605631301.779688-52159-127585612088991/source
state: file
uid: 1000

TASK [add deploy] ********************************************************************************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
fatal: [other]: FAILED! => changed=false
msg: |-
Could not find or access '/tmp/deploy.yml' on the Ansible Controller.
If you are using a module and expect the file to exist on the remote, see the remote_src option

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
other : ok=2 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

@sylvainOL
Copy link
Author

cat test.yaml
- hosts: other
  tasks:
    - name: generate k8s yaml
      delegate_to: localhost
      copy:
        content: |
          apiVersion: apps/v1
          Kind: Deployment
          Metadata:
            name: nginx-deployment
            labels:
              app: nginx
          Spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/deploy.yml
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        src: /tmp/deploy.yml
ansible-playbook -i inventory /tmp/test.yaml -v
Using /Users/sylvain/.ansible.cfg as config file

PLAY [other] *************************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************
[DEPRECATION WARNING]: Distribution debian 9.6 on host other should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered
platform python for this host. See https://docs.ansible.com/ansible/2.10/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [other]

TASK [generate k8s yaml] *************************************************************************************************************************************************************************************************************************
changed: [other] => changed=true
  checksum: 1f748fd324c582f828ce615845f5cd350d430607
  dest: /tmp/deploy.yml
  gid: 20
  group: staff
  md5sum: 039a0a630dae61c7a8ba461bbd11a06d
  mode: '0644'
  owner: sylvain
  size: 340
  src: /Users/sylvain/.ansible/tmp/ansible-tmp-1605631449.454893-53998-170118609993164/source
  state: file
  uid: 501

TASK [add deploy] ********************************************************************************************************************************************************************************************************************************
fatal: [other]: FAILED! => changed=false
  msg: Error accessing /tmp/deploy.yml. Does the file exist?

PLAY RECAP ***************************************************************************************************************************************************************************************************************************************
other                      : ok=2    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

@sylvainOL
Copy link
Author

so the behavior is the same than before

And thanks for the quick reply!

Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@Akasurde
Copy link
Member

Akasurde commented Dec 3, 2020

@sylvainOL Could you please try #320 and the following playbook?

---
- hosts: centos
  tasks:
    - name: generate k8s yaml
      copy:
        content: |
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: nginx-deployment
            namespace: default
            labels:
              app: nginx
          spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/deploy.yml

    - name: add deploy
      community.kubernetes.k8s:
        state: present
        remote_src: True
        src: /tmp/deploy.yml

@Akasurde Akasurde self-assigned this Dec 3, 2020
@Akasurde Akasurde added has_pr This issue has a related PR that may close it. verified The issue is reproduced and removed needs_triage labels Dec 3, 2020
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 3, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@sylvainOL
Copy link
Author

Hi @Akasurde
thanks for the proposal.
I'm a bit of an idiot so I'm not sure how I can grab / test #320 version for k8s community kubernetes :S

Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 4, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 4, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
@Akasurde
Copy link
Member

Akasurde commented Dec 4, 2020

Either you can copy all the files from this PR to the respective location in community.kubernetes or

# mkdir -p /tmp/collections/ansible-collections/community
# git clone https://github.com/Akasurde/community.kubernetes /tmp/collections/ansible-collections/community/kubernetes
# cd /tmp/collections/ansible-collections/community/kubernetes
# git checkout -b i320 -t origin/remote_src
# export ANSIBLE_COLLECTIONS_PATH=/tmp/collections
# ansible-playbook ...

@sylvainOL
Copy link
Author

👍 , I'll do it asap

@sylvainOL
Copy link
Author

this playbook worked with #320:

---
- hosts: other
  gather_facts: False
  tasks:
    - name: generate k8s yaml
      copy:
        content: |
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: nginx-deployment
            namespace: default
            labels:
              app: nginx
          spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/deploy.yml
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        remote_src: True
        src: /tmp/deploy.yml

@sylvainOL
Copy link
Author

so #320 fixes one of the two issues (actually the one that I wanted ;) )
but we still have an issue when trying to access on the controller.

Here are two examples and none is working:

both are launched this way:
ansible-playbook -vvvi inv /tmp/test2.yaml

---
- hosts: other
  gather_facts: False
  tasks:
    - name: generate k8s yaml
      copy:
        content: |
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: nginx-deployment
            namespace: default
            labels:
              app: nginx
          spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/files/deploy.yml
      delegate_to: localhost
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        src: /tmp/files/deploy.yml
---
- hosts: other
  gather_facts: False
  tasks:
    - name: generate k8s yaml
      copy:
        content: |
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: nginx-deployment
            namespace: default
            labels:
              app: nginx
          spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/files/deploy.yml
      delegate_to: localhost
    - name: add deploy
      community.kubernetes.k8s:
        state: present
        src: deploy.yml

(almost) same results both times: msg:
Error accessing /tmp/files/deploy.yml. Does the file exist?

and:

$ ls -l /tmp/files/deploy.yml
-rw-r--r--  1 sylvain  staff  363  4 déc 13:41 /tmp/files/deploy.yml

@sylvainOL
Copy link
Author

@Akasurde , thanks for the PR, it makes (half of) the bug disappears!

@Akasurde
Copy link
Member

Akasurde commented Dec 7, 2020

@sylvainOL

  1. The first case is valid and I am not able to reproduce this.
---
- hosts: centos
  tasks:
    - name: generate k8s yaml
      copy:
        content: |
          apiVersion: apps/v1
          kind: Deployment
          metadata:
            name: nginx-deployment-1
            namespace: default
            labels:
              app: nginx
          spec:
            replicas: 3
            selector:
              matchLabels:
                app: nginx
            template:
              metadata:
                labels:
                  app: nginx
              spec:
                containers:
                - name: nginx
                  image: nginx:1.7.9
                  ports:
                  - containerPort: 80
        dest: /tmp/files/deploy.yml
      delegate_to: localhost

    - name: add deploy
      community.kubernetes.k8s:
       state: present
       remote_src: True
       src: /tmp/files/deploy.yml
TASK [generate k8s yaml] **********************************************************************
task path: /playbooks/k8s/remote_src/remote_src.yml:4
changed: [127.0.0.1 -> localhost] => {"changed": true, "checksum": "568c85f33846c13e8c85d8e2099b13667160f255", "dest": "/tmp/files/deploy.yml", "gid": 0, "group": "root", "md5sum": "f53962130c20869506f4f5ba0b8dcc30", "mode": "0644", "owner": "root", "secontext": "unconfined_u:object_r:admin_home_t:s0", "size": 363, "src": "/root/.ansible/tmp/ansible-tmp-1607330650.1133351-51630-30526254746699/source", "state": "file", "uid": 0}
redirecting (type: action) community.kubernetes.k8s to community.kubernetes.k8s_info

TASK [add deploy] *****************************************************************************
task path: /playbooks/k8s/remote_src/remote_src.yml:32
redirecting (type: action) community.kubernetes.k8s to community.kubernetes.k8s_info
redirecting (type: action) community.kubernetes.k8s to community.kubernetes.k8s_info
changed: [127.0.0.1] => {"changed": true, "method": "create", "result": {"apiVersion": "apps/v1", "kind": "Deployment", "metadata": {"creationTimestamp": "2020-12-07T08:44:11Z", "generation": 1, "labels": {"app": "nginx"}, "name": "nginx-deployment-1", "namespace": "default", "resourceVersion": "6777460", "selfLink": "/apis/apps/v1/namespaces/default/deployments/nginx-deployment-1", "uid": "459ea0e0-3e97-47c7-887c-5b94ba457e88"}, "spec": {"progressDeadlineSeconds": 600, "replicas": 3, "revisionHistoryLimit": 10, "selector": {"matchLabels": {"app": "nginx"}}, "strategy": {"rollingUpdate": {"maxSurge": "25%", "maxUnavailable": "25%"}, "type": "RollingUpdate"}, "template": {"metadata": {"creationTimestamp": null, "labels": {"app": "nginx"}}, "spec": {"containers": [{"image": "nginx:1.7.9", "imagePullPolicy": "IfNotPresent", "name": "nginx", "ports": [{"containerPort": 80, "protocol": "TCP"}], "resources": {}, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File"}], "dnsPolicy": "ClusterFirst", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "terminationGracePeriodSeconds": 30}}}, "status": {}}}
  1. The second case is not valid since we are not specifying the full path of src.

@Akasurde
Copy link
Member

Akasurde commented Dec 7, 2020

@sylvainOL you are not specifying remote_src: True in community.kubernetes.k8s task - #307 (comment).

@sylvainOL
Copy link
Author

@Akasurde, well, as far as I understand the stuff, we have two options when using community.kubernetes.k8s:

Again, I believe here we have two issues:

  • first issue: be able to run it on host and not on controller --> solved by k8s: handle remote src and kubeconfig #320
  • second issue: be able to run it the "default" way (on controller) --> it does work only if controller == host or if file is set on both places at the same folder.

And also, I find the default way counterintuitive as most tasks are executed by default on host and here it's the contrary

Akasurde added a commit to Akasurde/community.kubernetes that referenced this issue Dec 8, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
goneri pushed a commit to goneri/community.kubernetes that referenced this issue Dec 10, 2020
remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: ansible-collections#307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
jillr pushed a commit that referenced this issue Dec 10, 2020
* k8s: Add a parameter remote_src

remote_src is boolean parameter to specify if
src file is located on remote node or Ansible Controller.

Fixes: #307

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

* remove parameters

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
has_pr This issue has a related PR that may close it. verified The issue is reproduced
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants