2025-08-11 02:52:27,535 - INFO - Domain Default found not creating
2025-08-11 02:52:27,666 - INFO - Project ctest-TestBasicPolicy-78674383 not found, creating it
2025-08-11 02:52:28,095 - INFO - Created Project:ctest-TestBasicPolicy-78674383, ID : 4826c1f6-7645-4dc3-a075-ad707694c748
2025-08-11 02:52:29,386 - INFO - ================================================================================
2025-08-11 02:52:29,386 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-11 02:52:29,386 - 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-08-11 02:52:29,636 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with
2025-08-11 02:52:29,636 - INFO - Initial checks done. Running the testcase now
2025-08-11 02:52:29,636 - INFO -
2025-08-11 02:52:30,127 - DEBUG - Response for create_network : {'network': {'id': '50d92158-1b06-468e-af6a-f50ef1a89eff', 'name': 'ctest-vn-38806320', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'project_id': '4826c1f676454dc3a075ad707694c748', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-vn-38806320'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:52:30,277 - DEBUG - Response for create_subnet : {'subnet': {'id': '41d0e032-35ce-467e-91aa-647b91517a32', 'name': '', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'network_id': '50d92158-1b06-468e-af6a-f50ef1a89eff', 'ip_version': 4, 'cidr': '18.33.204.192/26', 'allocation_pools': [{'start': '18.33.204.194', 'end': '18.33.204.254'}], 'gateway_ip': '18.33.204.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '18.33.204.194', 'tags': [], 'project_id': '4826c1f676454dc3a075ad707694c748'}}
2025-08-11 02:52:30,293 - INFO - Created VN ctest-vn-38806320
2025-08-11 02:52:30,347 - DEBUG - VN ctest-vn-38806320 UUID is 50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:30,670 - DEBUG - Response for create_network : {'network': {'id': 'da7fe387-875e-435c-9028-71c729a311c4', 'name': 'ctest-vn-47300629', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'project_id': '4826c1f676454dc3a075ad707694c748', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-vn-47300629'], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:52:30,839 - DEBUG - Response for create_subnet : {'subnet': {'id': '09315931-2e79-44a7-bff9-046835f0dbbe', 'name': '', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'network_id': 'da7fe387-875e-435c-9028-71c729a311c4', 'ip_version': 4, 'cidr': '88.244.166.128/26', 'allocation_pools': [{'start': '88.244.166.130', 'end': '88.244.166.190'}], 'gateway_ip': '88.244.166.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '88.244.166.130', 'tags': [], 'project_id': '4826c1f676454dc3a075ad707694c748'}}
2025-08-11 02:52:30,856 - INFO - Created VN ctest-vn-47300629
2025-08-11 02:52:30,911 - DEBUG - VN ctest-vn-47300629 UUID is da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:31,063 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320, 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-78674383:ctest-vn-47300629, 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-08-11 02:52:31,345 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '50d92158-1b06-468e-af6a-f50ef1a89eff', 'name': 'ctest-vn-38806320', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'project_id': '4826c1f676454dc3a075ad707694c748', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['41d0e032-35ce-467e-91aa-647b91517a32'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-vn-38806320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-policy-allow-all-38055136']], 'subnet_ipam': [{'subnet_cidr': '18.33.204.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:52:31,566 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da7fe387-875e-435c-9028-71c729a311c4', 'name': 'ctest-vn-47300629', 'tenant_id': '4826c1f676454dc3a075ad707694c748', 'project_id': '4826c1f676454dc3a075ad707694c748', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09315931-2e79-44a7-bff9-046835f0dbbe'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-vn-47300629'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-policy-allow-all-38055136']], 'subnet_ipam': [{'subnet_cidr': '88.244.166.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-11 02:52:31,739 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 02:52:32,001 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 02:52:32,029 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab
2025-08-11 02:52:32,041 - DEBUG - Requesting: http://10.0.0.22:8082/project/4826c1f6-7645-4dc3-a075-ad707694c748
2025-08-11 02:52:32,116 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,129 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,142 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/96ffbf1c-51ca-4acd-b916-a553b4e3df16
2025-08-11 02:52:32,152 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/96ffbf1c-51ca-4acd-b916-a553b4e3df16
2025-08-11 02:52:32,159 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40569dbf-3de6-42c4-9ec2-77bd6ef8d447
2025-08-11 02:52:32,165 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:52:32,166 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,174 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/96ffbf1c-51ca-4acd-b916-a553b4e3df16
2025-08-11 02:52:32,189 - INFO - Verified VN network id 11 for VN 50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,189 - INFO - Verifications in API Server for VN ctest-vn-38806320 passed
2025-08-11 02:52:32,190 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,199 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/96ffbf1c-51ca-4acd-b916-a553b4e3df16
2025-08-11 02:52:32,207 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/96ffbf1c-51ca-4acd-b916-a553b4e3df16
2025-08-11 02:52:32,215 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/40569dbf-3de6-42c4-9ec2-77bd6ef8d447
2025-08-11 02:52:32,227 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78674383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5825724255274681998', 'uuid-lslong': '12640184748701425407'}, 'enable': 'true', 'created': '2025-08-11T02:52:30', 'last-modified': '2025-08-11T02:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.897380'}
2025-08-11 02:52:32,233 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-11 02:52:32,233 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38806320 passed
2025-08-11 02:52:32,233 - DEBUG - ====Verifying policy data for ctest-vn-38806320 in API_Server ======
2025-08-11 02:52:32,233 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 02:52:32,238 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab
2025-08-11 02:52:32,249 - DEBUG - Requesting: http://10.0.0.22:8082/project/4826c1f6-7645-4dc3-a075-ad707694c748
2025-08-11 02:52:32,318 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/50d92158-1b06-468e-af6a-f50ef1a89eff
2025-08-11 02:52:32,327 - DEBUG - ==>Verifying data for policy with id: 098419f0-1d31-45d3-a18f-d4b5215891b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-policy-allow-all-38055136']
2025-08-11 02:52:32,327 - INFO - VN ctest-vn-38806320 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:52:32,327 - DEBUG - Verifying the vn in opserver
2025-08-11 02:52:32,327 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320 virtual network link through opserver 10.0.0.22
2025-08-11 02:52:32,328 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 02:52:32,585 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 02:52:32,635 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320?flat'}
2025-08-11 02:52:32,635 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-38806320 is found in opserver
2025-08-11 02:52:32,644 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:52:32,649 - DEBUG - VRF ids for VN ctest-vn-38806320: {}
2025-08-11 02:52:32,649 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 02:52:32,654 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab
2025-08-11 02:52:32,664 - DEBUG - Requesting: http://10.0.0.22:8082/project/4826c1f6-7645-4dc3-a075-ad707694c748
2025-08-11 02:52:32,732 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,743 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,752 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0eedaf73-df8e-4652-a821-a76e5fcfeb88
2025-08-11 02:52:32,758 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0eedaf73-df8e-4652-a821-a76e5fcfeb88
2025-08-11 02:52:32,764 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/963af86b-7e2e-41a2-b791-fa64345792eb
2025-08-11 02:52:32,770 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:52:32,770 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,779 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0eedaf73-df8e-4652-a821-a76e5fcfeb88
2025-08-11 02:52:32,791 - INFO - Verified VN network id 12 for VN da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,791 - INFO - Verifications in API Server for VN ctest-vn-47300629 passed
2025-08-11 02:52:32,791 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,800 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0eedaf73-df8e-4652-a821-a76e5fcfeb88
2025-08-11 02:52:32,806 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0eedaf73-df8e-4652-a821-a76e5fcfeb88
2025-08-11 02:52:32,811 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/963af86b-7e2e-41a2-b791-fa64345792eb
2025-08-11 02:52:32,822 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-47300629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78674383', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15744552993541735260', 'uuid-lslong': '10387677640741032388'}, 'enable': 'true', 'created': '2025-08-11T02:52:30', 'last-modified': '2025-08-11T02:52:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.274304'}
2025-08-11 02:52:32,828 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-11 02:52:32,828 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47300629 passed
2025-08-11 02:52:32,828 - DEBUG - ====Verifying policy data for ctest-vn-47300629 in API_Server ======
2025-08-11 02:52:32,828 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-08-11 02:52:32,833 - DEBUG - Requesting: http://10.0.0.22:8082/domain/27e87f7e-3420-4f7e-8244-a75efbe299ab
2025-08-11 02:52:32,844 - DEBUG - Requesting: http://10.0.0.22:8082/project/4826c1f6-7645-4dc3-a075-ad707694c748
2025-08-11 02:52:32,913 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/da7fe387-875e-435c-9028-71c729a311c4
2025-08-11 02:52:32,924 - DEBUG - ==>Verifying data for policy with id: 098419f0-1d31-45d3-a18f-d4b5215891b9, fqn: ['default-domain', 'ctest-TestBasicPolicy-78674383', 'ctest-policy-allow-all-38055136']
2025-08-11 02:52:32,924 - INFO - VN ctest-vn-47300629 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-11 02:52:32,924 - DEBUG - Verifying the vn in opserver
2025-08-11 02:52:32,924 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-47300629 virtual network link through opserver 10.0.0.22
2025-08-11 02:52:32,924 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-08-11 02:52:32,934 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-47300629', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-47300629?flat'}
2025-08-11 02:52:32,934 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78674383:ctest-vn-47300629 is found in opserver
2025-08-11 02:52:32,945 - DEBUG - Do not have enough data to verify VN in agent
2025-08-11 02:52:32,950 - DEBUG - VRF ids for VN ctest-vn-47300629: {}
2025-08-11 02:52:33,014 - DEBUG - Services list from nova: [