[Ubuntu 14.04.4 LTS" 3.1.0.0-17~kilo] Schema errors while deleting the service chain heat stack
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Committed
|
High
|
Suresh Balineni | |||
Trunk |
Fix Committed
|
High
|
Suresh Balineni |
Bug Description
Below schema errors are observed while deleting the service chain heat stack.
Traceback (most recent call last):
File "/usr/lib/
res_
File "/usr/lib/
primary_
File "/usr/lib/
sc_address = {4: si.get_
File "/usr/lib/
vmi = vm_pt.get_
File "/usr/lib/
if vmi.service_
AttributeError: 'NoneType' object has no attribute 'service_
Steps to reproduce
1. Successfully launched service chain with attached heat template (heat_contrail_
2. Verified service chain functionality and is working fine
3. Now, deleted the stack. Now, while deleting the stack, observed above schema errors.
Please see the log below:
1. Service chain creation
Output from heat stack-create for service chain template
root@nodei15:/tmp# heat stack-create -f heat_contrail_
+------
| id | stack_name | stack_status | creation_time |
+------
| 7abe278c-
+------
root@nodei15:/tmp# heat stack-list
+------
| id | stack_name | stack_status | creation_time |
+------
| 7abe278c-
+------
root@nodei15:/tmp# heat stack-show 7abe278c-
+------
| Property | Value |
+------
| capabilities | [] |
| creation_time | 2016-08-
| description | No description |
| disable_rollback | True |
| id | 7abe278c-
| links | http://
| notification_topics | [] |
| outputs | [] |
| parameters | { |
| | "OS::project_id": "3cdad991e64641
| | "domain": "default-domain", |
| | "dst_port_end": "-1", |
| | "protocol": "any", |
| | "pt1_name": "pt1", |
| | "service_
| | "right_vn_fqdn": "default-
| | "image": "cirros-
| | "service_
| | "service_
| | "policy_fq_name": "default-
| | "network_
| | "network_
| | "simple_action": "pass", |
| | "flavor": "m1.tiny", |
| | "src_port_start": "-1", |
| | "network_
| | "service_
| | "left_vm1_name": "left_vm1", |
| | "service_
| | "network_
| | "service_
| | "network_
| | "network_
| | "network_
| | "network_
| | "src_port_end": "-1", |
| | "svm1_image": "vsrx-nat", |
| | "direction": "<>", |
| | "OS::stack_name": "cidr_test", |
| | "left_vn_fqdn": "default-
| | "apply_services": "default-
| | "service_
| | "svm1_flavor": "m1.medium", |
| | "right_vn": "right_vn", |
| | "service_
| | "policy_name": "pt_policy", |
| | "dst_port_start": "-1", |
| | "left_vn": "left_vn", |
| | "service_
| | "management_
| | "service_
| | "OS::stack_id": "7abe278c-
| | "service_
| | "right_vm_name": "right_vm", |
| | "left_vm2_name": "left_vm2", |
| | "network_
| | "svm1_name": "pt_svm1" |
| | } |
| parent | None |
| stack_name | cidr_test |
| stack_owner | admin |
| stack_status | CREATE_COMPLETE |
| stack_status_reason | Stack CREATE completed successfully |
| stack_user_
| template_
| timeout_mins | None |
| updated_time | None |
+------
root@nodei15:/tmp#
2. Verified service chain functionality and is working fine.
3. Now, deleting the stack
root@nodei15:/tmp# heat stack-delete cidr_test
+------
| id | stack_name | stack_status | creation_time |
+------
| 7abe278c-
+------
root@nodei15:/tmp#
Now, seeing below schema errors.
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Mon Aug 8 22:45:35 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
339 res_obj = cls.get(res_id)
340 if res_obj is not None:
341 res_obj.evaluate()
342
343 for vn_id in dependency_
res_obj = <schema_
res_obj.evaluate = <bound method VirtualNetworkS
/usr/lib/
1236 primary_ri = self.get_
1237 if primary_ri:
1238 primary_
1239 self.update_
1240 self.check_
primary_ri = <schema_
primary_
/usr/lib/
2153 continue
2154 route_tables = RouteTableST.
2155 sc_address = {4: si.get_
2156 6: si.get_
2157 for route_table_name in route_tables:
sc_address undefined
si = <schema_
si.get_
/usr/lib/
3835 if not vm_pt:
3836 continue
3837 vmi = vm_pt.get_
3838 if not vmi:
3839 continue
vmi undefined
vm_pt = <schema_
vm_pt.get_
side = 'left'
/usr/lib/
4160 for vmi_name in self.virtual_
4161 vmi = VirtualMachineI
4162 if vmi.service_
4163 return vmi
4164 return None
vmi = None
vmi.service_
service_type = 'left'
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'NoneType' object has no attribute 'service_
message = "'NoneType' object has no attribute 'service_
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
res_
File "/usr/lib/
primary_
File "/usr/lib/
sc_address = {4: si.get_
File "/usr/lib/
vmi = vm_pt.get_
File "/usr/lib/
if vmi.service_
AttributeError: 'NoneType' object has no attribute 'service_
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Mon Aug 8 22:45:35 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
339 res_obj = cls.get(res_id)
340 if res_obj is not None:
341 res_obj.evaluate()
342
343 for vn_id in dependency_
res_obj = <schema_
res_obj.evaluate = <bound method VirtualNetworkS
/usr/lib/
1236 primary_ri = self.get_
1237 if primary_ri:
1238 primary_
1239 self.update_
1240 self.check_
primary_ri = <schema_
primary_
/usr/lib/
2153 continue
2154 route_tables = RouteTableST.
2155 sc_address = {4: si.get_
2156 6: si.get_
2157 for route_table_name in route_tables:
sc_address undefined
si = <schema_
si.get_
/usr/lib/
3835 if not vm_pt:
3836 continue
3837 vmi = vm_pt.get_
3838 if not vmi:
3839 continue
vmi undefined
vm_pt = <schema_
vm_pt.get_
side = 'left'
/usr/lib/
4160 for vmi_name in self.virtual_
4161 vmi = VirtualMachineI
4162 if vmi.service_
4163 return vmi
4164 return None
vmi = None
vmi.service_
service_type = 'left'
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'NoneType' object has no attribute 'service_
message = "'NoneType' object has no attribute 'service_
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
res_
File "/usr/lib/
primary_
File "/usr/lib/
sc_address = {4: si.get_
File "/usr/lib/
vmi = vm_pt.get_
File "/usr/lib/
if vmi.service_
AttributeError: 'NoneType' object has no attribute 'service_
<type 'exceptions.
Python 2.7.6: /usr/bin/python
Mon Aug 8 22:45:35 2016
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/usr/lib/
339 res_obj = cls.get(res_id)
340 if res_obj is not None:
341 res_obj.evaluate()
342
343 for vn_id in dependency_
res_obj = <schema_
res_obj.evaluate = <bound method VirtualNetworkS
/usr/lib/
1236 primary_ri = self.get_
1237 if primary_ri:
1238 primary_
1239 self.update_
1240 self.check_
primary_ri = <schema_
primary_
/usr/lib/
2153 continue
2154 route_tables = RouteTableST.
2155 sc_address = {4: si.get_
2156 6: si.get_
2157 for route_table_name in route_tables:
sc_address undefined
si = <schema_
si.get_
/usr/lib/
3835 if not vm_pt:
3836 continue
3837 vmi = vm_pt.get_
3838 if not vmi:
3839 continue
vmi undefined
vm_pt = <schema_
vm_pt.get_
side = 'left'
/usr/lib/
4160 for vmi_name in self.virtual_
4161 vmi = VirtualMachineI
4162 if vmi.service_
4163 return vmi
4164 return None
vmi = None
vmi.service_
service_type = 'left'
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__format__ = <built-in method __format__ of exceptions.
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__sizeof__ = <built-in method __sizeof__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
__subclassh
__unicode__ = <built-in method __unicode__ of exceptions.
args = ("'NoneType' object has no attribute 'service_
message = "'NoneType' object has no attribute 'service_
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/lib/
res_
File "/usr/lib/
primary_
File "/usr/lib/
sc_address = {4: si.get_
File "/usr/lib/
vmi = vm_pt.get_
File "/usr/lib/
if vmi.service_
AttributeError: 'NoneType' object has no attribute 'service_
Changed in juniperopenstack: | |
importance: | Undecided → High |
assignee: | nobody → Sachin Bansal (sbansal) |
milestone: | r3.1.0.0-fcs → none |
tags: | added: config |
Changed in juniperopenstack: | |
assignee: | Sachin Bansal (sbansal) → Suresh Balineni (sbalineni) |
information type: | Proprietary → Public |
Attaching the heat templates