2026-08-24 22:38:33,747 - INFO - Domain Default found not creating
2026-08-24 22:38:33,915 - INFO - Project ctest-TestBasicPolicy-99918152 not found, creating it
2026-08-24 22:38:34,389 - INFO - Created Project:ctest-TestBasicPolicy-99918152, ID : a71ed300-83fd-4e3e-b825-4e5706471246
2026-08-24 22:38:35,917 - INFO - ================================================================================
2026-08-24 22:38:35,917 - INFO - STARTING TEST : test_basic_policy_allow_deny
2026-08-24 22:38:35,917 - 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-08-24 22:38:36,177 - DEBUG - Nothing to compare xmpp stats {'10.0.0.177': {'10.20.0.17': '0'}} with
2026-08-24 22:38:36,177 - INFO - Initial checks done. Running the testcase now
2026-08-24 22:38:36,177 - INFO -
2026-08-24 22:38:36,767 - DEBUG - Response for create_network : {'network': {'id': '1785a237-d508-4631-8799-565cc6ed3b84', 'name': 'ctest-vn-93973189', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'project_id': 'a71ed30083fd4e3eb8254e5706471246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-vn-93973189'], 'port_security_enabled': True, 'description': ''}}
2026-08-24 22:38:37,004 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a74f4767-f971-4ee2-be8a-44ebb506a01a', 'name': '', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'network_id': '1785a237-d508-4631-8799-565cc6ed3b84', 'ip_version': 4, 'cidr': '151.155.212.64/26', 'allocation_pools': [{'start': '151.155.212.66', 'end': '151.155.212.126'}], 'gateway_ip': '151.155.212.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.155.212.66', 'tags': [], 'project_id': 'a71ed30083fd4e3eb8254e5706471246'}}
2026-08-24 22:38:37,022 - INFO - Created VN ctest-vn-93973189
2026-08-24 22:38:37,073 - DEBUG - VN ctest-vn-93973189 UUID is 1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:37,409 - DEBUG - Response for create_network : {'network': {'id': '6eec2e79-6b7c-4ac4-920f-bfaf2067cc97', 'name': 'ctest-vn-61361090', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'project_id': 'a71ed30083fd4e3eb8254e5706471246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-vn-61361090'], 'port_security_enabled': True, 'description': ''}}
2026-08-24 22:38:37,616 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0335b6f-eb57-49e1-b99e-b560e89100ae', 'name': '', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'network_id': '6eec2e79-6b7c-4ac4-920f-bfaf2067cc97', 'ip_version': 4, 'cidr': '193.14.157.64/26', 'allocation_pools': [{'start': '193.14.157.66', 'end': '193.14.157.126'}], 'gateway_ip': '193.14.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '193.14.157.66', 'tags': [], 'project_id': 'a71ed30083fd4e3eb8254e5706471246'}}
2026-08-24 22:38:37,631 - INFO - Created VN ctest-vn-61361090
2026-08-24 22:38:37,681 - DEBUG - VN ctest-vn-61361090 UUID is 6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:37,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189, 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-99918152:ctest-vn-61361090, 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-08-24 22:38:38,111 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1785a237-d508-4631-8799-565cc6ed3b84', 'name': 'ctest-vn-93973189', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'project_id': 'a71ed30083fd4e3eb8254e5706471246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a74f4767-f971-4ee2-be8a-44ebb506a01a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-vn-93973189'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-policy-allow-all-24000879']], 'subnet_ipam': [{'subnet_cidr': '151.155.212.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-24 22:38:38,355 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6eec2e79-6b7c-4ac4-920f-bfaf2067cc97', 'name': 'ctest-vn-61361090', 'tenant_id': 'a71ed30083fd4e3eb8254e5706471246', 'project_id': 'a71ed30083fd4e3eb8254e5706471246', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0335b6f-eb57-49e1-b99e-b560e89100ae'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-vn-61361090'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-policy-allow-all-24000879']], 'subnet_ipam': [{'subnet_cidr': '193.14.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2026-08-24 22:38:38,525 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-24 22:38:38,852 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-24 22:38:38,880 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802
2026-08-24 22:38:38,893 - DEBUG - Requesting: http://10.0.0.177:8082/project/a71ed300-83fd-4e3e-b825-4e5706471246
2026-08-24 22:38:38,975 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:38,989 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:39,003 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b717f2d-3641-4ec9-860e-8b08b82a7111
2026-08-24 22:38:39,010 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b717f2d-3641-4ec9-860e-8b08b82a7111
2026-08-24 22:38:39,017 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/7d13faa3-d132-4cc8-ac08-feb1804d8cb9
2026-08-24 22:38:39,024 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 22:38:39,024 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:39,033 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b717f2d-3641-4ec9-860e-8b08b82a7111
2026-08-24 22:38:39,053 - INFO - Verified VN network id 11 for VN 1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:39,053 - INFO - Verifications in API Server for VN ctest-vn-93973189 passed
2026-08-24 22:38:39,053 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:39,064 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b717f2d-3641-4ec9-860e-8b08b82a7111
2026-08-24 22:38:39,073 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/9b717f2d-3641-4ec9-860e-8b08b82a7111
2026-08-24 22:38:39,080 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/7d13faa3-d132-4cc8-ac08-feb1804d8cb9
2026-08-24 22:38:39,092 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99918152', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1694939195455850033', 'uuid-lslong': '9770935823031417732'}, 'enable': 'true', 'created': '2026-08-24T22:38:36', 'last-modified': '2026-08-24T22:38:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014799'}
2026-08-24 22:38:39,100 - DEBUG - Route Targets: ['target:64512:8000004']
2026-08-24 22:38:39,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93973189 passed
2026-08-24 22:38:39,100 - DEBUG - ====Verifying policy data for ctest-vn-93973189 in API_Server ======
2026-08-24 22:38:39,101 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-24 22:38:39,108 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802
2026-08-24 22:38:39,120 - DEBUG - Requesting: http://10.0.0.177:8082/project/a71ed300-83fd-4e3e-b825-4e5706471246
2026-08-24 22:38:39,195 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/1785a237-d508-4631-8799-565cc6ed3b84
2026-08-24 22:38:39,206 - DEBUG - ==>Verifying data for policy with id: 99990ec2-ac34-432d-b3a5-e9331dd9a9b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-policy-allow-all-24000879']
2026-08-24 22:38:39,206 - INFO - VN ctest-vn-93973189 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 22:38:39,206 - DEBUG - Verifying the vn in opserver
2026-08-24 22:38:39,206 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189 virtual network link through opserver 10.0.0.177
2026-08-24 22:38:39,206 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-24 22:38:39,537 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-24 22:38:39,602 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189?flat'}
2026-08-24 22:38:39,602 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-93973189 is found in opserver
2026-08-24 22:38:39,614 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 22:38:39,618 - DEBUG - VRF ids for VN ctest-vn-93973189: {}
2026-08-24 22:38:39,619 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-24 22:38:39,626 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802
2026-08-24 22:38:39,639 - DEBUG - Requesting: http://10.0.0.177:8082/project/a71ed300-83fd-4e3e-b825-4e5706471246
2026-08-24 22:38:39,717 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,734 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,744 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/cca7936d-8979-4e08-ad56-8f9cf0027564
2026-08-24 22:38:39,756 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/cca7936d-8979-4e08-ad56-8f9cf0027564
2026-08-24 22:38:39,783 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/49a9a8ff-0b89-4c3c-b75d-53f85938cf75
2026-08-24 22:38:39,790 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 22:38:39,790 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,798 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/cca7936d-8979-4e08-ad56-8f9cf0027564
2026-08-24 22:38:39,815 - INFO - Verified VN network id 12 for VN 6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,815 - INFO - Verifications in API Server for VN ctest-vn-61361090 passed
2026-08-24 22:38:39,816 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,825 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/cca7936d-8979-4e08-ad56-8f9cf0027564
2026-08-24 22:38:39,832 - DEBUG - Requesting: http://10.0.0.177:8082/routing-instance/cca7936d-8979-4e08-ad56-8f9cf0027564
2026-08-24 22:38:39,839 - DEBUG - Requesting: http://10.0.0.177:8082/route-target/49a9a8ff-0b89-4c3c-b75d-53f85938cf75
2026-08-24 22:38:39,854 - DEBUG - Control-node 10.0.0.177 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-61361090', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99918152', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7992814537705016004', 'uuid-lslong': '10524841613071994007'}, 'enable': 'true', 'created': '2026-08-24T22:38:37', 'last-modified': '2026-08-24T22:38:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.527364'}
2026-08-24 22:38:39,863 - DEBUG - Route Targets: ['target:64512:8000005']
2026-08-24 22:38:39,863 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61361090 passed
2026-08-24 22:38:39,863 - DEBUG - ====Verifying policy data for ctest-vn-61361090 in API_Server ======
2026-08-24 22:38:39,863 - DEBUG - Requesting: http://10.0.0.177:8082/domains
2026-08-24 22:38:39,869 - DEBUG - Requesting: http://10.0.0.177:8082/domain/6ae23672-1c0c-46f8-a1fc-29e9b9bfd802
2026-08-24 22:38:39,882 - DEBUG - Requesting: http://10.0.0.177:8082/project/a71ed300-83fd-4e3e-b825-4e5706471246
2026-08-24 22:38:39,960 - DEBUG - Requesting: http://10.0.0.177:8082/virtual-network/6eec2e79-6b7c-4ac4-920f-bfaf2067cc97
2026-08-24 22:38:39,970 - DEBUG - ==>Verifying data for policy with id: 99990ec2-ac34-432d-b3a5-e9331dd9a9b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-99918152', 'ctest-policy-allow-all-24000879']
2026-08-24 22:38:39,970 - INFO - VN ctest-vn-61361090 Policy verification: verify_vn_policy_in_api_server, status: True
2026-08-24 22:38:39,970 - DEBUG - Verifying the vn in opserver
2026-08-24 22:38:39,970 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-61361090 virtual network link through opserver 10.0.0.177
2026-08-24 22:38:39,971 - DEBUG - Requesting: http://10.0.0.177:8081/analytics/uves/virtual-networks
2026-08-24 22:38:39,980 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-61361090', 'href': 'http://10.0.0.177:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-61361090?flat'}
2026-08-24 22:38:39,980 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99918152:ctest-vn-61361090 is found in opserver
2026-08-24 22:38:39,994 - DEBUG - Do not have enough data to verify VN in agent
2026-08-24 22:38:39,998 - DEBUG - VRF ids for VN ctest-vn-61361090: {}
2026-08-24 22:38:40,060 - DEBUG - Services list from nova: [