ansible contrail vrouter agent provisioning fails on container

Bug #1666445 reported by Vedamurthy Joshi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Fix Committed
High
Ramprakash R

Bug Description

R4.0 Build 3039

Have a controller : 10.204.217.194
Compute nodes : 10.204.217.197, 10.204.217.198
Agent provisioning failed with below error :

ansible was running on a remote node 10.204.217.187 and the path /home/root/jenkins/workspace/kubernetes-sanity/contrail-ansible/playbooks/vars/contrail_agent.yml did exist there.

http://anamika.englab.juniper.net:8080/job/kubernetes-sanity/17/console

TASK [node : Configure contrailctl/agent.conf] *********************************
included: /home/root/jenkins/workspace/kubernetes-sanity/contrail-ansible/playbooks/roles/node/tasks/contrailctl/agent/configure.yml for 10.204.217.197, 10.204.217.198

TASK [node : Start /home/root/jenkins/workspace/kubernetes-sanity/contrail-ansible/playbooks/vars/contrail_agent.yml from scratch everytime] ***
fatal: [10.204.217.197 -> 127.0.0.1]: FAILED! => {"changed": false, "failed": true, "msg": "unlinking failed: [Errno 2] No such file or directory: '/home/root/jenkins/workspace/kubernetes-sanity/contrail-ansible/playbooks/vars/contrail_agent.yml' ", "path": "/home/root/jenkins/workspace/kubernetes-sanity/contrail-ansible/playbooks/vars/contrail_agent.yml", "state": "absent"}
changed: [10.204.217.198 -> 127.0.0.1]

Tags: provisioning
Revision history for this message
Ramprakash R (ramprakash) wrote :

This issue is seen when there are more than one "contrail-compute" nodes in the inventory.
Need to add " ignore_errors: yes" to the task.

Revision history for this message
Harish Kumar (hkumarmk) wrote : Re: [Bug 1666445] Re: ansible contrail vrouter agent provisioning fails on container

We should avoid this method of changing the file which are part of anisble
from ansible itself, rather we have to implement an optional temp location
for vars to be used in situations where one need to use fresh vars every
time.

On Fri, Feb 24, 2017 at 12:00 AM, Ramprakash R <email address hidden>
wrote:

> This issue is seen when there are more than one "contrail-compute" nodes
> in the inventory.
> Need to add " ignore_errors: yes" to the task.
>
> --
> You received this bug notification because you are a member of Contrail
> Systems engineering, which is subscribed to Juniper Openstack.
> https://bugs.launchpad.net/bugs/1666445
>
> Title:
> ansible contrail vrouter agent provisioning fails on container
>
> Status in Juniper Openstack:
> New
>
> Bug description:
> R4.0 Build 3039
>
> Have a controller : 10.204.217.194
> Compute nodes : 10.204.217.197, 10.204.217.198
> Agent provisioning failed with below error :
>
> ansible was running on a remote node 10.204.217.187 and the path
> /home/root/jenkins/workspace/kubernetes-sanity/contrail-
> ansible/playbooks/vars/contrail_agent.yml did exist there.
>
> http://anamika.englab.juniper.net:8080/job/kubernetes-
> sanity/17/console
>
> TASK [node : Configure contrailctl/agent.conf]
> *********************************
> included: /home/root/jenkins/workspace/kubernetes-sanity/contrail-
> ansible/playbooks/roles/node/tasks/contrailctl/agent/configure.yml for
> 10.204.217.197, 10.204.217.198
>
> TASK [node : Start /home/root/jenkins/workspace/
> kubernetes-sanity/contrail-ansible/playbooks/vars/contrail_agent.yml from
> scratch everytime] ***
> fatal: [10.204.217.197 -> 127.0.0.1]: FAILED! => {"changed": false,
> "failed": true, "msg": "unlinking failed: [Errno 2] No such file or
> directory: '/home/root/jenkins/workspace/kubernetes-sanity/contrail-
> ansible/playbooks/vars/contrail_agent.yml' ", "path":
> "/home/root/jenkins/workspace/kubernetes-sanity/contrail-
> ansible/playbooks/vars/contrail_agent.yml", "state": "absent"}
> changed: [10.204.217.198 -> 127.0.0.1]
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/juniperopenstack/+bug/1666445/+subscriptions
>

Changed in juniperopenstack:
status: New → Fix Committed
Jeba Paulaiyan (jebap)
Changed in juniperopenstack:
milestone: none → r4.0
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.