2025-11-19 07:57:28,164 - INFO - Domain Default found not creating
2025-11-19 07:57:28,328 - INFO - Project ctest-TestBasicPolicy-99866432 not found, creating it
2025-11-19 07:57:28,786 - INFO - Created Project:ctest-TestBasicPolicy-99866432, ID : 243d60db-afac-4af8-a388-b723f800f0eb
2025-11-19 07:57:30,230 - INFO - ================================================================================
2025-11-19 07:57:30,230 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-19 07:57:30,230 - 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-19 07:57:30,483 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-11-19 07:57:30,483 - INFO - Initial checks done. Running the testcase now
2025-11-19 07:57:30,483 - INFO -
2025-11-19 07:57:31,032 - DEBUG - Response for create_network : {'network': {'id': '8eec10f0-9e12-4c55-bc5b-e216ee391a49', 'name': 'ctest-vn-43958243', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'project_id': '243d60dbafac4af8a388b723f800f0eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-vn-43958243'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 07:57:31,178 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bcb3f1f-6cca-4062-af68-0f9be9f2caf8', 'name': '', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'network_id': '8eec10f0-9e12-4c55-bc5b-e216ee391a49', 'ip_version': 4, 'cidr': '200.73.224.0/26', 'allocation_pools': [{'start': '200.73.224.2', 'end': '200.73.224.62'}], 'gateway_ip': '200.73.224.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '200.73.224.2', 'tags': [], 'project_id': '243d60dbafac4af8a388b723f800f0eb'}}
2025-11-19 07:57:31,194 - INFO - Created VN ctest-vn-43958243
2025-11-19 07:57:31,246 - DEBUG - VN ctest-vn-43958243 UUID is 8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:31,558 - DEBUG - Response for create_network : {'network': {'id': '45cc5877-e8a5-4205-9e7d-ff2203c6941d', 'name': 'ctest-vn-46742817', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'project_id': '243d60dbafac4af8a388b723f800f0eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-vn-46742817'], 'port_security_enabled': True, 'description': ''}}
2025-11-19 07:57:31,763 - DEBUG - Response for create_subnet : {'subnet': {'id': '95c51427-811a-4fb3-9344-0490e68a9bc7', 'name': '', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'network_id': '45cc5877-e8a5-4205-9e7d-ff2203c6941d', 'ip_version': 4, 'cidr': '48.115.83.192/26', 'allocation_pools': [{'start': '48.115.83.194', 'end': '48.115.83.254'}], 'gateway_ip': '48.115.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '48.115.83.194', 'tags': [], 'project_id': '243d60dbafac4af8a388b723f800f0eb'}}
2025-11-19 07:57:31,779 - INFO - Created VN ctest-vn-46742817
2025-11-19 07:57:31,829 - DEBUG - VN ctest-vn-46742817 UUID is 45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:31,981 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243, 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-99866432:ctest-vn-46742817, 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-19 07:57:32,270 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8eec10f0-9e12-4c55-bc5b-e216ee391a49', 'name': 'ctest-vn-43958243', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'project_id': '243d60dbafac4af8a388b723f800f0eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bcb3f1f-6cca-4062-af68-0f9be9f2caf8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-vn-43958243'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-policy-allow-all-99154831']], 'subnet_ipam': [{'subnet_cidr': '200.73.224.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 07:57:32,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45cc5877-e8a5-4205-9e7d-ff2203c6941d', 'name': 'ctest-vn-46742817', 'tenant_id': '243d60dbafac4af8a388b723f800f0eb', 'project_id': '243d60dbafac4af8a388b723f800f0eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['95c51427-811a-4fb3-9344-0490e68a9bc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-vn-46742817'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-policy-allow-all-99154831']], 'subnet_ipam': [{'subnet_cidr': '48.115.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-19 07:57:32,670 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 07:57:32,966 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 07:57:33,000 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2
2025-11-19 07:57:33,011 - DEBUG - Requesting: http://10.0.0.50:8082/project/243d60db-afac-4af8-a388-b723f800f0eb
2025-11-19 07:57:33,080 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,090 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,099 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/deeaa0df-619e-4d16-92d8-2933fb218c4f
2025-11-19 07:57:33,105 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/deeaa0df-619e-4d16-92d8-2933fb218c4f
2025-11-19 07:57:33,112 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aed72fde-1114-4467-a2da-6418e2d27783
2025-11-19 07:57:33,118 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 07:57:33,118 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,128 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/deeaa0df-619e-4d16-92d8-2933fb218c4f
2025-11-19 07:57:33,142 - INFO - Verified VN network id 11 for VN 8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,142 - INFO - Verifications in API Server for VN ctest-vn-43958243 passed
2025-11-19 07:57:33,142 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,150 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/deeaa0df-619e-4d16-92d8-2933fb218c4f
2025-11-19 07:57:33,157 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/deeaa0df-619e-4d16-92d8-2933fb218c4f
2025-11-19 07:57:33,165 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/aed72fde-1114-4467-a2da-6418e2d27783
2025-11-19 07:57:33,177 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99866432', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10298625073519676501', 'uuid-lslong': '13572690490124999241'}, 'enable': 'true', 'created': '2025-11-19T07:57:31', 'last-modified': '2025-11-19T07:57:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.922774'}
2025-11-19 07:57:33,183 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-19 07:57:33,183 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43958243 passed
2025-11-19 07:57:33,184 - DEBUG - ====Verifying policy data for ctest-vn-43958243 in API_Server ======
2025-11-19 07:57:33,184 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 07:57:33,189 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2
2025-11-19 07:57:33,200 - DEBUG - Requesting: http://10.0.0.50:8082/project/243d60db-afac-4af8-a388-b723f800f0eb
2025-11-19 07:57:33,276 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/8eec10f0-9e12-4c55-bc5b-e216ee391a49
2025-11-19 07:57:33,285 - DEBUG - ==>Verifying data for policy with id: e842650f-35da-45c5-aed6-b9f72197e7c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-policy-allow-all-99154831']
2025-11-19 07:57:33,285 - INFO - VN ctest-vn-43958243 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 07:57:33,285 - DEBUG - Verifying the vn in opserver
2025-11-19 07:57:33,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243 virtual network link through opserver 10.0.0.50
2025-11-19 07:57:33,285 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 07:57:33,577 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 07:57:33,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243?flat'}
2025-11-19 07:57:33,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-43958243 is found in opserver
2025-11-19 07:57:33,650 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 07:57:33,656 - DEBUG - VRF ids for VN ctest-vn-43958243: {}
2025-11-19 07:57:33,656 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 07:57:33,661 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2
2025-11-19 07:57:33,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/243d60db-afac-4af8-a388-b723f800f0eb
2025-11-19 07:57:33,742 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,752 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,760 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e3f6cb-a0f1-4c53-8dcb-f180bccf7139
2025-11-19 07:57:33,766 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e3f6cb-a0f1-4c53-8dcb-f180bccf7139
2025-11-19 07:57:33,771 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6315507b-7758-4db3-955c-c5a9161e966a
2025-11-19 07:57:33,777 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 07:57:33,777 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e3f6cb-a0f1-4c53-8dcb-f180bccf7139
2025-11-19 07:57:33,800 - INFO - Verified VN network id 12 for VN 45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,800 - INFO - Verifications in API Server for VN ctest-vn-46742817 passed
2025-11-19 07:57:33,800 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,809 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e3f6cb-a0f1-4c53-8dcb-f180bccf7139
2025-11-19 07:57:33,815 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/a1e3f6cb-a0f1-4c53-8dcb-f180bccf7139
2025-11-19 07:57:33,820 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6315507b-7758-4db3-955c-c5a9161e966a
2025-11-19 07:57:33,831 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-46742817', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-99866432', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5029492155893498373', 'uuid-lslong': '11420564751638762525'}, 'enable': 'true', 'created': '2025-11-19T07:57:31', 'last-modified': '2025-11-19T07:57:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.347797'}
2025-11-19 07:57:33,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-19 07:57:33,837 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-46742817 passed
2025-11-19 07:57:33,837 - DEBUG - ====Verifying policy data for ctest-vn-46742817 in API_Server ======
2025-11-19 07:57:33,837 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-11-19 07:57:33,842 - DEBUG - Requesting: http://10.0.0.50:8082/domain/b2fbc469-6231-4099-a349-af135739a1d2
2025-11-19 07:57:33,853 - DEBUG - Requesting: http://10.0.0.50:8082/project/243d60db-afac-4af8-a388-b723f800f0eb
2025-11-19 07:57:33,922 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/45cc5877-e8a5-4205-9e7d-ff2203c6941d
2025-11-19 07:57:33,932 - DEBUG - ==>Verifying data for policy with id: e842650f-35da-45c5-aed6-b9f72197e7c3, fqn: ['default-domain', 'ctest-TestBasicPolicy-99866432', 'ctest-policy-allow-all-99154831']
2025-11-19 07:57:33,932 - INFO - VN ctest-vn-46742817 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-19 07:57:33,932 - DEBUG - Verifying the vn in opserver
2025-11-19 07:57:33,932 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-46742817 virtual network link through opserver 10.0.0.50
2025-11-19 07:57:33,932 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-11-19 07:57:33,941 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-46742817', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-46742817?flat'}
2025-11-19 07:57:33,941 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-99866432:ctest-vn-46742817 is found in opserver
2025-11-19 07:57:33,951 - DEBUG - Do not have enough data to verify VN in agent
2025-11-19 07:57:33,955 - DEBUG - VRF ids for VN ctest-vn-46742817: {}
2025-11-19 07:57:34,016 - DEBUG - Services list from nova: [