2025-11-05 08:18:14,198 - INFO - Domain Default found not creating
2025-11-05 08:18:14,348 - INFO - Project ctest-TestBasicPolicy-27157721 not found, creating it
2025-11-05 08:18:14,788 - INFO - Created Project:ctest-TestBasicPolicy-27157721, ID : 03cbd33c-1f22-4393-9b96-4b0b6e0eb3f9
2025-11-05 08:18:16,846 - INFO - ================================================================================
2025-11-05 08:18:16,846 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-11-05 08:18:16,846 - 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:18:17,105 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.17': '0'}} with
2025-11-05 08:18:17,106 - INFO - Initial checks done. Running the testcase now
2025-11-05 08:18:17,106 - INFO -
2025-11-05 08:18:17,657 - DEBUG - Response for create_network : {'network': {'id': '67c32f95-b40d-40c9-9194-5c9ce85da409', 'name': 'ctest-vn-07630440', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-vn-07630440'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:18:17,820 - DEBUG - Response for create_subnet : {'subnet': {'id': '7e7810a1-6c9e-4e46-b297-9b0d2e0d9d89', 'name': '', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'network_id': '67c32f95-b40d-40c9-9194-5c9ce85da409', 'ip_version': 4, 'cidr': '170.238.62.0/26', 'allocation_pools': [{'start': '170.238.62.2', 'end': '170.238.62.62'}], 'gateway_ip': '170.238.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '170.238.62.2', 'tags': [], 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9'}}
2025-11-05 08:18:17,844 - INFO - Created VN ctest-vn-07630440
2025-11-05 08:18:17,898 - DEBUG - VN ctest-vn-07630440 UUID is 67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:18,192 - DEBUG - Response for create_network : {'network': {'id': '7931a0a0-6ac5-4206-8106-108f7107ff55', 'name': 'ctest-vn-28340037', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-vn-28340037'], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:18:18,401 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f1734ce6-368a-4b7b-9748-2b0b173eda36', 'name': '', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'network_id': '7931a0a0-6ac5-4206-8106-108f7107ff55', 'ip_version': 4, 'cidr': '144.6.233.0/26', 'allocation_pools': [{'start': '144.6.233.2', 'end': '144.6.233.62'}], 'gateway_ip': '144.6.233.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '144.6.233.2', 'tags': [], 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9'}}
2025-11-05 08:18:18,419 - INFO - Created VN ctest-vn-28340037
2025-11-05 08:18:18,470 - DEBUG - VN ctest-vn-28340037 UUID is 7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:18,586 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440, 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-27157721:ctest-vn-28340037, 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:18:18,896 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '67c32f95-b40d-40c9-9194-5c9ce85da409', 'name': 'ctest-vn-07630440', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7e7810a1-6c9e-4e46-b297-9b0d2e0d9d89'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-vn-07630440'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-policy-allow-all-83664239']], 'subnet_ipam': [{'subnet_cidr': '170.238.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:18:19,172 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7931a0a0-6ac5-4206-8106-108f7107ff55', 'name': 'ctest-vn-28340037', 'tenant_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'project_id': '03cbd33c1f2243939b964b0b6e0eb3f9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f1734ce6-368a-4b7b-9748-2b0b173eda36'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-vn-28340037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-policy-allow-all-83664239']], 'subnet_ipam': [{'subnet_cidr': '144.6.233.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-11-05 08:18:19,322 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-05 08:18:19,626 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-05 08:18:19,657 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9c07e536-bf63-489b-8e68-76c6514c2552
2025-11-05 08:18:19,672 - DEBUG - Requesting: http://10.0.0.41:8082/project/03cbd33c-1f22-4393-9b96-4b0b6e0eb3f9
2025-11-05 08:18:19,747 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,758 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,767 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/abba1845-f33c-42d3-975a-755201a15e38
2025-11-05 08:18:19,774 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/abba1845-f33c-42d3-975a-755201a15e38
2025-11-05 08:18:19,782 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7b212d28-e65c-46f2-881c-5cc713db9044
2025-11-05 08:18:19,788 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:18:19,788 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,797 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/abba1845-f33c-42d3-975a-755201a15e38
2025-11-05 08:18:19,812 - INFO - Verified VN network id 10 for VN 67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,812 - INFO - Verifications in API Server for VN ctest-vn-07630440 passed
2025-11-05 08:18:19,812 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,823 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/abba1845-f33c-42d3-975a-755201a15e38
2025-11-05 08:18:19,830 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/abba1845-f33c-42d3-975a-755201a15e38
2025-11-05 08:18:19,837 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/7b212d28-e65c-46f2-881c-5cc713db9044
2025-11-05 08:18:19,849 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27157721', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7476872126382555337', 'uuid-lslong': '10490111261035832329'}, 'enable': 'true', 'created': '2025-11-05T08:18:17', 'last-modified': '2025-11-05T08:18:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.989014'}
2025-11-05 08:18:19,857 - DEBUG - Route Targets: ['target:64512:8000004']
2025-11-05 08:18:19,857 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07630440 passed
2025-11-05 08:18:19,857 - DEBUG - ====Verifying policy data for ctest-vn-07630440 in API_Server ======
2025-11-05 08:18:19,857 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-05 08:18:19,862 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9c07e536-bf63-489b-8e68-76c6514c2552
2025-11-05 08:18:19,873 - DEBUG - Requesting: http://10.0.0.41:8082/project/03cbd33c-1f22-4393-9b96-4b0b6e0eb3f9
2025-11-05 08:18:19,948 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/67c32f95-b40d-40c9-9194-5c9ce85da409
2025-11-05 08:18:19,958 - DEBUG - ==>Verifying data for policy with id: 0723c5cc-666e-43aa-a21a-a58becd10d07, fqn: ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-policy-allow-all-83664239']
2025-11-05 08:18:19,958 - INFO - VN ctest-vn-07630440 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:18:19,959 - DEBUG - Verifying the vn in opserver
2025-11-05 08:18:19,959 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440 virtual network link through opserver 10.0.0.41
2025-11-05 08:18:19,959 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-05 08:18:20,254 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-05 08:18:20,313 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440?flat'}
2025-11-05 08:18:20,313 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-07630440 is found in opserver
2025-11-05 08:18:20,322 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:18:20,327 - DEBUG - VRF ids for VN ctest-vn-07630440: {}
2025-11-05 08:18:20,327 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-05 08:18:20,332 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9c07e536-bf63-489b-8e68-76c6514c2552
2025-11-05 08:18:20,344 - DEBUG - Requesting: http://10.0.0.41:8082/project/03cbd33c-1f22-4393-9b96-4b0b6e0eb3f9
2025-11-05 08:18:20,421 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,433 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,443 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/624a0e42-8e29-4a33-bf2d-ed2d8a873adc
2025-11-05 08:18:20,451 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/624a0e42-8e29-4a33-bf2d-ed2d8a873adc
2025-11-05 08:18:20,459 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/959e7796-5565-4885-93bc-e95cad8d088c
2025-11-05 08:18:20,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:18:20,468 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,478 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/624a0e42-8e29-4a33-bf2d-ed2d8a873adc
2025-11-05 08:18:20,494 - INFO - Verified VN network id 11 for VN 7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,494 - INFO - Verifications in API Server for VN ctest-vn-28340037 passed
2025-11-05 08:18:20,494 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,506 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/624a0e42-8e29-4a33-bf2d-ed2d8a873adc
2025-11-05 08:18:20,514 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/624a0e42-8e29-4a33-bf2d-ed2d8a873adc
2025-11-05 08:18:20,524 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/959e7796-5565-4885-93bc-e95cad8d088c
2025-11-05 08:18:20,535 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-28340037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-27157721', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8732937763294626310', 'uuid-lslong': '9297136689015684949'}, 'enable': 'true', 'created': '2025-11-05T08:18:18', 'last-modified': '2025-11-05T08:18:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.432733'}
2025-11-05 08:18:20,542 - DEBUG - Route Targets: ['target:64512:8000005']
2025-11-05 08:18:20,543 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-28340037 passed
2025-11-05 08:18:20,543 - DEBUG - ====Verifying policy data for ctest-vn-28340037 in API_Server ======
2025-11-05 08:18:20,543 - DEBUG - Requesting: http://10.0.0.41:8082/domains
2025-11-05 08:18:20,549 - DEBUG - Requesting: http://10.0.0.41:8082/domain/9c07e536-bf63-489b-8e68-76c6514c2552
2025-11-05 08:18:20,560 - DEBUG - Requesting: http://10.0.0.41:8082/project/03cbd33c-1f22-4393-9b96-4b0b6e0eb3f9
2025-11-05 08:18:20,628 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/7931a0a0-6ac5-4206-8106-108f7107ff55
2025-11-05 08:18:20,637 - DEBUG - ==>Verifying data for policy with id: 0723c5cc-666e-43aa-a21a-a58becd10d07, fqn: ['default-domain', 'ctest-TestBasicPolicy-27157721', 'ctest-policy-allow-all-83664239']
2025-11-05 08:18:20,637 - INFO - VN ctest-vn-28340037 Policy verification: verify_vn_policy_in_api_server, status: True
2025-11-05 08:18:20,637 - DEBUG - Verifying the vn in opserver
2025-11-05 08:18:20,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-28340037 virtual network link through opserver 10.0.0.41
2025-11-05 08:18:20,637 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks
2025-11-05 08:18:20,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-28340037', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-28340037?flat'}
2025-11-05 08:18:20,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-27157721:ctest-vn-28340037 is found in opserver
2025-11-05 08:18:20,658 - DEBUG - Do not have enough data to verify VN in agent
2025-11-05 08:18:20,664 - DEBUG - VRF ids for VN ctest-vn-28340037: {}
2025-11-05 08:18:20,748 - DEBUG - Services list from nova: [