[R3.1.1.0-41]: AttributeError while adding policy to VN
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | Status tracked in Trunk | |||||
R3.1 |
Fix Released
|
High
|
alok kumar | |||
R3.1.1.x |
In Progress
|
High
|
alok kumar | |||
R3.2 |
Fix Released
|
High
|
alok kumar | |||
Trunk |
Fix Committed
|
High
|
alok kumar |
Bug Description
getting below AttributeError while adding policy to VN:
Traceback (most recent call last):
File "tcutils/
result = function(self, *args, **kwargs)
File "scripts/
project_
File "/usr/local/
reraise(
File "/usr/local/
fixture.setUp()
File "/root/
sequence=
File "/usr/lib/
super(
File "/usr/lib/
ref_info = {'to':ref_
AttributeError: '_DictWithMeta' object has no attribute 'get_fq_name'
setup is available to debug:
env.roledefs = {
'all': [host1,
'cfgm': [host1],
'openstack'
'control': [host1,host2],
'compute': [host3,host4],
'collector': [host1],
'webui': [host1],
'database': [host2],
'build': [host_build],
}
env.hostnames = {
'all': ['nodec64', 'nodeg18', 'nodec62', 'nodec12']
}
Run this test case at nodec64:
root@nodec64:
sanity report having this error:
http://
This is a test issue. In add_network_policy call, the policy object should be an instance of NetworkPolicy class, but a _DictWithMeta was passed.
71 vnc_obj. add_network_ policy( conf_policy, VirtualNetworkP olicyType( vnc_api. SequenceType( major=seq, minor=0)))
72 vnc_api.
73 -> sequence=
(Pdb) conf_policy 665a9468634ba6e fceb', u'entries': {u'policy_rule': [{u'direction': u'<>', u'protocol': u'icmp', u'dst_addresses': [{u'security_ group': None, u'subnet': None, u'network_policy': None, u'subnet_list': [], u'virtual_network': u'default- domain: ctest-TestPolic yAcl-12452605: VN2'}], u'action_list': {u'gateway_name': None, u'log': False, u'alert': False, u'qos_action': None, u'assign_ routing_ instance' : None, u'mirror_to': None, u'simple_action': u'pass', u'apply_service': []}, u'rule_uuid': None, u'dst_ports': [{u'end_port': -1, u'start_port': -1}], u'application': [], u'ethertype': None, u'src_addresses': [{u'security_ group': None, u'subnet': None, u'network_policy': None, u'subnet_list': [], u'virtual_network': u'default- domain: ctest-TestPolic yAcl-12452605: VN1'}], u'rule_sequence': None, u'src_ports': [{u'end_port': -1, u'start_port': -1}]}]}, u'fq_name': [u'default-domain', u'ctest- TestPolicyAcl- 12452605' , u'policy12'], u'id': u'54355653- 627e-4579- 82ff-5501b49d48 dd', u'name': u'policy12'}}
{u'policy': {u'tenant_id': u'f361c44f65644