2026-05-28 09:07:23,601 - INFO - Domain Default found not creating
2026-05-28 09:07:23,775 - INFO - Project ctest-TestBasicPolicy-35846128 not found, creating it
2026-05-28 09:07:24,277 - INFO - Created Project:ctest-TestBasicPolicy-35846128, ID : dc1fbb6d-5481-47ea-aac5-b155d07fa003
2026-05-28 09:07:26,629 - INFO - ================================================================================
2026-05-28 09:07:26,629 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-05-28 09:07:26,630 - 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-28 09:07:26,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2026-05-28 09:07:26,904 - INFO - Initial checks done. Running the testcase now
2026-05-28 09:07:26,904 - INFO -
2026-05-28 09:07:27,491 - DEBUG - Response for create_network : {'network': {'id': '22632af6-2ef3-444b-81e5-a4cc434ccc51', 'name': 'ctest-vn-95565128', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-vn-95565128'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 09:07:27,693 - DEBUG - Response for create_subnet : {'subnet': {'id': '24cfc3a6-b030-4b80-aa20-fe0b194ad2ff', 'name': '', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'network_id': '22632af6-2ef3-444b-81e5-a4cc434ccc51', 'ip_version': 4, 'cidr': '149.106.40.64/26', 'allocation_pools': [{'start': '149.106.40.66', 'end': '149.106.40.126'}], 'gateway_ip': '149.106.40.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.106.40.66', 'tags': [], 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003'}}
2026-05-28 09:07:27,713 - INFO - Created VN ctest-vn-95565128
2026-05-28 09:07:27,767 - DEBUG - VN ctest-vn-95565128 UUID is 22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:28,066 - DEBUG - Response for create_network : {'network': {'id': 'da16f34c-c915-4ff2-9710-cc969a307493', 'name': 'ctest-vn-21257569', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-vn-21257569'], 'port_security_enabled': True, 'description': ''}}
2026-05-28 09:07:28,230 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f5ffefb-55bd-41a5-9538-61e4549ebb4c', 'name': '', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'network_id': 'da16f34c-c915-4ff2-9710-cc969a307493', 'ip_version': 4, 'cidr': '78.63.246.64/26', 'allocation_pools': [{'start': '78.63.246.66', 'end': '78.63.246.126'}], 'gateway_ip': '78.63.246.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.63.246.66', 'tags': [], 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003'}}
2026-05-28 09:07:28,247 - INFO - Created VN ctest-vn-21257569
2026-05-28 09:07:28,299 - DEBUG - VN ctest-vn-21257569 UUID is da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:28,455 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128, 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-35846128:ctest-vn-21257569, 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-28 09:07:28,771 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22632af6-2ef3-444b-81e5-a4cc434ccc51', 'name': 'ctest-vn-95565128', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['24cfc3a6-b030-4b80-aa20-fe0b194ad2ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-vn-95565128'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-policy-allow-all-75855889']], 'subnet_ipam': [{'subnet_cidr': '149.106.40.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 09:07:29,019 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da16f34c-c915-4ff2-9710-cc969a307493', 'name': 'ctest-vn-21257569', 'tenant_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'project_id': 'dc1fbb6d548147eaaac5b155d07fa003', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f5ffefb-55bd-41a5-9538-61e4549ebb4c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-vn-21257569'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-policy-allow-all-75855889']], 'subnet_ipam': [{'subnet_cidr': '78.63.246.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-05-28 09:07:29,175 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-28 09:07:29,521 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-28 09:07:29,553 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c
2026-05-28 09:07:29,565 - DEBUG - Requesting: http://10.0.0.33:8082/project/dc1fbb6d-5481-47ea-aac5-b155d07fa003
2026-05-28 09:07:29,639 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,650 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,660 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d07ca28b-e3c5-46ab-91ac-4563b3a66e79
2026-05-28 09:07:29,667 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d07ca28b-e3c5-46ab-91ac-4563b3a66e79
2026-05-28 09:07:29,673 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6eee13bb-d47a-4dda-9356-51ba149b1c71
2026-05-28 09:07:29,678 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 09:07:29,678 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,686 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d07ca28b-e3c5-46ab-91ac-4563b3a66e79
2026-05-28 09:07:29,701 - INFO - Verified VN network id 12 for VN 22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,702 - INFO - Verifications in API Server for VN ctest-vn-95565128 passed
2026-05-28 09:07:29,702 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,712 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d07ca28b-e3c5-46ab-91ac-4563b3a66e79
2026-05-28 09:07:29,720 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/d07ca28b-e3c5-46ab-91ac-4563b3a66e79
2026-05-28 09:07:29,726 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/6eee13bb-d47a-4dda-9356-51ba149b1c71
2026-05-28 09:07:29,739 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35846128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2477871456821920843', 'uuid-lslong': '9360068597768834129'}, 'enable': 'true', 'created': '2026-05-28T09:07:27', 'last-modified': '2026-05-28T09:07:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.994760'}
2026-05-28 09:07:29,745 - DEBUG - Route Targets: ['target:64512:8000004']
2026-05-28 09:07:29,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95565128 passed
2026-05-28 09:07:29,745 - DEBUG - ====Verifying policy data for ctest-vn-95565128 in API_Server ======
2026-05-28 09:07:29,745 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-28 09:07:29,750 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c
2026-05-28 09:07:29,760 - DEBUG - Requesting: http://10.0.0.33:8082/project/dc1fbb6d-5481-47ea-aac5-b155d07fa003
2026-05-28 09:07:29,832 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/22632af6-2ef3-444b-81e5-a4cc434ccc51
2026-05-28 09:07:29,841 - DEBUG - ==>Verifying data for policy with id: 77a08bcd-7619-4257-ba1b-09676e37ed92, fqn: ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-policy-allow-all-75855889']
2026-05-28 09:07:29,841 - INFO - VN ctest-vn-95565128 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 09:07:29,841 - DEBUG - Verifying the vn in opserver
2026-05-28 09:07:29,841 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128 virtual network link through opserver 10.0.0.33
2026-05-28 09:07:29,842 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-28 09:07:30,176 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-28 09:07:30,237 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128?flat'}
2026-05-28 09:07:30,237 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-95565128 is found in opserver
2026-05-28 09:07:30,247 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 09:07:30,252 - DEBUG - VRF ids for VN ctest-vn-95565128: {}
2026-05-28 09:07:30,252 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-28 09:07:30,257 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c
2026-05-28 09:07:30,269 - DEBUG - Requesting: http://10.0.0.33:8082/project/dc1fbb6d-5481-47ea-aac5-b155d07fa003
2026-05-28 09:07:30,340 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,352 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,360 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/16a7a4c6-4169-484b-b3b9-de516976ecbf
2026-05-28 09:07:30,367 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/16a7a4c6-4169-484b-b3b9-de516976ecbf
2026-05-28 09:07:30,373 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9f9abfe-2c31-444c-bc35-ae7cbc6c6e91
2026-05-28 09:07:30,378 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 09:07:30,378 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,386 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/16a7a4c6-4169-484b-b3b9-de516976ecbf
2026-05-28 09:07:30,401 - INFO - Verified VN network id 13 for VN da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,401 - INFO - Verifications in API Server for VN ctest-vn-21257569 passed
2026-05-28 09:07:30,401 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,410 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/16a7a4c6-4169-484b-b3b9-de516976ecbf
2026-05-28 09:07:30,416 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/16a7a4c6-4169-484b-b3b9-de516976ecbf
2026-05-28 09:07:30,422 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b9f9abfe-2c31-444c-bc35-ae7cbc6c6e91
2026-05-28 09:07:30,432 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-21257569', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35846128', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15715015460872605682', 'uuid-lslong': '10885425246558516371'}, 'enable': 'true', 'created': '2026-05-28T09:07:28', 'last-modified': '2026-05-28T09:07:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.441413'}
2026-05-28 09:07:30,438 - DEBUG - Route Targets: ['target:64512:8000005']
2026-05-28 09:07:30,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21257569 passed
2026-05-28 09:07:30,438 - DEBUG - ====Verifying policy data for ctest-vn-21257569 in API_Server ======
2026-05-28 09:07:30,438 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2026-05-28 09:07:30,443 - DEBUG - Requesting: http://10.0.0.33:8082/domain/74fe28d1-ba1d-49c5-8c80-173f73584c7c
2026-05-28 09:07:30,454 - DEBUG - Requesting: http://10.0.0.33:8082/project/dc1fbb6d-5481-47ea-aac5-b155d07fa003
2026-05-28 09:07:30,535 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/da16f34c-c915-4ff2-9710-cc969a307493
2026-05-28 09:07:30,544 - DEBUG - ==>Verifying data for policy with id: 77a08bcd-7619-4257-ba1b-09676e37ed92, fqn: ['default-domain', 'ctest-TestBasicPolicy-35846128', 'ctest-policy-allow-all-75855889']
2026-05-28 09:07:30,544 - INFO - VN ctest-vn-21257569 Policy verification: verify_vn_policy_in_api_server, status: True
2026-05-28 09:07:30,544 - DEBUG - Verifying the vn in opserver
2026-05-28 09:07:30,544 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-21257569 virtual network link through opserver 10.0.0.33
2026-05-28 09:07:30,545 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2026-05-28 09:07:30,554 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-21257569', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-21257569?flat'}
2026-05-28 09:07:30,554 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35846128:ctest-vn-21257569 is found in opserver
2026-05-28 09:07:30,565 - DEBUG - Do not have enough data to verify VN in agent
2026-05-28 09:07:30,570 - DEBUG - VRF ids for VN ctest-vn-21257569: {}
2026-05-28 09:07:30,633 - DEBUG - Services list from nova: [