2025-08-11 20:53:02,116 - INFO - Domain Default found not creating 2025-08-11 20:53:02,255 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67608118 not found, creating it 2025-08-11 20:53:02,725 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67608118, ID : 8b3a60b8-9bc9-4295-838d-d928a5986afb 2025-08-11 20:53:04,059 - INFO - ================================================================================ 2025-08-11 20:53:04,059 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 20:53:04,319 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-11 20:53:04,319 - INFO - Initial checks done. Running the testcase now 2025-08-11 20:53:04,319 - INFO - 2025-08-11 20:53:04,319 - INFO - ================================================================================ 2025-08-11 20:53:04,319 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 20:53:04,319 - INFO - TEST DESCRIPTION : This tests the following scenarios. 1. Test to validate that policy removal will fail when it referenced with VN. 2. validate vn_policy data in api-s against quantum-vn data, when created and unbind policy from VN thru quantum APIs. 3. validate policy data in api-s against quantum-policy data, when created and deleted thru quantum APIs. 2025-08-11 20:53:04,606 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-08-11 20:53:04,606 - INFO - Initial checks done. Running the testcase now 2025-08-11 20:53:04,606 - INFO - 2025-08-11 20:53:04,947 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476, 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-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476, 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, rule_sequence = None, rule_uuid = None, direction = <>, protocol = 58, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476, 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-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476, 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-11 20:53:05,441 - DEBUG - Response for create_network : {'network': {'id': '3b68fe57-dfae-4adf-91c8-d99047ffe57e', 'name': 'ctest-vn4-11581476', 'tenant_id': '8b3a60b89bc94295838dd928a5986afb', 'project_id': '8b3a60b89bc94295838dd928a5986afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67608118', 'ctest-vn4-11581476'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 20:53:05,603 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cebb58ce-6a7a-4df8-b8ab-018f453f1608', 'name': '', 'tenant_id': '8b3a60b89bc94295838dd928a5986afb', 'network_id': '3b68fe57-dfae-4adf-91c8-d99047ffe57e', 'ip_version': 4, 'cidr': '51.194.71.192/26', 'allocation_pools': [{'start': '51.194.71.194', 'end': '51.194.71.254'}], 'gateway_ip': '51.194.71.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '51.194.71.194', 'tags': [], 'project_id': '8b3a60b89bc94295838dd928a5986afb'}} 2025-08-11 20:53:05,750 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bccd164-eb89-4335-991e-fd5deceb150d', 'name': '', 'tenant_id': '8b3a60b89bc94295838dd928a5986afb', 'network_id': '3b68fe57-dfae-4adf-91c8-d99047ffe57e', 'ip_version': 6, 'cidr': '21a0:ad3d:2212:c15a:1adf:2d20::/96', 'allocation_pools': [{'start': '21a0:ad3d:2212:c15a:1adf:2d20:0:2', 'end': '21a0:ad3d:2212:c15a:1adf:2d20:ffff:fffe'}], 'gateway_ip': '21a0:ad3d:2212:c15a:1adf:2d20:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21a0:ad3d:2212:c15a:1adf:2d20:0:2', 'tags': [], 'project_id': '8b3a60b89bc94295838dd928a5986afb'}} 2025-08-11 20:53:05,767 - INFO - Created VN ctest-vn4-11581476 2025-08-11 20:53:05,817 - DEBUG - VN ctest-vn4-11581476 UUID is 3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,022 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3b68fe57-dfae-4adf-91c8-d99047ffe57e', 'name': 'ctest-vn4-11581476', 'tenant_id': '8b3a60b89bc94295838dd928a5986afb', 'project_id': '8b3a60b89bc94295838dd928a5986afb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cebb58ce-6a7a-4df8-b8ab-018f453f1608', '2bccd164-eb89-4335-991e-fd5deceb150d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67608118', 'ctest-vn4-11581476'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67608118', 'ctest-policy1-44160196']], 'subnet_ipam': [{'subnet_cidr': '51.194.71.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21a0:ad3d:2212:c15a:1adf:2d20::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 20:53:06,173 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 20:53:06,463 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 20:53:06,489 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c 2025-08-11 20:53:06,501 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b3a60b8-9bc9-4295-838d-d928a5986afb 2025-08-11 20:53:06,570 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,592 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:06,600 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:06,607 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fac605c-3dd0-43ed-8768-9d2f15cb274e 2025-08-11 20:53:06,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 20:53:06,613 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,623 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:06,637 - INFO - Verified VN network id 11 for VN 3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,637 - INFO - Verifications in API Server for VN ctest-vn4-11581476 passed 2025-08-11 20:53:06,637 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,647 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:06,654 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:06,661 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6fac605c-3dd0-43ed-8768-9d2f15cb274e 2025-08-11 20:53:06,672 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67608118', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4280951099184007903', 'uuid-lslong': '10504885344548152702'}, 'enable': 'true', 'created': '2025-08-11T20:53:05', 'last-modified': '2025-08-11T20:53:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687925'} 2025-08-11 20:53:06,679 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 20:53:06,679 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11581476 passed 2025-08-11 20:53:06,679 - DEBUG - ====Verifying policy data for ctest-vn4-11581476 in API_Server ====== 2025-08-11 20:53:06,679 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 20:53:06,684 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c 2025-08-11 20:53:06,696 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b3a60b8-9bc9-4295-838d-d928a5986afb 2025-08-11 20:53:06,767 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3b68fe57-dfae-4adf-91c8-d99047ffe57e 2025-08-11 20:53:06,777 - DEBUG - ==>Verifying data for policy with id: 87ab3393-7653-467b-94fa-3a1f225dd561, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67608118', 'ctest-policy1-44160196'] 2025-08-11 20:53:06,777 - INFO - VN ctest-vn4-11581476 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 20:53:06,777 - DEBUG - Verifying the vn in opserver 2025-08-11 20:53:06,777 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476 virtual network link through opserver 10.0.0.38 2025-08-11 20:53:06,777 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 20:53:07,067 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 20:53:07,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476?flat'} 2025-08-11 20:53:07,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67608118:ctest-vn4-11581476 is found in opserver 2025-08-11 20:53:07,131 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 20:53:07,135 - DEBUG - VRF ids for VN ctest-vn4-11581476: {} 2025-08-11 20:53:07,136 - DEBUG - ====Verifying data for ctest-policy1-44160196 in API_Server ====== 2025-08-11 20:53:07,136 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 20:53:07,141 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c 2025-08-11 20:53:07,152 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b3a60b8-9bc9-4295-838d-d928a5986afb 2025-08-11 20:53:07,224 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/87ab3393-7653-467b-94fa-3a1f225dd561 2025-08-11 20:53:07,234 - INFO - Verified policy ctest-policy1-44160196 in API Server, Result: True 2025-08-11 20:53:07,234 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 20:53:07,242 - INFO - Deleting VN ctest-vn4-11581476 2025-08-11 20:53:07,362 - DEBUG - Response for deleting network () 2025-08-11 20:53:07,362 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9d710aee-fe63-4a89-8159-5788bed73f53 2025-08-11 20:53:07,367 - DEBUG - Response Code: 404 2025-08-11 20:53:07,367 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-11 20:53:07,372 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1296c912-2bce-4e84-8f34-bf42d334220c 2025-08-11 20:53:07,427 - DEBUG - Requesting: http://10.0.0.38:8082/project/8b3a60b8-9bc9-4295-838d-d928a5986afb 2025-08-11 20:53:07,496 - INFO - Validated that VN ctest-vn4-11581476 is not found in API Server 2025-08-11 20:53:07,507 - DEBUG - VN ctest-vn4-11581476 is not present in Agent 10.0.0.38 2025-08-11 20:53:07,507 - INFO - Validated that VN ctest-vn4-11581476 is not in any agent 2025-08-11 20:53:07,521 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11581476 info 2025-08-11 20:53:07,545 - INFO - Deleted policy ctest-policy1-44160196 2025-08-11 20:53:07,709 - DEBUG - policy ctest-policy1-44160196 is not found in API Server 2025-08-11 20:53:07,962 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 20:53:07,962 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-11 20:53:07,962 - INFO - -------------------------------------------------------------------------------- 2025-08-11 20:53:08,274 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 20:53:08,275 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-11 20:53:08,275 - INFO - -------------------------------------------------------------------------------- 2025-08-11 20:53:08,941 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67608118, ID : 8b3a60b8-9bc9-4295-838d-d928a5986afb