2025-10-13 02:00:20,516 - INFO - Domain Default found not creating
2025-10-13 02:00:20,681 - INFO - Project ctest-TestBasicPolicy-93879096 not found, creating it
2025-10-13 02:00:21,143 - INFO - Created Project:ctest-TestBasicPolicy-93879096, ID : 44bc6f45-7448-4b8b-8e10-3f4f928c2221
2025-10-13 02:00:22,588 - INFO - ================================================================================
2025-10-13 02:00:22,588 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-13 02:00:22,588 - 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-10-13 02:00:22,858 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with
2025-10-13 02:00:22,858 - INFO - Initial checks done. Running the testcase now
2025-10-13 02:00:22,858 - INFO -
2025-10-13 02:00:23,472 - DEBUG - Response for create_network : {'network': {'id': 'ffe5a499-6b68-4564-a3ca-82678b2e46ec', 'name': 'ctest-vn-88908070', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'project_id': '44bc6f4574484b8b8e103f4f928c2221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-vn-88908070'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 02:00:23,635 - DEBUG - Response for create_subnet : {'subnet': {'id': '0df6b7b3-ff73-40c1-bd24-a1014e3dc1cd', 'name': '', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'network_id': 'ffe5a499-6b68-4564-a3ca-82678b2e46ec', 'ip_version': 4, 'cidr': '83.254.21.128/26', 'allocation_pools': [{'start': '83.254.21.130', 'end': '83.254.21.190'}], 'gateway_ip': '83.254.21.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.254.21.130', 'tags': [], 'project_id': '44bc6f4574484b8b8e103f4f928c2221'}}
2025-10-13 02:00:23,655 - INFO - Created VN ctest-vn-88908070
2025-10-13 02:00:23,708 - DEBUG - VN ctest-vn-88908070 UUID is ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:24,005 - DEBUG - Response for create_network : {'network': {'id': '46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4', 'name': 'ctest-vn-82097321', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'project_id': '44bc6f4574484b8b8e103f4f928c2221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-vn-82097321'], 'port_security_enabled': True, 'description': ''}}
2025-10-13 02:00:24,163 - DEBUG - Response for create_subnet : {'subnet': {'id': '0f4d761c-ce01-459c-b059-7b42c51732a8', 'name': '', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'network_id': '46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4', 'ip_version': 4, 'cidr': '20.46.189.64/26', 'allocation_pools': [{'start': '20.46.189.66', 'end': '20.46.189.126'}], 'gateway_ip': '20.46.189.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20.46.189.66', 'tags': [], 'project_id': '44bc6f4574484b8b8e103f4f928c2221'}}
2025-10-13 02:00:24,182 - INFO - Created VN ctest-vn-82097321
2025-10-13 02:00:24,236 - DEBUG - VN ctest-vn-82097321 UUID is 46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:24,348 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070, 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-93879096:ctest-vn-82097321, 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-10-13 02:00:24,651 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffe5a499-6b68-4564-a3ca-82678b2e46ec', 'name': 'ctest-vn-88908070', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'project_id': '44bc6f4574484b8b8e103f4f928c2221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0df6b7b3-ff73-40c1-bd24-a1014e3dc1cd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-vn-88908070'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-policy-allow-all-23044028']], 'subnet_ipam': [{'subnet_cidr': '83.254.21.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 02:00:24,889 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4', 'name': 'ctest-vn-82097321', 'tenant_id': '44bc6f4574484b8b8e103f4f928c2221', 'project_id': '44bc6f4574484b8b8e103f4f928c2221', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0f4d761c-ce01-459c-b059-7b42c51732a8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-vn-82097321'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-policy-allow-all-23044028']], 'subnet_ipam': [{'subnet_cidr': '20.46.189.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-13 02:00:25,060 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 02:00:25,370 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 02:00:25,402 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad322067-a415-4c2a-9a89-b51c9ed34213
2025-10-13 02:00:25,414 - DEBUG - Requesting: http://10.0.0.254:8082/project/44bc6f45-7448-4b8b-8e10-3f4f928c2221
2025-10-13 02:00:25,491 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,501 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,509 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/452c7a83-757a-40e5-87c7-8bae73aa868c
2025-10-13 02:00:25,516 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/452c7a83-757a-40e5-87c7-8bae73aa868c
2025-10-13 02:00:25,522 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eaa6d9a6-dcd4-4718-b2f4-ccd9661ae295
2025-10-13 02:00:25,529 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 02:00:25,529 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,537 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/452c7a83-757a-40e5-87c7-8bae73aa868c
2025-10-13 02:00:25,552 - INFO - Verified VN network id 11 for VN ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,552 - INFO - Verifications in API Server for VN ctest-vn-88908070 passed
2025-10-13 02:00:25,553 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,561 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/452c7a83-757a-40e5-87c7-8bae73aa868c
2025-10-13 02:00:25,567 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/452c7a83-757a-40e5-87c7-8bae73aa868c
2025-10-13 02:00:25,573 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/eaa6d9a6-dcd4-4718-b2f4-ccd9661ae295
2025-10-13 02:00:25,584 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93879096', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18439325228177311076', 'uuid-lslong': '11802389154706114284'}, 'enable': 'true', 'created': '2025-10-13T02:00:23', 'last-modified': '2025-10-13T02:00:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.962497'}
2025-10-13 02:00:25,590 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-13 02:00:25,590 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-88908070 passed
2025-10-13 02:00:25,590 - DEBUG - ====Verifying policy data for ctest-vn-88908070 in API_Server ======
2025-10-13 02:00:25,590 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 02:00:25,595 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad322067-a415-4c2a-9a89-b51c9ed34213
2025-10-13 02:00:25,606 - DEBUG - Requesting: http://10.0.0.254:8082/project/44bc6f45-7448-4b8b-8e10-3f4f928c2221
2025-10-13 02:00:25,677 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ffe5a499-6b68-4564-a3ca-82678b2e46ec
2025-10-13 02:00:25,687 - DEBUG - ==>Verifying data for policy with id: 35c56f33-88b3-49eb-bb27-3da1104ee453, fqn: ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-policy-allow-all-23044028']
2025-10-13 02:00:25,687 - INFO - VN ctest-vn-88908070 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 02:00:25,687 - DEBUG - Verifying the vn in opserver
2025-10-13 02:00:25,687 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070 virtual network link through opserver 10.0.0.254
2025-10-13 02:00:25,687 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 02:00:25,984 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 02:00:26,046 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070?flat'}
2025-10-13 02:00:26,046 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-88908070 is found in opserver
2025-10-13 02:00:26,056 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 02:00:26,061 - DEBUG - VRF ids for VN ctest-vn-88908070: {}
2025-10-13 02:00:26,061 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 02:00:26,068 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad322067-a415-4c2a-9a89-b51c9ed34213
2025-10-13 02:00:26,080 - DEBUG - Requesting: http://10.0.0.254:8082/project/44bc6f45-7448-4b8b-8e10-3f4f928c2221
2025-10-13 02:00:26,153 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,165 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,173 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2905d689-35e6-4a6f-b50d-e8ece161120c
2025-10-13 02:00:26,180 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2905d689-35e6-4a6f-b50d-e8ece161120c
2025-10-13 02:00:26,198 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/492d4e47-6d66-4822-9a83-e37589ca1590
2025-10-13 02:00:26,206 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 02:00:26,206 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,215 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2905d689-35e6-4a6f-b50d-e8ece161120c
2025-10-13 02:00:26,230 - INFO - Verified VN network id 12 for VN 46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,231 - INFO - Verifications in API Server for VN ctest-vn-82097321 passed
2025-10-13 02:00:26,231 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,242 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2905d689-35e6-4a6f-b50d-e8ece161120c
2025-10-13 02:00:26,250 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2905d689-35e6-4a6f-b50d-e8ece161120c
2025-10-13 02:00:26,258 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/492d4e47-6d66-4822-9a83-e37589ca1590
2025-10-13 02:00:26,271 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-82097321', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-93879096', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5102501098332834238', 'uuid-lslong': '12415798483913269732'}, 'enable': 'true', 'created': '2025-10-13T02:00:23', 'last-modified': '2025-10-13T02:00:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.408569'}
2025-10-13 02:00:26,276 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-13 02:00:26,276 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82097321 passed
2025-10-13 02:00:26,276 - DEBUG - ====Verifying policy data for ctest-vn-82097321 in API_Server ======
2025-10-13 02:00:26,276 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-10-13 02:00:26,283 - DEBUG - Requesting: http://10.0.0.254:8082/domain/ad322067-a415-4c2a-9a89-b51c9ed34213
2025-10-13 02:00:26,294 - DEBUG - Requesting: http://10.0.0.254:8082/project/44bc6f45-7448-4b8b-8e10-3f4f928c2221
2025-10-13 02:00:26,369 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/46cfb9b6-f82b-49be-ac4d-c6f07c7be1e4
2025-10-13 02:00:26,377 - DEBUG - ==>Verifying data for policy with id: 35c56f33-88b3-49eb-bb27-3da1104ee453, fqn: ['default-domain', 'ctest-TestBasicPolicy-93879096', 'ctest-policy-allow-all-23044028']
2025-10-13 02:00:26,378 - INFO - VN ctest-vn-82097321 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-13 02:00:26,378 - DEBUG - Verifying the vn in opserver
2025-10-13 02:00:26,378 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-82097321 virtual network link through opserver 10.0.0.254
2025-10-13 02:00:26,378 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-10-13 02:00:26,387 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-82097321', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-82097321?flat'}
2025-10-13 02:00:26,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-93879096:ctest-vn-82097321 is found in opserver
2025-10-13 02:00:26,397 - DEBUG - Do not have enough data to verify VN in agent
2025-10-13 02:00:26,408 - DEBUG - VRF ids for VN ctest-vn-82097321: {}
2025-10-13 02:00:26,470 - DEBUG - Services list from nova: [