2025-08-25 02:15:48,387 - INFO - Domain Default found not creating
2025-08-25 02:15:48,563 - INFO - Project ctest-TestBasicPolicy-98298346 not found, creating it
2025-08-25 02:15:49,085 - INFO - Created Project:ctest-TestBasicPolicy-98298346, ID : 13dc7d80-6686-4963-98d6-9906ce064870
2025-08-25 02:15:50,838 - INFO - ================================================================================
2025-08-25 02:15:50,839 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-25 02:15:50,839 - 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-08-25 02:15:51,096 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.18': '0'}} with
2025-08-25 02:15:51,096 - INFO - Initial checks done. Running the testcase now
2025-08-25 02:15:51,096 - INFO -
2025-08-25 02:15:51,767 - DEBUG - Response for create_network : {'network': {'id': 'f830e314-0086-451d-ae80-1d2a95679046', 'name': 'ctest-vn-07395721', 'tenant_id': '13dc7d806686496398d69906ce064870', 'project_id': '13dc7d806686496398d69906ce064870', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-vn-07395721'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:15:52,013 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a86cfe1d-4a38-4ec1-9920-1059777ca244', 'name': '', 'tenant_id': '13dc7d806686496398d69906ce064870', 'network_id': 'f830e314-0086-451d-ae80-1d2a95679046', 'ip_version': 4, 'cidr': '82.65.143.0/26', 'allocation_pools': [{'start': '82.65.143.2', 'end': '82.65.143.62'}], 'gateway_ip': '82.65.143.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '82.65.143.2', 'tags': [], 'project_id': '13dc7d806686496398d69906ce064870'}}
2025-08-25 02:15:52,036 - INFO - Created VN ctest-vn-07395721
2025-08-25 02:15:52,092 - DEBUG - VN ctest-vn-07395721 UUID is f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:52,460 - DEBUG - Response for create_network : {'network': {'id': 'ffd3069b-dce2-4c05-bcc5-9b442d46d189', 'name': 'ctest-vn-60106543', 'tenant_id': '13dc7d806686496398d69906ce064870', 'project_id': '13dc7d806686496398d69906ce064870', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-vn-60106543'], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:15:52,679 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fa40114b-1394-4292-8666-0d6eb9b86c5d', 'name': '', 'tenant_id': '13dc7d806686496398d69906ce064870', 'network_id': 'ffd3069b-dce2-4c05-bcc5-9b442d46d189', 'ip_version': 4, 'cidr': '7.184.178.128/26', 'allocation_pools': [{'start': '7.184.178.130', 'end': '7.184.178.190'}], 'gateway_ip': '7.184.178.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.184.178.130', 'tags': [], 'project_id': '13dc7d806686496398d69906ce064870'}}
2025-08-25 02:15:52,704 - INFO - Created VN ctest-vn-60106543
2025-08-25 02:15:52,759 - DEBUG - VN ctest-vn-60106543 UUID is ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:52,901 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721, 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-98298346:ctest-vn-60106543, 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-08-25 02:15:53,260 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f830e314-0086-451d-ae80-1d2a95679046', 'name': 'ctest-vn-07395721', 'tenant_id': '13dc7d806686496398d69906ce064870', 'project_id': '13dc7d806686496398d69906ce064870', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a86cfe1d-4a38-4ec1-9920-1059777ca244'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-vn-07395721'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-policy-allow-all-76214026']], 'subnet_ipam': [{'subnet_cidr': '82.65.143.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:15:53,583 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ffd3069b-dce2-4c05-bcc5-9b442d46d189', 'name': 'ctest-vn-60106543', 'tenant_id': '13dc7d806686496398d69906ce064870', 'project_id': '13dc7d806686496398d69906ce064870', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fa40114b-1394-4292-8666-0d6eb9b86c5d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-vn-60106543'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-policy-allow-all-76214026']], 'subnet_ipam': [{'subnet_cidr': '7.184.178.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-25 02:15:53,739 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-25 02:15:54,052 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-25 02:15:54,093 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f
2025-08-25 02:15:54,111 - DEBUG - Requesting: http://10.0.0.23:8082/project/13dc7d80-6686-4963-98d6-9906ce064870
2025-08-25 02:15:54,199 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,217 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,236 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cee34ead-d277-4546-91ea-3a3a9c006efa
2025-08-25 02:15:54,250 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cee34ead-d277-4546-91ea-3a3a9c006efa
2025-08-25 02:15:54,262 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1042da42-add9-4b21-927f-638249b12cf8
2025-08-25 02:15:54,273 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 02:15:54,274 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,291 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cee34ead-d277-4546-91ea-3a3a9c006efa
2025-08-25 02:15:54,315 - INFO - Verified VN network id 11 for VN f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,315 - INFO - Verifications in API Server for VN ctest-vn-07395721 passed
2025-08-25 02:15:54,315 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,332 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cee34ead-d277-4546-91ea-3a3a9c006efa
2025-08-25 02:15:54,353 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cee34ead-d277-4546-91ea-3a3a9c006efa
2025-08-25 02:15:54,365 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/1042da42-add9-4b21-927f-638249b12cf8
2025-08-25 02:15:54,387 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98298346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17884043795335890205', 'uuid-lslong': '12574082228350849094'}, 'enable': 'true', 'created': '2025-08-25T02:15:51', 'last-modified': '2025-08-25T02:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.166089'}
2025-08-25 02:15:54,396 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-25 02:15:54,396 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07395721 passed
2025-08-25 02:15:54,396 - DEBUG - ====Verifying policy data for ctest-vn-07395721 in API_Server ======
2025-08-25 02:15:54,396 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-25 02:15:54,408 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f
2025-08-25 02:15:54,432 - DEBUG - Requesting: http://10.0.0.23:8082/project/13dc7d80-6686-4963-98d6-9906ce064870
2025-08-25 02:15:54,530 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/f830e314-0086-451d-ae80-1d2a95679046
2025-08-25 02:15:54,544 - DEBUG - ==>Verifying data for policy with id: 38032698-6c71-4917-83d0-33223a745937, fqn: ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-policy-allow-all-76214026']
2025-08-25 02:15:54,544 - INFO - VN ctest-vn-07395721 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 02:15:54,545 - DEBUG - Verifying the vn in opserver
2025-08-25 02:15:54,545 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721 virtual network link through opserver 10.0.0.23
2025-08-25 02:15:54,545 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-25 02:15:54,856 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-25 02:15:54,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721?flat'}
2025-08-25 02:15:54,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-07395721 is found in opserver
2025-08-25 02:15:54,941 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 02:15:54,947 - DEBUG - VRF ids for VN ctest-vn-07395721: {}
2025-08-25 02:15:54,948 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-25 02:15:54,958 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f
2025-08-25 02:15:54,975 - DEBUG - Requesting: http://10.0.0.23:8082/project/13dc7d80-6686-4963-98d6-9906ce064870
2025-08-25 02:15:55,056 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,072 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,084 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8e37777a-73ed-4576-b099-5927fc9dd05d
2025-08-25 02:15:55,094 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8e37777a-73ed-4576-b099-5927fc9dd05d
2025-08-25 02:15:55,103 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/292f0d96-428e-45d4-beb3-12494ef1b913
2025-08-25 02:15:55,112 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 02:15:55,112 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,125 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8e37777a-73ed-4576-b099-5927fc9dd05d
2025-08-25 02:15:55,143 - INFO - Verified VN network id 12 for VN ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,144 - INFO - Verifications in API Server for VN ctest-vn-60106543 passed
2025-08-25 02:15:55,144 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,158 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8e37777a-73ed-4576-b099-5927fc9dd05d
2025-08-25 02:15:55,167 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/8e37777a-73ed-4576-b099-5927fc9dd05d
2025-08-25 02:15:55,175 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/292f0d96-428e-45d4-beb3-12494ef1b913
2025-08-25 02:15:55,191 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-60106543', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-98298346', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '18434084966253087749', 'uuid-lslong': '13602448966662148489'}, 'enable': 'true', 'created': '2025-08-25T02:15:52', 'last-modified': '2025-08-25T02:15:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.694320'}
2025-08-25 02:15:55,199 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-25 02:15:55,200 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60106543 passed
2025-08-25 02:15:55,200 - DEBUG - ====Verifying policy data for ctest-vn-60106543 in API_Server ======
2025-08-25 02:15:55,200 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-08-25 02:15:55,208 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f
2025-08-25 02:15:55,223 - DEBUG - Requesting: http://10.0.0.23:8082/project/13dc7d80-6686-4963-98d6-9906ce064870
2025-08-25 02:15:55,312 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/ffd3069b-dce2-4c05-bcc5-9b442d46d189
2025-08-25 02:15:55,328 - DEBUG - ==>Verifying data for policy with id: 38032698-6c71-4917-83d0-33223a745937, fqn: ['default-domain', 'ctest-TestBasicPolicy-98298346', 'ctest-policy-allow-all-76214026']
2025-08-25 02:15:55,328 - INFO - VN ctest-vn-60106543 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-25 02:15:55,328 - DEBUG - Verifying the vn in opserver
2025-08-25 02:15:55,328 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-60106543 virtual network link through opserver 10.0.0.23
2025-08-25 02:15:55,329 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-08-25 02:15:55,343 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-60106543', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-60106543?flat'}
2025-08-25 02:15:55,343 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-98298346:ctest-vn-60106543 is found in opserver
2025-08-25 02:15:55,356 - DEBUG - Do not have enough data to verify VN in agent
2025-08-25 02:15:55,363 - DEBUG - VRF ids for VN ctest-vn-60106543: {}
2025-08-25 02:15:55,438 - DEBUG - Services list from nova: [