2026-07-20 02:25:02,498 - INFO - Domain Default found not creating 2026-07-20 02:25:02,654 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43525950 not found, creating it 2026-07-20 02:25:03,141 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43525950, ID : 505adca3-2ecf-4e1f-a693-82bba449dfaf 2026-07-20 02:25:04,667 - INFO - ================================================================================ 2026-07-20 02:25:04,667 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-20 02:25:04,927 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-07-20 02:25:04,927 - INFO - Initial checks done. Running the testcase now 2026-07-20 02:25:04,927 - INFO - 2026-07-20 02:25:04,927 - INFO - ================================================================================ 2026-07-20 02:25:04,927 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-07-20 02:25:04,927 - 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-20 02:25:05,212 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-07-20 02:25:05,212 - INFO - Initial checks done. Running the testcase now 2026-07-20 02:25:05,212 - INFO - 2026-07-20 02:25:05,591 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825, 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-43525950:ctest-vn4-57920825, 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-43525950:ctest-vn4-57920825, 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-43525950:ctest-vn4-57920825, 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-20 02:25:06,138 - DEBUG - Response for create_network : {'network': {'id': '06d1d4d1-df25-4b5b-a595-96478d7ff32c', 'name': 'ctest-vn4-57920825', 'tenant_id': '505adca32ecf4e1fa69382bba449dfaf', 'project_id': '505adca32ecf4e1fa69382bba449dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43525950', 'ctest-vn4-57920825'], 'port_security_enabled': True, 'description': ''}} 2026-07-20 02:25:06,361 - DEBUG - Response for create_subnet : {'subnet': {'id': '6cc2c1e2-6bca-4b78-91c7-dcae646b58f6', 'name': '', 'tenant_id': '505adca32ecf4e1fa69382bba449dfaf', 'network_id': '06d1d4d1-df25-4b5b-a595-96478d7ff32c', 'ip_version': 4, 'cidr': '100.170.63.64/26', 'allocation_pools': [{'start': '100.170.63.66', 'end': '100.170.63.126'}], 'gateway_ip': '100.170.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '100.170.63.66', 'tags': [], 'project_id': '505adca32ecf4e1fa69382bba449dfaf'}} 2026-07-20 02:25:06,537 - DEBUG - Response for create_subnet : {'subnet': {'id': '493f6631-fe39-4997-a05d-a917856849eb', 'name': '', 'tenant_id': '505adca32ecf4e1fa69382bba449dfaf', 'network_id': '06d1d4d1-df25-4b5b-a595-96478d7ff32c', 'ip_version': 6, 'cidr': '3da4:bde6:bbeb:c5b0:1e18:7dbb::/96', 'allocation_pools': [{'start': '3da4:bde6:bbeb:c5b0:1e18:7dbb:0:2', 'end': '3da4:bde6:bbeb:c5b0:1e18:7dbb:ffff:fffe'}], 'gateway_ip': '3da4:bde6:bbeb:c5b0:1e18:7dbb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3da4:bde6:bbeb:c5b0:1e18:7dbb:0:2', 'tags': [], 'project_id': '505adca32ecf4e1fa69382bba449dfaf'}} 2026-07-20 02:25:06,555 - INFO - Created VN ctest-vn4-57920825 2026-07-20 02:25:06,608 - DEBUG - VN ctest-vn4-57920825 UUID is 06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:06,819 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '06d1d4d1-df25-4b5b-a595-96478d7ff32c', 'name': 'ctest-vn4-57920825', 'tenant_id': '505adca32ecf4e1fa69382bba449dfaf', 'project_id': '505adca32ecf4e1fa69382bba449dfaf', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6cc2c1e2-6bca-4b78-91c7-dcae646b58f6', '493f6631-fe39-4997-a05d-a917856849eb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43525950', 'ctest-vn4-57920825'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43525950', 'ctest-policy1-86165263']], 'subnet_ipam': [{'subnet_cidr': '100.170.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3da4:bde6:bbeb:c5b0:1e18:7dbb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-07-20 02:25:06,983 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-20 02:25:07,318 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-20 02:25:07,342 - DEBUG - Requesting: http://10.0.0.22:8082/domain/763c6432-4151-4fd2-bc40-7ca1e44099b6 2026-07-20 02:25:07,353 - DEBUG - Requesting: http://10.0.0.22:8082/project/505adca3-2ecf-4e1f-a693-82bba449dfaf 2026-07-20 02:25:07,423 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,441 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,452 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:07,459 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:07,466 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0a725caf-2f9c-4a47-8c2a-337d20e0ba60 2026-07-20 02:25:07,473 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-20 02:25:07,473 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,484 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:07,500 - INFO - Verified VN network id 11 for VN 06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,500 - INFO - Verifications in API Server for VN ctest-vn4-57920825 passed 2026-07-20 02:25:07,500 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,512 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:07,520 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:07,527 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/0a725caf-2f9c-4a47-8c2a-337d20e0ba60 2026-07-20 02:25:07,541 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43525950', 'owner-access': '7', 'group': 'manager', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '491407832217111387', 'uuid-lslong': '11931608021848814380'}, 'enable': 'true', 'created': '2026-07-20T02:25:06', 'last-modified': '2026-07-20T02:25:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.762700'} 2026-07-20 02:25:07,548 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-07-20 02:25:07,548 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57920825 passed 2026-07-20 02:25:07,549 - DEBUG - ====Verifying policy data for ctest-vn4-57920825 in API_Server ====== 2026-07-20 02:25:07,549 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-20 02:25:07,555 - DEBUG - Requesting: http://10.0.0.22:8082/domain/763c6432-4151-4fd2-bc40-7ca1e44099b6 2026-07-20 02:25:07,567 - DEBUG - Requesting: http://10.0.0.22:8082/project/505adca3-2ecf-4e1f-a693-82bba449dfaf 2026-07-20 02:25:07,638 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/06d1d4d1-df25-4b5b-a595-96478d7ff32c 2026-07-20 02:25:07,648 - DEBUG - ==>Verifying data for policy with id: 02b64c7e-b633-47a2-acfa-874a8ef1acff, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43525950', 'ctest-policy1-86165263'] 2026-07-20 02:25:07,648 - INFO - VN ctest-vn4-57920825 Policy verification: verify_vn_policy_in_api_server, status: True 2026-07-20 02:25:07,648 - DEBUG - Verifying the vn in opserver 2026-07-20 02:25:07,648 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825 virtual network link through opserver 10.0.0.22 2026-07-20 02:25:07,648 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-20 02:25:07,972 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-07-20 02:25:08,026 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825?flat'} 2026-07-20 02:25:08,026 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43525950:ctest-vn4-57920825 is found in opserver 2026-07-20 02:25:08,035 - DEBUG - Do not have enough data to verify VN in agent 2026-07-20 02:25:08,040 - DEBUG - VRF ids for VN ctest-vn4-57920825: {} 2026-07-20 02:25:08,041 - DEBUG - ====Verifying data for ctest-policy1-86165263 in API_Server ====== 2026-07-20 02:25:08,041 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-20 02:25:08,047 - DEBUG - Requesting: http://10.0.0.22:8082/domain/763c6432-4151-4fd2-bc40-7ca1e44099b6 2026-07-20 02:25:08,057 - DEBUG - Requesting: http://10.0.0.22:8082/project/505adca3-2ecf-4e1f-a693-82bba449dfaf 2026-07-20 02:25:08,126 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/02b64c7e-b633-47a2-acfa-874a8ef1acff 2026-07-20 02:25:08,135 - INFO - Verified policy ctest-policy1-86165263 in API Server, Result: True 2026-07-20 02:25:08,135 - INFO - Done with setup and verification, moving onto test .. 2026-07-20 02:25:08,142 - INFO - Deleting VN ctest-vn4-57920825 2026-07-20 02:25:08,261 - DEBUG - Response for deleting network () 2026-07-20 02:25:08,261 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c6be0457-6751-4707-9245-4dd31a10b520 2026-07-20 02:25:08,266 - DEBUG - Response Code: 404 2026-07-20 02:25:08,267 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-07-20 02:25:08,272 - DEBUG - Requesting: http://10.0.0.22:8082/domain/763c6432-4151-4fd2-bc40-7ca1e44099b6 2026-07-20 02:25:08,325 - DEBUG - Requesting: http://10.0.0.22:8082/project/505adca3-2ecf-4e1f-a693-82bba449dfaf 2026-07-20 02:25:08,398 - INFO - Validated that VN ctest-vn4-57920825 is not found in API Server 2026-07-20 02:25:08,408 - DEBUG - VN ctest-vn4-57920825 is not present in Agent 10.0.0.22 2026-07-20 02:25:08,408 - INFO - Validated that VN ctest-vn4-57920825 is not in any agent 2026-07-20 02:25:08,424 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57920825 info 2026-07-20 02:25:08,449 - INFO - Deleted policy ctest-policy1-86165263 2026-07-20 02:25:08,611 - DEBUG - policy ctest-policy1-86165263 is not found in API Server 2026-07-20 02:25:08,871 - DEBUG - No XMPP flaps were noticed during the test
2026-07-20 02:25:08,871 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-07-20 02:25:08,871 - INFO - -------------------------------------------------------------------------------- 2026-07-20 02:25:09,165 - DEBUG - No XMPP flaps were noticed during the test
2026-07-20 02:25:09,165 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-07-20 02:25:09,166 - INFO - -------------------------------------------------------------------------------- 2026-07-20 02:25:09,912 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43525950, ID : 505adca3-2ecf-4e1f-a693-82bba449dfaf