2025-07-07 11:36:07,056 - INFO - Domain Default found not creating
2025-07-07 11:36:07,210 - INFO - Project ctest-TestBasicPolicy-80178253 not found, creating it
2025-07-07 11:36:07,701 - INFO - Created Project:ctest-TestBasicPolicy-80178253, ID : 06f4890c-9581-441b-9452-8a6dba541cbd
2025-07-07 11:36:09,347 - INFO - ================================================================================
2025-07-07 11:36:09,348 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-07 11:36:09,348 - 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-07-07 11:36:09,601 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-07-07 11:36:09,601 - INFO - Initial checks done. Running the testcase now
2025-07-07 11:36:09,601 - INFO -
2025-07-07 11:36:10,222 - DEBUG - Response for create_network : {'network': {'id': '12318225-a2e0-4313-a1f1-d2da32dc8e87', 'name': 'ctest-vn-93693176', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'project_id': '06f4890c9581441b94528a6dba541cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-vn-93693176'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 11:36:10,405 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f0cb22cb-a994-46c2-9772-448e873f0237', 'name': '', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'network_id': '12318225-a2e0-4313-a1f1-d2da32dc8e87', 'ip_version': 4, 'cidr': '197.115.51.192/26', 'allocation_pools': [{'start': '197.115.51.194', 'end': '197.115.51.254'}], 'gateway_ip': '197.115.51.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '197.115.51.194', 'tags': [], 'project_id': '06f4890c9581441b94528a6dba541cbd'}}
2025-07-07 11:36:10,426 - INFO - Created VN ctest-vn-93693176
2025-07-07 11:36:10,483 - DEBUG - VN ctest-vn-93693176 UUID is 12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:10,790 - DEBUG - Response for create_network : {'network': {'id': 'e775d759-16d9-4cb5-b2bf-4a704915eac6', 'name': 'ctest-vn-16672967', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'project_id': '06f4890c9581441b94528a6dba541cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-vn-16672967'], 'port_security_enabled': True, 'description': ''}}
2025-07-07 11:36:10,994 - DEBUG - Response for create_subnet : {'subnet': {'id': '906e007a-ccfc-4ae2-bd6e-67376fa2e8f2', 'name': '', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'network_id': 'e775d759-16d9-4cb5-b2bf-4a704915eac6', 'ip_version': 4, 'cidr': '66.36.83.128/26', 'allocation_pools': [{'start': '66.36.83.130', 'end': '66.36.83.190'}], 'gateway_ip': '66.36.83.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '66.36.83.130', 'tags': [], 'project_id': '06f4890c9581441b94528a6dba541cbd'}}
2025-07-07 11:36:11,015 - INFO - Created VN ctest-vn-16672967
2025-07-07 11:36:11,067 - DEBUG - VN ctest-vn-16672967 UUID is e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:11,182 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176, 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-80178253:ctest-vn-16672967, 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-07-07 11:36:11,498 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12318225-a2e0-4313-a1f1-d2da32dc8e87', 'name': 'ctest-vn-93693176', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'project_id': '06f4890c9581441b94528a6dba541cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f0cb22cb-a994-46c2-9772-448e873f0237'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-vn-93693176'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-policy-allow-all-74381659']], 'subnet_ipam': [{'subnet_cidr': '197.115.51.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 11:36:11,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e775d759-16d9-4cb5-b2bf-4a704915eac6', 'name': 'ctest-vn-16672967', 'tenant_id': '06f4890c9581441b94528a6dba541cbd', 'project_id': '06f4890c9581441b94528a6dba541cbd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['906e007a-ccfc-4ae2-bd6e-67376fa2e8f2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-vn-16672967'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-policy-allow-all-74381659']], 'subnet_ipam': [{'subnet_cidr': '66.36.83.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-07 11:36:11,955 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-07 11:36:12,296 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-07 11:36:12,324 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1f714d91-ebfb-4947-ae83-6e64b1d1286b
2025-07-07 11:36:12,338 - DEBUG - Requesting: http://10.0.0.254:8082/project/06f4890c-9581-441b-9452-8a6dba541cbd
2025-07-07 11:36:12,413 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,425 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,437 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e6ad268-4cfc-4d5c-a4b9-e271c7002a23
2025-07-07 11:36:12,445 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e6ad268-4cfc-4d5c-a4b9-e271c7002a23
2025-07-07 11:36:12,453 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df4c2a7c-c3ec-447b-9e32-55ac8d6b5289
2025-07-07 11:36:12,460 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 11:36:12,461 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,471 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e6ad268-4cfc-4d5c-a4b9-e271c7002a23
2025-07-07 11:36:12,489 - INFO - Verified VN network id 8 for VN 12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,489 - INFO - Verifications in API Server for VN ctest-vn-93693176 passed
2025-07-07 11:36:12,489 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,499 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e6ad268-4cfc-4d5c-a4b9-e271c7002a23
2025-07-07 11:36:12,508 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/1e6ad268-4cfc-4d5c-a4b9-e271c7002a23
2025-07-07 11:36:12,516 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/df4c2a7c-c3ec-447b-9e32-55ac8d6b5289
2025-07-07 11:36:12,529 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80178253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1310972064699532051', 'uuid-lslong': '11669339944091684487'}, 'enable': 'true', 'created': '2025-07-07T11:36:10', 'last-modified': '2025-07-07T11:36:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.069650'}
2025-07-07 11:36:12,537 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-07 11:36:12,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-93693176 passed
2025-07-07 11:36:12,537 - DEBUG - ====Verifying policy data for ctest-vn-93693176 in API_Server ======
2025-07-07 11:36:12,537 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-07 11:36:12,544 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1f714d91-ebfb-4947-ae83-6e64b1d1286b
2025-07-07 11:36:12,557 - DEBUG - Requesting: http://10.0.0.254:8082/project/06f4890c-9581-441b-9452-8a6dba541cbd
2025-07-07 11:36:12,632 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/12318225-a2e0-4313-a1f1-d2da32dc8e87
2025-07-07 11:36:12,643 - DEBUG - ==>Verifying data for policy with id: f3d0cbee-34ed-44a6-8f59-a7bd150a36b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-policy-allow-all-74381659']
2025-07-07 11:36:12,643 - INFO - VN ctest-vn-93693176 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 11:36:12,643 - DEBUG - Verifying the vn in opserver
2025-07-07 11:36:12,643 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176 virtual network link through opserver 10.0.0.254
2025-07-07 11:36:12,643 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-07 11:36:12,976 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-07 11:36:13,032 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176?flat'}
2025-07-07 11:36:13,032 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-93693176 is found in opserver
2025-07-07 11:36:13,046 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 11:36:13,051 - DEBUG - VRF ids for VN ctest-vn-93693176: {}
2025-07-07 11:36:13,051 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-07 11:36:13,057 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1f714d91-ebfb-4947-ae83-6e64b1d1286b
2025-07-07 11:36:13,069 - DEBUG - Requesting: http://10.0.0.254:8082/project/06f4890c-9581-441b-9452-8a6dba541cbd
2025-07-07 11:36:13,146 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,159 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,170 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c2f9970-412a-4f6f-b9b4-7ee7a919fdc8
2025-07-07 11:36:13,177 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c2f9970-412a-4f6f-b9b4-7ee7a919fdc8
2025-07-07 11:36:13,183 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/83d049bf-d6e4-453d-8a80-472821741b5d
2025-07-07 11:36:13,189 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 11:36:13,189 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,199 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c2f9970-412a-4f6f-b9b4-7ee7a919fdc8
2025-07-07 11:36:13,223 - INFO - Verified VN network id 9 for VN e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,223 - INFO - Verifications in API Server for VN ctest-vn-16672967 passed
2025-07-07 11:36:13,223 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,234 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c2f9970-412a-4f6f-b9b4-7ee7a919fdc8
2025-07-07 11:36:13,241 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4c2f9970-412a-4f6f-b9b4-7ee7a919fdc8
2025-07-07 11:36:13,248 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/83d049bf-d6e4-453d-8a80-472821741b5d
2025-07-07 11:36:13,264 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-16672967', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-80178253', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16678473572671900853', 'uuid-lslong': '12880095305425873606'}, 'enable': 'true', 'created': '2025-07-07T11:36:10', 'last-modified': '2025-07-07T11:36:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.538697'}
2025-07-07 11:36:13,271 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-07 11:36:13,271 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-16672967 passed
2025-07-07 11:36:13,271 - DEBUG - ====Verifying policy data for ctest-vn-16672967 in API_Server ======
2025-07-07 11:36:13,271 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-07-07 11:36:13,277 - DEBUG - Requesting: http://10.0.0.254:8082/domain/1f714d91-ebfb-4947-ae83-6e64b1d1286b
2025-07-07 11:36:13,290 - DEBUG - Requesting: http://10.0.0.254:8082/project/06f4890c-9581-441b-9452-8a6dba541cbd
2025-07-07 11:36:13,364 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/e775d759-16d9-4cb5-b2bf-4a704915eac6
2025-07-07 11:36:13,375 - DEBUG - ==>Verifying data for policy with id: f3d0cbee-34ed-44a6-8f59-a7bd150a36b7, fqn: ['default-domain', 'ctest-TestBasicPolicy-80178253', 'ctest-policy-allow-all-74381659']
2025-07-07 11:36:13,375 - INFO - VN ctest-vn-16672967 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-07 11:36:13,375 - DEBUG - Verifying the vn in opserver
2025-07-07 11:36:13,375 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-16672967 virtual network link through opserver 10.0.0.254
2025-07-07 11:36:13,375 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-07-07 11:36:13,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-16672967', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-16672967?flat'}
2025-07-07 11:36:13,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-80178253:ctest-vn-16672967 is found in opserver
2025-07-07 11:36:13,400 - DEBUG - Do not have enough data to verify VN in agent
2025-07-07 11:36:13,406 - DEBUG - VRF ids for VN ctest-vn-16672967: {}
2025-07-07 11:36:13,464 - DEBUG - Services list from nova: [