2025-12-26 21:46:31,679 - INFO - Domain Default found not creating
2025-12-26 21:46:31,838 - INFO - Project ctest-TestBasicPolicy-58930367 not found, creating it
2025-12-26 21:46:32,292 - INFO - Created Project:ctest-TestBasicPolicy-58930367, ID : 711b9cd2-68c3-4c9f-a0aa-aa41be2d2702
2025-12-26 21:46:33,718 - INFO - ================================================================================
2025-12-26 21:46:33,719 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-12-26 21:46:33,719 - 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-12-26 21:46:33,975 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-12-26 21:46:33,975 - INFO - Initial checks done. Running the testcase now
2025-12-26 21:46:33,975 - INFO -
2025-12-26 21:46:34,504 - DEBUG - Response for create_network : {'network': {'id': '1e49fed6-c4de-413d-b407-eb0fafdb1d35', 'name': 'ctest-vn-57284571', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-vn-57284571'], 'port_security_enabled': True, 'description': ''}}
2025-12-26 21:46:34,650 - DEBUG - Response for create_subnet : {'subnet': {'id': '45a87b62-05ba-417d-8c92-49272612ff52', 'name': '', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'network_id': '1e49fed6-c4de-413d-b407-eb0fafdb1d35', 'ip_version': 4, 'cidr': '45.190.218.64/26', 'allocation_pools': [{'start': '45.190.218.66', 'end': '45.190.218.126'}], 'gateway_ip': '45.190.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '45.190.218.66', 'tags': [], 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702'}}
2025-12-26 21:46:34,666 - INFO - Created VN ctest-vn-57284571
2025-12-26 21:46:34,718 - DEBUG - VN ctest-vn-57284571 UUID is 1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:35,030 - DEBUG - Response for create_network : {'network': {'id': 'c913da7d-a991-4a14-a2f5-193e000eedbf', 'name': 'ctest-vn-25199420', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-vn-25199420'], 'port_security_enabled': True, 'description': ''}}
2025-12-26 21:46:35,208 - DEBUG - Response for create_subnet : {'subnet': {'id': '75f27b4b-910a-4f1a-a505-83b574d56ab7', 'name': '', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'network_id': 'c913da7d-a991-4a14-a2f5-193e000eedbf', 'ip_version': 4, 'cidr': '58.50.245.128/26', 'allocation_pools': [{'start': '58.50.245.130', 'end': '58.50.245.190'}], 'gateway_ip': '58.50.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.50.245.130', 'tags': [], 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702'}}
2025-12-26 21:46:35,227 - INFO - Created VN ctest-vn-25199420
2025-12-26 21:46:35,278 - DEBUG - VN ctest-vn-25199420 UUID is c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:35,421 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571, 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-58930367:ctest-vn-25199420, 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-12-26 21:46:35,704 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1e49fed6-c4de-413d-b407-eb0fafdb1d35', 'name': 'ctest-vn-57284571', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45a87b62-05ba-417d-8c92-49272612ff52'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-vn-57284571'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-policy-allow-all-22838712']], 'subnet_ipam': [{'subnet_cidr': '45.190.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-26 21:46:35,920 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c913da7d-a991-4a14-a2f5-193e000eedbf', 'name': 'ctest-vn-25199420', 'tenant_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'project_id': '711b9cd268c34c9fa0aaaa41be2d2702', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['75f27b4b-910a-4f1a-a505-83b574d56ab7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-vn-25199420'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-policy-allow-all-22838712']], 'subnet_ipam': [{'subnet_cidr': '58.50.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-12-26 21:46:36,074 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-26 21:46:36,373 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-26 21:46:36,402 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f463c1f4-6ed2-4036-9a7e-cf74c999a050
2025-12-26 21:46:36,413 - DEBUG - Requesting: http://10.0.0.33:8082/project/711b9cd2-68c3-4c9f-a0aa-aa41be2d2702
2025-12-26 21:46:36,484 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,495 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,504 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/65e14070-1109-408a-ad8d-3a1ce762c056
2025-12-26 21:46:36,510 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/65e14070-1109-408a-ad8d-3a1ce762c056
2025-12-26 21:46:36,517 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/221e89fb-0f37-4a64-bd4c-3049d3ec1a2c
2025-12-26 21:46:36,523 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-26 21:46:36,523 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,532 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/65e14070-1109-408a-ad8d-3a1ce762c056
2025-12-26 21:46:36,545 - INFO - Verified VN network id 12 for VN 1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,545 - INFO - Verifications in API Server for VN ctest-vn-57284571 passed
2025-12-26 21:46:36,545 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,553 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/65e14070-1109-408a-ad8d-3a1ce762c056
2025-12-26 21:46:36,560 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/65e14070-1109-408a-ad8d-3a1ce762c056
2025-12-26 21:46:36,566 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/221e89fb-0f37-4a64-bd4c-3049d3ec1a2c
2025-12-26 21:46:36,577 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58930367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2182555692817072445', 'uuid-lslong': '12972595704271412533'}, 'enable': 'true', 'created': '2025-12-26T21:46:34', 'last-modified': '2025-12-26T21:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.893923'}
2025-12-26 21:46:36,583 - DEBUG - Route Targets: ['target:64512:8000004']
2025-12-26 21:46:36,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-57284571 passed
2025-12-26 21:46:36,583 - DEBUG - ====Verifying policy data for ctest-vn-57284571 in API_Server ======
2025-12-26 21:46:36,583 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-26 21:46:36,588 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f463c1f4-6ed2-4036-9a7e-cf74c999a050
2025-12-26 21:46:36,598 - DEBUG - Requesting: http://10.0.0.33:8082/project/711b9cd2-68c3-4c9f-a0aa-aa41be2d2702
2025-12-26 21:46:36,668 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/1e49fed6-c4de-413d-b407-eb0fafdb1d35
2025-12-26 21:46:36,677 - DEBUG - ==>Verifying data for policy with id: 2548ef1f-28df-40d0-a241-65f69e0100a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-policy-allow-all-22838712']
2025-12-26 21:46:36,677 - INFO - VN ctest-vn-57284571 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-26 21:46:36,677 - DEBUG - Verifying the vn in opserver
2025-12-26 21:46:36,677 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571 virtual network link through opserver 10.0.0.33
2025-12-26 21:46:36,678 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-26 21:46:36,971 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-26 21:46:37,041 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571?flat'}
2025-12-26 21:46:37,041 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-57284571 is found in opserver
2025-12-26 21:46:37,049 - DEBUG - Do not have enough data to verify VN in agent
2025-12-26 21:46:37,053 - DEBUG - VRF ids for VN ctest-vn-57284571: {}
2025-12-26 21:46:37,053 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-26 21:46:37,081 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f463c1f4-6ed2-4036-9a7e-cf74c999a050
2025-12-26 21:46:37,113 - DEBUG - Requesting: http://10.0.0.33:8082/project/711b9cd2-68c3-4c9f-a0aa-aa41be2d2702
2025-12-26 21:46:37,263 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,278 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,290 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/45a8d762-9c79-4ff5-87c9-8e93b253dc7e
2025-12-26 21:46:37,298 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/45a8d762-9c79-4ff5-87c9-8e93b253dc7e
2025-12-26 21:46:37,311 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a445506e-cae5-4010-b600-2d08f9093924
2025-12-26 21:46:37,329 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-26 21:46:37,329 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,343 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/45a8d762-9c79-4ff5-87c9-8e93b253dc7e
2025-12-26 21:46:37,364 - INFO - Verified VN network id 13 for VN c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,364 - INFO - Verifications in API Server for VN ctest-vn-25199420 passed
2025-12-26 21:46:37,364 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,380 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/45a8d762-9c79-4ff5-87c9-8e93b253dc7e
2025-12-26 21:46:37,387 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/45a8d762-9c79-4ff5-87c9-8e93b253dc7e
2025-12-26 21:46:37,396 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a445506e-cae5-4010-b600-2d08f9093924
2025-12-26 21:46:37,417 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-25199420', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-58930367', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14489164659431655956', 'uuid-lslong': '11742319357518081471'}, 'enable': 'true', 'created': '2025-12-26T21:46:34', 'last-modified': '2025-12-26T21:46:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.512433'}
2025-12-26 21:46:37,424 - DEBUG - Route Targets: ['target:64512:8000005']
2025-12-26 21:46:37,424 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25199420 passed
2025-12-26 21:46:37,424 - DEBUG - ====Verifying policy data for ctest-vn-25199420 in API_Server ======
2025-12-26 21:46:37,424 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-12-26 21:46:37,442 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f463c1f4-6ed2-4036-9a7e-cf74c999a050
2025-12-26 21:46:37,453 - DEBUG - Requesting: http://10.0.0.33:8082/project/711b9cd2-68c3-4c9f-a0aa-aa41be2d2702
2025-12-26 21:46:37,556 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/c913da7d-a991-4a14-a2f5-193e000eedbf
2025-12-26 21:46:37,570 - DEBUG - ==>Verifying data for policy with id: 2548ef1f-28df-40d0-a241-65f69e0100a5, fqn: ['default-domain', 'ctest-TestBasicPolicy-58930367', 'ctest-policy-allow-all-22838712']
2025-12-26 21:46:37,570 - INFO - VN ctest-vn-25199420 Policy verification: verify_vn_policy_in_api_server, status: True
2025-12-26 21:46:37,570 - DEBUG - Verifying the vn in opserver
2025-12-26 21:46:37,570 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-25199420 virtual network link through opserver 10.0.0.33
2025-12-26 21:46:37,570 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-12-26 21:46:37,586 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-25199420', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-25199420?flat'}
2025-12-26 21:46:37,586 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-58930367:ctest-vn-25199420 is found in opserver
2025-12-26 21:46:37,600 - DEBUG - Do not have enough data to verify VN in agent
2025-12-26 21:46:37,608 - DEBUG - VRF ids for VN ctest-vn-25199420: {}
2025-12-26 21:46:37,675 - DEBUG - Services list from nova: [