2025-11-05 08:20:52,900 - INFO - Domain Default found not creating
2025-11-05 08:20:53,040 - INFO - Project ctest-TestBasicPolicy-60350571 not found, creating it
2025-11-05 08:20:53,499 - INFO - Created Project:ctest-TestBasicPolicy-60350571, ID : 6c017f47-bfb9-4ef6-a09e-ae29daaacd64
2025-11-05 08:20:54,998 - INFO - ================================================================================
2025-11-05 08:20:54,998 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:20:54,998 - 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-05 08:20:55,260 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.18': '0'}} with
2025-11-05 08:20:55,260 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:20:55,260 - INFO -
2025-11-05 08:20:55,748 - DEBUG - Response for create_network : {'network': {'id': '12e53c84-8ece-4bdc-8150-b7ffb4be6102', 'name': 'ctest-vn-66620593', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'project_id': '6c017f47bfb94ef6a09eae29daaacd64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-vn-66620593'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:20:55,931 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd55ccfb0-dfb2-4868-9fbf-340599032cc7', 'name': '', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'network_id': '12e53c84-8ece-4bdc-8150-b7ffb4be6102', 'ip_version': 4, 'cidr': '40.198.43.64/26', 'allocation_pools': [{'start': '40.198.43.66', 'end': '40.198.43.126'}], 'gateway_ip': '40.198.43.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.198.43.66', 'tags': [], 'project_id': '6c017f47bfb94ef6a09eae29daaacd64'}}
2025-11-05 08:20:55,947 - INFO - Created VN ctest-vn-66620593
2025-11-05 08:20:55,999 - DEBUG - VN ctest-vn-66620593 UUID is 12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:56,332 - DEBUG - Response for create_network : {'network': {'id': '2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6', 'name': 'ctest-vn-15683515', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'project_id': '6c017f47bfb94ef6a09eae29daaacd64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-vn-15683515'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:20:56,503 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fb083e10-8cb2-4d34-b93b-d6a8e491cb5a', 'name': '', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'network_id': '2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6', 'ip_version': 4, 'cidr': '72.137.60.128/26', 'allocation_pools': [{'start': '72.137.60.130', 'end': '72.137.60.190'}], 'gateway_ip': '72.137.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '72.137.60.130', 'tags': [], 'project_id': '6c017f47bfb94ef6a09eae29daaacd64'}}
2025-11-05 08:20:56,520 - INFO - Created VN ctest-vn-15683515
2025-11-05 08:20:56,575 - DEBUG - VN ctest-vn-15683515 UUID is 2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:56,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593, 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-60350571:ctest-vn-15683515, 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-05 08:20:57,014 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12e53c84-8ece-4bdc-8150-b7ffb4be6102', 'name': 'ctest-vn-66620593', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'project_id': '6c017f47bfb94ef6a09eae29daaacd64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d55ccfb0-dfb2-4868-9fbf-340599032cc7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-vn-66620593'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-policy-allow-all-83820681']], 'subnet_ipam': [{'subnet_cidr': '40.198.43.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:20:57,240 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6', 'name': 'ctest-vn-15683515', 'tenant_id': '6c017f47bfb94ef6a09eae29daaacd64', 'project_id': '6c017f47bfb94ef6a09eae29daaacd64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fb083e10-8cb2-4d34-b93b-d6a8e491cb5a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-vn-15683515'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-policy-allow-all-83820681']], 'subnet_ipam': [{'subnet_cidr': '72.137.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:20:57,399 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-11-05 08:20:57,702 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-11-05 08:20:57,730 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7a620f37-a3d5-4e73-8333-5ca467258adb
2025-11-05 08:20:57,741 - DEBUG - Requesting: http://10.0.0.131:8082/project/6c017f47-bfb9-4ef6-a09e-ae29daaacd64
2025-11-05 08:20:57,808 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,818 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,825 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/82d46e34-ea48-43f0-ab41-3bd38b219a45
2025-11-05 08:20:57,831 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/82d46e34-ea48-43f0-ab41-3bd38b219a45
2025-11-05 08:20:57,837 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/cfc07959-4c98-4faa-8110-05e346465357
2025-11-05 08:20:57,841 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:20:57,841 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,849 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/82d46e34-ea48-43f0-ab41-3bd38b219a45
2025-11-05 08:20:57,861 - INFO - Verified VN network id 9 for VN 12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,861 - INFO - Verifications in API Server for VN ctest-vn-66620593 passed
2025-11-05 08:20:57,861 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,869 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/82d46e34-ea48-43f0-ab41-3bd38b219a45
2025-11-05 08:20:57,875 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/82d46e34-ea48-43f0-ab41-3bd38b219a45
2025-11-05 08:20:57,881 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/cfc07959-4c98-4faa-8110-05e346465357
2025-11-05 08:20:57,890 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60350571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1361561002378677212', 'uuid-lslong': '9318149937906475266'}, 'enable': 'true', 'created': '2025-11-05T08:20:55', 'last-modified': '2025-11-05T08:20:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900944'}
2025-11-05 08:20:57,895 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:20:57,895 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-66620593 passed
2025-11-05 08:20:57,896 - DEBUG - ====Verifying policy data for ctest-vn-66620593 in API_Server ======
2025-11-05 08:20:57,896 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-11-05 08:20:57,900 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7a620f37-a3d5-4e73-8333-5ca467258adb
2025-11-05 08:20:57,911 - DEBUG - Requesting: http://10.0.0.131:8082/project/6c017f47-bfb9-4ef6-a09e-ae29daaacd64
2025-11-05 08:20:57,981 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/12e53c84-8ece-4bdc-8150-b7ffb4be6102
2025-11-05 08:20:57,990 - DEBUG - ==>Verifying data for policy with id: 8afd6b5e-48b9-42ad-add2-5a0a38640267, fqn: ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-policy-allow-all-83820681']
2025-11-05 08:20:57,990 - INFO - VN ctest-vn-66620593 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:20:57,990 - DEBUG - Verifying the vn in opserver
2025-11-05 08:20:57,990 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593 virtual network link through opserver 10.0.0.131
2025-11-05 08:20:57,990 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-11-05 08:20:58,282 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-11-05 08:20:58,333 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593?flat'}
2025-11-05 08:20:58,333 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-66620593 is found in opserver
2025-11-05 08:20:58,341 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:20:58,345 - DEBUG - VRF ids for VN ctest-vn-66620593: {}
2025-11-05 08:20:58,345 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-11-05 08:20:58,350 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7a620f37-a3d5-4e73-8333-5ca467258adb
2025-11-05 08:20:58,359 - DEBUG - Requesting: http://10.0.0.131:8082/project/6c017f47-bfb9-4ef6-a09e-ae29daaacd64
2025-11-05 08:20:58,426 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,435 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,442 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5c5fc7aa-bdf5-4496-a706-1194e4b217fd
2025-11-05 08:20:58,447 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5c5fc7aa-bdf5-4496-a706-1194e4b217fd
2025-11-05 08:20:58,453 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/cc6994ab-f9a9-49dc-881b-8e5e56831269
2025-11-05 08:20:58,458 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:20:58,458 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,465 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5c5fc7aa-bdf5-4496-a706-1194e4b217fd
2025-11-05 08:20:58,475 - INFO - Verified VN network id 10 for VN 2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,475 - INFO - Verifications in API Server for VN ctest-vn-15683515 passed
2025-11-05 08:20:58,475 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,482 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5c5fc7aa-bdf5-4496-a706-1194e4b217fd
2025-11-05 08:20:58,487 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/5c5fc7aa-bdf5-4496-a706-1194e4b217fd
2025-11-05 08:20:58,492 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/cc6994ab-f9a9-49dc-881b-8e5e56831269
2025-11-05 08:20:58,501 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-15683515', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-60350571', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3158405174672508885', 'uuid-lslong': '11102007084601144230'}, 'enable': 'true', 'created': '2025-11-05T08:20:56', 'last-modified': '2025-11-05T08:20:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.288420'}
2025-11-05 08:20:58,505 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:20:58,505 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15683515 passed
2025-11-05 08:20:58,506 - DEBUG - ====Verifying policy data for ctest-vn-15683515 in API_Server ======
2025-11-05 08:20:58,506 - DEBUG - Requesting: http://10.0.0.131:8082/domains
2025-11-05 08:20:58,510 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7a620f37-a3d5-4e73-8333-5ca467258adb
2025-11-05 08:20:58,518 - DEBUG - Requesting: http://10.0.0.131:8082/project/6c017f47-bfb9-4ef6-a09e-ae29daaacd64
2025-11-05 08:20:58,584 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2bd4e8c5-bd1c-47d5-9a12-409f5b8573a6
2025-11-05 08:20:58,592 - DEBUG - ==>Verifying data for policy with id: 8afd6b5e-48b9-42ad-add2-5a0a38640267, fqn: ['default-domain', 'ctest-TestBasicPolicy-60350571', 'ctest-policy-allow-all-83820681']
2025-11-05 08:20:58,592 - INFO - VN ctest-vn-15683515 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:20:58,592 - DEBUG - Verifying the vn in opserver
2025-11-05 08:20:58,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-15683515 virtual network link through opserver 10.0.0.131
2025-11-05 08:20:58,592 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks
2025-11-05 08:20:58,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-15683515', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-15683515?flat'}
2025-11-05 08:20:58,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-60350571:ctest-vn-15683515 is found in opserver
2025-11-05 08:20:58,608 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:20:58,611 - DEBUG - VRF ids for VN ctest-vn-15683515: {}
2025-11-05 08:20:58,660 - DEBUG - Services list from nova: [