2025-06-02 09:57:13,384 - INFO - Domain Default found not creating
2025-06-02 09:57:13,527 - INFO - Project ctest-TestBasicPolicy-16297417 not found, creating it
2025-06-02 09:57:13,974 - INFO - Created Project:ctest-TestBasicPolicy-16297417, ID : 4d390a69-a9ba-4165-92f4-5200a74ea2a7
2025-06-02 09:57:15,436 - INFO - ================================================================================
2025-06-02 09:57:15,436 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-02 09:57:15,436 - 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-06-02 09:57:15,699 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-06-02 09:57:15,699 - INFO - Initial checks done. Running the testcase now
2025-06-02 09:57:15,699 - INFO -
2025-06-02 09:57:16,233 - DEBUG - Response for create_network : {'network': {'id': '8de9a7ab-62b8-4036-a7bc-1c6498ff3a93', 'name': 'ctest-vn-72943949', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'project_id': '4d390a69a9ba416592f45200a74ea2a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-vn-72943949'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:16,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '0618a418-117a-469b-afd7-5fa76c4cb60c', 'name': '', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'network_id': '8de9a7ab-62b8-4036-a7bc-1c6498ff3a93', 'ip_version': 4, 'cidr': '78.183.56.128/26', 'allocation_pools': [{'start': '78.183.56.130', 'end': '78.183.56.190'}], 'gateway_ip': '78.183.56.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.183.56.130', 'tags': [], 'project_id': '4d390a69a9ba416592f45200a74ea2a7'}}
2025-06-02 09:57:16,407 - INFO - Created VN ctest-vn-72943949
2025-06-02 09:57:16,461 - DEBUG - VN ctest-vn-72943949 UUID is 8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:16,793 - DEBUG - Response for create_network : {'network': {'id': '4d19b6c2-9174-4796-a081-84ea49fe7954', 'name': 'ctest-vn-30432883', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'project_id': '4d390a69a9ba416592f45200a74ea2a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-vn-30432883'], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:16,956 - DEBUG - Response for create_subnet : {'subnet': {'id': '1559ee6c-8f25-4a0b-b501-c42230be0225', 'name': '', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'network_id': '4d19b6c2-9174-4796-a081-84ea49fe7954', 'ip_version': 4, 'cidr': '170.255.223.0/26', 'allocation_pools': [{'start': '170.255.223.2', 'end': '170.255.223.62'}], 'gateway_ip': '170.255.223.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.255.223.2', 'tags': [], 'project_id': '4d390a69a9ba416592f45200a74ea2a7'}}
2025-06-02 09:57:16,975 - INFO - Created VN ctest-vn-30432883
2025-06-02 09:57:17,033 - DEBUG - VN ctest-vn-30432883 UUID is 4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:17,181 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949, 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-16297417:ctest-vn-30432883, 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-06-02 09:57:17,480 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8de9a7ab-62b8-4036-a7bc-1c6498ff3a93', 'name': 'ctest-vn-72943949', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'project_id': '4d390a69a9ba416592f45200a74ea2a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0618a418-117a-469b-afd7-5fa76c4cb60c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-vn-72943949'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-policy-allow-all-27856044']], 'subnet_ipam': [{'subnet_cidr': '78.183.56.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:17,712 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4d19b6c2-9174-4796-a081-84ea49fe7954', 'name': 'ctest-vn-30432883', 'tenant_id': '4d390a69a9ba416592f45200a74ea2a7', 'project_id': '4d390a69a9ba416592f45200a74ea2a7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1559ee6c-8f25-4a0b-b501-c42230be0225'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-vn-30432883'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-policy-allow-all-27856044']], 'subnet_ipam': [{'subnet_cidr': '170.255.223.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-02 09:57:17,873 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-02 09:57:18,179 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-02 09:57:18,213 - DEBUG - Requesting: http://10.0.0.254:8082/domain/66980297-5145-4a5d-a1cc-e55f697edb60
2025-06-02 09:57:18,226 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d390a69-a9ba-4165-92f4-5200a74ea2a7
2025-06-02 09:57:18,304 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,316 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,328 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca3ba05c-ca11-41e9-a75b-9c57d566c360
2025-06-02 09:57:18,338 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca3ba05c-ca11-41e9-a75b-9c57d566c360
2025-06-02 09:57:18,345 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e7a3bd2-343d-40b4-bd90-6a32182097ea
2025-06-02 09:57:18,355 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 09:57:18,355 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,364 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca3ba05c-ca11-41e9-a75b-9c57d566c360
2025-06-02 09:57:18,380 - INFO - Verified VN network id 8 for VN 8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,380 - INFO - Verifications in API Server for VN ctest-vn-72943949 passed
2025-06-02 09:57:18,380 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,390 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca3ba05c-ca11-41e9-a75b-9c57d566c360
2025-06-02 09:57:18,398 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/ca3ba05c-ca11-41e9-a75b-9c57d566c360
2025-06-02 09:57:18,405 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/8e7a3bd2-343d-40b4-bd90-6a32182097ea
2025-06-02 09:57:18,420 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16297417', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10225888783458910262', 'uuid-lslong': '12086566718344739475'}, 'enable': 'true', 'created': '2025-06-02T09:57:16', 'last-modified': '2025-06-02T09:57:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.960497'}
2025-06-02 09:57:18,429 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-02 09:57:18,429 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-72943949 passed
2025-06-02 09:57:18,429 - DEBUG - ====Verifying policy data for ctest-vn-72943949 in API_Server ======
2025-06-02 09:57:18,430 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-02 09:57:18,436 - DEBUG - Requesting: http://10.0.0.254:8082/domain/66980297-5145-4a5d-a1cc-e55f697edb60
2025-06-02 09:57:18,449 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d390a69-a9ba-4165-92f4-5200a74ea2a7
2025-06-02 09:57:18,523 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/8de9a7ab-62b8-4036-a7bc-1c6498ff3a93
2025-06-02 09:57:18,536 - DEBUG - ==>Verifying data for policy with id: 1130481c-c768-47c7-b9a8-773e7b31d916, fqn: ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-policy-allow-all-27856044']
2025-06-02 09:57:18,536 - INFO - VN ctest-vn-72943949 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 09:57:18,536 - DEBUG - Verifying the vn in opserver
2025-06-02 09:57:18,536 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949 virtual network link through opserver 10.0.0.254
2025-06-02 09:57:18,536 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-02 09:57:18,831 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-02 09:57:18,887 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949?flat'}
2025-06-02 09:57:18,887 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-72943949 is found in opserver
2025-06-02 09:57:18,898 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 09:57:18,904 - DEBUG - VRF ids for VN ctest-vn-72943949: {}
2025-06-02 09:57:18,904 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-02 09:57:18,910 - DEBUG - Requesting: http://10.0.0.254:8082/domain/66980297-5145-4a5d-a1cc-e55f697edb60
2025-06-02 09:57:18,922 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d390a69-a9ba-4165-92f4-5200a74ea2a7
2025-06-02 09:57:18,997 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,010 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,021 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/be2d73ce-996a-4da7-8fb0-c95e3c30c606
2025-06-02 09:57:19,029 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/be2d73ce-996a-4da7-8fb0-c95e3c30c606
2025-06-02 09:57:19,037 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f8bae68a-5be9-4c3d-892a-0a7a2d177c6d
2025-06-02 09:57:19,044 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 09:57:19,044 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,053 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/be2d73ce-996a-4da7-8fb0-c95e3c30c606
2025-06-02 09:57:19,069 - INFO - Verified VN network id 9 for VN 4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,069 - INFO - Verifications in API Server for VN ctest-vn-30432883 passed
2025-06-02 09:57:19,069 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,078 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/be2d73ce-996a-4da7-8fb0-c95e3c30c606
2025-06-02 09:57:19,086 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/be2d73ce-996a-4da7-8fb0-c95e3c30c606
2025-06-02 09:57:19,093 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/f8bae68a-5be9-4c3d-892a-0a7a2d177c6d
2025-06-02 09:57:19,106 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-30432883', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-16297417', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5555672562118444950', 'uuid-lslong': '11565671459862772052'}, 'enable': 'true', 'created': '2025-06-02T09:57:16', 'last-modified': '2025-06-02T09:57:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.413202'}
2025-06-02 09:57:19,112 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-02 09:57:19,112 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-30432883 passed
2025-06-02 09:57:19,112 - DEBUG - ====Verifying policy data for ctest-vn-30432883 in API_Server ======
2025-06-02 09:57:19,113 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-06-02 09:57:19,119 - DEBUG - Requesting: http://10.0.0.254:8082/domain/66980297-5145-4a5d-a1cc-e55f697edb60
2025-06-02 09:57:19,133 - DEBUG - Requesting: http://10.0.0.254:8082/project/4d390a69-a9ba-4165-92f4-5200a74ea2a7
2025-06-02 09:57:19,205 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4d19b6c2-9174-4796-a081-84ea49fe7954
2025-06-02 09:57:19,215 - DEBUG - ==>Verifying data for policy with id: 1130481c-c768-47c7-b9a8-773e7b31d916, fqn: ['default-domain', 'ctest-TestBasicPolicy-16297417', 'ctest-policy-allow-all-27856044']
2025-06-02 09:57:19,215 - INFO - VN ctest-vn-30432883 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-02 09:57:19,215 - DEBUG - Verifying the vn in opserver
2025-06-02 09:57:19,215 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-30432883 virtual network link through opserver 10.0.0.254
2025-06-02 09:57:19,215 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-06-02 09:57:19,227 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-30432883', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-30432883?flat'}
2025-06-02 09:57:19,227 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-16297417:ctest-vn-30432883 is found in opserver
2025-06-02 09:57:19,238 - DEBUG - Do not have enough data to verify VN in agent
2025-06-02 09:57:19,243 - DEBUG - VRF ids for VN ctest-vn-30432883: {}
2025-06-02 09:57:19,299 - DEBUG - Services list from nova: [