2026-04-23 21:43:35,686 - INFO - Domain Default found not creating 2026-04-23 21:43:35,870 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-36085683 not found, creating it 2026-04-23 21:43:36,321 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-36085683, ID : ccca9290-d7ea-400e-8376-92aca3f2fc90 2026-04-23 21:43:37,872 - INFO - ================================================================================ 2026-04-23 21:43:37,872 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 21:43:38,128 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-23 21:43:38,128 - INFO - Initial checks done. Running the testcase now 2026-04-23 21:43:38,128 - INFO - 2026-04-23 21:43:38,128 - INFO - ================================================================================ 2026-04-23 21:43:38,128 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-23 21:43:38,128 - 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-04-23 21:43:38,420 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-04-23 21:43:38,420 - INFO - Initial checks done. Running the testcase now 2026-04-23 21:43:38,420 - INFO - 2026-04-23 21:43:38,784 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915, 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-36085683:ctest-vn4-11004915, 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-36085683:ctest-vn4-11004915, 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-36085683:ctest-vn4-11004915, 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-04-23 21:43:39,304 - DEBUG - Response for create_network : {'network': {'id': '6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a', 'name': 'ctest-vn4-11004915', 'tenant_id': 'ccca9290d7ea400e837692aca3f2fc90', 'project_id': 'ccca9290d7ea400e837692aca3f2fc90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36085683', 'ctest-vn4-11004915'], 'port_security_enabled': True, 'description': ''}} 2026-04-23 21:43:39,489 - DEBUG - Response for create_subnet : {'subnet': {'id': '5000eef8-1114-425e-b85f-51744af6326c', 'name': '', 'tenant_id': 'ccca9290d7ea400e837692aca3f2fc90', 'network_id': '6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a', 'ip_version': 4, 'cidr': '171.71.96.192/26', 'allocation_pools': [{'start': '171.71.96.194', 'end': '171.71.96.254'}], 'gateway_ip': '171.71.96.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.71.96.194', 'tags': [], 'project_id': 'ccca9290d7ea400e837692aca3f2fc90'}} 2026-04-23 21:43:39,693 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a848fa27-b08e-48be-bf89-f63394575e2b', 'name': '', 'tenant_id': 'ccca9290d7ea400e837692aca3f2fc90', 'network_id': '6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a', 'ip_version': 6, 'cidr': '398c:bb4b:b307:123f:8f34:4aa0::/96', 'allocation_pools': [{'start': '398c:bb4b:b307:123f:8f34:4aa0:0:2', 'end': '398c:bb4b:b307:123f:8f34:4aa0:ffff:fffe'}], 'gateway_ip': '398c:bb4b:b307:123f:8f34:4aa0:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '398c:bb4b:b307:123f:8f34:4aa0:0:2', 'tags': [], 'project_id': 'ccca9290d7ea400e837692aca3f2fc90'}} 2026-04-23 21:43:39,714 - INFO - Created VN ctest-vn4-11004915 2026-04-23 21:43:39,767 - DEBUG - VN ctest-vn4-11004915 UUID is 6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:39,988 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a', 'name': 'ctest-vn4-11004915', 'tenant_id': 'ccca9290d7ea400e837692aca3f2fc90', 'project_id': 'ccca9290d7ea400e837692aca3f2fc90', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5000eef8-1114-425e-b85f-51744af6326c', 'a848fa27-b08e-48be-bf89-f63394575e2b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36085683', 'ctest-vn4-11004915'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36085683', 'ctest-policy1-36487116']], 'subnet_ipam': [{'subnet_cidr': '171.71.96.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '398c:bb4b:b307:123f:8f34:4aa0::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-23 21:43:40,155 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-23 21:43:40,464 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-23 21:43:40,502 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6 2026-04-23 21:43:40,517 - DEBUG - Requesting: http://10.0.0.33:8082/project/ccca9290-d7ea-400e-8376-92aca3f2fc90 2026-04-23 21:43:40,590 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,603 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,615 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:40,623 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:40,630 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/78761411-ae09-49fd-954a-1e2fc3dd6eea 2026-04-23 21:43:40,637 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 21:43:40,637 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,647 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:40,663 - INFO - Verified VN network id 11 for VN 6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,664 - INFO - Verifications in API Server for VN ctest-vn4-11004915 passed 2026-04-23 21:43:40,664 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,674 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:40,681 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:40,687 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/78761411-ae09-49fd-954a-1e2fc3dd6eea 2026-04-23 21:43:40,698 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-36085683', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7853652660142948532', 'uuid-lslong': '9651735145463288394'}, 'enable': 'true', 'created': '2026-04-23T21:43:39', 'last-modified': '2026-04-23T21:43:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747839'} 2026-04-23 21:43:40,704 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-23 21:43:40,704 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-11004915 passed 2026-04-23 21:43:40,704 - DEBUG - ====Verifying policy data for ctest-vn4-11004915 in API_Server ====== 2026-04-23 21:43:40,704 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-23 21:43:40,709 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6 2026-04-23 21:43:40,719 - DEBUG - Requesting: http://10.0.0.33:8082/project/ccca9290-d7ea-400e-8376-92aca3f2fc90 2026-04-23 21:43:40,788 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/6cfdc77b-e51f-40b4-85f1-d9fa4b7e124a 2026-04-23 21:43:40,799 - DEBUG - ==>Verifying data for policy with id: 61a3a521-6c31-4f06-a2a6-f60dc8787843, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-36085683', 'ctest-policy1-36487116'] 2026-04-23 21:43:40,799 - INFO - VN ctest-vn4-11004915 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-23 21:43:40,799 - DEBUG - Verifying the vn in opserver 2026-04-23 21:43:40,799 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915 virtual network link through opserver 10.0.0.33 2026-04-23 21:43:40,800 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-23 21:43:41,093 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-23 21:43:41,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915?flat'} 2026-04-23 21:43:41,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-36085683:ctest-vn4-11004915 is found in opserver 2026-04-23 21:43:41,162 - DEBUG - Do not have enough data to verify VN in agent 2026-04-23 21:43:41,166 - DEBUG - VRF ids for VN ctest-vn4-11004915: {} 2026-04-23 21:43:41,167 - DEBUG - ====Verifying data for ctest-policy1-36487116 in API_Server ====== 2026-04-23 21:43:41,167 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-23 21:43:41,172 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6 2026-04-23 21:43:41,182 - DEBUG - Requesting: http://10.0.0.33:8082/project/ccca9290-d7ea-400e-8376-92aca3f2fc90 2026-04-23 21:43:41,250 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/61a3a521-6c31-4f06-a2a6-f60dc8787843 2026-04-23 21:43:41,259 - INFO - Verified policy ctest-policy1-36487116 in API Server, Result: True 2026-04-23 21:43:41,259 - INFO - Done with setup and verification, moving onto test .. 2026-04-23 21:43:41,267 - INFO - Deleting VN ctest-vn4-11004915 2026-04-23 21:43:41,380 - DEBUG - Response for deleting network () 2026-04-23 21:43:41,380 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/4ea5e2f3-2a34-47a7-9c86-07018e1e4e24 2026-04-23 21:43:41,385 - DEBUG - Response Code: 404 2026-04-23 21:43:41,385 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-04-23 21:43:41,390 - DEBUG - Requesting: http://10.0.0.33:8082/domain/6ee3bd72-fd30-42cf-9cd5-2f93adf9b2a6 2026-04-23 21:43:41,448 - DEBUG - Requesting: http://10.0.0.33:8082/project/ccca9290-d7ea-400e-8376-92aca3f2fc90 2026-04-23 21:43:41,520 - INFO - Validated that VN ctest-vn4-11004915 is not found in API Server 2026-04-23 21:43:41,529 - DEBUG - VN ctest-vn4-11004915 is not present in Agent 10.0.0.33 2026-04-23 21:43:41,529 - INFO - Validated that VN ctest-vn4-11004915 is not in any agent 2026-04-23 21:43:41,541 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-11004915 info 2026-04-23 21:43:41,566 - INFO - Deleted policy ctest-policy1-36487116 2026-04-23 21:43:41,731 - DEBUG - policy ctest-policy1-36487116 is not found in API Server 2026-04-23 21:43:41,987 - DEBUG - No XMPP flaps were noticed during the test