2025-10-16 02:17:53,192 - INFO - Domain Default found not creating
2025-10-16 02:17:53,364 - INFO - Project ctest-TestBasicPolicy-78422803 not found, creating it
2025-10-16 02:17:53,838 - INFO - Created Project:ctest-TestBasicPolicy-78422803, ID : 0f0c9cd6-597f-4a46-9444-51bcb3216c8f
2025-10-16 02:17:55,294 - INFO - ================================================================================
2025-10-16 02:17:55,294 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-16 02:17:55,294 - 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-16 02:17:55,550 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.253': '0'}} with
2025-10-16 02:17:55,550 - INFO - Initial checks done. Running the testcase now
2025-10-16 02:17:55,550 - INFO -
2025-10-16 02:17:56,121 - DEBUG - Response for create_network : {'network': {'id': '1226b7eb-52ee-4ccc-92d0-4386863ac2b8', 'name': 'ctest-vn-30258401', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-vn-30258401'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:17:56,338 - DEBUG - Response for create_subnet : {'subnet': {'id': '635c1e89-6d52-41cf-a74a-d02cb2a7c905', 'name': '', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'network_id': '1226b7eb-52ee-4ccc-92d0-4386863ac2b8', 'ip_version': 4, 'cidr': '69.159.226.64/26', 'allocation_pools': [{'start': '69.159.226.66', 'end': '69.159.226.126'}], 'gateway_ip': '69.159.226.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.159.226.66', 'tags': [], 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f'}}
2025-10-16 02:17:56,357 - INFO - Created VN ctest-vn-30258401
2025-10-16 02:17:56,408 - DEBUG - VN ctest-vn-30258401 UUID is 1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:56,773 - DEBUG - Response for create_network : {'network': {'id': '44a3f9b3-4fce-44e5-a99a-dbce0b4b5625', 'name': 'ctest-vn-61133140', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-vn-61133140'], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:17:56,946 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eec24484-8561-4315-a51a-4169772b0496', 'name': '', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'network_id': '44a3f9b3-4fce-44e5-a99a-dbce0b4b5625', 'ip_version': 4, 'cidr': '53.36.2.192/26', 'allocation_pools': [{'start': '53.36.2.194', 'end': '53.36.2.254'}], 'gateway_ip': '53.36.2.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.36.2.194', 'tags': [], 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f'}}
2025-10-16 02:17:56,965 - INFO - Created VN ctest-vn-61133140
2025-10-16 02:17:57,016 - DEBUG - VN ctest-vn-61133140 UUID is 44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:57,133 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401, 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-78422803:ctest-vn-61133140, 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-16 02:17:57,436 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1226b7eb-52ee-4ccc-92d0-4386863ac2b8', 'name': 'ctest-vn-30258401', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['635c1e89-6d52-41cf-a74a-d02cb2a7c905'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-vn-30258401'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-policy-allow-all-83833805']], 'subnet_ipam': [{'subnet_cidr': '69.159.226.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:17:57,679 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '44a3f9b3-4fce-44e5-a99a-dbce0b4b5625', 'name': 'ctest-vn-61133140', 'tenant_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'project_id': '0f0c9cd6597f4a46944451bcb3216c8f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eec24484-8561-4315-a51a-4169772b0496'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-vn-61133140'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-policy-allow-all-83833805']], 'subnet_ipam': [{'subnet_cidr': '53.36.2.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-16 02:17:57,834 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-16 02:17:58,141 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-16 02:17:58,169 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6
2025-10-16 02:17:58,184 - DEBUG - Requesting: http://10.0.0.73:8082/project/0f0c9cd6-597f-4a46-9444-51bcb3216c8f
2025-10-16 02:17:58,255 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,267 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,276 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5ce0946b-a54a-4d7e-81b1-f4aa57ed5325
2025-10-16 02:17:58,283 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5ce0946b-a54a-4d7e-81b1-f4aa57ed5325
2025-10-16 02:17:58,289 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/f7228032-5276-40b2-9f42-c50cc75918a0
2025-10-16 02:17:58,296 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 02:17:58,296 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,304 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5ce0946b-a54a-4d7e-81b1-f4aa57ed5325
2025-10-16 02:17:58,317 - INFO - Verified VN network id 11 for VN 1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,318 - INFO - Verifications in API Server for VN ctest-vn-30258401 passed
2025-10-16 02:17:58,318 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,326 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5ce0946b-a54a-4d7e-81b1-f4aa57ed5325
2025-10-16 02:17:58,332 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/5ce0946b-a54a-4d7e-81b1-f4aa57ed5325
2025-10-16 02:17:58,340 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/f7228032-5276-40b2-9f42-c50cc75918a0
2025-10-16 02:17:58,350 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78422803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1307934963134254284', 'uuid-lslong': '10579029769749971640'}, 'enable': 'true', 'created': '2025-10-16T02:17:56', 'last-modified': '2025-10-16T02:17:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.930693'}
2025-10-16 02:17:58,357 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-16 02:17:58,357 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30258401 passed
2025-10-16 02:17:58,358 - DEBUG - ====Verifying policy data for ctest-vn-30258401 in API_Server ======
2025-10-16 02:17:58,358 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-16 02:17:58,364 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6
2025-10-16 02:17:58,375 - DEBUG - Requesting: http://10.0.0.73:8082/project/0f0c9cd6-597f-4a46-9444-51bcb3216c8f
2025-10-16 02:17:58,447 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/1226b7eb-52ee-4ccc-92d0-4386863ac2b8
2025-10-16 02:17:58,456 - DEBUG - ==>Verifying data for policy with id: 5fcee1fa-a6d5-4dfb-9788-9c8f0b392901, fqn: ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-policy-allow-all-83833805']
2025-10-16 02:17:58,456 - INFO - VN ctest-vn-30258401 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 02:17:58,456 - DEBUG - Verifying the vn in opserver
2025-10-16 02:17:58,456 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401 virtual network link through opserver 10.0.0.73
2025-10-16 02:17:58,457 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-16 02:17:58,756 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-16 02:17:58,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401?flat'}
2025-10-16 02:17:58,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-30258401 is found in opserver
2025-10-16 02:17:58,821 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 02:17:58,825 - DEBUG - VRF ids for VN ctest-vn-30258401: {}
2025-10-16 02:17:58,825 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-16 02:17:58,831 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6
2025-10-16 02:17:58,842 - DEBUG - Requesting: http://10.0.0.73:8082/project/0f0c9cd6-597f-4a46-9444-51bcb3216c8f
2025-10-16 02:17:58,908 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:58,921 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:58,930 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/38149722-4eda-4d4f-a9b6-898edbee03c8
2025-10-16 02:17:58,937 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/38149722-4eda-4d4f-a9b6-898edbee03c8
2025-10-16 02:17:58,944 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/6e9ee2be-5939-41a2-aada-87ebeb7a3dc0
2025-10-16 02:17:58,952 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 02:17:58,952 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:58,961 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/38149722-4eda-4d4f-a9b6-898edbee03c8
2025-10-16 02:17:58,974 - INFO - Verified VN network id 12 for VN 44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:58,974 - INFO - Verifications in API Server for VN ctest-vn-61133140 passed
2025-10-16 02:17:58,974 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:58,983 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/38149722-4eda-4d4f-a9b6-898edbee03c8
2025-10-16 02:17:58,991 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/38149722-4eda-4d4f-a9b6-898edbee03c8
2025-10-16 02:17:58,999 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/6e9ee2be-5939-41a2-aada-87ebeb7a3dc0
2025-10-16 02:17:59,014 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-61133140', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78422803', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4946071364316316901', 'uuid-lslong': '12221322216822494757'}, 'enable': 'true', 'created': '2025-10-16T02:17:56', 'last-modified': '2025-10-16T02:17:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.359362'}
2025-10-16 02:17:59,021 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-16 02:17:59,021 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61133140 passed
2025-10-16 02:17:59,021 - DEBUG - ====Verifying policy data for ctest-vn-61133140 in API_Server ======
2025-10-16 02:17:59,021 - DEBUG - Requesting: http://10.0.0.73:8082/domains
2025-10-16 02:17:59,028 - DEBUG - Requesting: http://10.0.0.73:8082/domain/61b1a5e4-4f17-4839-837e-aba6307473a6
2025-10-16 02:17:59,040 - DEBUG - Requesting: http://10.0.0.73:8082/project/0f0c9cd6-597f-4a46-9444-51bcb3216c8f
2025-10-16 02:17:59,115 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/44a3f9b3-4fce-44e5-a99a-dbce0b4b5625
2025-10-16 02:17:59,124 - DEBUG - ==>Verifying data for policy with id: 5fcee1fa-a6d5-4dfb-9788-9c8f0b392901, fqn: ['default-domain', 'ctest-TestBasicPolicy-78422803', 'ctest-policy-allow-all-83833805']
2025-10-16 02:17:59,124 - INFO - VN ctest-vn-61133140 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-16 02:17:59,124 - DEBUG - Verifying the vn in opserver
2025-10-16 02:17:59,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-61133140 virtual network link through opserver 10.0.0.73
2025-10-16 02:17:59,124 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks
2025-10-16 02:17:59,135 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-61133140', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-61133140?flat'}
2025-10-16 02:17:59,135 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78422803:ctest-vn-61133140 is found in opserver
2025-10-16 02:17:59,145 - DEBUG - Do not have enough data to verify VN in agent
2025-10-16 02:17:59,150 - DEBUG - VRF ids for VN ctest-vn-61133140: {}
2025-10-16 02:17:59,209 - DEBUG - Services list from nova: [