2025-10-08 20:10:57,389 - INFO - Domain Default found not creating
2025-10-08 20:10:57,533 - INFO - Project ctest-TestBasicPolicy-92425476 not found, creating it
2025-10-08 20:10:57,974 - INFO - Created Project:ctest-TestBasicPolicy-92425476, ID : 3548a222-73c9-4043-aa7e-7af3a92ca202
2025-10-08 20:10:59,517 - INFO - ================================================================================
2025-10-08 20:10:59,517 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-08 20:10:59,517 - 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-08 20:10:59,770 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with
2025-10-08 20:10:59,770 - INFO - Initial checks done. Running the testcase now
2025-10-08 20:10:59,771 - INFO -
2025-10-08 20:11:00,334 - DEBUG - Response for create_network : {'network': {'id': '07292482-ac1b-4d06-a8bc-0fbf00392e93', 'name': 'ctest-vn-74408006', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'project_id': '3548a22273c94043aa7e7af3a92ca202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-vn-74408006'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:11:00,535 - DEBUG - Response for create_subnet : {'subnet': {'id': '20c9b72b-d19b-411a-9abc-9fcfb33274b8', 'name': '', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'network_id': '07292482-ac1b-4d06-a8bc-0fbf00392e93', 'ip_version': 4, 'cidr': '164.108.40.192/26', 'allocation_pools': [{'start': '164.108.40.194', 'end': '164.108.40.254'}], 'gateway_ip': '164.108.40.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.108.40.194', 'tags': [], 'project_id': '3548a22273c94043aa7e7af3a92ca202'}}
2025-10-08 20:11:00,552 - INFO - Created VN ctest-vn-74408006
2025-10-08 20:11:00,605 - DEBUG - VN ctest-vn-74408006 UUID is 07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:00,920 - DEBUG - Response for create_network : {'network': {'id': '08d39651-1585-49b6-90d7-cffa58e8ce82', 'name': 'ctest-vn-43952275', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'project_id': '3548a22273c94043aa7e7af3a92ca202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-vn-43952275'], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:11:01,114 - DEBUG - Response for create_subnet : {'subnet': {'id': '9794b877-15ab-4880-b20d-6b4675123666', 'name': '', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'network_id': '08d39651-1585-49b6-90d7-cffa58e8ce82', 'ip_version': 4, 'cidr': '75.60.62.192/26', 'allocation_pools': [{'start': '75.60.62.194', 'end': '75.60.62.254'}], 'gateway_ip': '75.60.62.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.60.62.194', 'tags': [], 'project_id': '3548a22273c94043aa7e7af3a92ca202'}}
2025-10-08 20:11:01,133 - INFO - Created VN ctest-vn-43952275
2025-10-08 20:11:01,185 - DEBUG - VN ctest-vn-43952275 UUID is 08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:01,303 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006, 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-92425476:ctest-vn-43952275, 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-08 20:11:01,594 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '07292482-ac1b-4d06-a8bc-0fbf00392e93', 'name': 'ctest-vn-74408006', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'project_id': '3548a22273c94043aa7e7af3a92ca202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['20c9b72b-d19b-411a-9abc-9fcfb33274b8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-vn-74408006'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-policy-allow-all-91089650']], 'subnet_ipam': [{'subnet_cidr': '164.108.40.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:11:01,815 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08d39651-1585-49b6-90d7-cffa58e8ce82', 'name': 'ctest-vn-43952275', 'tenant_id': '3548a22273c94043aa7e7af3a92ca202', 'project_id': '3548a22273c94043aa7e7af3a92ca202', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9794b877-15ab-4880-b20d-6b4675123666'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-vn-43952275'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-policy-allow-all-91089650']], 'subnet_ipam': [{'subnet_cidr': '75.60.62.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-08 20:11:01,965 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-08 20:11:02,306 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-08 20:11:02,384 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713
2025-10-08 20:11:02,395 - DEBUG - Requesting: http://10.0.0.33:8082/project/3548a222-73c9-4043-aa7e-7af3a92ca202
2025-10-08 20:11:02,473 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,483 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,492 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/305c6c17-3c22-4c6a-8db6-cd82d9d324a2
2025-10-08 20:11:02,498 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/305c6c17-3c22-4c6a-8db6-cd82d9d324a2
2025-10-08 20:11:02,505 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a9461b8c-88ec-4a04-b11d-6140d3ad3452
2025-10-08 20:11:02,510 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 20:11:02,510 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,518 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/305c6c17-3c22-4c6a-8db6-cd82d9d324a2
2025-10-08 20:11:02,530 - INFO - Verified VN network id 11 for VN 07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,530 - INFO - Verifications in API Server for VN ctest-vn-74408006 passed
2025-10-08 20:11:02,530 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,539 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/305c6c17-3c22-4c6a-8db6-cd82d9d324a2
2025-10-08 20:11:02,545 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/305c6c17-3c22-4c6a-8db6-cd82d9d324a2
2025-10-08 20:11:02,551 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a9461b8c-88ec-4a04-b11d-6140d3ad3452
2025-10-08 20:11:02,562 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92425476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '515983775962451206', 'uuid-lslong': '12158610407010414227'}, 'enable': 'true', 'created': '2025-10-08T20:11:00', 'last-modified': '2025-10-08T20:11:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990365'}
2025-10-08 20:11:02,567 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-08 20:11:02,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74408006 passed
2025-10-08 20:11:02,568 - DEBUG - ====Verifying policy data for ctest-vn-74408006 in API_Server ======
2025-10-08 20:11:02,568 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-08 20:11:02,573 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713
2025-10-08 20:11:02,583 - DEBUG - Requesting: http://10.0.0.33:8082/project/3548a222-73c9-4043-aa7e-7af3a92ca202
2025-10-08 20:11:02,655 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/07292482-ac1b-4d06-a8bc-0fbf00392e93
2025-10-08 20:11:02,665 - DEBUG - ==>Verifying data for policy with id: dcaa2624-06e9-45a1-9b19-0b439a92414b, fqn: ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-policy-allow-all-91089650']
2025-10-08 20:11:02,665 - INFO - VN ctest-vn-74408006 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 20:11:02,665 - DEBUG - Verifying the vn in opserver
2025-10-08 20:11:02,665 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006 virtual network link through opserver 10.0.0.33
2025-10-08 20:11:02,665 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-08 20:11:02,995 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-08 20:11:03,048 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006?flat'}
2025-10-08 20:11:03,048 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-74408006 is found in opserver
2025-10-08 20:11:03,057 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 20:11:03,061 - DEBUG - VRF ids for VN ctest-vn-74408006: {}
2025-10-08 20:11:03,061 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-08 20:11:03,066 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713
2025-10-08 20:11:03,077 - DEBUG - Requesting: http://10.0.0.33:8082/project/3548a222-73c9-4043-aa7e-7af3a92ca202
2025-10-08 20:11:03,146 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,157 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,165 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4dbf50c9-9250-437d-8340-efd3735ba32d
2025-10-08 20:11:03,171 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4dbf50c9-9250-437d-8340-efd3735ba32d
2025-10-08 20:11:03,177 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a84dd6b5-e0cc-491a-a174-03e28c4ad0ba
2025-10-08 20:11:03,183 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 20:11:03,183 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,191 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4dbf50c9-9250-437d-8340-efd3735ba32d
2025-10-08 20:11:03,203 - INFO - Verified VN network id 12 for VN 08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,204 - INFO - Verifications in API Server for VN ctest-vn-43952275 passed
2025-10-08 20:11:03,204 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,212 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4dbf50c9-9250-437d-8340-efd3735ba32d
2025-10-08 20:11:03,218 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4dbf50c9-9250-437d-8340-efd3735ba32d
2025-10-08 20:11:03,224 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a84dd6b5-e0cc-491a-a174-03e28c4ad0ba
2025-10-08 20:11:03,234 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-43952275', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-92425476', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '636017247386945974', 'uuid-lslong': '10437039335594839682'}, 'enable': 'true', 'created': '2025-10-08T20:11:00', 'last-modified': '2025-10-08T20:11:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.439593'}
2025-10-08 20:11:03,239 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-08 20:11:03,239 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-43952275 passed
2025-10-08 20:11:03,240 - DEBUG - ====Verifying policy data for ctest-vn-43952275 in API_Server ======
2025-10-08 20:11:03,240 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-10-08 20:11:03,244 - DEBUG - Requesting: http://10.0.0.33:8082/domain/20407c53-86fd-41b5-b27a-64afa268f713
2025-10-08 20:11:03,253 - DEBUG - Requesting: http://10.0.0.33:8082/project/3548a222-73c9-4043-aa7e-7af3a92ca202
2025-10-08 20:11:03,325 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/08d39651-1585-49b6-90d7-cffa58e8ce82
2025-10-08 20:11:03,333 - DEBUG - ==>Verifying data for policy with id: dcaa2624-06e9-45a1-9b19-0b439a92414b, fqn: ['default-domain', 'ctest-TestBasicPolicy-92425476', 'ctest-policy-allow-all-91089650']
2025-10-08 20:11:03,333 - INFO - VN ctest-vn-43952275 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-08 20:11:03,333 - DEBUG - Verifying the vn in opserver
2025-10-08 20:11:03,334 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-43952275 virtual network link through opserver 10.0.0.33
2025-10-08 20:11:03,334 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-10-08 20:11:03,342 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-43952275', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-43952275?flat'}
2025-10-08 20:11:03,342 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-92425476:ctest-vn-43952275 is found in opserver
2025-10-08 20:11:03,350 - DEBUG - Do not have enough data to verify VN in agent
2025-10-08 20:11:03,354 - DEBUG - VRF ids for VN ctest-vn-43952275: {}
2025-10-08 20:11:03,433 - DEBUG - Services list from nova: [