2026-07-17 11:20:25,702 - INFO - Domain Default found not creating 2026-07-17 11:20:25,890 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-42110553 not found, creating it 2026-07-17 11:20:26,409 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-42110553, ID : ffe7dd74-f305-4e7e-bcea-eeeb750095ed 2026-07-17 11:20:28,060 - INFO - ================================================================================ 2026-07-17 11:20:28,060 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 11:20:28,320 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-17 11:20:28,320 - INFO - Initial checks done. Running the testcase now 2026-07-17 11:20:28,321 - INFO - 2026-07-17 11:20:28,321 - INFO - ================================================================================ 2026-07-17 11:20:28,321 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-17 11:20:28,321 - 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-07-17 11:20:28,631 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2026-07-17 11:20:28,632 - INFO - Initial checks done. Running the testcase now 2026-07-17 11:20:28,632 - INFO - 2026-07-17 11:20:29,121 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831, 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-42110553:ctest-vn4-34545831, 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-42110553:ctest-vn4-34545831, 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-42110553:ctest-vn4-34545831, 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-07-17 11:20:29,673 - DEBUG - Response for create_network : {'network': {'id': '26c54e83-583e-47a3-ab6e-fcf0263e8b9d', 'name': 'ctest-vn4-34545831', 'tenant_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'project_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42110553', 'ctest-vn4-34545831'], 'port_security_enabled': True, 'description': ''}} 2026-07-17 11:20:29,846 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e8c0d4f-390a-4942-b755-d47d6760e766', 'name': '', 'tenant_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'network_id': '26c54e83-583e-47a3-ab6e-fcf0263e8b9d', 'ip_version': 4, 'cidr': '21.7.175.128/26', 'allocation_pools': [{'start': '21.7.175.130', 'end': '21.7.175.190'}], 'gateway_ip': '21.7.175.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.7.175.130', 'tags': [], 'project_id': 'ffe7dd74f3054e7ebceaeeeb750095ed'}} 2026-07-17 11:20:30,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '369aa17f-f92b-49ac-b955-beeee5f1e092', 'name': '', 'tenant_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'network_id': '26c54e83-583e-47a3-ab6e-fcf0263e8b9d', 'ip_version': 6, 'cidr': '355d:583:a74b:c691:fbb5:85d7::/96', 'allocation_pools': [{'start': '355d:583:a74b:c691:fbb5:85d7:0:2', 'end': '355d:583:a74b:c691:fbb5:85d7:ffff:fffe'}], 'gateway_ip': '355d:583:a74b:c691:fbb5:85d7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '355d:583:a74b:c691:fbb5:85d7:0:2', 'tags': [], 'project_id': 'ffe7dd74f3054e7ebceaeeeb750095ed'}} 2026-07-17 11:20:30,064 - INFO - Created VN ctest-vn4-34545831 2026-07-17 11:20:30,123 - DEBUG - VN ctest-vn4-34545831 UUID is 26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:30,350 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26c54e83-583e-47a3-ab6e-fcf0263e8b9d', 'name': 'ctest-vn4-34545831', 'tenant_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'project_id': 'ffe7dd74f3054e7ebceaeeeb750095ed', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e8c0d4f-390a-4942-b755-d47d6760e766', '369aa17f-f92b-49ac-b955-beeee5f1e092'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42110553', 'ctest-vn4-34545831'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42110553', 'ctest-policy1-47503119']], 'subnet_ipam': [{'subnet_cidr': '21.7.175.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '355d:583:a74b:c691:fbb5:85d7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-17 11:20:30,514 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-17 11:20:30,863 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-17 11:20:30,903 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232 2026-07-17 11:20:30,919 - DEBUG - Requesting: http://10.0.0.50:8082/project/ffe7dd74-f305-4e7e-bcea-eeeb750095ed 2026-07-17 11:20:31,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,015 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,027 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,036 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,044 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/38104435-b10f-4ecc-b163-ca409dbe0a7d 2026-07-17 11:20:31,053 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 11:20:31,053 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,064 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,082 - INFO - Verified VN network id 11 for VN 26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,082 - INFO - Verifications in API Server for VN ctest-vn4-34545831 passed 2026-07-17 11:20:31,082 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,095 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,104 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,111 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/38104435-b10f-4ecc-b163-ca409dbe0a7d 2026-07-17 11:20:31,124 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-42110553', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2793725469881419683', 'uuid-lslong': '12353088936287832989'}, 'enable': 'true', 'created': '2026-07-17T11:20:29', 'last-modified': '2026-07-17T11:20:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.803612'} 2026-07-17 11:20:31,131 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-17 11:20:31,131 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34545831 passed 2026-07-17 11:20:31,131 - DEBUG - ====Verifying policy data for ctest-vn4-34545831 in API_Server ====== 2026-07-17 11:20:31,131 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-17 11:20:31,138 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232 2026-07-17 11:20:31,151 - DEBUG - Requesting: http://10.0.0.50:8082/project/ffe7dd74-f305-4e7e-bcea-eeeb750095ed 2026-07-17 11:20:31,230 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/26c54e83-583e-47a3-ab6e-fcf0263e8b9d 2026-07-17 11:20:31,242 - DEBUG - ==>Verifying data for policy with id: cda06ecc-195a-4420-a735-0bcda080ae56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-42110553', 'ctest-policy1-47503119'] 2026-07-17 11:20:31,242 - INFO - VN ctest-vn4-34545831 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-17 11:20:31,242 - DEBUG - Verifying the vn in opserver 2026-07-17 11:20:31,242 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831 virtual network link through opserver 10.0.0.50 2026-07-17 11:20:31,242 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-17 11:20:31,565 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-07-17 11:20:31,616 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831?flat'} 2026-07-17 11:20:31,616 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-42110553:ctest-vn4-34545831 is found in opserver 2026-07-17 11:20:31,626 - DEBUG - Do not have enough data to verify VN in agent 2026-07-17 11:20:31,631 - DEBUG - VRF ids for VN ctest-vn4-34545831: {} 2026-07-17 11:20:31,632 - DEBUG - ====Verifying data for ctest-policy1-47503119 in API_Server ====== 2026-07-17 11:20:31,632 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-17 11:20:31,638 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232 2026-07-17 11:20:31,650 - DEBUG - Requesting: http://10.0.0.50:8082/project/ffe7dd74-f305-4e7e-bcea-eeeb750095ed 2026-07-17 11:20:31,724 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/cda06ecc-195a-4420-a735-0bcda080ae56 2026-07-17 11:20:31,734 - INFO - Verified policy ctest-policy1-47503119 in API Server, Result: True 2026-07-17 11:20:31,734 - INFO - Done with setup and verification, moving onto test .. 2026-07-17 11:20:31,744 - INFO - Deleting VN ctest-vn4-34545831 2026-07-17 11:20:31,882 - DEBUG - Response for deleting network () 2026-07-17 11:20:31,882 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/37af80a5-7237-4bb5-892f-6f87ef647d8a 2026-07-17 11:20:31,889 - DEBUG - Response Code: 404 2026-07-17 11:20:31,890 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-07-17 11:20:31,899 - DEBUG - Requesting: http://10.0.0.50:8082/domain/e36e2493-2fb4-41a7-b75c-88e531ee4232 2026-07-17 11:20:31,952 - DEBUG - Requesting: http://10.0.0.50:8082/project/ffe7dd74-f305-4e7e-bcea-eeeb750095ed 2026-07-17 11:20:32,031 - INFO - Validated that VN ctest-vn4-34545831 is not found in API Server 2026-07-17 11:20:32,044 - DEBUG - VN ctest-vn4-34545831 is not present in Agent 10.0.0.50 2026-07-17 11:20:32,044 - INFO - Validated that VN ctest-vn4-34545831 is not in any agent 2026-07-17 11:20:32,062 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34545831 info 2026-07-17 11:20:32,095 - INFO - Deleted policy ctest-policy1-47503119 2026-07-17 11:20:32,266 - DEBUG - policy ctest-policy1-47503119 is not found in API Server 2026-07-17 11:20:32,525 - DEBUG - No XMPP flaps were noticed during the test