Not able to connect memcached_container while running setup-infrastructure.yml

Bug #1489451 reported by Chandra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
High
Jesse Pretorius
Kilo
Fix Released
High
Jesse Pretorius
Liberty
Fix Released
High
Jesse Pretorius
Trunk
Fix Released
High
Jesse Pretorius

Bug Description

i was able to ssh host01 manullay and even able to ssh host01_memcached_container-27c93226 container manully. but when i try to run setup-infrastructure.yml playbook it gives out error.

1. My ansible.cfg configuration

[defaults]
# Additional plugins
lookup_plugins = plugins/lookups
filter_plugins = plugins/filters

gathering = smart
hostfile = inventory
host_key_checking = False

# Set color options
nocolor = 0

# SSH timeout
timeout = 120

[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o TCPKeepAlive=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=3

2. ssh host machine :

root@deploy:~# ssh root@host01
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-62-generic x86_64)

 * Documentation: https://help.ubuntu.com/

  System information as of Thu Aug 27 17:59:37 IST 2015

  System load: 0.08 IP address for eth0: 192.168.30.11
  Usage of /: 21.3% of 42.95GB IP address for eth3: 192.168.3.128
  Memory usage: 47% IP address for br-mgmt: 192.168.40.11
  Swap usage: 10% IP address for br-vxlan: 192.168.50.11
  Processes: 655 IP address for lxcbr0: 10.0.3.1
  Users logged in: 0

  Graph this data and manage this system at:
    https://landscape.canonical.com/

Last login: Thu Aug 27 17:59:39 2015 from deploy
root@host01:~#

4. SSH memcached container from deploy host

root@deploy:~# ssh root@192.168.40.63
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-62-generic x86_64)

 * Documentation: https://help.ubuntu.com/
root@host01_memcached_container-27c93226:~#

5. Error output with -vvv

root@deploy:/opt/os-ansible-deploymemt/playbooks# openstack-ansible setup-infrastructure.yml -vvv
Variable files: "-e @/etc/openstack_deploy/user_secrets.yml -e @/etc/openstack_deploy/user_variables.yml "

PLAY [Install memcached] ******************************************************

GATHERING FACTS ***************************************************************
<192.168.40.63> ESTABLISH CONNECTION FOR USER: root
<192.168.40.63> REMOTE_MODULE setup
<192.168.40.63> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o TCPKeepAlive=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=3 -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.40.63 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
failed: [host01_memcached_container-27c93226] => {"failed": true, "parsed": false}
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: auto-mux: Trying existing master
debug1: mux_client_request_session: master session id: 2
/bin/sh: 1: /usr/bin/python: not found

TASK: [Use the lxc-openstack aa profile] **************************************
FATAL: no hosts matched or all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/root/setup-infrastructure.retry

host01_memcached_container-27c93226 : ok=0 changed=0 unreachable=0 failed=1

Not sure if i miss some configuration , please help .

Revision history for this message
Chandra (reddydodda) wrote :

i found the issue. python was not installed in any of the container. so i made change in container_create.yml as below and it work fine for me .

Path : os-ansible-deployment-kilo\playbooks\roles\lxc_container_create\tasks\container_create.yml

at line 284 :

before : apt-get -y install python2.7

After : apt-get -y install python

after this it worked for me

i am not sure is it bug or not but it worked form me once i changed.

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

@chandu Are you using your own container image? The reason I ask is that the container image that's downloaded by default already has python installed into it. Also, please indicate which branch/tag you were installing from?

Revision history for this message
Chandra (reddydodda) wrote :

Hi Jesse ,

i am not using my own container. the default one which will be picked from https://mirror.rackspace.com/rackspaceprivatecloud/container_images/rpc-trusty-container.tgz

 and the branch which i am using is KILO.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → High
Changed in openstack-ansible:
assignee: nobody → Jesse Pretorius (jesse-pretorius)
milestone: none → 12.0.0
Changed in openstack-ansible:
milestone: 12.0.0 → 12.1.0
Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

One part of the problem seems to have been:
https://review.openstack.org/#/q/If61d875a58e466ec07cb6818040e83f1612b4f18,n,z

Another part of the problem related to how the image was build, and this was resolved in:
https://review.openstack.org/#/q/Iba64f9a3aeb999907088f2a99e8904700074550b,n,z

Changed in openstack-ansible:
milestone: 12.1.0 → 12.0.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.