2025-08-29 12:59:54,390 - INFO - Domain Default found not creating
2025-08-29 12:59:54,521 - INFO - Project ctest-TestBasicPolicy-93658452 not found, creating it
2025-08-29 12:59:54,957 - INFO - Created Project:ctest-TestBasicPolicy-93658452, ID : 5cbf5db8-75cb-4137-b984-ddd8eee665ca
2025-08-29 12:59:56,312 - INFO - ================================================================================
2025-08-29 12:59:56,313 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-29 12:59:56,313 - 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-29 12:59:56,566 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with
2025-08-29 12:59:56,566 - INFO - Initial checks done. Running the testcase now
2025-08-29 12:59:56,566 - INFO -
2025-08-29 12:59:57,067 - DEBUG - Response for create_network : {'network': {'id': 'eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6', 'name': 'ctest-vn-81003595', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'project_id': '5cbf5db875cb4137b984ddd8eee665ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-vn-81003595'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 12:59:57,232 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f431138d-b18c-4684-a82a-5ee90c4d7bc2', 'name': '', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'network_id': 'eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6', 'ip_version': 4, 'cidr': '113.38.81.0/26', 'allocation_pools': [{'start': '113.38.81.2', 'end': '113.38.81.62'}], 'gateway_ip': '113.38.81.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '113.38.81.2', 'tags': [], 'project_id': '5cbf5db875cb4137b984ddd8eee665ca'}}
2025-08-29 12:59:57,248 - INFO - Created VN ctest-vn-81003595
2025-08-29 12:59:57,298 - DEBUG - VN ctest-vn-81003595 UUID is eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:57,567 - DEBUG - Response for create_network : {'network': {'id': '55fbf159-e16e-46de-827c-82ca8a4552ff', 'name': 'ctest-vn-83919201', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'project_id': '5cbf5db875cb4137b984ddd8eee665ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-vn-83919201'], 'port_security_enabled': True, 'description': ''}}
2025-08-29 12:59:57,771 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d98ab1b-8ec0-4a23-9368-d0c0e9c0a514', 'name': '', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'network_id': '55fbf159-e16e-46de-827c-82ca8a4552ff', 'ip_version': 4, 'cidr': '139.238.65.0/26', 'allocation_pools': [{'start': '139.238.65.2', 'end': '139.238.65.62'}], 'gateway_ip': '139.238.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.238.65.2', 'tags': [], 'project_id': '5cbf5db875cb4137b984ddd8eee665ca'}}
2025-08-29 12:59:57,787 - INFO - Created VN ctest-vn-83919201
2025-08-29 12:59:57,838 - DEBUG - VN ctest-vn-83919201 UUID is 55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:57,982 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595, 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-93658452:ctest-vn-83919201, 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-29 12:59:58,266 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6', 'name': 'ctest-vn-81003595', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'project_id': '5cbf5db875cb4137b984ddd8eee665ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f431138d-b18c-4684-a82a-5ee90c4d7bc2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-vn-81003595'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-policy-allow-all-89606423']], 'subnet_ipam': [{'subnet_cidr': '113.38.81.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 12:59:58,507 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '55fbf159-e16e-46de-827c-82ca8a4552ff', 'name': 'ctest-vn-83919201', 'tenant_id': '5cbf5db875cb4137b984ddd8eee665ca', 'project_id': '5cbf5db875cb4137b984ddd8eee665ca', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d98ab1b-8ec0-4a23-9368-d0c0e9c0a514'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-vn-83919201'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-policy-allow-all-89606423']], 'subnet_ipam': [{'subnet_cidr': '139.238.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-29 12:59:58,670 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-29 12:59:58,961 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-29 12:59:58,990 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374
2025-08-29 12:59:59,001 - DEBUG - Requesting: http://10.0.0.33:8082/project/5cbf5db8-75cb-4137-b984-ddd8eee665ca
2025-08-29 12:59:59,069 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,077 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,084 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/10eed641-d867-4de2-b615-73f1cc0b201b
2025-08-29 12:59:59,089 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/10eed641-d867-4de2-b615-73f1cc0b201b
2025-08-29 12:59:59,094 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/15711c61-8205-467f-81c3-7f51d1ef3af1
2025-08-29 12:59:59,098 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 12:59:59,098 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,105 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/10eed641-d867-4de2-b615-73f1cc0b201b
2025-08-29 12:59:59,116 - INFO - Verified VN network id 11 for VN eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,116 - INFO - Verifications in API Server for VN ctest-vn-81003595 passed
2025-08-29 12:59:59,116 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,123 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/10eed641-d867-4de2-b615-73f1cc0b201b
2025-08-29 12:59:59,128 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/10eed641-d867-4de2-b615-73f1cc0b201b
2025-08-29 12:59:59,133 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/15711c61-8205-467f-81c3-7f51d1ef3af1
2025-08-29 12:59:59,142 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93658452', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16937291423734907418', 'uuid-lslong': '12919624551601468102'}, 'enable': 'true', 'created': '2025-08-29T12:59:57', 'last-modified': '2025-08-29T12:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.894315'}
2025-08-29 12:59:59,147 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-29 12:59:59,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81003595 passed
2025-08-29 12:59:59,147 - DEBUG - ====Verifying policy data for ctest-vn-81003595 in API_Server ======
2025-08-29 12:59:59,147 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-29 12:59:59,151 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374
2025-08-29 12:59:59,160 - DEBUG - Requesting: http://10.0.0.33:8082/project/5cbf5db8-75cb-4137-b984-ddd8eee665ca
2025-08-29 12:59:59,224 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/eb0d58cf-f0fd-421a-b34b-ba141d9ef2c6
2025-08-29 12:59:59,232 - DEBUG - ==>Verifying data for policy with id: b9f6a766-3dbb-466c-a727-ab361fb911f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-policy-allow-all-89606423']
2025-08-29 12:59:59,232 - INFO - VN ctest-vn-81003595 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 12:59:59,232 - DEBUG - Verifying the vn in opserver
2025-08-29 12:59:59,232 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595 virtual network link through opserver 10.0.0.33
2025-08-29 12:59:59,232 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-29 12:59:59,520 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-29 12:59:59,571 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595?flat'}
2025-08-29 12:59:59,571 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-81003595 is found in opserver
2025-08-29 12:59:59,581 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 12:59:59,585 - DEBUG - VRF ids for VN ctest-vn-81003595: {}
2025-08-29 12:59:59,585 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-29 12:59:59,590 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374
2025-08-29 12:59:59,600 - DEBUG - Requesting: http://10.0.0.33:8082/project/5cbf5db8-75cb-4137-b984-ddd8eee665ca
2025-08-29 12:59:59,663 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,673 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,682 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7af3002a-358d-408b-8a1e-6d5d2327a3d6
2025-08-29 12:59:59,688 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7af3002a-358d-408b-8a1e-6d5d2327a3d6
2025-08-29 12:59:59,693 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4b36709a-ae90-425b-836d-6dcc5635093f
2025-08-29 12:59:59,698 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 12:59:59,698 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,706 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7af3002a-358d-408b-8a1e-6d5d2327a3d6
2025-08-29 12:59:59,717 - INFO - Verified VN network id 12 for VN 55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,717 - INFO - Verifications in API Server for VN ctest-vn-83919201 passed
2025-08-29 12:59:59,717 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,724 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7af3002a-358d-408b-8a1e-6d5d2327a3d6
2025-08-29 12:59:59,730 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/7af3002a-358d-408b-8a1e-6d5d2327a3d6
2025-08-29 12:59:59,736 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/4b36709a-ae90-425b-836d-6dcc5635093f
2025-08-29 12:59:59,746 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-83919201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93658452', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6195811080714733278', 'uuid-lslong': '9402533928457556735'}, 'enable': 'true', 'created': '2025-08-29T12:59:57', 'last-modified': '2025-08-29T12:59:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.261674'}
2025-08-29 12:59:59,751 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-29 12:59:59,751 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-83919201 passed
2025-08-29 12:59:59,751 - DEBUG - ====Verifying policy data for ctest-vn-83919201 in API_Server ======
2025-08-29 12:59:59,751 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-08-29 12:59:59,756 - DEBUG - Requesting: http://10.0.0.33:8082/domain/97666ddb-63ec-40ea-9097-691bbf944374
2025-08-29 12:59:59,767 - DEBUG - Requesting: http://10.0.0.33:8082/project/5cbf5db8-75cb-4137-b984-ddd8eee665ca
2025-08-29 12:59:59,832 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/55fbf159-e16e-46de-827c-82ca8a4552ff
2025-08-29 12:59:59,840 - DEBUG - ==>Verifying data for policy with id: b9f6a766-3dbb-466c-a727-ab361fb911f1, fqn: ['default-domain', 'ctest-TestBasicPolicy-93658452', 'ctest-policy-allow-all-89606423']
2025-08-29 12:59:59,840 - INFO - VN ctest-vn-83919201 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-29 12:59:59,840 - DEBUG - Verifying the vn in opserver
2025-08-29 12:59:59,840 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-83919201 virtual network link through opserver 10.0.0.33
2025-08-29 12:59:59,840 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-08-29 12:59:59,848 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-83919201', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-83919201?flat'}
2025-08-29 12:59:59,848 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93658452:ctest-vn-83919201 is found in opserver
2025-08-29 12:59:59,856 - DEBUG - Do not have enough data to verify VN in agent
2025-08-29 12:59:59,860 - DEBUG - VRF ids for VN ctest-vn-83919201: {}
2025-08-29 12:59:59,911 - DEBUG - Services list from nova: [