Openstack Ansible deployment fails

asked 2017-04-06 09:10:30 -0500

zekken gravatar image

updated 2017-04-10 11:25:01 -0500

I am trying to deploy Openstack using Ansible from this link. It is failing on this particular step :

TASK [lxc_container_create : Wait for ssh to be available] *********************

My Openstack user config yml file is:

cidr_networks:
  container: 172.29.236.0/22
  tunnel: 172.29.240.0/22
  storage: 172.29.244.0/22

used_ips:
  - "172.29.236.1,172.29.236.255"
  - "172.29.240.1,172.29.240.255"
  - "172.29.244.1,172.29.244.255"

global_overrides:
  internal_lb_vip_address: 172.29.236.12



external_lb_vip_address: 192.168.1.53
  tunnel_bridge: "br-vxlan"
  management_bridge: "br-mgmt"



provider_networks:
    - network:
        container_bridge: "br-mgmt"
        container_type: "veth"
        container_interface: "eth1"
        ip_from_q: "container"
        type: "raw"
        group_binds:
          - all_containers
          - hosts
        is_container_address: true
        is_ssh_address: true
-

 network:
        container_bridge: "br-vxlan"
        container_type: "veth"
        container_interface: "eth10"
        ip_from_q: "tunnel"
        type: "vxlan"
        range: "1:1000"
        net_name: "vxlan"
        group_binds:
          - neutron_linuxbridge_agent
- network:
    container_bridge: "br-vlan"
    container_type: "veth"
    container_interface: "eth11"
    type: "flat"
    net_name: "flat"
    group_binds:
      - neutron_linuxbridge_agent
    - network:
        container_bridge: "br-storage"
        container_type: "veth"
        container_interface: "eth2"


     ip_from_q: "storage"
        type: "raw"
        group_binds:
          - glance_api
#          - cinder_api
#          - cinder_volume
          - nova_compute

shared-infra_hosts:

  infr-node:
    # Rabbitmq, and galera are set to multiples to test clustering.
    affinity:
      galera_container: 3
      rabbit_mq_container: 3
    ip: 192.168.1.53

os-infra_hosts:
  infr-node:
    # Horizon is set

 to multiple to test clustering. This test only requires x2.
    affinity:
      horizon_container: 2
    ip: 192.168.1.53

    storage-infra_hosts:

  infr-node:
    ip: 192.168.1.53

rep`enter code here`o-infra_hosts:
  infr-node:
    ip: 192.168.1.53

identity_hosts:
  infr-node:
    # Keystone is set to multiple to test clustering. This test only requires x2.
    affinity:
      keystone_container: 2
    ip: 192.168.1.53

compute_hosts:
  compute-node:
    ip: 192.168.1.54

#storage_hosts:
#  compute01:
#    ip: 192.168.88.101
#    container_vars:
#      cinder_backends:
#        limit_container_types: cinder_volume
#        lvm:

#          volume_group: cinder-volumes
#          volume_driver: cinder.volume.drivers.lvm.LVMVolumeDriver
#          volume_backend_name: LVM_iSCSI

log_hosts:
  infr-node:
    ip: 192.168.1.53

network_hosts:
  infr-node:
    ip: 192.168.1.53

haproxy_hosts:
  infr-node:
    ip: 192.168.1.53

The error that I am getting is:

fatal: [infr-node_nova_scheduler_container-6b82baf2 -> localhost]: FAILED! => {"changed": false, "elapsed": 300, "failed": true, "msg": "Timeout when waiting for search string OpenSSH in 172.29.239.118:22"}

How to solve these kinds of errors! please help.

edit retag flag offensive close merge delete