4.1 Build 5 : k8s-contrail-ansible installation failure

Bug #1734553 reported by chhandak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R4.1
Fix Committed
Critical
Sachchidanand Vaidya
Trunk
Fix Committed
Critical
Sachchidanand Vaidya

Bug Description

When running contrail-ansible on Openshift setup with redhat observing below ansible issue. Relevant all.yaml and host file is also mentioned below

TASK [node : Add puppet entry back in the the /etc/hosts] ****************************************************************************************************
fatal: [10.87.121.34]: FAILED! => {"failed": true, "msg": "the field 'args' has an invalid value, which appears to include a variable that is undefined. The e
rror was: 'ansible_srvr_ip' is undefined\n\nThe error appears to have been in '/root/Openshift/4.1-5/playbooks/roles/node/tasks/controller.yml': line 14, colu
mn 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Add puppet entry back in the
the /etc/hosts\n ^ here\n"}

TASK [contrail/common : Create directory /var/log/contrail] **************************************************************************************************
fatal: [10.87.121.35]: FAILED! => {"failed": true, "msg": "The conditional check 'cloud_orchestrator == \"openstack\" and enable_openstack_compute and compute_not_on_esxi' failed. The error was: error while evaluating conditional (cloud_orchestrator == \"openstack\" and enable_openstack_compute and compute_not_on_esxi): {{ false if provision_type == 'ISSU' else true }}: 'provision_type' is undefined\n\nThe error appears to have been in '/root/Openshift/4.1-5/playbooks/roles/contrail/common/tasks/main.yml': line 10, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create directory /var/log/contrail\n ^ here\n"}
fatal: [10.87.121.36]: FAILED! => {"failed": true, "msg": "The conditional check 'cloud_orchestrator == \"openstack\" and enable_openstack_compute and compute_not_on_esxi' failed. The error was: error while evaluating conditional (cloud_orchestrator == \"openstack\" and enable_openstack_compute and compute_not_on_esxi): {{ false if provision_type == 'ISSU' else true }}: 'provision_type' is undefined\n\nThe error appears to have been in '/root/Openshift/4.1-5/playbooks/roles/contrail/common/tasks/main.yml': line 10, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Create directory /var/log/contrail\n ^ here\n"}
        to retry, use: --limit @/root/Openshift/4.1-5/playbooks/site.retry

PLAY RECAP ***************************************************************************************************************************************************
10.87.121.34 : ok=48 changed=4 unreachable=0 failed=1
10.87.121.35 : ok=78 changed=13 unreachable=0 failed=1
10.87.121.36 : ok=78 changed=13 unreachable=0 failed=1
localhost : ok=1 changed=0 unreachable=0 failed=0

root@5b6s33:~/Openshift/4.1-5/playbooks# cat inventory/my-inventory/group_vars/all.yml
#docker_install_method: package
docker_py_pkg_install_method: pip
ansible_user: root
ansible_become: true
os_release: redhat7
contrail_compute_mode: container
contrail_version: 4.1.0.0-5
cloud_orchestrator: openshift
vrouter_physical_interface: eno1
kubernetes_public_fip_pool: {domain: default-domain, project: default, network: __public__, name: __fip_pool_public__ }
global_config: {configdb_minimum_diskgb: 20, analyticsdb_minimum_diskgb: 20}

root@5b6s33:~/Openshift/4.1-5/playbooks# cat inventory/my-inventory/hosts
[contrail-controllers]
10.87.121.34

[contrail-analyticsdb]
10.87.121.34

[contrail-analytics]
10.87.121.34

[contrail-kubernetes]
10.87.121.34

[contrail-compute]
10.87.121.35
10.87.121.36

chhandak (chhandak)
Changed in juniperopenstack:
importance: Undecided → Critical
assignee: nobody → Sachchidanand Vaidya (vaidyasd)
milestone: none → r4.1.0.0-fcs
information type: Proprietary → Public
Revision history for this message
Vedamurthy Joshi (vedujoshi) wrote : Re: 4.1 Build 5 : Contrail-ansible installation failure
summary: - [Openshift]: 4.1 Build 5 : Contrail-ansible installation failure
+ 4.1 Build 5 : Contrail-ansible installation failure
summary: - 4.1 Build 5 : Contrail-ansible installation failure
+ 4.1 Build 5 : k8s-contrail-ansible installation failure
tags: added: sanityblocker
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R4.1

Review in progress for https://review.opencontrail.org/37909
Submitter: Sachchidanand Vaidya (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/37909
Committed: http://github.com/Juniper/contrail-ansible/commit/039fb0291e0c6d3195d3de846aa2912c753cfc98
Submitter: Zuul (<email address hidden>)
Branch: R4.1

commit 039fb0291e0c6d3195d3de846aa2912c753cfc98
Author: Sachchidanand Vaidya <email address hidden>
Date: Mon Nov 27 11:22:04 2017 -0800

Two changes with contrail install on OpenShift master & nodes:
- No need to install and configure docker.
- Don't disable iptables service. It causes docker service to go down on RedHat Systems.

Change-Id: Ie1819cb96b5776c046aaa0e21f0c1628233019a6
Closes-Bug: #1727103
Closes-Bug: #1734553

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/38108
Submitter: Yuvaraja Mariappan

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/38108
Committed: http://github.com/Juniper/contrail-ansible/commit/3dee9ac5e77b7b080ec0536af7f1a0e8de14fb56
Submitter: Zuul (<email address hidden>)
Branch: master

commit 3dee9ac5e77b7b080ec0536af7f1a0e8de14fb56
Author: Sachchidanand Vaidya <email address hidden>
Date: Mon Nov 27 11:22:04 2017 -0800

Two changes with contrail install on OpenShift master & nodes:
- No need to install and configure docker.
- Don't disable iptables service. It causes docker service to go down on RedHat Systems.

Change-Id: Ie1819cb96b5776c046aaa0e21f0c1628233019a6
Closes-Bug: #1727103
Closes-Bug: #1734553
(cherry picked from commit 039fb0291e0c6d3195d3de846aa2912c753cfc98)

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.