2026-05-06 10:04:36,463 - INFO - Domain Default found not creating
2026-05-06 10:04:36,630 - INFO - Project ctest-TestBasicPolicy-79515400 not found, creating it
2026-05-06 10:04:37,067 - INFO - Created Project:ctest-TestBasicPolicy-79515400, ID : ba1e4386-490f-4857-8ffb-d0cb0e224162
2026-05-06 10:04:38,574 - INFO - ================================================================================
2026-05-06 10:04:38,574 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-06 10:04:38,574 - 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-05-06 10:04:38,836 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2026-05-06 10:04:38,836 - INFO - Initial checks done. Running the testcase now
2026-05-06 10:04:38,836 - INFO -
2026-05-06 10:04:39,417 - DEBUG - Response for create_network : {'network': {'id': '4d95c47f-d204-4f23-9dd2-fbd648e72af5', 'name': 'ctest-vn-55189114', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'project_id': 'ba1e4386490f48578ffbd0cb0e224162', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-vn-55189114'], 'port_security_enabled': True, 'description': ''}}
2026-05-06 10:04:39,599 - DEBUG - Response for create_subnet : {'subnet': {'id': '7cd1816c-b6e1-4870-8ad7-d6cca014568f', 'name': '', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'network_id': '4d95c47f-d204-4f23-9dd2-fbd648e72af5', 'ip_version': 4, 'cidr': '38.44.24.128/26', 'allocation_pools': [{'start': '38.44.24.130', 'end': '38.44.24.190'}], 'gateway_ip': '38.44.24.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.44.24.130', 'tags': [], 'project_id': 'ba1e4386490f48578ffbd0cb0e224162'}}
2026-05-06 10:04:39,619 - INFO - Created VN ctest-vn-55189114
2026-05-06 10:04:39,674 - DEBUG - VN ctest-vn-55189114 UUID is 4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:39,964 - DEBUG - Response for create_network : {'network': {'id': '15601837-8a74-4112-9a1b-690715016172', 'name': 'ctest-vn-09965172', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'project_id': 'ba1e4386490f48578ffbd0cb0e224162', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-vn-09965172'], 'port_security_enabled': True, 'description': ''}}
2026-05-06 10:04:40,139 - DEBUG - Response for create_subnet : {'subnet': {'id': '0da16bc1-b9a2-4d18-9e20-75447321c2c0', 'name': '', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'network_id': '15601837-8a74-4112-9a1b-690715016172', 'ip_version': 4, 'cidr': '149.122.100.128/26', 'allocation_pools': [{'start': '149.122.100.130', 'end': '149.122.100.190'}], 'gateway_ip': '149.122.100.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.122.100.130', 'tags': [], 'project_id': 'ba1e4386490f48578ffbd0cb0e224162'}}
2026-05-06 10:04:40,158 - INFO - Created VN ctest-vn-09965172
2026-05-06 10:04:40,210 - DEBUG - VN ctest-vn-09965172 UUID is 15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:40,326 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114, 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-79515400:ctest-vn-09965172, 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-05-06 10:04:40,613 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d95c47f-d204-4f23-9dd2-fbd648e72af5', 'name': 'ctest-vn-55189114', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'project_id': 'ba1e4386490f48578ffbd0cb0e224162', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7cd1816c-b6e1-4870-8ad7-d6cca014568f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-vn-55189114'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-policy-allow-all-06649011']], 'subnet_ipam': [{'subnet_cidr': '38.44.24.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-06 10:04:40,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '15601837-8a74-4112-9a1b-690715016172', 'name': 'ctest-vn-09965172', 'tenant_id': 'ba1e4386490f48578ffbd0cb0e224162', 'project_id': 'ba1e4386490f48578ffbd0cb0e224162', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0da16bc1-b9a2-4d18-9e20-75447321c2c0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-vn-09965172'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-policy-allow-all-06649011']], 'subnet_ipam': [{'subnet_cidr': '149.122.100.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-06 10:04:41,014 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 10:04:41,331 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 10:04:41,363 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858
2026-05-06 10:04:41,375 - DEBUG - Requesting: http://10.0.0.50:8082/project/ba1e4386-490f-4857-8ffb-d0cb0e224162
2026-05-06 10:04:41,447 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,458 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,467 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/414fd1cc-138c-4c94-8bea-218c74c8bcd3
2026-05-06 10:04:41,474 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/414fd1cc-138c-4c94-8bea-218c74c8bcd3
2026-05-06 10:04:41,481 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f70e52a0-51d5-42c3-8067-b1975aba3c0c
2026-05-06 10:04:41,486 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-06 10:04:41,486 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,495 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/414fd1cc-138c-4c94-8bea-218c74c8bcd3
2026-05-06 10:04:41,507 - INFO - Verified VN network id 11 for VN 4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,507 - INFO - Verifications in API Server for VN ctest-vn-55189114 passed
2026-05-06 10:04:41,507 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,515 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/414fd1cc-138c-4c94-8bea-218c74c8bcd3
2026-05-06 10:04:41,521 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/414fd1cc-138c-4c94-8bea-218c74c8bcd3
2026-05-06 10:04:41,527 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f70e52a0-51d5-42c3-8067-b1975aba3c0c
2026-05-06 10:04:41,538 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79515400', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5590590565713727267', 'uuid-lslong': '11372428906828606197'}, 'enable': 'true', 'created': '2026-05-06T10:04:39', 'last-modified': '2026-05-06T10:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.946110'}
2026-05-06 10:04:41,544 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-06 10:04:41,544 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55189114 passed
2026-05-06 10:04:41,545 - DEBUG - ====Verifying policy data for ctest-vn-55189114 in API_Server ======
2026-05-06 10:04:41,545 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 10:04:41,550 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858
2026-05-06 10:04:41,562 - DEBUG - Requesting: http://10.0.0.50:8082/project/ba1e4386-490f-4857-8ffb-d0cb0e224162
2026-05-06 10:04:41,632 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4d95c47f-d204-4f23-9dd2-fbd648e72af5
2026-05-06 10:04:41,642 - DEBUG - ==>Verifying data for policy with id: 5cd91f42-0056-4684-b66b-6ff81f14501b, fqn: ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-policy-allow-all-06649011']
2026-05-06 10:04:41,642 - INFO - VN ctest-vn-55189114 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-06 10:04:41,642 - DEBUG - Verifying the vn in opserver
2026-05-06 10:04:41,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114 virtual network link through opserver 10.0.0.50
2026-05-06 10:04:41,642 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 10:04:41,947 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 10:04:42,010 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114?flat'}
2026-05-06 10:04:42,010 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-55189114 is found in opserver
2026-05-06 10:04:42,020 - DEBUG - Do not have enough data to verify VN in agent
2026-05-06 10:04:42,024 - DEBUG - VRF ids for VN ctest-vn-55189114: {}
2026-05-06 10:04:42,024 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 10:04:42,030 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858
2026-05-06 10:04:42,041 - DEBUG - Requesting: http://10.0.0.50:8082/project/ba1e4386-490f-4857-8ffb-d0cb0e224162
2026-05-06 10:04:42,114 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,126 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,136 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12abea3f-1d24-4494-8c23-e87d7a2dfda7
2026-05-06 10:04:42,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12abea3f-1d24-4494-8c23-e87d7a2dfda7
2026-05-06 10:04:42,152 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b342770c-57f1-45aa-bfd2-239fc2876eab
2026-05-06 10:04:42,158 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-06 10:04:42,158 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,167 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12abea3f-1d24-4494-8c23-e87d7a2dfda7
2026-05-06 10:04:42,183 - INFO - Verified VN network id 12 for VN 15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,183 - INFO - Verifications in API Server for VN ctest-vn-09965172 passed
2026-05-06 10:04:42,183 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,192 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12abea3f-1d24-4494-8c23-e87d7a2dfda7
2026-05-06 10:04:42,199 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12abea3f-1d24-4494-8c23-e87d7a2dfda7
2026-05-06 10:04:42,206 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/b342770c-57f1-45aa-bfd2-239fc2876eab
2026-05-06 10:04:42,219 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-09965172', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-79515400', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1540257699385852178', 'uuid-lslong': '11104584785350189426'}, 'enable': 'true', 'created': '2026-05-06T10:04:39', 'last-modified': '2026-05-06T10:04:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.392626'}
2026-05-06 10:04:42,225 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-06 10:04:42,225 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-09965172 passed
2026-05-06 10:04:42,225 - DEBUG - ====Verifying policy data for ctest-vn-09965172 in API_Server ======
2026-05-06 10:04:42,225 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2026-05-06 10:04:42,231 - DEBUG - Requesting: http://10.0.0.50:8082/domain/3985a10d-7452-48e5-a2fa-93a3fd231858
2026-05-06 10:04:42,241 - DEBUG - Requesting: http://10.0.0.50:8082/project/ba1e4386-490f-4857-8ffb-d0cb0e224162
2026-05-06 10:04:42,310 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/15601837-8a74-4112-9a1b-690715016172
2026-05-06 10:04:42,318 - DEBUG - ==>Verifying data for policy with id: 5cd91f42-0056-4684-b66b-6ff81f14501b, fqn: ['default-domain', 'ctest-TestBasicPolicy-79515400', 'ctest-policy-allow-all-06649011']
2026-05-06 10:04:42,318 - INFO - VN ctest-vn-09965172 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-06 10:04:42,319 - DEBUG - Verifying the vn in opserver
2026-05-06 10:04:42,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-09965172 virtual network link through opserver 10.0.0.50
2026-05-06 10:04:42,319 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2026-05-06 10:04:42,327 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-09965172', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-09965172?flat'}
2026-05-06 10:04:42,327 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-79515400:ctest-vn-09965172 is found in opserver
2026-05-06 10:04:42,336 - DEBUG - Do not have enough data to verify VN in agent
2026-05-06 10:04:42,340 - DEBUG - VRF ids for VN ctest-vn-09965172: {}
2026-05-06 10:04:42,400 - DEBUG - Services list from nova: [