Vcenter only-provisioning : Need to have consistent naming for the contrail-vm interface
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R5.0 |
Fix Committed
|
Medium
|
amudhar | |||
Trunk |
Fix Committed
|
Medium
|
amudhar |
Bug Description
Build R5.0 build 133
We are naming the ctrl-data interfaces differently for different setups
For example
1.SRIOV setup ctrl-data interface names : eth20,eth21
2.single ctrl-data setup ctrl-data interface name : ens192
3.pcie pass through ctrl-data interface names ens160f0,ens160f1 (sometimes eth0 in when re-ran the provisining)
We need to have a consistent naming for the ctrl-data interface.
Same is the case for the vmware physical interface
1.pcie enabled vm - vmware physical interface ens192
2.sriov enabled vm - vmware physical interface ens192
3.single ctrl-data interface - vmware physical interface ens224 and ens192 connected to ctrl-data-dvs
In fab provisioning,vmware physical interface was always 'eth1'
ctrl-data interfaces used to start with eth20.It was a better design as interfaces were predictable,did not depend on which kind of setup was that.Also it was easier for automation code to assign ip addresses (since it was predictable), and create bond interfaces.
information type: | Proprietary → Public |
tags: | added: blocker |
tags: |
added: sanity-blocker removed: blocker |
tags: |
added: sanityblocker removed: sanity-blocker |
From: Amudha R <email address hidden>
Date: Wednesday, July 11, 2018 at 1:05 AM
To: Sandip Dey <email address hidden>, Sachchidanand Vaidya <email address hidden>, Ram Yadav <email address hidden>
Cc: Sudheendra Rao <email address hidden>
Subject: Re: R5.0.1 vcenter provisioning
Please read inline.
Thanks,
Amudha
From: Sandip Dey <email address hidden>
Date: Tuesday, July 10, 2018 at 11:36 AM
To: Amudha R <email address hidden>, Sachchidanand Vaidya <email address hidden>, Ram Yadav <email address hidden>
Cc: Sudheendra Rao <email address hidden>
Subject: Re: R5.0.1 vcenter provisioning
My setup is up with sriov/pcie/ ctrl-data single interface and eam.
You can use if you want to check things
10.204.216.61 - controller ansible- deployer
All the files are here /root/contrail-
Amudha, the pcie interface came up with name eth0 this time.
[Amudha] - Did you mean eth20?
We need to fix the interface name something consistent for all kind of configuration of the ctrl-data interface.
[Amudha] - ctrl-data interface is a vmxnet3 interface and comes up as ens*. In case of PCI and SR-IOV interfaces,
they are ixgbe interfaces and will come up as eth* interfaces.
I have a script to give ip to the ctrl-data interface.If the the name is not same for all the compute-vms,script will fail.
[Amudha] Can your script check for ens and eth* as well? And may be use the driver type for additional check if needed?..
Also will write a script to create bond .I would assume the interfaces names to be eth20 and eth21 for bond.
[Amudha] Should work with the current vmdk.
The vmwarephysicali nterface should also ideally be same for any kind of configuration for ctrl-data.That was the case for fab.It used to be always ‘eth1’
[Amudha] I am not sure about this.. Would think it to be eth2 in case of ctrl-data interface defined.
We have to get rid of the situation where vmwarephysicali nterface= ens192 for some case and vmwarephysicali nterface= ens224 for some other.
[Amudha] Each scenario creates different interfaces, and this is hidden from user. Would not prefer changing this in 5.0.1 beta.
We can have a discussion once all are available, and see if it really needs changes.
Regards
Sandip
From: Sandip Dey <email address hidden>
Date: Tuesday, July 10, 2018 at 7:51 PM
To: Amudha R <email address hidden>, Sachchidanand Vaidya <email address hidden>, Ram Yadav <email address hidden>
Cc: Sudheendra Rao <email address hidden>
Subject: Re: R5.0.1 vcenter provisioning
Hi Amudha
Please see inline….
Ram,
What is the behavior if we create a pg in the vm dvs from vcenter ui for which vn is not there in api server?Does the vcenter-plugin delete it since, its not there in the api server?
I wanted to delete the contrail-vm/vm dvs from vcenter and rerun the vcenter provisioning when rest of the contrail components are up and running.I see the dvs pg on vm dvs getting deleted as soon as it was created.
I am not sure if the vcenter plugin deleting it,because there is not explicit log for deletion.I see only this.
Any port group created on that vm dvs is getting deleted.
[2018-07-10 12:50:01,070] [INFO ] [Thread- 3:VCenterDB@ 794] [Found <dpg c4k4u14_dvpg, dvs c4k4_dvs, datacenter c4_da...