contrail-ansible-deployer
contrail-ansible-deployer copied to clipboard
Install Contrail Task "Contrail default swift container and Temp-URL-Key creation" fails
Trying to configure All in One with 2 interfaces (management and control/data network):
---mgmt network-------em1[Server]p6p1-----control/data network---- [Router] 10.8.128.x/25 .92 .92 10.92.100.x/24 .1
Here is instances.yaml file:
provider_config: bms: ssh_pwd: Juniper!1 ssh_user: root ssh_public_key: ssh_private_key: ntpserver: 10.8.4.105 nameserver: 10.8.4.105 domainsuffix: cse-wf.jnpr.net instances: bms1: provider: bms roles: openstack: config_database: config: control: analytics_database: analytics: webui: vrouter: PHYSICAL_INTERFACE: p6p1 VROUTER_GATEWAY: 10.92.100.1 openstack_compute: kubemanager: k8s_master: k8s_node: ip: 10.8.128.92
contrail_configuration: CONTAINER_REGISTRY: opencontrailnightly CONTRAIL_VERSION: ocata-master-58 UPGRADE_KERNEL: true RABBITMQ_NODE_PORT: 5673 AUTH_MODE: keystone KEYSTONE_AUTH_URL_VERSION: /v3 KEYSTONE_AUTH_ADMIN_PASSWORD: contrail123 CLOUD_ORCHESTRATOR: openstack VROUTER_GATEWAY: 10.92.100.1 PHYSICAL_INTERFACE: em1 CONTROL_DATA_NET_LIST: 10.92.100.0/24 AAA_MODE: cloud-admin KUBERNETES_CLUSTER_PROJECT: {}
kolla_config: customize: nova.conf: | [libvirt] virt_type=qemu cpu_mode=none kolla_globals: network_interface: "em1" kolla_internal_vip_address: "10.92.100.92" kolla_external_vip_address: "10.8.128.92" enable_haproxy: "no"_
Issue is that the "install_contrail" playbook is erroring out at the Task below.
PLAY RECAP ******************************************************************************************************************************** 10.8.128.92 : ok=373 changed=32 unreachable=0 failed=1 localhost : ok=9 changed=4 unreachable=0 failed=0
This is the last task in the /root/contrail-kolla-ansible/ansible/post-deploy-contrail.yaml file.
- name: Contrail default swift container and Temp-URL-Key creation
shell: docker exec kolla_toolbox bash -c 'source /var/lib/kolla/config_files/admin-openrc.sh; swift post -r '.r:*' contrail_container;
swift post -m "Temp-URL-Key:mykey"'
when:
- enable_swift_opencontrail | bool
@ramprackash @nitishkrishna Can you please check this issue?
When you have 2 interfaces that you want open stack running on, you need to use a virtual IP for each of the networks (10.8.128.X and 10.92.100.Y) and then enable_haproxy must be set to yes. (even though there is only one open stack node)
https://github.com/Juniper/contrail-ansible-deployer/wiki/Provisioning-F.A.Q#why-do-i-need-haproxy-and-virtual-ip-on-a-single-openstack-cluster