2025-11-24 02:01:36,792 - INFO - Domain Default found not creating
2025-11-24 02:01:36,966 - INFO - Project ctest-TestBasicPolicy-35531763 not found, creating it
2025-11-24 02:01:37,427 - INFO - Created Project:ctest-TestBasicPolicy-35531763, ID : fb266561-4cef-4c2e-a310-16d368700e62
2025-11-24 02:01:39,013 - INFO - ================================================================================
2025-11-24 02:01:39,013 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-24 02:01:39,013 - 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-11-24 02:01:39,269 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-11-24 02:01:39,269 - INFO - Initial checks done. Running the testcase now
2025-11-24 02:01:39,269 - INFO -
2025-11-24 02:01:39,859 - DEBUG - Response for create_network : {'network': {'id': '6a5616b7-77a0-42b0-9e16-7c93d095941a', 'name': 'ctest-vn-48949379', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'project_id': 'fb2665614cef4c2ea31016d368700e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-vn-48949379'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:01:40,014 - DEBUG - Response for create_subnet : {'subnet': {'id': 'eecd8cba-0b9b-451c-8ae5-a6c0fb8335d5', 'name': '', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'network_id': '6a5616b7-77a0-42b0-9e16-7c93d095941a', 'ip_version': 4, 'cidr': '145.61.202.192/26', 'allocation_pools': [{'start': '145.61.202.194', 'end': '145.61.202.254'}], 'gateway_ip': '145.61.202.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '145.61.202.194', 'tags': [], 'project_id': 'fb2665614cef4c2ea31016d368700e62'}}
2025-11-24 02:01:40,030 - INFO - Created VN ctest-vn-48949379
2025-11-24 02:01:40,083 - DEBUG - VN ctest-vn-48949379 UUID is 6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:40,400 - DEBUG - Response for create_network : {'network': {'id': '69e2fe55-5231-4514-98c9-cfdc8e5dc3d2', 'name': 'ctest-vn-38554887', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'project_id': 'fb2665614cef4c2ea31016d368700e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-vn-38554887'], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:01:40,614 - DEBUG - Response for create_subnet : {'subnet': {'id': '800167ef-4c2e-4213-85fb-76623486c43a', 'name': '', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'network_id': '69e2fe55-5231-4514-98c9-cfdc8e5dc3d2', 'ip_version': 4, 'cidr': '206.177.251.192/26', 'allocation_pools': [{'start': '206.177.251.194', 'end': '206.177.251.254'}], 'gateway_ip': '206.177.251.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '206.177.251.194', 'tags': [], 'project_id': 'fb2665614cef4c2ea31016d368700e62'}}
2025-11-24 02:01:40,632 - INFO - Created VN ctest-vn-38554887
2025-11-24 02:01:40,683 - DEBUG - VN ctest-vn-38554887 UUID is 69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:40,796 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379, 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-35531763:ctest-vn-38554887, 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-11-24 02:01:41,084 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6a5616b7-77a0-42b0-9e16-7c93d095941a', 'name': 'ctest-vn-48949379', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'project_id': 'fb2665614cef4c2ea31016d368700e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['eecd8cba-0b9b-451c-8ae5-a6c0fb8335d5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-vn-48949379'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-policy-allow-all-31872271']], 'subnet_ipam': [{'subnet_cidr': '145.61.202.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:01:41,307 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69e2fe55-5231-4514-98c9-cfdc8e5dc3d2', 'name': 'ctest-vn-38554887', 'tenant_id': 'fb2665614cef4c2ea31016d368700e62', 'project_id': 'fb2665614cef4c2ea31016d368700e62', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['800167ef-4c2e-4213-85fb-76623486c43a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-vn-38554887'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-policy-allow-all-31872271']], 'subnet_ipam': [{'subnet_cidr': '206.177.251.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-24 02:01:41,475 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 02:01:41,809 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 02:01:41,838 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0
2025-11-24 02:01:41,849 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb266561-4cef-4c2e-a310-16d368700e62
2025-11-24 02:01:41,924 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:41,934 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:41,943 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/721ff59b-faea-4cf6-9400-c5c7c27fbdac
2025-11-24 02:01:41,949 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/721ff59b-faea-4cf6-9400-c5c7c27fbdac
2025-11-24 02:01:41,956 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25e53960-b7ce-470f-8011-42d5e0e983c3
2025-11-24 02:01:41,962 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:01:41,962 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:41,971 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/721ff59b-faea-4cf6-9400-c5c7c27fbdac
2025-11-24 02:01:41,984 - INFO - Verified VN network id 11 for VN 6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:41,984 - INFO - Verifications in API Server for VN ctest-vn-48949379 passed
2025-11-24 02:01:41,985 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:41,993 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/721ff59b-faea-4cf6-9400-c5c7c27fbdac
2025-11-24 02:01:41,999 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/721ff59b-faea-4cf6-9400-c5c7c27fbdac
2025-11-24 02:01:42,006 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/25e53960-b7ce-470f-8011-42d5e0e983c3
2025-11-24 02:01:42,016 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35531763', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7662336793259295408', 'uuid-lslong': '11391429281781748762'}, 'enable': 'true', 'created': '2025-11-24T02:01:39', 'last-modified': '2025-11-24T02:01:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950130'}
2025-11-24 02:01:42,024 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-24 02:01:42,024 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-48949379 passed
2025-11-24 02:01:42,024 - DEBUG - ====Verifying policy data for ctest-vn-48949379 in API_Server ======
2025-11-24 02:01:42,024 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 02:01:42,029 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0
2025-11-24 02:01:42,040 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb266561-4cef-4c2e-a310-16d368700e62
2025-11-24 02:01:42,109 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/6a5616b7-77a0-42b0-9e16-7c93d095941a
2025-11-24 02:01:42,118 - DEBUG - ==>Verifying data for policy with id: ec733b86-b330-4fa3-845a-26da33bfb668, fqn: ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-policy-allow-all-31872271']
2025-11-24 02:01:42,118 - INFO - VN ctest-vn-48949379 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:01:42,118 - DEBUG - Verifying the vn in opserver
2025-11-24 02:01:42,118 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379 virtual network link through opserver 10.0.0.22
2025-11-24 02:01:42,118 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 02:01:42,453 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 02:01:42,513 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379?flat'}
2025-11-24 02:01:42,513 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-48949379 is found in opserver
2025-11-24 02:01:42,523 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:01:42,527 - DEBUG - VRF ids for VN ctest-vn-48949379: {}
2025-11-24 02:01:42,527 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 02:01:42,532 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0
2025-11-24 02:01:42,543 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb266561-4cef-4c2e-a310-16d368700e62
2025-11-24 02:01:42,614 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,625 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,634 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba314a61-5a91-4ec3-ab55-79a68846812b
2025-11-24 02:01:42,640 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba314a61-5a91-4ec3-ab55-79a68846812b
2025-11-24 02:01:42,647 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4ae4c68e-0911-47d3-8915-505b32429c2f
2025-11-24 02:01:42,653 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:01:42,653 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,661 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba314a61-5a91-4ec3-ab55-79a68846812b
2025-11-24 02:01:42,673 - INFO - Verified VN network id 12 for VN 69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,673 - INFO - Verifications in API Server for VN ctest-vn-38554887 passed
2025-11-24 02:01:42,673 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,681 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba314a61-5a91-4ec3-ab55-79a68846812b
2025-11-24 02:01:42,688 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/ba314a61-5a91-4ec3-ab55-79a68846812b
2025-11-24 02:01:42,693 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/4ae4c68e-0911-47d3-8915-505b32429c2f
2025-11-24 02:01:42,703 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-38554887', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-35531763', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7629940361123677460', 'uuid-lslong': '11009559310272152530'}, 'enable': 'true', 'created': '2025-11-24T02:01:40', 'last-modified': '2025-11-24T02:01:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.416861'}
2025-11-24 02:01:42,708 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-24 02:01:42,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38554887 passed
2025-11-24 02:01:42,708 - DEBUG - ====Verifying policy data for ctest-vn-38554887 in API_Server ======
2025-11-24 02:01:42,709 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-11-24 02:01:42,714 - DEBUG - Requesting: http://10.0.0.22:8082/domain/295ef7b1-a5be-4920-aabe-44faad2530b0
2025-11-24 02:01:42,724 - DEBUG - Requesting: http://10.0.0.22:8082/project/fb266561-4cef-4c2e-a310-16d368700e62
2025-11-24 02:01:42,797 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/69e2fe55-5231-4514-98c9-cfdc8e5dc3d2
2025-11-24 02:01:42,806 - DEBUG - ==>Verifying data for policy with id: ec733b86-b330-4fa3-845a-26da33bfb668, fqn: ['default-domain', 'ctest-TestBasicPolicy-35531763', 'ctest-policy-allow-all-31872271']
2025-11-24 02:01:42,806 - INFO - VN ctest-vn-38554887 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-24 02:01:42,806 - DEBUG - Verifying the vn in opserver
2025-11-24 02:01:42,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-38554887 virtual network link through opserver 10.0.0.22
2025-11-24 02:01:42,806 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-11-24 02:01:42,815 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-38554887', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-38554887?flat'}
2025-11-24 02:01:42,815 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-35531763:ctest-vn-38554887 is found in opserver
2025-11-24 02:01:42,823 - DEBUG - Do not have enough data to verify VN in agent
2025-11-24 02:01:42,827 - DEBUG - VRF ids for VN ctest-vn-38554887: {}
2025-11-24 02:01:42,887 - DEBUG - Services list from nova: [