2026-02-09 23:06:52,942 - INFO - Domain Default found not creating
2026-02-09 23:06:53,123 - INFO - Project ctest-TestBasicPolicy-09489411 not found, creating it
2026-02-09 23:06:53,590 - INFO - Created Project:ctest-TestBasicPolicy-09489411, ID : 2dee502a-6ad5-4db3-80b7-69c104edc8a7
2026-02-09 23:06:55,344 - INFO - ================================================================================
2026-02-09 23:06:55,344 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-02-09 23:06:55,344 - 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-02-09 23:06:55,602 - DEBUG - Nothing to compare xmpp stats {'10.0.0.40': {'10.20.0.17': '0'}} with
2026-02-09 23:06:55,602 - INFO - Initial checks done. Running the testcase now
2026-02-09 23:06:55,602 - INFO -
2026-02-09 23:06:56,214 - DEBUG - Response for create_network : {'network': {'id': '3be8957c-a792-4dee-aa95-d29065819023', 'name': 'ctest-vn-26171805', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'project_id': '2dee502a6ad54db380b769c104edc8a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-vn-26171805'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:06:56,424 - DEBUG - Response for create_subnet : {'subnet': {'id': '229b0888-a5b7-414c-81af-5b1240656bc5', 'name': '', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'network_id': '3be8957c-a792-4dee-aa95-d29065819023', 'ip_version': 4, 'cidr': '159.120.138.128/26', 'allocation_pools': [{'start': '159.120.138.130', 'end': '159.120.138.190'}], 'gateway_ip': '159.120.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.120.138.130', 'tags': [], 'project_id': '2dee502a6ad54db380b769c104edc8a7'}}
2026-02-09 23:06:56,443 - INFO - Created VN ctest-vn-26171805
2026-02-09 23:06:56,496 - DEBUG - VN ctest-vn-26171805 UUID is 3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:56,808 - DEBUG - Response for create_network : {'network': {'id': 'd93df8cf-490d-4cbd-bd23-af20ecad667a', 'name': 'ctest-vn-33895305', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'project_id': '2dee502a6ad54db380b769c104edc8a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-vn-33895305'], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:06:56,986 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dd40f29e-40f2-4500-80d2-b51698c1622e', 'name': '', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'network_id': 'd93df8cf-490d-4cbd-bd23-af20ecad667a', 'ip_version': 4, 'cidr': '213.123.28.0/26', 'allocation_pools': [{'start': '213.123.28.2', 'end': '213.123.28.62'}], 'gateway_ip': '213.123.28.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '213.123.28.2', 'tags': [], 'project_id': '2dee502a6ad54db380b769c104edc8a7'}}
2026-02-09 23:06:57,008 - INFO - Created VN ctest-vn-33895305
2026-02-09 23:06:57,068 - DEBUG - VN ctest-vn-33895305 UUID is d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:57,182 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805, 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-09489411:ctest-vn-33895305, 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-02-09 23:06:57,533 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3be8957c-a792-4dee-aa95-d29065819023', 'name': 'ctest-vn-26171805', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'project_id': '2dee502a6ad54db380b769c104edc8a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['229b0888-a5b7-414c-81af-5b1240656bc5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-vn-26171805'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-policy-allow-all-23218994']], 'subnet_ipam': [{'subnet_cidr': '159.120.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:06:57,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd93df8cf-490d-4cbd-bd23-af20ecad667a', 'name': 'ctest-vn-33895305', 'tenant_id': '2dee502a6ad54db380b769c104edc8a7', 'project_id': '2dee502a6ad54db380b769c104edc8a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dd40f29e-40f2-4500-80d2-b51698c1622e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-vn-33895305'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-policy-allow-all-23218994']], 'subnet_ipam': [{'subnet_cidr': '213.123.28.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-02-09 23:06:57,952 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2026-02-09 23:06:58,298 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2026-02-09 23:06:58,332 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871
2026-02-09 23:06:58,345 - DEBUG - Requesting: http://10.0.0.40:8082/project/2dee502a-6ad5-4db3-80b7-69c104edc8a7
2026-02-09 23:06:58,426 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,438 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,448 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/df636c8e-198a-4c7a-bca1-9f80d29ca1a8
2026-02-09 23:06:58,456 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/df636c8e-198a-4c7a-bca1-9f80d29ca1a8
2026-02-09 23:06:58,463 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bf3b81-0870-49dc-8401-16006467f952
2026-02-09 23:06:58,469 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 23:06:58,470 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,478 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/df636c8e-198a-4c7a-bca1-9f80d29ca1a8
2026-02-09 23:06:58,494 - INFO - Verified VN network id 11 for VN 3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,494 - INFO - Verifications in API Server for VN ctest-vn-26171805 passed
2026-02-09 23:06:58,494 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,505 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/df636c8e-198a-4c7a-bca1-9f80d29ca1a8
2026-02-09 23:06:58,512 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/df636c8e-198a-4c7a-bca1-9f80d29ca1a8
2026-02-09 23:06:58,521 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/a8bf3b81-0870-49dc-8401-16006467f952
2026-02-09 23:06:58,534 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09489411', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4316864605454487022', 'uuid-lslong': '12291962275597750307'}, 'enable': 'true', 'created': '2026-02-09T23:06:56', 'last-modified': '2026-02-09T23:06:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.047052'}
2026-02-09 23:06:58,540 - DEBUG - Route Targets: ['target:64512:8000004']
2026-02-09 23:06:58,540 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-26171805 passed
2026-02-09 23:06:58,540 - DEBUG - ====Verifying policy data for ctest-vn-26171805 in API_Server ======
2026-02-09 23:06:58,540 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2026-02-09 23:06:58,546 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871
2026-02-09 23:06:58,557 - DEBUG - Requesting: http://10.0.0.40:8082/project/2dee502a-6ad5-4db3-80b7-69c104edc8a7
2026-02-09 23:06:58,633 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/3be8957c-a792-4dee-aa95-d29065819023
2026-02-09 23:06:58,643 - DEBUG - ==>Verifying data for policy with id: 61fb0bae-b9d5-48c1-989d-19e03342e13d, fqn: ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-policy-allow-all-23218994']
2026-02-09 23:06:58,643 - INFO - VN ctest-vn-26171805 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 23:06:58,643 - DEBUG - Verifying the vn in opserver
2026-02-09 23:06:58,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805 virtual network link through opserver 10.0.0.40
2026-02-09 23:06:58,643 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2026-02-09 23:06:58,978 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2026-02-09 23:06:59,044 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805?flat'}
2026-02-09 23:06:59,044 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-26171805 is found in opserver
2026-02-09 23:06:59,054 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 23:06:59,060 - DEBUG - VRF ids for VN ctest-vn-26171805: {}
2026-02-09 23:06:59,060 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2026-02-09 23:06:59,066 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871
2026-02-09 23:06:59,080 - DEBUG - Requesting: http://10.0.0.40:8082/project/2dee502a-6ad5-4db3-80b7-69c104edc8a7
2026-02-09 23:06:59,160 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,171 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,181 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3cec04f9-8bdd-43c6-944a-75f4bf8a9504
2026-02-09 23:06:59,188 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3cec04f9-8bdd-43c6-944a-75f4bf8a9504
2026-02-09 23:06:59,195 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b737e675-6087-4f3c-8dcb-363dfe1b8c83
2026-02-09 23:06:59,202 - DEBUG - Route Targets: ['target:64512:8000006']
2026-02-09 23:06:59,202 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,212 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3cec04f9-8bdd-43c6-944a-75f4bf8a9504
2026-02-09 23:06:59,226 - INFO - Verified VN network id 13 for VN d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,226 - INFO - Verifications in API Server for VN ctest-vn-33895305 passed
2026-02-09 23:06:59,226 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,235 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3cec04f9-8bdd-43c6-944a-75f4bf8a9504
2026-02-09 23:06:59,242 - DEBUG - Requesting: http://10.0.0.40:8082/routing-instance/3cec04f9-8bdd-43c6-944a-75f4bf8a9504
2026-02-09 23:06:59,249 - DEBUG - Requesting: http://10.0.0.40:8082/route-target/b737e675-6087-4f3c-8dcb-363dfe1b8c83
2026-02-09 23:06:59,260 - DEBUG - Control-node 10.0.0.40 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-33895305', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09489411', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15653941448977239229', 'uuid-lslong': '13628929453297854074'}, 'enable': 'true', 'created': '2026-02-09T23:06:56', 'last-modified': '2026-02-09T23:06:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.525056'}
2026-02-09 23:06:59,265 - DEBUG - Route Targets: ['target:64512:8000006']
2026-02-09 23:06:59,265 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33895305 passed
2026-02-09 23:06:59,266 - DEBUG - ====Verifying policy data for ctest-vn-33895305 in API_Server ======
2026-02-09 23:06:59,266 - DEBUG - Requesting: http://10.0.0.40:8082/domains
2026-02-09 23:06:59,271 - DEBUG - Requesting: http://10.0.0.40:8082/domain/71b280c5-2fb5-49fe-8d3c-63acfdcc2871
2026-02-09 23:06:59,282 - DEBUG - Requesting: http://10.0.0.40:8082/project/2dee502a-6ad5-4db3-80b7-69c104edc8a7
2026-02-09 23:06:59,361 - DEBUG - Requesting: http://10.0.0.40:8082/virtual-network/d93df8cf-490d-4cbd-bd23-af20ecad667a
2026-02-09 23:06:59,370 - DEBUG - ==>Verifying data for policy with id: 61fb0bae-b9d5-48c1-989d-19e03342e13d, fqn: ['default-domain', 'ctest-TestBasicPolicy-09489411', 'ctest-policy-allow-all-23218994']
2026-02-09 23:06:59,370 - INFO - VN ctest-vn-33895305 Policy verification: verify_vn_policy_in_api_server, status: True
2026-02-09 23:06:59,370 - DEBUG - Verifying the vn in opserver
2026-02-09 23:06:59,370 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-33895305 virtual network link through opserver 10.0.0.40
2026-02-09 23:06:59,370 - DEBUG - Requesting: http://10.0.0.40:8081/analytics/uves/virtual-networks
2026-02-09 23:06:59,381 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-33895305', 'href': 'http://10.0.0.40:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-33895305?flat'}
2026-02-09 23:06:59,381 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09489411:ctest-vn-33895305 is found in opserver
2026-02-09 23:06:59,392 - DEBUG - Do not have enough data to verify VN in agent
2026-02-09 23:06:59,397 - DEBUG - VRF ids for VN ctest-vn-33895305: {}
2026-02-09 23:06:59,458 - DEBUG - Services list from nova: [