Override interface name in inventory

Bug #1530415 reported by Lingfeng Xiong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Rodolfo Alonso

Bug Description

In my deployment, there are two computing nodes. One computing node named the ethernet interface as eth0 and eth1, the other one name them as enp1s0f0. In this case, kolla unable to be deployed to these node because no matter how I configure the interfaces in global.yml, one node will failed with

fatal: [node1] => {'msg': "AnsibleUndefinedVariable: One or more undefined variables: 'dict object' has no attribute u'ansible_xxxx'", 'failed': True}

I tried to override network_interface and tunnel_interface by adding these two variables to inventory file, after the hostname:

[compute]
node1 ansible_ssh_user=root network_interface=enp1s0f0 tunnel_interface=vlan123

But it does not work.

Is there any ways to override interface name per host?

I am running kolla (stable/liberty).

description: updated
Steven Dake (sdake)
Changed in kolla:
status: New → Triaged
importance: Undecided → High
milestone: none → mitaka-3
Changed in kolla:
assignee: nobody → Rodolfo Alonso (rodolfo-alonso-hernandez)
Steven Dake (sdake)
Changed in kolla:
milestone: mitaka-3 → mitaka-rc1
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :
Steven Dake (sdake)
Changed in kolla:
milestone: mitaka-rc1 → mitaka-rc2
Revision history for this message
Steven Dake (sdake) wrote :

This patch needs to be rebased ontop of master instead of liberty. If it is already fixed in master, lets close it as invalid. Please let me know. Thanks!

tags: added: rc-backport-potential
Changed in kolla:
status: Triaged → In Progress
Steven Dake (sdake)
Changed in kolla:
milestone: mitaka-rc2 → newton-1
Steven Dake (sdake)
tags: removed: rc-backport-potential
Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

The fix for master is submitted, waiting for review.

As soon as the master branch fix is accepted, I'll submit the patch for mitaka and liberty.

Regards.

Revision history for this message
Swapnil Kulkarni (coolsvap-deactivatedaccount) wrote :

The code change [1] for this bug is merged in master before we branched mitaka.
The code changes [2] are targetted for liberty and are put on hold.

[1] https://review.openstack.org/#/c/247999
[2]https://review.openstack.org/#/c/289241

I think we can mark this completed for Mitaka & Newton

Steven Dake (sdake)
Changed in kolla:
status: In Progress → Confirmed
status: Confirmed → Fix Committed
no longer affects: kolla/mitaka
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla (stable/liberty)

Change abandoned by Steven Dake (<email address hidden>) on branch: stable/liberty
Review: https://review.openstack.org/289241
Reason: plan 2 in action

Changed in kolla:
status: Fix Committed → Fix Released
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.