2026-01-26 16:55:41,053 - INFO - Domain Default found not creating 2026-01-26 16:55:41,233 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87808817 not found, creating it 2026-01-26 16:55:41,718 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87808817, ID : 81e28ee3-dc40-4f74-8a6a-8228a42090a6 2026-01-26 16:55:43,319 - INFO - ================================================================================ 2026-01-26 16:55:43,319 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:55:43,585 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-26 16:55:43,585 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:55:43,585 - INFO - 2026-01-26 16:55:43,585 - INFO - ================================================================================ 2026-01-26 16:55:43,585 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-26 16:55:43,585 - 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:55:43,870 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2026-01-26 16:55:43,870 - INFO - Initial checks done. Running the testcase now 2026-01-26 16:55:43,871 - INFO - 2026-01-26 16:55:44,274 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609, 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-87808817:ctest-vn4-30271609, 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-87808817:ctest-vn4-30271609, 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-87808817:ctest-vn4-30271609, 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:55:44,799 - DEBUG - Response for create_network : {'network': {'id': 'a518a750-0aa7-45f4-92f4-87df1bb81ebb', 'name': 'ctest-vn4-30271609', 'tenant_id': '81e28ee3dc404f748a6a8228a42090a6', 'project_id': '81e28ee3dc404f748a6a8228a42090a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87808817', 'ctest-vn4-30271609'], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:55:45,002 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c54f967-e3a3-4e4b-a0ce-82bd5748060b', 'name': '', 'tenant_id': '81e28ee3dc404f748a6a8228a42090a6', 'network_id': 'a518a750-0aa7-45f4-92f4-87df1bb81ebb', 'ip_version': 4, 'cidr': '43.211.41.128/26', 'allocation_pools': [{'start': '43.211.41.130', 'end': '43.211.41.190'}], 'gateway_ip': '43.211.41.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '43.211.41.130', 'tags': [], 'project_id': '81e28ee3dc404f748a6a8228a42090a6'}} 2026-01-26 16:55:45,197 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cd5c5f5-7153-484f-a9a6-70895d0600c5', 'name': '', 'tenant_id': '81e28ee3dc404f748a6a8228a42090a6', 'network_id': 'a518a750-0aa7-45f4-92f4-87df1bb81ebb', 'ip_version': 6, 'cidr': '238e:c537:f029:3ee6:87e1:322d::/96', 'allocation_pools': [{'start': '238e:c537:f029:3ee6:87e1:322d:0:2', 'end': '238e:c537:f029:3ee6:87e1:322d:ffff:fffe'}], 'gateway_ip': '238e:c537:f029:3ee6:87e1:322d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '238e:c537:f029:3ee6:87e1:322d:0:2', 'tags': [], 'project_id': '81e28ee3dc404f748a6a8228a42090a6'}} 2026-01-26 16:55:45,220 - INFO - Created VN ctest-vn4-30271609 2026-01-26 16:55:45,273 - DEBUG - VN ctest-vn4-30271609 UUID is a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:45,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a518a750-0aa7-45f4-92f4-87df1bb81ebb', 'name': 'ctest-vn4-30271609', 'tenant_id': '81e28ee3dc404f748a6a8228a42090a6', 'project_id': '81e28ee3dc404f748a6a8228a42090a6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8c54f967-e3a3-4e4b-a0ce-82bd5748060b', '6cd5c5f5-7153-484f-a9a6-70895d0600c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87808817', 'ctest-vn4-30271609'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87808817', 'ctest-policy1-78377297']], 'subnet_ipam': [{'subnet_cidr': '43.211.41.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '238e:c537:f029:3ee6:87e1:322d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-26 16:55:45,673 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-26 16:55:46,010 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-26 16:55:46,057 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f 2026-01-26 16:55:46,071 - DEBUG - Requesting: http://10.0.0.242:8082/project/81e28ee3-dc40-4f74-8a6a-8228a42090a6 2026-01-26 16:55:46,150 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,164 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,176 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:46,183 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:46,191 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/87fcf045-87ee-4b08-b867-8ad69444455a 2026-01-26 16:55:46,200 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:55:46,200 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,211 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:46,225 - INFO - Verified VN network id 11 for VN a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,225 - INFO - Verifications in API Server for VN ctest-vn4-30271609 passed 2026-01-26 16:55:46,225 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,236 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:46,244 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:46,251 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/87fcf045-87ee-4b08-b867-8ad69444455a 2026-01-26 16:55:46,264 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87808817', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11896442377917122036', 'uuid-lslong': '10589238016167386811'}, 'enable': 'true', 'created': '2026-01-26T16:55:44', 'last-modified': '2026-01-26T16:55:45', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.801314'} 2026-01-26 16:55:46,270 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-26 16:55:46,270 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-30271609 passed 2026-01-26 16:55:46,271 - DEBUG - ====Verifying policy data for ctest-vn4-30271609 in API_Server ====== 2026-01-26 16:55:46,271 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-26 16:55:46,276 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f 2026-01-26 16:55:46,287 - DEBUG - Requesting: http://10.0.0.242:8082/project/81e28ee3-dc40-4f74-8a6a-8228a42090a6 2026-01-26 16:55:46,368 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a518a750-0aa7-45f4-92f4-87df1bb81ebb 2026-01-26 16:55:46,379 - DEBUG - ==>Verifying data for policy with id: e809f848-8736-4df2-91d7-279d6761df1d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87808817', 'ctest-policy1-78377297'] 2026-01-26 16:55:46,379 - INFO - VN ctest-vn4-30271609 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-26 16:55:46,379 - DEBUG - Verifying the vn in opserver 2026-01-26 16:55:46,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609 virtual network link through opserver 10.0.0.242 2026-01-26 16:55:46,379 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-26 16:55:46,712 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2026-01-26 16:55:46,781 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609?flat'} 2026-01-26 16:55:46,781 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87808817:ctest-vn4-30271609 is found in opserver 2026-01-26 16:55:46,791 - DEBUG - Do not have enough data to verify VN in agent 2026-01-26 16:55:46,796 - DEBUG - VRF ids for VN ctest-vn4-30271609: {} 2026-01-26 16:55:46,796 - DEBUG - ====Verifying data for ctest-policy1-78377297 in API_Server ====== 2026-01-26 16:55:46,796 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-26 16:55:46,802 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f 2026-01-26 16:55:46,813 - DEBUG - Requesting: http://10.0.0.242:8082/project/81e28ee3-dc40-4f74-8a6a-8228a42090a6 2026-01-26 16:55:46,882 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/e809f848-8736-4df2-91d7-279d6761df1d 2026-01-26 16:55:46,892 - INFO - Verified policy ctest-policy1-78377297 in API Server, Result: True 2026-01-26 16:55:46,892 - INFO - Done with setup and verification, moving onto test .. 2026-01-26 16:55:46,900 - INFO - Deleting VN ctest-vn4-30271609 2026-01-26 16:55:47,032 - DEBUG - Response for deleting network () 2026-01-26 16:55:47,032 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/184c6445-41d6-4c6c-8e39-4d6fb62e77e5 2026-01-26 16:55:47,037 - DEBUG - Response Code: 404 2026-01-26 16:55:47,037 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2026-01-26 16:55:47,043 - DEBUG - Requesting: http://10.0.0.242:8082/domain/88faa671-3e7b-47f7-9762-2ccccea6f09f 2026-01-26 16:55:47,096 - DEBUG - Requesting: http://10.0.0.242:8082/project/81e28ee3-dc40-4f74-8a6a-8228a42090a6 2026-01-26 16:55:47,168 - INFO - Validated that VN ctest-vn4-30271609 is not found in API Server 2026-01-26 16:55:47,179 - DEBUG - VN ctest-vn4-30271609 is not present in Agent 10.0.0.242 2026-01-26 16:55:47,179 - INFO - Validated that VN ctest-vn4-30271609 is not in any agent 2026-01-26 16:55:47,193 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-30271609 info 2026-01-26 16:55:47,218 - INFO - Deleted policy ctest-policy1-78377297 2026-01-26 16:55:47,389 - DEBUG - policy ctest-policy1-78377297 is not found in API Server 2026-01-26 16:55:47,646 - DEBUG - No XMPP flaps were noticed during the test
2026-01-26 16:55:47,646 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-26 16:55:47,646 - INFO - -------------------------------------------------------------------------------- 2026-01-26 16:55:47,934 - DEBUG - No XMPP flaps were noticed during the test
2026-01-26 16:55:47,934 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-01-26 16:55:47,934 - INFO - -------------------------------------------------------------------------------- 2026-01-26 16:55:48,659 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87808817, ID : 81e28ee3-dc40-4f74-8a6a-8228a42090a6