2026-11-29 23:53:27,404 - INFO - Domain Default found not creating 2026-11-29 23:53:27,566 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-41964074 not found, creating it 2026-11-29 23:53:28,061 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-41964074, ID : 38101401-4953-47aa-b4ff-fdd776913f89 2026-11-29 23:53:29,772 - INFO - ================================================================================ 2026-11-29 23:53:29,772 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-29 23:53:30,039 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-11-29 23:53:30,039 - INFO - Initial checks done. Running the testcase now 2026-11-29 23:53:30,039 - INFO - 2026-11-29 23:53:30,039 - INFO - ================================================================================ 2026-11-29 23:53:30,039 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-11-29 23:53:30,040 - 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-11-29 23:53:30,324 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.25': '0'}} with 2026-11-29 23:53:30,324 - INFO - Initial checks done. Running the testcase now 2026-11-29 23:53:30,324 - INFO - 2026-11-29 23:53:30,766 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591, 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-41964074:ctest-vn4-19012591, 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-41964074:ctest-vn4-19012591, 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-41964074:ctest-vn4-19012591, 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-11-29 23:53:31,294 - DEBUG - Response for create_network : {'network': {'id': '4b19d762-90eb-4e05-8ae9-67d958d373cd', 'name': 'ctest-vn4-19012591', 'tenant_id': '38101401495347aab4fffdd776913f89', 'project_id': '38101401495347aab4fffdd776913f89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41964074', 'ctest-vn4-19012591'], 'port_security_enabled': True, 'description': ''}} 2026-11-29 23:53:31,512 - DEBUG - Response for create_subnet : {'subnet': {'id': '7249019d-3b1b-4e35-ac44-a1b9e4c1092a', 'name': '', 'tenant_id': '38101401495347aab4fffdd776913f89', 'network_id': '4b19d762-90eb-4e05-8ae9-67d958d373cd', 'ip_version': 4, 'cidr': '59.170.132.128/26', 'allocation_pools': [{'start': '59.170.132.130', 'end': '59.170.132.190'}], 'gateway_ip': '59.170.132.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '59.170.132.130', 'tags': [], 'project_id': '38101401495347aab4fffdd776913f89'}} 2026-11-29 23:53:31,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '93d7a937-d29d-47b3-8bd4-868d2d81e63c', 'name': '', 'tenant_id': '38101401495347aab4fffdd776913f89', 'network_id': '4b19d762-90eb-4e05-8ae9-67d958d373cd', 'ip_version': 6, 'cidr': '2775:364a:dc4a:b04a:eb0b:ed7e::/96', 'allocation_pools': [{'start': '2775:364a:dc4a:b04a:eb0b:ed7e:0:2', 'end': '2775:364a:dc4a:b04a:eb0b:ed7e:ffff:fffe'}], 'gateway_ip': '2775:364a:dc4a:b04a:eb0b:ed7e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2775:364a:dc4a:b04a:eb0b:ed7e:0:2', 'tags': [], 'project_id': '38101401495347aab4fffdd776913f89'}} 2026-11-29 23:53:31,679 - INFO - Created VN ctest-vn4-19012591 2026-11-29 23:53:31,731 - DEBUG - VN ctest-vn4-19012591 UUID is 4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:31,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b19d762-90eb-4e05-8ae9-67d958d373cd', 'name': 'ctest-vn4-19012591', 'tenant_id': '38101401495347aab4fffdd776913f89', 'project_id': '38101401495347aab4fffdd776913f89', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['7249019d-3b1b-4e35-ac44-a1b9e4c1092a', '93d7a937-d29d-47b3-8bd4-868d2d81e63c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41964074', 'ctest-vn4-19012591'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41964074', 'ctest-policy1-07260436']], 'subnet_ipam': [{'subnet_cidr': '59.170.132.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2775:364a:dc4a:b04a:eb0b:ed7e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-11-29 23:53:32,107 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-29 23:53:32,480 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-29 23:53:32,507 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2b190422-1598-4ac3-b68b-4967754f97b6 2026-11-29 23:53:32,521 - DEBUG - Requesting: http://10.0.0.50:8082/project/38101401-4953-47aa-b4ff-fdd776913f89 2026-11-29 23:53:32,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,610 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,619 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:32,625 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:32,631 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f386d62e-3cbe-49bf-b875-052f21032a3f 2026-11-29 23:53:32,638 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-29 23:53:32,638 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,647 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:32,660 - INFO - Verified VN network id 10 for VN 4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,661 - INFO - Verifications in API Server for VN ctest-vn4-19012591 passed 2026-11-29 23:53:32,661 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:32,680 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:32,687 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f386d62e-3cbe-49bf-b875-052f21032a3f 2026-11-29 23:53:32,701 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-41964074', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5411593245600468485', 'uuid-lslong': '10009645830003454925'}, 'enable': 'true', 'created': '2026-11-29T23:53:31', 'last-modified': '2026-11-29T23:53:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.786815'} 2026-11-29 23:53:32,708 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-11-29 23:53:32,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19012591 passed 2026-11-29 23:53:32,708 - DEBUG - ====Verifying policy data for ctest-vn4-19012591 in API_Server ====== 2026-11-29 23:53:32,708 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-29 23:53:32,714 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2b190422-1598-4ac3-b68b-4967754f97b6 2026-11-29 23:53:32,728 - DEBUG - Requesting: http://10.0.0.50:8082/project/38101401-4953-47aa-b4ff-fdd776913f89 2026-11-29 23:53:32,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4b19d762-90eb-4e05-8ae9-67d958d373cd 2026-11-29 23:53:32,816 - DEBUG - ==>Verifying data for policy with id: 98b61d45-48ef-4b41-9941-f7a79d44a0ed, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-41964074', 'ctest-policy1-07260436'] 2026-11-29 23:53:32,816 - INFO - VN ctest-vn4-19012591 Policy verification: verify_vn_policy_in_api_server, status: True 2026-11-29 23:53:32,816 - DEBUG - Verifying the vn in opserver 2026-11-29 23:53:32,816 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591 virtual network link through opserver 10.0.0.50 2026-11-29 23:53:32,816 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-29 23:53:33,178 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2026-11-29 23:53:33,230 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591?flat'} 2026-11-29 23:53:33,230 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-41964074:ctest-vn4-19012591 is found in opserver 2026-11-29 23:53:33,242 - DEBUG - Do not have enough data to verify VN in agent 2026-11-29 23:53:33,247 - DEBUG - VRF ids for VN ctest-vn4-19012591: {} 2026-11-29 23:53:33,247 - DEBUG - ====Verifying data for ctest-policy1-07260436 in API_Server ====== 2026-11-29 23:53:33,247 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-29 23:53:33,253 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2b190422-1598-4ac3-b68b-4967754f97b6 2026-11-29 23:53:33,266 - DEBUG - Requesting: http://10.0.0.50:8082/project/38101401-4953-47aa-b4ff-fdd776913f89 2026-11-29 23:53:33,340 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/98b61d45-48ef-4b41-9941-f7a79d44a0ed 2026-11-29 23:53:33,351 - INFO - Verified policy ctest-policy1-07260436 in API Server, Result: True 2026-11-29 23:53:33,351 - INFO - Done with setup and verification, moving onto test .. 2026-11-29 23:53:33,361 - INFO - Deleting VN ctest-vn4-19012591 2026-11-29 23:53:33,483 - DEBUG - Response for deleting network () 2026-11-29 23:53:33,483 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/7bc6f221-f3d1-42b3-ad7b-0da3993248c9 2026-11-29 23:53:33,488 - DEBUG - Response Code: 404 2026-11-29 23:53:33,488 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2026-11-29 23:53:33,494 - DEBUG - Requesting: http://10.0.0.50:8082/domain/2b190422-1598-4ac3-b68b-4967754f97b6 2026-11-29 23:53:33,547 - DEBUG - Requesting: http://10.0.0.50:8082/project/38101401-4953-47aa-b4ff-fdd776913f89 2026-11-29 23:53:33,621 - INFO - Validated that VN ctest-vn4-19012591 is not found in API Server 2026-11-29 23:53:33,633 - DEBUG - VN ctest-vn4-19012591 is not present in Agent 10.0.0.50 2026-11-29 23:53:33,633 - INFO - Validated that VN ctest-vn4-19012591 is not in any agent 2026-11-29 23:53:33,649 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19012591 info 2026-11-29 23:53:33,679 - INFO - Deleted policy ctest-policy1-07260436 2026-11-29 23:53:33,843 - DEBUG - policy ctest-policy1-07260436 is not found in API Server 2026-11-29 23:53:34,097 - DEBUG - No XMPP flaps were noticed during the test
2026-11-29 23:53:34,097 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-11-29 23:53:34,097 - INFO - -------------------------------------------------------------------------------- 2026-11-29 23:53:34,388 - DEBUG - No XMPP flaps were noticed during the test
2026-11-29 23:53:34,388 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-11-29 23:53:34,388 - INFO - -------------------------------------------------------------------------------- 2026-11-29 23:53:35,138 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-41964074, ID : 38101401-4953-47aa-b4ff-fdd776913f89