2026-04-28 12:51:44,373 - INFO - Domain Default found not creating
2026-04-28 12:51:44,588 - INFO - Project ctest-TestBasicPolicy-24576700 not found, creating it
2026-04-28 12:51:45,094 - INFO - Created Project:ctest-TestBasicPolicy-24576700, ID : fba4474d-69d4-4de3-a659-cae198650220
2026-04-28 12:51:46,884 - INFO - ================================================================================
2026-04-28 12:51:46,884 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-04-28 12:51:46,884 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2026-04-28 12:51:47,158 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with
2026-04-28 12:51:47,158 - INFO - Initial checks done. Running the testcase now
2026-04-28 12:51:47,158 - INFO -
2026-04-28 12:51:47,825 - DEBUG - Response for create_network : {'network': {'id': '16632303-6335-46d1-980d-d2cd74636dd6', 'name': 'ctest-vn-31492091', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'project_id': 'fba4474d69d44de3a659cae198650220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-vn-31492091'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:51:48,034 - DEBUG - Response for create_subnet : {'subnet': {'id': '69787568-f6f6-4684-801e-532c3d6bad19', 'name': '', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'network_id': '16632303-6335-46d1-980d-d2cd74636dd6', 'ip_version': 4, 'cidr': '120.29.135.0/26', 'allocation_pools': [{'start': '120.29.135.2', 'end': '120.29.135.62'}], 'gateway_ip': '120.29.135.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.29.135.2', 'tags': [], 'project_id': 'fba4474d69d44de3a659cae198650220'}}
2026-04-28 12:51:48,058 - INFO - Created VN ctest-vn-31492091
2026-04-28 12:51:48,113 - DEBUG - VN ctest-vn-31492091 UUID is 16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:48,473 - DEBUG - Response for create_network : {'network': {'id': 'fc99e0a6-dc19-4c73-a588-64f7aeb94acb', 'name': 'ctest-vn-11081597', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'project_id': 'fba4474d69d44de3a659cae198650220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-vn-11081597'], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:51:48,686 - DEBUG - Response for create_subnet : {'subnet': {'id': '65007994-364c-42d5-94bb-494d704e7045', 'name': '', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'network_id': 'fc99e0a6-dc19-4c73-a588-64f7aeb94acb', 'ip_version': 4, 'cidr': '3.212.36.192/26', 'allocation_pools': [{'start': '3.212.36.194', 'end': '3.212.36.254'}], 'gateway_ip': '3.212.36.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3.212.36.194', 'tags': [], 'project_id': 'fba4474d69d44de3a659cae198650220'}}
2026-04-28 12:51:48,712 - INFO - Created VN ctest-vn-11081597
2026-04-28 12:51:48,769 - DEBUG - VN ctest-vn-11081597 UUID is fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:48,890 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2026-04-28 12:51:49,208 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '16632303-6335-46d1-980d-d2cd74636dd6', 'name': 'ctest-vn-31492091', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'project_id': 'fba4474d69d44de3a659cae198650220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['69787568-f6f6-4684-801e-532c3d6bad19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-vn-31492091'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-policy-allow-all-72037879']], 'subnet_ipam': [{'subnet_cidr': '120.29.135.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:51:49,448 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'fc99e0a6-dc19-4c73-a588-64f7aeb94acb', 'name': 'ctest-vn-11081597', 'tenant_id': 'fba4474d69d44de3a659cae198650220', 'project_id': 'fba4474d69d44de3a659cae198650220', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['65007994-364c-42d5-94bb-494d704e7045'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-vn-11081597'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-policy-allow-all-72037879']], 'subnet_ipam': [{'subnet_cidr': '3.212.36.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-04-28 12:51:49,617 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 12:51:49,961 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 12:51:49,998 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d964e631-b55e-466d-a482-780e7ad2a746
2026-04-28 12:51:50,012 - DEBUG - Requesting: http://10.0.0.38:8082/project/fba4474d-69d4-4de3-a659-cae198650220
2026-04-28 12:51:50,094 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,106 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,118 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a66fbc3-cb0c-4d1a-8789-d5ee8f4c542c
2026-04-28 12:51:50,127 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a66fbc3-cb0c-4d1a-8789-d5ee8f4c542c
2026-04-28 12:51:50,134 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee55f4ea-15b4-4efd-afc0-6e6585e71193
2026-04-28 12:51:50,143 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 12:51:50,143 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,154 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a66fbc3-cb0c-4d1a-8789-d5ee8f4c542c
2026-04-28 12:51:50,171 - INFO - Verified VN network id 10 for VN 16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,171 - INFO - Verifications in API Server for VN ctest-vn-31492091 passed
2026-04-28 12:51:50,171 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,183 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a66fbc3-cb0c-4d1a-8789-d5ee8f4c542c
2026-04-28 12:51:50,192 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/0a66fbc3-cb0c-4d1a-8789-d5ee8f4c542c
2026-04-28 12:51:50,200 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee55f4ea-15b4-4efd-afc0-6e6585e71193
2026-04-28 12:51:50,215 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24576700', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1613171588985079505', 'uuid-lslong': '10956645248325086678'}, 'enable': 'true', 'created': '2026-04-28T12:51:47', 'last-modified': '2026-04-28T12:51:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.044602'}
2026-04-28 12:51:50,224 - DEBUG - Route Targets: ['target:64512:8000004']
2026-04-28 12:51:50,224 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31492091 passed
2026-04-28 12:51:50,224 - DEBUG - ====Verifying policy data for ctest-vn-31492091 in API_Server ======
2026-04-28 12:51:50,225 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 12:51:50,231 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d964e631-b55e-466d-a482-780e7ad2a746
2026-04-28 12:51:50,244 - DEBUG - Requesting: http://10.0.0.38:8082/project/fba4474d-69d4-4de3-a659-cae198650220
2026-04-28 12:51:50,321 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/16632303-6335-46d1-980d-d2cd74636dd6
2026-04-28 12:51:50,334 - DEBUG - ==>Verifying data for policy with id: 196cf2f3-198b-4d55-91fb-5b11bb662358, fqn: ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-policy-allow-all-72037879']
2026-04-28 12:51:50,334 - INFO - VN ctest-vn-31492091 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 12:51:50,334 - DEBUG - Verifying the vn in opserver
2026-04-28 12:51:50,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091 virtual network link through opserver 10.0.0.38
2026-04-28 12:51:50,334 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 12:51:50,680 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 12:51:50,763 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091?flat'}
2026-04-28 12:51:50,763 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-31492091 is found in opserver
2026-04-28 12:51:50,774 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 12:51:50,780 - DEBUG - VRF ids for VN ctest-vn-31492091: {}
2026-04-28 12:51:50,780 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 12:51:50,787 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d964e631-b55e-466d-a482-780e7ad2a746
2026-04-28 12:51:50,800 - DEBUG - Requesting: http://10.0.0.38:8082/project/fba4474d-69d4-4de3-a659-cae198650220
2026-04-28 12:51:50,881 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:50,896 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:50,907 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/52f2ca82-1cd6-41de-9890-28f8f718a482
2026-04-28 12:51:50,916 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/52f2ca82-1cd6-41de-9890-28f8f718a482
2026-04-28 12:51:50,923 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/91be5511-ba57-4443-a201-b0ab69ce548e
2026-04-28 12:51:50,931 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 12:51:50,931 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:50,941 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/52f2ca82-1cd6-41de-9890-28f8f718a482
2026-04-28 12:51:50,956 - INFO - Verified VN network id 11 for VN fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:50,956 - INFO - Verifications in API Server for VN ctest-vn-11081597 passed
2026-04-28 12:51:50,956 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:50,967 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/52f2ca82-1cd6-41de-9890-28f8f718a482
2026-04-28 12:51:50,978 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/52f2ca82-1cd6-41de-9890-28f8f718a482
2026-04-28 12:51:50,988 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/91be5511-ba57-4443-a201-b0ab69ce548e
2026-04-28 12:51:51,002 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-24576700', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18201826376256408691', 'uuid-lslong': '11927894628041837259'}, 'enable': 'true', 'created': '2026-04-28T12:51:48', 'last-modified': '2026-04-28T12:51:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.587080'}
2026-04-28 12:51:51,008 - DEBUG - Route Targets: ['target:64512:8000005']
2026-04-28 12:51:51,008 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-11081597 passed
2026-04-28 12:51:51,009 - DEBUG - ====Verifying policy data for ctest-vn-11081597 in API_Server ======
2026-04-28 12:51:51,009 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2026-04-28 12:51:51,014 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d964e631-b55e-466d-a482-780e7ad2a746
2026-04-28 12:51:51,026 - DEBUG - Requesting: http://10.0.0.38:8082/project/fba4474d-69d4-4de3-a659-cae198650220
2026-04-28 12:51:51,098 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/fc99e0a6-dc19-4c73-a588-64f7aeb94acb
2026-04-28 12:51:51,110 - DEBUG - ==>Verifying data for policy with id: 196cf2f3-198b-4d55-91fb-5b11bb662358, fqn: ['default-domain', 'ctest-TestBasicPolicy-24576700', 'ctest-policy-allow-all-72037879']
2026-04-28 12:51:51,110 - INFO - VN ctest-vn-11081597 Policy verification: verify_vn_policy_in_api_server, status: True
2026-04-28 12:51:51,110 - DEBUG - Verifying the vn in opserver
2026-04-28 12:51:51,110 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597 virtual network link through opserver 10.0.0.38
2026-04-28 12:51:51,110 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2026-04-28 12:51:51,122 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597?flat'}
2026-04-28 12:51:51,122 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-24576700:ctest-vn-11081597 is found in opserver
2026-04-28 12:51:51,134 - DEBUG - Do not have enough data to verify VN in agent
2026-04-28 12:51:51,141 - DEBUG - VRF ids for VN ctest-vn-11081597: {}
2026-04-28 12:51:51,223 - DEBUG - Services list from nova: [