2025-07-17 02:26:11,170 - INFO - Domain Default found not creating
2025-07-17 02:26:11,351 - INFO - Project ctest-TestBasicPolicy-42779990 not found, creating it
2025-07-17 02:26:11,827 - INFO - Created Project:ctest-TestBasicPolicy-42779990, ID : 9a7712a8-6071-40dc-8f3c-a60eccf2b4f0
2025-07-17 02:26:13,323 - INFO - ================================================================================
2025-07-17 02:26:13,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-17 02:26:13,323 - 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-17 02:26:13,586 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.201': '0'}} with
2025-07-17 02:26:13,586 - INFO - Initial checks done. Running the testcase now
2025-07-17 02:26:13,586 - INFO -
2025-07-17 02:26:14,188 - DEBUG - Response for create_network : {'network': {'id': 'd8932d37-a38d-4179-a1db-1a3c57faf6bf', 'name': 'ctest-vn-79016018', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-vn-79016018'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:26:14,392 - DEBUG - Response for create_subnet : {'subnet': {'id': '80acfe4b-4bd5-409d-b10a-71d566869457', 'name': '', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'network_id': 'd8932d37-a38d-4179-a1db-1a3c57faf6bf', 'ip_version': 4, 'cidr': '114.254.69.64/26', 'allocation_pools': [{'start': '114.254.69.66', 'end': '114.254.69.126'}], 'gateway_ip': '114.254.69.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '114.254.69.66', 'tags': [], 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0'}}
2025-07-17 02:26:14,410 - INFO - Created VN ctest-vn-79016018
2025-07-17 02:26:14,469 - DEBUG - VN ctest-vn-79016018 UUID is d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:14,766 - DEBUG - Response for create_network : {'network': {'id': '631a79d4-27c6-46ab-959a-5bcc5d8db309', 'name': 'ctest-vn-31844790', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-vn-31844790'], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:26:14,983 - DEBUG - Response for create_subnet : {'subnet': {'id': '5e512a91-46a1-48ff-a82b-f1ca9f040cf0', 'name': '', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'network_id': '631a79d4-27c6-46ab-959a-5bcc5d8db309', 'ip_version': 4, 'cidr': '212.102.193.192/26', 'allocation_pools': [{'start': '212.102.193.194', 'end': '212.102.193.254'}], 'gateway_ip': '212.102.193.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.102.193.194', 'tags': [], 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0'}}
2025-07-17 02:26:15,003 - INFO - Created VN ctest-vn-31844790
2025-07-17 02:26:15,057 - DEBUG - VN ctest-vn-31844790 UUID is 631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:15,263 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018, 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-42779990:ctest-vn-31844790, 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-17 02:26:15,565 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd8932d37-a38d-4179-a1db-1a3c57faf6bf', 'name': 'ctest-vn-79016018', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80acfe4b-4bd5-409d-b10a-71d566869457'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-vn-79016018'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-policy-allow-all-48316024']], 'subnet_ipam': [{'subnet_cidr': '114.254.69.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:26:15,790 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '631a79d4-27c6-46ab-959a-5bcc5d8db309', 'name': 'ctest-vn-31844790', 'tenant_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'project_id': '9a7712a8607140dc8f3ca60eccf2b4f0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5e512a91-46a1-48ff-a82b-f1ca9f040cf0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-vn-31844790'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-policy-allow-all-48316024']], 'subnet_ipam': [{'subnet_cidr': '212.102.193.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-17 02:26:15,960 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 02:26:16,254 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 02:26:16,284 - DEBUG - Requesting: http://10.0.0.33:8082/domain/31eeaee1-41bd-4342-b367-0fef12138452
2025-07-17 02:26:16,299 - DEBUG - Requesting: http://10.0.0.33:8082/project/9a7712a8-6071-40dc-8f3c-a60eccf2b4f0
2025-07-17 02:26:16,379 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,393 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,404 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/637db845-e8f4-4185-8a44-b2465d3daec3
2025-07-17 02:26:16,413 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/637db845-e8f4-4185-8a44-b2465d3daec3
2025-07-17 02:26:16,422 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3ef712c5-1b73-422a-b5fb-048ad9707267
2025-07-17 02:26:16,431 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:26:16,431 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,443 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/637db845-e8f4-4185-8a44-b2465d3daec3
2025-07-17 02:26:16,464 - INFO - Verified VN network id 8 for VN d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,464 - INFO - Verifications in API Server for VN ctest-vn-79016018 passed
2025-07-17 02:26:16,464 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,477 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/637db845-e8f4-4185-8a44-b2465d3daec3
2025-07-17 02:26:16,485 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/637db845-e8f4-4185-8a44-b2465d3daec3
2025-07-17 02:26:16,493 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/3ef712c5-1b73-422a-b5fb-048ad9707267
2025-07-17 02:26:16,507 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42779990', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15605866850759295353', 'uuid-lslong': '11662944506482456255'}, 'enable': 'true', 'created': '2025-07-17T02:26:14', 'last-modified': '2025-07-17T02:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.961869'}
2025-07-17 02:26:16,513 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-17 02:26:16,514 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-79016018 passed
2025-07-17 02:26:16,514 - DEBUG - ====Verifying policy data for ctest-vn-79016018 in API_Server ======
2025-07-17 02:26:16,514 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 02:26:16,520 - DEBUG - Requesting: http://10.0.0.33:8082/domain/31eeaee1-41bd-4342-b367-0fef12138452
2025-07-17 02:26:16,537 - DEBUG - Requesting: http://10.0.0.33:8082/project/9a7712a8-6071-40dc-8f3c-a60eccf2b4f0
2025-07-17 02:26:16,616 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/d8932d37-a38d-4179-a1db-1a3c57faf6bf
2025-07-17 02:26:16,627 - DEBUG - ==>Verifying data for policy with id: c6ee6989-9c83-40b0-93dd-c8f6a3a64162, fqn: ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-policy-allow-all-48316024']
2025-07-17 02:26:16,627 - INFO - VN ctest-vn-79016018 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:26:16,627 - DEBUG - Verifying the vn in opserver
2025-07-17 02:26:16,627 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018 virtual network link through opserver 10.0.0.33
2025-07-17 02:26:16,627 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 02:26:16,917 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 02:26:16,971 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018?flat'}
2025-07-17 02:26:16,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-79016018 is found in opserver
2025-07-17 02:26:16,985 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:26:16,990 - DEBUG - VRF ids for VN ctest-vn-79016018: {}
2025-07-17 02:26:16,990 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 02:26:16,997 - DEBUG - Requesting: http://10.0.0.33:8082/domain/31eeaee1-41bd-4342-b367-0fef12138452
2025-07-17 02:26:17,010 - DEBUG - Requesting: http://10.0.0.33:8082/project/9a7712a8-6071-40dc-8f3c-a60eccf2b4f0
2025-07-17 02:26:17,086 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,099 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,111 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74def40f-5f3e-4d86-9043-9b13e97196c1
2025-07-17 02:26:17,121 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74def40f-5f3e-4d86-9043-9b13e97196c1
2025-07-17 02:26:17,131 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6750d25-f5bb-48d2-8f9c-723b73e1f202
2025-07-17 02:26:17,139 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:26:17,139 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,150 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74def40f-5f3e-4d86-9043-9b13e97196c1
2025-07-17 02:26:17,165 - INFO - Verified VN network id 9 for VN 631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,165 - INFO - Verifications in API Server for VN ctest-vn-31844790 passed
2025-07-17 02:26:17,165 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,174 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74def40f-5f3e-4d86-9043-9b13e97196c1
2025-07-17 02:26:17,182 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/74def40f-5f3e-4d86-9043-9b13e97196c1
2025-07-17 02:26:17,190 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b6750d25-f5bb-48d2-8f9c-723b73e1f202
2025-07-17 02:26:17,203 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-31844790', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-42779990', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7141154111256676011', 'uuid-lslong': '10780029591365726985'}, 'enable': 'true', 'created': '2025-07-17T02:26:14', 'last-modified': '2025-07-17T02:26:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.433869'}
2025-07-17 02:26:17,210 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-17 02:26:17,210 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-31844790 passed
2025-07-17 02:26:17,211 - DEBUG - ====Verifying policy data for ctest-vn-31844790 in API_Server ======
2025-07-17 02:26:17,211 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-07-17 02:26:17,218 - DEBUG - Requesting: http://10.0.0.33:8082/domain/31eeaee1-41bd-4342-b367-0fef12138452
2025-07-17 02:26:17,231 - DEBUG - Requesting: http://10.0.0.33:8082/project/9a7712a8-6071-40dc-8f3c-a60eccf2b4f0
2025-07-17 02:26:17,307 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/631a79d4-27c6-46ab-959a-5bcc5d8db309
2025-07-17 02:26:17,319 - DEBUG - ==>Verifying data for policy with id: c6ee6989-9c83-40b0-93dd-c8f6a3a64162, fqn: ['default-domain', 'ctest-TestBasicPolicy-42779990', 'ctest-policy-allow-all-48316024']
2025-07-17 02:26:17,319 - INFO - VN ctest-vn-31844790 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-17 02:26:17,319 - DEBUG - Verifying the vn in opserver
2025-07-17 02:26:17,319 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-31844790 virtual network link through opserver 10.0.0.33
2025-07-17 02:26:17,319 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-07-17 02:26:17,330 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-31844790', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-31844790?flat'}
2025-07-17 02:26:17,330 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-42779990:ctest-vn-31844790 is found in opserver
2025-07-17 02:26:17,341 - DEBUG - Do not have enough data to verify VN in agent
2025-07-17 02:26:17,347 - DEBUG - VRF ids for VN ctest-vn-31844790: {}
2025-07-17 02:26:17,402 - DEBUG - Services list from nova: [