2025-10-30 16:39:27,213 - INFO - Domain Default found not creating
2025-10-30 16:39:27,397 - INFO - Project ctest-TestBasicPolicy-78612972 not found, creating it
2025-10-30 16:39:28,155 - INFO - Created Project:ctest-TestBasicPolicy-78612972, ID : d08ff97a-408d-4b62-8c14-2542ed980745
2025-10-30 16:39:29,936 - INFO - ================================================================================
2025-10-30 16:39:29,936 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-30 16:39:29,936 - 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
2025-10-30 16:39:30,206 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.254': '0'}} with
2025-10-30 16:39:30,206 - INFO - Initial checks done. Running the testcase now
2025-10-30 16:39:30,206 - INFO -
2025-10-30 16:39:30,852 - DEBUG - Response for create_network : {'network': {'id': '817b8c96-394a-48db-9764-44185cab9c08', 'name': 'ctest-vn-97667011', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'project_id': 'd08ff97a408d4b628c142542ed980745', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-vn-97667011'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 16:39:31,045 - DEBUG - Response for create_subnet : {'subnet': {'id': '3bfa329c-0def-4e3d-b38b-c14aab465ddd', 'name': '', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'network_id': '817b8c96-394a-48db-9764-44185cab9c08', 'ip_version': 4, 'cidr': '95.131.46.128/26', 'allocation_pools': [{'start': '95.131.46.130', 'end': '95.131.46.190'}], 'gateway_ip': '95.131.46.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.131.46.130', 'tags': [], 'project_id': 'd08ff97a408d4b628c142542ed980745'}}
2025-10-30 16:39:31,067 - INFO - Created VN ctest-vn-97667011
2025-10-30 16:39:31,121 - DEBUG - VN ctest-vn-97667011 UUID is 817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:31,464 - DEBUG - Response for create_network : {'network': {'id': 'b6bded51-0cbf-402a-8e15-8feae7e0d590', 'name': 'ctest-vn-22115410', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'project_id': 'd08ff97a408d4b628c142542ed980745', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-vn-22115410'], 'port_security_enabled': True, 'description': ''}}
2025-10-30 16:39:31,642 - DEBUG - Response for create_subnet : {'subnet': {'id': '941cbcfe-debb-43c8-af4d-0227308a8db0', 'name': '', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'network_id': 'b6bded51-0cbf-402a-8e15-8feae7e0d590', 'ip_version': 4, 'cidr': '111.151.49.64/26', 'allocation_pools': [{'start': '111.151.49.66', 'end': '111.151.49.126'}], 'gateway_ip': '111.151.49.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '111.151.49.66', 'tags': [], 'project_id': 'd08ff97a408d4b628c142542ed980745'}}
2025-10-30 16:39:31,662 - INFO - Created VN ctest-vn-22115410
2025-10-30 16:39:31,717 - DEBUG - VN ctest-vn-22115410 UUID is b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:31,840 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011, 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-78612972:ctest-vn-22115410, 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]
2025-10-30 16:39:32,179 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '817b8c96-394a-48db-9764-44185cab9c08', 'name': 'ctest-vn-97667011', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'project_id': 'd08ff97a408d4b628c142542ed980745', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3bfa329c-0def-4e3d-b38b-c14aab465ddd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-vn-97667011'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-policy-allow-all-10154729']], 'subnet_ipam': [{'subnet_cidr': '95.131.46.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 16:39:32,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b6bded51-0cbf-402a-8e15-8feae7e0d590', 'name': 'ctest-vn-22115410', 'tenant_id': 'd08ff97a408d4b628c142542ed980745', 'project_id': 'd08ff97a408d4b628c142542ed980745', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['941cbcfe-debb-43c8-af4d-0227308a8db0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-vn-22115410'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-policy-allow-all-10154729']], 'subnet_ipam': [{'subnet_cidr': '111.151.49.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-30 16:39:32,602 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-30 16:39:32,956 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-30 16:39:32,999 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e
2025-10-30 16:39:33,017 - DEBUG - Requesting: http://10.0.0.65:8082/project/d08ff97a-408d-4b62-8c14-2542ed980745
2025-10-30 16:39:33,092 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,105 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,115 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/4457d78b-d8b3-4989-ba2c-e82b65357e4b
2025-10-30 16:39:33,124 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/4457d78b-d8b3-4989-ba2c-e82b65357e4b
2025-10-30 16:39:33,131 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/0f2ba55c-8b72-4ef6-b2d8-a61caa1f6ef4
2025-10-30 16:39:33,139 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 16:39:33,140 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,149 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/4457d78b-d8b3-4989-ba2c-e82b65357e4b
2025-10-30 16:39:33,165 - INFO - Verified VN network id 12 for VN 817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,165 - INFO - Verifications in API Server for VN ctest-vn-97667011 passed
2025-10-30 16:39:33,165 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,177 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/4457d78b-d8b3-4989-ba2c-e82b65357e4b
2025-10-30 16:39:33,186 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/4457d78b-d8b3-4989-ba2c-e82b65357e4b
2025-10-30 16:39:33,194 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/0f2ba55c-8b72-4ef6-b2d8-a61caa1f6ef4
2025-10-30 16:39:33,213 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78612972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9330205629862267099', 'uuid-lslong': '10908919068822838280'}, 'enable': 'true', 'created': '2025-10-30T16:39:30', 'last-modified': '2025-10-30T16:39:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.052593'}
2025-10-30 16:39:33,222 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-30 16:39:33,223 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97667011 passed
2025-10-30 16:39:33,223 - DEBUG - ====Verifying policy data for ctest-vn-97667011 in API_Server ======
2025-10-30 16:39:33,223 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-30 16:39:33,231 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e
2025-10-30 16:39:33,243 - DEBUG - Requesting: http://10.0.0.65:8082/project/d08ff97a-408d-4b62-8c14-2542ed980745
2025-10-30 16:39:33,330 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/817b8c96-394a-48db-9764-44185cab9c08
2025-10-30 16:39:33,344 - DEBUG - ==>Verifying data for policy with id: b3d3f155-a0c7-4314-adb1-4a7d282c6349, fqn: ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-policy-allow-all-10154729']
2025-10-30 16:39:33,344 - INFO - VN ctest-vn-97667011 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 16:39:33,344 - DEBUG - Verifying the vn in opserver
2025-10-30 16:39:33,344 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011 virtual network link through opserver 10.0.0.65
2025-10-30 16:39:33,344 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-30 16:39:33,681 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-30 16:39:33,747 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011?flat'}
2025-10-30 16:39:33,747 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-97667011 is found in opserver
2025-10-30 16:39:33,758 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 16:39:33,763 - DEBUG - VRF ids for VN ctest-vn-97667011: {}
2025-10-30 16:39:33,763 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-30 16:39:33,770 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e
2025-10-30 16:39:33,785 - DEBUG - Requesting: http://10.0.0.65:8082/project/d08ff97a-408d-4b62-8c14-2542ed980745
2025-10-30 16:39:33,861 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:33,874 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:33,885 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/85b46758-b9f0-4485-82f5-3307edf06af1
2025-10-30 16:39:33,894 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/85b46758-b9f0-4485-82f5-3307edf06af1
2025-10-30 16:39:33,903 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/290db3b3-ecf6-431d-a3ad-0a99e8e87b05
2025-10-30 16:39:33,910 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 16:39:33,911 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:33,921 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/85b46758-b9f0-4485-82f5-3307edf06af1
2025-10-30 16:39:33,940 - INFO - Verified VN network id 13 for VN b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:33,940 - INFO - Verifications in API Server for VN ctest-vn-22115410 passed
2025-10-30 16:39:33,940 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:33,957 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/85b46758-b9f0-4485-82f5-3307edf06af1
2025-10-30 16:39:33,966 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/85b46758-b9f0-4485-82f5-3307edf06af1
2025-10-30 16:39:33,975 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/290db3b3-ecf6-431d-a3ad-0a99e8e87b05
2025-10-30 16:39:33,988 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-22115410', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78612972', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13167941817863192618', 'uuid-lslong': '10238247566972081552'}, 'enable': 'true', 'created': '2025-10-30T16:39:31', 'last-modified': '2025-10-30T16:39:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.586250'}
2025-10-30 16:39:33,995 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-30 16:39:33,995 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-22115410 passed
2025-10-30 16:39:33,995 - DEBUG - ====Verifying policy data for ctest-vn-22115410 in API_Server ======
2025-10-30 16:39:33,995 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-10-30 16:39:34,001 - DEBUG - Requesting: http://10.0.0.65:8082/domain/3a69b510-c9de-4e4f-b626-bc352dc3138e
2025-10-30 16:39:34,013 - DEBUG - Requesting: http://10.0.0.65:8082/project/d08ff97a-408d-4b62-8c14-2542ed980745
2025-10-30 16:39:34,105 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/b6bded51-0cbf-402a-8e15-8feae7e0d590
2025-10-30 16:39:34,118 - DEBUG - ==>Verifying data for policy with id: b3d3f155-a0c7-4314-adb1-4a7d282c6349, fqn: ['default-domain', 'ctest-TestBasicPolicy-78612972', 'ctest-policy-allow-all-10154729']
2025-10-30 16:39:34,118 - INFO - VN ctest-vn-22115410 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-30 16:39:34,118 - DEBUG - Verifying the vn in opserver
2025-10-30 16:39:34,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-22115410 virtual network link through opserver 10.0.0.65
2025-10-30 16:39:34,118 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-10-30 16:39:34,130 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-22115410', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-22115410?flat'}
2025-10-30 16:39:34,130 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78612972:ctest-vn-22115410 is found in opserver
2025-10-30 16:39:34,142 - DEBUG - Do not have enough data to verify VN in agent
2025-10-30 16:39:34,148 - DEBUG - VRF ids for VN ctest-vn-22115410: {}
2025-10-30 16:39:34,229 - DEBUG - Services list from nova: [