2025-09-05 11:02:36,728 - INFO - Domain Default found not creating
2025-09-05 11:02:36,879 - INFO - Project ctest-TestBasicPolicy-90045023 not found, creating it
2025-09-05 11:02:37,312 - INFO - Created Project:ctest-TestBasicPolicy-90045023, ID : 01fd9354-79c4-4ccd-bf00-4d6d48946e48
2025-09-05 11:02:38,699 - INFO - ================================================================================
2025-09-05 11:02:38,699 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 11:02:38,699 - 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-09-05 11:02:38,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-09-05 11:02:38,955 - INFO - Initial checks done. Running the testcase now
2025-09-05 11:02:38,955 - INFO -
2025-09-05 11:02:39,492 - DEBUG - Response for create_network : {'network': {'id': '45812b4a-fb74-447c-96b2-dfeb751019b5', 'name': 'ctest-vn-72261056', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'project_id': '01fd935479c44ccdbf004d6d48946e48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-vn-72261056'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 11:02:39,672 - DEBUG - Response for create_subnet : {'subnet': {'id': '46feb4f0-9e94-418f-830c-b4cc1b1f6db2', 'name': '', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'network_id': '45812b4a-fb74-447c-96b2-dfeb751019b5', 'ip_version': 4, 'cidr': '56.126.121.0/26', 'allocation_pools': [{'start': '56.126.121.2', 'end': '56.126.121.62'}], 'gateway_ip': '56.126.121.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.126.121.2', 'tags': [], 'project_id': '01fd935479c44ccdbf004d6d48946e48'}}
2025-09-05 11:02:39,691 - INFO - Created VN ctest-vn-72261056
2025-09-05 11:02:39,749 - DEBUG - VN ctest-vn-72261056 UUID is 45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:40,047 - DEBUG - Response for create_network : {'network': {'id': '3043bac3-5792-435f-8f26-96d8e9f85cbb', 'name': 'ctest-vn-04264664', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'project_id': '01fd935479c44ccdbf004d6d48946e48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-vn-04264664'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 11:02:40,249 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f61e1ce5-4976-4224-8a5d-aceba27d25e2', 'name': '', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'network_id': '3043bac3-5792-435f-8f26-96d8e9f85cbb', 'ip_version': 4, 'cidr': '60.99.65.0/26', 'allocation_pools': [{'start': '60.99.65.2', 'end': '60.99.65.62'}], 'gateway_ip': '60.99.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.99.65.2', 'tags': [], 'project_id': '01fd935479c44ccdbf004d6d48946e48'}}
2025-09-05 11:02:40,268 - INFO - Created VN ctest-vn-04264664
2025-09-05 11:02:40,320 - DEBUG - VN ctest-vn-04264664 UUID is 3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:40,472 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056, 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-90045023:ctest-vn-04264664, 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-09-05 11:02:40,761 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45812b4a-fb74-447c-96b2-dfeb751019b5', 'name': 'ctest-vn-72261056', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'project_id': '01fd935479c44ccdbf004d6d48946e48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['46feb4f0-9e94-418f-830c-b4cc1b1f6db2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-vn-72261056'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-policy-allow-all-71390757']], 'subnet_ipam': [{'subnet_cidr': '56.126.121.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 11:02:40,987 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3043bac3-5792-435f-8f26-96d8e9f85cbb', 'name': 'ctest-vn-04264664', 'tenant_id': '01fd935479c44ccdbf004d6d48946e48', 'project_id': '01fd935479c44ccdbf004d6d48946e48', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f61e1ce5-4976-4224-8a5d-aceba27d25e2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-vn-04264664'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-policy-allow-all-71390757']], 'subnet_ipam': [{'subnet_cidr': '60.99.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 11:02:41,141 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-05 11:02:41,435 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-05 11:02:41,461 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1
2025-09-05 11:02:41,474 - DEBUG - Requesting: http://10.0.0.50:8082/project/01fd9354-79c4-4ccd-bf00-4d6d48946e48
2025-09-05 11:02:41,542 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,551 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,559 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b322df4-0196-4034-9bed-b052deb8e887
2025-09-05 11:02:41,566 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b322df4-0196-4034-9bed-b052deb8e887
2025-09-05 11:02:41,572 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc5d5eab-b52f-41e4-98aa-b5e12533dcbb
2025-09-05 11:02:41,578 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 11:02:41,578 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,588 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b322df4-0196-4034-9bed-b052deb8e887
2025-09-05 11:02:41,602 - INFO - Verified VN network id 12 for VN 45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,602 - INFO - Verifications in API Server for VN ctest-vn-72261056 passed
2025-09-05 11:02:41,602 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,611 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b322df4-0196-4034-9bed-b052deb8e887
2025-09-05 11:02:41,618 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1b322df4-0196-4034-9bed-b052deb8e887
2025-09-05 11:02:41,624 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/cc5d5eab-b52f-41e4-98aa-b5e12533dcbb
2025-09-05 11:02:41,636 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90045023', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5008331861658977404', 'uuid-lslong': '10858987853917985205'}, 'enable': 'true', 'created': '2025-09-05T11:02:39', 'last-modified': '2025-09-05T11:02:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897277'}
2025-09-05 11:02:41,644 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 11:02:41,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72261056 passed
2025-09-05 11:02:41,645 - DEBUG - ====Verifying policy data for ctest-vn-72261056 in API_Server ======
2025-09-05 11:02:41,645 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-05 11:02:41,652 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1
2025-09-05 11:02:41,663 - DEBUG - Requesting: http://10.0.0.50:8082/project/01fd9354-79c4-4ccd-bf00-4d6d48946e48
2025-09-05 11:02:41,733 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45812b4a-fb74-447c-96b2-dfeb751019b5
2025-09-05 11:02:41,743 - DEBUG - ==>Verifying data for policy with id: 8b8c8985-1259-4053-9be2-6364efe397db, fqn: ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-policy-allow-all-71390757']
2025-09-05 11:02:41,743 - INFO - VN ctest-vn-72261056 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 11:02:41,744 - DEBUG - Verifying the vn in opserver
2025-09-05 11:02:41,744 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056 virtual network link through opserver 10.0.0.50
2025-09-05 11:02:41,744 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-05 11:02:42,035 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-05 11:02:42,090 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056?flat'}
2025-09-05 11:02:42,090 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-72261056 is found in opserver
2025-09-05 11:02:42,098 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 11:02:42,103 - DEBUG - VRF ids for VN ctest-vn-72261056: {}
2025-09-05 11:02:42,103 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-05 11:02:42,108 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1
2025-09-05 11:02:42,118 - DEBUG - Requesting: http://10.0.0.50:8082/project/01fd9354-79c4-4ccd-bf00-4d6d48946e48
2025-09-05 11:02:42,183 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,193 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,202 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b483c7a-96d5-43ca-9b8d-ae32e868befb
2025-09-05 11:02:42,209 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b483c7a-96d5-43ca-9b8d-ae32e868befb
2025-09-05 11:02:42,215 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bda061f3-414c-4401-a920-678ad5629d6b
2025-09-05 11:02:42,221 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 11:02:42,221 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,231 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b483c7a-96d5-43ca-9b8d-ae32e868befb
2025-09-05 11:02:42,245 - INFO - Verified VN network id 13 for VN 3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,245 - INFO - Verifications in API Server for VN ctest-vn-04264664 passed
2025-09-05 11:02:42,245 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,253 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b483c7a-96d5-43ca-9b8d-ae32e868befb
2025-09-05 11:02:42,260 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8b483c7a-96d5-43ca-9b8d-ae32e868befb
2025-09-05 11:02:42,266 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bda061f3-414c-4401-a920-678ad5629d6b
2025-09-05 11:02:42,277 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-04264664', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-90045023', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3477828685410747231', 'uuid-lslong': '10315097854921170107'}, 'enable': 'true', 'created': '2025-09-05T11:02:40', 'last-modified': '2025-09-05T11:02:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.308411'}
2025-09-05 11:02:42,282 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 11:02:42,282 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04264664 passed
2025-09-05 11:02:42,282 - DEBUG - ====Verifying policy data for ctest-vn-04264664 in API_Server ======
2025-09-05 11:02:42,282 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-09-05 11:02:42,288 - DEBUG - Requesting: http://10.0.0.50:8082/domain/f5eae07f-6a76-4102-b0b8-1be413eba3a1
2025-09-05 11:02:42,299 - DEBUG - Requesting: http://10.0.0.50:8082/project/01fd9354-79c4-4ccd-bf00-4d6d48946e48
2025-09-05 11:02:42,374 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/3043bac3-5792-435f-8f26-96d8e9f85cbb
2025-09-05 11:02:42,383 - DEBUG - ==>Verifying data for policy with id: 8b8c8985-1259-4053-9be2-6364efe397db, fqn: ['default-domain', 'ctest-TestBasicPolicy-90045023', 'ctest-policy-allow-all-71390757']
2025-09-05 11:02:42,383 - INFO - VN ctest-vn-04264664 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 11:02:42,384 - DEBUG - Verifying the vn in opserver
2025-09-05 11:02:42,384 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-04264664 virtual network link through opserver 10.0.0.50
2025-09-05 11:02:42,384 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-09-05 11:02:42,395 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-04264664', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-04264664?flat'}
2025-09-05 11:02:42,395 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-90045023:ctest-vn-04264664 is found in opserver
2025-09-05 11:02:42,405 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 11:02:42,410 - DEBUG - VRF ids for VN ctest-vn-04264664: {}
2025-09-05 11:02:42,471 - DEBUG - Services list from nova: [