How do I ssh into controller_repo_container?

asked 2019-03-27 09:29:48 -0500

dasnessie gravatar image

I'm still trying to deploy OpenStack Rocky using Ansible.

I ran openstack-ansible setup-hosts.yml and am now trying to get openstack-ansible setup-infrastructure.yml to run without errors. My current problem is:

TASK [repo_server : Install distro packages] *******************************************************************

[...]

Running apt
Using module file /opt/ansible-runtime/local/lib/python2.7/site-packages/ansible/modules/packaging/os/apt.py
container_name: "controller_repo_container-0e5e9a15"
physical_host: "controller"
Container confirmed
Container type "lxc"
<134.169.35.178> ESTABLISH SSH CONNECTION FOR USER: root
<134.169.35.178> 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 User=root -o ConnectTimeout=5 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o ServerAliveInterval=64 -o ServerAliveCountMax=1024 -o Compression=no -o TCPKeepAlive=yes -o VerifyHostKeyDNS=no -o ForwardX11=no -o ForwardAgent=yes -T -o ControlPath=/root/.ansible/cp/48f18a1f93 134.169.35.178 'lxc-attach --clear-env --name controller_repo_container-0e5e9a15 -- su - root -c '"'"'/bin/sh -c '"'"'"'"'"'"'"'"'/usr/bin/python && sleep 0'"'"'"'"'"'"'"'"''"'"''
<134.169.35.178> (1, '\n{"msg": "Failed to update apt cache: ", "failed": true, "exception": "  File \\"/tmp/ansible_NCJepD/ansible_module_apt.py\\", line 992, in main\\n    cache.update()\\n  File \\"/usr/lib/python2.7/dist-packages/apt/cache.py\\", line 548, in update\\n    raise FetchFailedException()\\n", "invocation": {"module_args": {"dpkg_options": "force-confdef,force-confold", "autoremove": false, "force": false, "force_apt_get": false, "install_recommends": null, "package": ["git", "lsyncd", "nginx-extras", "openssh-server", "rsync"], "autoclean": false, "name": ["git", "lsyncd", "nginx-extras", "openssh-server", "rsync"], "purge": false, "allow_unauthenticated": false, "state": "latest", "upgrade": null, "update_cache": true, "default_release": null, "only_upgrade": false, "deb": null, "cache_valid_time": 600}}}\n', 'OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n  7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: /etc/ssh/ssh_config line 52: Deprecated option "useroaming"\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 = 27882\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\nmesg: ttyname failed: Inappropriate ioctl for device\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\n')
The full traceback is:
  File "/tmp/ansible_NCJepD/ansible_module_apt.py", line 992, in main
    cache.update()
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 548, in update
    raise FetchFailedException()
fatal: [controller_repo_container-0e5e9a15]: FAILED! => {
    "attempts": 5,
    "changed": false,
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false,
            "autoclean": false,
            "autoremove": false,
            "cache_valid_time": 600,
            "deb": null,
            "default_release": null,
            "dpkg_options": "force-confdef,force-confold",
            "force": false,
            "force_apt_get": false,
            "install_recommends": null,
            "name": [
                "git",
                "lsyncd",
                "nginx-extras",
                "openssh-server",
                "rsync"
            ],
            "only_upgrade": false,
            "package": [
                "git",
                "lsyncd",
                "nginx-extras",
                "openssh-server",
                "rsync"
            ],
            "purge": false,
            "state": "latest",
            "update_cache": true,
            "upgrade": null
        }
    },
    "msg": "Failed to update apt cache: "
}

PLAY RECAP *****************************************************************************************************
controller_repo_container-0e5e9a15 : ok=21   changed=0    unreachable=0    failed=1



EXIT NOTICE [Playbook execution failure] **************************************
===============================================================================

I would like to figure out why I can't update the apt cache. I found a few other people online with similar ... (more)

edit retag flag offensive close merge delete