IP not assigned to service instances in service chaining.
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Released
|
High
|
Sachin Bansal | |||
Trunk |
Fix Released
|
High
|
Sachin Bansal |
Bug Description
Version: 3.1.0.0-2739 mitaka
Topo:
host1 = 'root@10.
env.roledefs = {
'all': [host1],
'cfgm': [host1],
'openstack': [host1],
'control': [host1],
'compute': [host1],
'collector': [host1],
'webui': [host1],
'database': [host1],
'build': [host_build],
}
I create a v1 transparent service chain between left and right vm. There are 2 SI in between the vms.
IP address is not assigned to the service instances when I create transparent service chain. The addresses to the left and right vms are assigned correctly.
root@nodeb8:~# nova list --all-tenants
+------
| ID | Name | Tenant ID | Status | Task State | Power State | Networks |
+------
| d4c55935-
| 6f6e47bb-
| 38ffddf4-
| 6e4eb0b1-
Did not find any schema crashes. I see flow drops with the error "short flow" when I ping from left to right vm because of this and no flows created in the agent.
summary: |
- IP not assigned to service instances in chaining. + IP not assigned to service instances in service chaining. |
information type: | Proprietary → Public |
tags: | added: blocker sanity |
no longer affects: | juniperopenstack/r3.0 |
It is seen that this happens with Vns created using VncApi
neutron net-list would not show the subnet associated with that VN
For vms booted with that VN, nova show would not show the IPs from the VN.
Same behavior is seen for SIs.
root@nodeb8:~# python username= 'admin' ,password= 'contrail123' ,tenant_ name='admin' ,api_server_ host='127. 0.0.1', api_server_ port='8082' ) read(fq_ name=[' default- domain' ,'admin' ]) ipam_read( fq_name = ['default- domain' ,'default- project' ,'default- network- ipam']) name='test1' , parent_ obj=proj_ obj) network_ create( vn_obj) network_ create( api_vn_ obj) ipam_read( fq_name = ['default- domain' ,'default- project' ,'default- network- ipam']) subnet= SubnetType( '200.1. 1.0', int(24))) lst.append( ipam_sn) list.append( ipam_sn) obj.add_ network_ ipam(ipam, VnSubnetsType( ipam_sn_ lst)) obj.add_ network_ ipam(ipam, VnSubnetsType( ipam_sn_ list)) network_ update( api_vn_ obj)
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from vnc_api.vnc_api import *
>>> vh=VncApi(
>>> proj_obj = vh.project_
>>> ipam_real_obj = vh.network_
>>> api_vn_obj = VirtualNetwork(
>>> vn_id = vh.virtual_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'vn_obj' is not defined
>>> vn_id = vh.virtual_
>>> ipam = vh.network_
>>> ipam_sn = IpamSubnetType(
>>> ipam_sn_list=[]
>>> ipam_sn_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ipam_sn_lst' is not defined
>>> ipam_sn_
>>> api_vn_
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ipam_sn_lst' is not defined
>>> api_vn_
>>> vh.virtual_
>>>
----------
root@nodeb8: /var/log/ contrail# nova boot --nic net-id= 95840df5- ad25-4a76- a8b1-e1d8cb86d6 73 --image 6b3d27f2- ed2c-484e- 8f7a-db386f10e3 0a --flavor 1 vedu-vm1 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------- ------- ------+ AZ:availability _zone | | SRV-ATTR: host | - | SRV-ATTR: hostname | vedu-vm1 | SRV-ATTR: hypervisor_ hostname | - | SRV-ATTR: instance_ name | instance-000000fc | SRV-ATTR: kernel_ id | | SRV-ATTR: launch_ index | 0 | SRV-ATTR: ramdisk_ id | | SRV-ATTR: reservation_ id | r-oq8vxghp ...
+------
| Property | Value |
+------
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-
| OS-EXT-