2026-01-05 02:11:14,728 - INFO - Domain Default found not creating 2026-01-05 02:11:14,891 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36162326 not found, creating it 2026-01-05 02:11:15,352 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36162326, ID : 96bd7444-4c5d-47e3-998e-984ff780b6c7 2026-01-05 02:11:16,910 - INFO - ================================================================================ 2026-01-05 02:11:16,910 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:11:17,166 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.201': '0'}} with 2026-01-05 02:11:17,166 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:11:17,167 - INFO - 2026-01-05 02:11:17,167 - INFO - ================================================================================ 2026-01-05 02:11:17,167 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-05 02:11:17,167 - 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. 2026-01-05 02:11:17,453 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.201': '0'}} with 2026-01-05 02:11:17,453 - INFO - Initial checks done. Running the testcase now 2026-01-05 02:11:17,454 - INFO - 2026-01-05 02:11:17,837 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672, 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-36162326:ctest-vn4-68177672, 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-36162326:ctest-vn4-68177672, 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-36162326:ctest-vn4-68177672, 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] 2026-01-05 02:11:18,368 - DEBUG - Response for create_network : {'network': {'id': '93d7432e-ee50-4568-87ef-bd80216edebf', 'name': 'ctest-vn4-68177672', 'tenant_id': '96bd74444c5d47e3998e984ff780b6c7', 'project_id': '96bd74444c5d47e3998e984ff780b6c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36162326', 'ctest-vn4-68177672'], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:11:18,560 - DEBUG - Response for create_subnet : {'subnet': {'id': '23dcceb7-d4d8-4dbc-bcf8-7173433feae7', 'name': '', 'tenant_id': '96bd74444c5d47e3998e984ff780b6c7', 'network_id': '93d7432e-ee50-4568-87ef-bd80216edebf', 'ip_version': 4, 'cidr': '52.194.99.192/26', 'allocation_pools': [{'start': '52.194.99.194', 'end': '52.194.99.254'}], 'gateway_ip': '52.194.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.194.99.194', 'tags': [], 'project_id': '96bd74444c5d47e3998e984ff780b6c7'}} 2026-01-05 02:11:18,705 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e35d7934-1ec3-47d0-a1b8-67bcb20edde0', 'name': '', 'tenant_id': '96bd74444c5d47e3998e984ff780b6c7', 'network_id': '93d7432e-ee50-4568-87ef-bd80216edebf', 'ip_version': 6, 'cidr': '27d7:37f6:80b1:4ca9:bd1b:cefd::/96', 'allocation_pools': [{'start': '27d7:37f6:80b1:4ca9:bd1b:cefd:0:2', 'end': '27d7:37f6:80b1:4ca9:bd1b:cefd:ffff:fffe'}], 'gateway_ip': '27d7:37f6:80b1:4ca9:bd1b:cefd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27d7:37f6:80b1:4ca9:bd1b:cefd:0:2', 'tags': [], 'project_id': '96bd74444c5d47e3998e984ff780b6c7'}} 2026-01-05 02:11:18,723 - INFO - Created VN ctest-vn4-68177672 2026-01-05 02:11:18,773 - DEBUG - VN ctest-vn4-68177672 UUID is 93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:18,960 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '93d7432e-ee50-4568-87ef-bd80216edebf', 'name': 'ctest-vn4-68177672', 'tenant_id': '96bd74444c5d47e3998e984ff780b6c7', 'project_id': '96bd74444c5d47e3998e984ff780b6c7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['23dcceb7-d4d8-4dbc-bcf8-7173433feae7', 'e35d7934-1ec3-47d0-a1b8-67bcb20edde0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36162326', 'ctest-vn4-68177672'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36162326', 'ctest-policy1-40227499']], 'subnet_ipam': [{'subnet_cidr': '52.194.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27d7:37f6:80b1:4ca9:bd1b:cefd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-05 02:11:19,113 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-05 02:11:19,437 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-05 02:11:19,473 - DEBUG - Requesting: http://10.0.0.240:8082/domain/bd400fdf-09b6-461f-97d8-6f4290c12dcb 2026-01-05 02:11:19,485 - DEBUG - Requesting: http://10.0.0.240:8082/project/96bd7444-4c5d-47e3-998e-984ff780b6c7 2026-01-05 02:11:19,557 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,568 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,576 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:19,582 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:19,589 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/8465b16a-ed62-4e72-9d2e-a8032a0b79c0 2026-01-05 02:11:19,594 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:11:19,594 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,602 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:19,615 - INFO - Verified VN network id 11 for VN 93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,615 - INFO - Verifications in API Server for VN ctest-vn4-68177672 passed 2026-01-05 02:11:19,615 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,625 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:19,631 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:19,636 - DEBUG - Requesting: http://10.0.0.240:8082/route-target/8465b16a-ed62-4e72-9d2e-a8032a0b79c0 2026-01-05 02:11:19,647 - DEBUG - Control-node 10.0.0.240 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36162326', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10653057312413992296', 'uuid-lslong': '9795256072568495807'}, 'enable': 'true', 'created': '2026-01-05T02:11:18', 'last-modified': '2026-01-05T02:11:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.711223'} 2026-01-05 02:11:19,655 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-05 02:11:19,655 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68177672 passed 2026-01-05 02:11:19,655 - DEBUG - ====Verifying policy data for ctest-vn4-68177672 in API_Server ====== 2026-01-05 02:11:19,655 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-05 02:11:19,660 - DEBUG - Requesting: http://10.0.0.240:8082/domain/bd400fdf-09b6-461f-97d8-6f4290c12dcb 2026-01-05 02:11:19,670 - DEBUG - Requesting: http://10.0.0.240:8082/project/96bd7444-4c5d-47e3-998e-984ff780b6c7 2026-01-05 02:11:19,744 - DEBUG - Requesting: http://10.0.0.240:8082/virtual-network/93d7432e-ee50-4568-87ef-bd80216edebf 2026-01-05 02:11:19,753 - DEBUG - ==>Verifying data for policy with id: 9da01548-c6fe-4168-ac98-01b0458e21f4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36162326', 'ctest-policy1-40227499'] 2026-01-05 02:11:19,753 - INFO - VN ctest-vn4-68177672 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-05 02:11:19,753 - DEBUG - Verifying the vn in opserver 2026-01-05 02:11:19,753 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672 virtual network link through opserver 10.0.0.240 2026-01-05 02:11:19,753 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-05 02:11:20,055 - DEBUG - Requesting: http://10.0.0.240:8081/analytics/uves/virtual-networks 2026-01-05 02:11:20,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672', 'href': 'http://10.0.0.240:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672?flat'} 2026-01-05 02:11:20,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36162326:ctest-vn4-68177672 is found in opserver 2026-01-05 02:11:20,135 - DEBUG - Do not have enough data to verify VN in agent 2026-01-05 02:11:20,140 - DEBUG - VRF ids for VN ctest-vn4-68177672: {} 2026-01-05 02:11:20,141 - DEBUG - ====Verifying data for ctest-policy1-40227499 in API_Server ====== 2026-01-05 02:11:20,141 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-05 02:11:20,146 - DEBUG - Requesting: http://10.0.0.240:8082/domain/bd400fdf-09b6-461f-97d8-6f4290c12dcb 2026-01-05 02:11:20,160 - DEBUG - Requesting: http://10.0.0.240:8082/project/96bd7444-4c5d-47e3-998e-984ff780b6c7 2026-01-05 02:11:20,236 - DEBUG - Requesting: http://10.0.0.240:8082/network-policy/9da01548-c6fe-4168-ac98-01b0458e21f4 2026-01-05 02:11:20,245 - INFO - Verified policy ctest-policy1-40227499 in API Server, Result: True 2026-01-05 02:11:20,245 - INFO - Done with setup and verification, moving onto test .. 2026-01-05 02:11:20,254 - INFO - Deleting VN ctest-vn4-68177672 2026-01-05 02:11:20,381 - DEBUG - Response for deleting network () 2026-01-05 02:11:20,381 - DEBUG - Requesting: http://10.0.0.240:8082/routing-instance/b48ea935-c7fc-43f8-9ad8-6d44ef0d536b 2026-01-05 02:11:20,389 - DEBUG - Response Code: 404 2026-01-05 02:11:20,389 - DEBUG - Requesting: http://10.0.0.240:8082/domains 2026-01-05 02:11:20,394 - DEBUG - Requesting: http://10.0.0.240:8082/domain/bd400fdf-09b6-461f-97d8-6f4290c12dcb 2026-01-05 02:11:20,446 - DEBUG - Requesting: http://10.0.0.240:8082/project/96bd7444-4c5d-47e3-998e-984ff780b6c7 2026-01-05 02:11:20,513 - INFO - Validated that VN ctest-vn4-68177672 is not found in API Server 2026-01-05 02:11:20,524 - DEBUG - VN ctest-vn4-68177672 is not present in Agent 10.0.0.240 2026-01-05 02:11:20,524 - INFO - Validated that VN ctest-vn4-68177672 is not in any agent 2026-01-05 02:11:20,539 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68177672 info 2026-01-05 02:11:20,564 - INFO - Deleted policy ctest-policy1-40227499 2026-01-05 02:11:20,725 - DEBUG - policy ctest-policy1-40227499 is not found in API Server 2026-01-05 02:11:20,982 - DEBUG - No XMPP flaps were noticed during the test
2026-01-05 02:11:20,982 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2026-01-05 02:11:20,982 - INFO - -------------------------------------------------------------------------------- 2026-01-05 02:11:21,271 - DEBUG - No XMPP flaps were noticed during the test
2026-01-05 02:11:21,271 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-01-05 02:11:21,271 - INFO - -------------------------------------------------------------------------------- 2026-01-05 02:11:22,314 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-36162326, ID : 96bd7444-4c5d-47e3-998e-984ff780b6c7