2026-01-26 16:03:45,553 - INFO - Domain Default found not creating 2026-01-26 16:03:45,810 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-05802059 not found, creating it 2026-01-26 16:03:46,347 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-05802059, ID : 63b4f9d3-f45c-448f-8f1b-0e985d61a9ed 2026-01-26 16:03:48,326 - INFO - ================================================================================ 2026-01-26 16:03:48,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:03:48,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-01-26 16:03:48,612 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:03:48,612 - INFO - 2026-01-26 16:03:48,612 - INFO - ================================================================================ 2026-01-26 16:03:48,612 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:03:48,612 - 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-26 16:03:48,925 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.254': '0'}} with 2026-01-26 16:03:48,925 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:03:48,926 - INFO - 2026-01-26 16:03:49,383 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944, 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-05802059:ctest-vn4-30046944, 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-05802059:ctest-vn4-30046944, 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-05802059:ctest-vn4-30046944, 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-26 16:03:50,015 - DEBUG - Response for create_network : {'network': {'id': '45cc0374-7dbf-4b87-8d8e-fb27e7110360', 'name': 'ctest-vn4-30046944', 'tenant_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'project_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05802059', 'ctest-vn4-30046944'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:03:50,283 - DEBUG - Response for create_subnet : {'subnet': {'id': '6bb03450-2ec8-4647-9f16-93cfaaed7a68', 'name': '', 'tenant_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'network_id': '45cc0374-7dbf-4b87-8d8e-fb27e7110360', 'ip_version': 4, 'cidr': '151.100.102.192/26', 'allocation_pools': [{'start': '151.100.102.194', 'end': '151.100.102.254'}], 'gateway_ip': '151.100.102.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.100.102.194', 'tags': [], 'project_id': '63b4f9d3f45c448f8f1b0e985d61a9ed'}} 2026-01-26 16:03:50,495 - DEBUG - Response for create_subnet : {'subnet': {'id': '29d6e92d-6014-47a9-96df-b1a26c6a33b1', 'name': '', 'tenant_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'network_id': '45cc0374-7dbf-4b87-8d8e-fb27e7110360', 'ip_version': 6, 'cidr': '28dc:8936:16f4:9887:dab5:d2f4::/96', 'allocation_pools': [{'start': '28dc:8936:16f4:9887:dab5:d2f4:0:2', 'end': '28dc:8936:16f4:9887:dab5:d2f4:ffff:fffe'}], 'gateway_ip': '28dc:8936:16f4:9887:dab5:d2f4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28dc:8936:16f4:9887:dab5:d2f4:0:2', 'tags': [], 'project_id': '63b4f9d3f45c448f8f1b0e985d61a9ed'}} 2026-01-26 16:03:50,522 - INFO - Created VN ctest-vn4-30046944 2026-01-26 16:03:50,581 - DEBUG - VN ctest-vn4-30046944 UUID is 45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:50,935 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '45cc0374-7dbf-4b87-8d8e-fb27e7110360', 'name': 'ctest-vn4-30046944', 'tenant_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'project_id': '63b4f9d3f45c448f8f1b0e985d61a9ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6bb03450-2ec8-4647-9f16-93cfaaed7a68', '29d6e92d-6014-47a9-96df-b1a26c6a33b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05802059', 'ctest-vn4-30046944'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05802059', 'ctest-policy1-73946505']], 'subnet_ipam': [{'subnet_cidr': '151.100.102.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28dc:8936:16f4:9887:dab5:d2f4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:03:51,114 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-26 16:03:51,502 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-26 16:03:51,573 - DEBUG - Requesting: http://10.0.0.129:8082/domain/d03b80bc-eed4-4a30-97c0-1570544fb457 2026-01-26 16:03:51,608 - DEBUG - Requesting: http://10.0.0.129:8082/project/63b4f9d3-f45c-448f-8f1b-0e985d61a9ed 2026-01-26 16:03:51,723 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:51,747 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:51,763 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:51,773 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:51,784 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/eed3ef5b-3b8b-48cc-bfee-480b7b395a4b 2026-01-26 16:03:51,795 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:03:51,796 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:51,815 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:51,844 - INFO - Verified VN network id 11 for VN 45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:51,844 - INFO - Verifications in API Server for VN ctest-vn4-30046944 passed 2026-01-26 16:03:51,844 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:51,866 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:51,881 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:51,898 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/eed3ef5b-3b8b-48cc-bfee-480b7b395a4b 2026-01-26 16:03:51,925 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-05802059', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5029398682726779783', 'uuid-lslong': '10200366354839700320'}, 'enable': 'true', 'created': '2026-01-26T16:03:49', 'last-modified': '2026-01-26T16:03:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.045457'} 2026-01-26 16:03:51,940 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:03:51,941 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30046944 passed 2026-01-26 16:03:51,941 - DEBUG - ====Verifying policy data for ctest-vn4-30046944 in API_Server ====== 2026-01-26 16:03:51,941 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-26 16:03:51,954 - DEBUG - Requesting: http://10.0.0.129:8082/domain/d03b80bc-eed4-4a30-97c0-1570544fb457 2026-01-26 16:03:51,974 - DEBUG - Requesting: http://10.0.0.129:8082/project/63b4f9d3-f45c-448f-8f1b-0e985d61a9ed 2026-01-26 16:03:52,070 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/45cc0374-7dbf-4b87-8d8e-fb27e7110360 2026-01-26 16:03:52,093 - DEBUG - ==>Verifying data for policy with id: 6d6c35fa-0d62-430a-b626-318531c7f3b7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-05802059', 'ctest-policy1-73946505'] 2026-01-26 16:03:52,093 - INFO - VN ctest-vn4-30046944 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 16:03:52,093 - DEBUG - Verifying the vn in opserver 2026-01-26 16:03:52,093 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944 virtual network link through opserver 10.0.0.129 2026-01-26 16:03:52,093 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-01-26 16:03:52,448 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2026-01-26 16:03:52,553 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944?flat'} 2026-01-26 16:03:52,553 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-05802059:ctest-vn4-30046944 is found in opserver 2026-01-26 16:03:52,565 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 16:03:52,575 - DEBUG - VRF ids for VN ctest-vn4-30046944: {} 2026-01-26 16:03:52,575 - DEBUG - ====Verifying data for ctest-policy1-73946505 in API_Server ====== 2026-01-26 16:03:52,575 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-26 16:03:52,586 - DEBUG - Requesting: http://10.0.0.129:8082/domain/d03b80bc-eed4-4a30-97c0-1570544fb457 2026-01-26 16:03:52,616 - DEBUG - Requesting: http://10.0.0.129:8082/project/63b4f9d3-f45c-448f-8f1b-0e985d61a9ed 2026-01-26 16:03:52,714 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/6d6c35fa-0d62-430a-b626-318531c7f3b7 2026-01-26 16:03:52,725 - INFO - Verified policy ctest-policy1-73946505 in API Server, Result: True 2026-01-26 16:03:52,725 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 16:03:52,735 - INFO - Deleting VN ctest-vn4-30046944 2026-01-26 16:03:52,871 - DEBUG - Response for deleting network () 2026-01-26 16:03:52,871 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8cd1d33a-f228-48b0-bdb8-5fb9d20d8153 2026-01-26 16:03:52,875 - DEBUG - Response Code: 404 2026-01-26 16:03:52,876 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2026-01-26 16:03:52,882 - DEBUG - Requesting: http://10.0.0.129:8082/domain/d03b80bc-eed4-4a30-97c0-1570544fb457 2026-01-26 16:03:52,937 - DEBUG - Requesting: http://10.0.0.129:8082/project/63b4f9d3-f45c-448f-8f1b-0e985d61a9ed 2026-01-26 16:03:53,022 - INFO - Validated that VN ctest-vn4-30046944 is not found in API Server 2026-01-26 16:03:53,037 - DEBUG - VN ctest-vn4-30046944 is not present in Agent 10.0.0.129 2026-01-26 16:03:53,037 - INFO - Validated that VN ctest-vn4-30046944 is not in any agent 2026-01-26 16:03:53,067 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30046944 info 2026-01-26 16:03:53,117 - INFO - Deleted policy ctest-policy1-73946505 2026-01-26 16:03:53,333 - DEBUG - policy ctest-policy1-73946505 is not found in API Server 2026-01-26 16:03:53,652 - DEBUG - No XMPP flaps were noticed during the test