2026-01-28 22:22:49,424 - INFO - Domain Default found not creating 2026-01-28 22:22:49,578 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04611169 not found, creating it 2026-01-28 22:22:50,004 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04611169, ID : 799b5ae2-7295-4dca-838c-e23db5a02a88 2026-01-28 22:22:51,413 - INFO - ================================================================================ 2026-01-28 22:22:51,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 22:22:51,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-28 22:22:51,669 - INFO - Initial checks done. Running the testcase now 2026-01-28 22:22:51,670 - INFO - 2026-01-28 22:22:51,670 - INFO - ================================================================================ 2026-01-28 22:22:51,670 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-28 22:22:51,670 - 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-28 22:22:51,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2026-01-28 22:22:51,956 - INFO - Initial checks done. Running the testcase now 2026-01-28 22:22:51,956 - INFO - 2026-01-28 22:22:52,299 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920, 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-04611169:ctest-vn4-33619920, 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-04611169:ctest-vn4-33619920, 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-04611169:ctest-vn4-33619920, 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-28 22:22:52,787 - DEBUG - Response for create_network : {'network': {'id': '90490c65-3020-44ef-a7c9-f326180981fa', 'name': 'ctest-vn4-33619920', 'tenant_id': '799b5ae272954dca838ce23db5a02a88', 'project_id': '799b5ae272954dca838ce23db5a02a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04611169', 'ctest-vn4-33619920'], 'port_security_enabled': True, 'description': ''}} 2026-01-28 22:22:52,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d52ebc4-1fde-49f5-beea-f2be24131e56', 'name': '', 'tenant_id': '799b5ae272954dca838ce23db5a02a88', 'network_id': '90490c65-3020-44ef-a7c9-f326180981fa', 'ip_version': 4, 'cidr': '74.38.35.192/26', 'allocation_pools': [{'start': '74.38.35.194', 'end': '74.38.35.254'}], 'gateway_ip': '74.38.35.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '74.38.35.194', 'tags': [], 'project_id': '799b5ae272954dca838ce23db5a02a88'}} 2026-01-28 22:22:53,154 - DEBUG - Response for create_subnet : {'subnet': {'id': '0fc3eb07-ece5-4618-a6cd-710e2f2297a5', 'name': '', 'tenant_id': '799b5ae272954dca838ce23db5a02a88', 'network_id': '90490c65-3020-44ef-a7c9-f326180981fa', 'ip_version': 6, 'cidr': '2edd:e162:a609:bf3d:aef8:93cb::/96', 'allocation_pools': [{'start': '2edd:e162:a609:bf3d:aef8:93cb:0:2', 'end': '2edd:e162:a609:bf3d:aef8:93cb:ffff:fffe'}], 'gateway_ip': '2edd:e162:a609:bf3d:aef8:93cb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2edd:e162:a609:bf3d:aef8:93cb:0:2', 'tags': [], 'project_id': '799b5ae272954dca838ce23db5a02a88'}} 2026-01-28 22:22:53,170 - INFO - Created VN ctest-vn4-33619920 2026-01-28 22:22:53,219 - DEBUG - VN ctest-vn4-33619920 UUID is 90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:53,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '90490c65-3020-44ef-a7c9-f326180981fa', 'name': 'ctest-vn4-33619920', 'tenant_id': '799b5ae272954dca838ce23db5a02a88', 'project_id': '799b5ae272954dca838ce23db5a02a88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d52ebc4-1fde-49f5-beea-f2be24131e56', '0fc3eb07-ece5-4618-a6cd-710e2f2297a5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04611169', 'ctest-vn4-33619920'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04611169', 'ctest-policy1-91376062']], 'subnet_ipam': [{'subnet_cidr': '74.38.35.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2edd:e162:a609:bf3d:aef8:93cb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-28 22:22:53,547 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-28 22:22:53,842 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-28 22:22:53,870 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7f4837a-788e-4a51-a2cb-23a127bebc0c 2026-01-28 22:22:53,881 - DEBUG - Requesting: http://10.0.0.249:8082/project/799b5ae2-7295-4dca-838c-e23db5a02a88 2026-01-28 22:22:53,948 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:53,958 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:53,966 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:53,971 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:53,977 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ffd64847-1b47-449d-aa8d-41a94f215ba9 2026-01-28 22:22:53,982 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 22:22:53,983 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:53,991 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:54,001 - INFO - Verified VN network id 12 for VN 90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:54,001 - INFO - Verifications in API Server for VN ctest-vn4-33619920 passed 2026-01-28 22:22:54,001 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:54,008 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:54,014 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:54,020 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/ffd64847-1b47-449d-aa8d-41a94f215ba9 2026-01-28 22:22:54,029 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04611169', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10396854843500152047', 'uuid-lslong': '12090462019590390266'}, 'enable': 'true', 'created': '2026-01-28T22:22:52', 'last-modified': '2026-01-28T22:22:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.657468'} 2026-01-28 22:22:54,034 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-28 22:22:54,034 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33619920 passed 2026-01-28 22:22:54,034 - DEBUG - ====Verifying policy data for ctest-vn4-33619920 in API_Server ====== 2026-01-28 22:22:54,034 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-28 22:22:54,038 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7f4837a-788e-4a51-a2cb-23a127bebc0c 2026-01-28 22:22:54,046 - DEBUG - Requesting: http://10.0.0.249:8082/project/799b5ae2-7295-4dca-838c-e23db5a02a88 2026-01-28 22:22:54,113 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/90490c65-3020-44ef-a7c9-f326180981fa 2026-01-28 22:22:54,122 - DEBUG - ==>Verifying data for policy with id: cd988dc7-62e1-4c86-a4d2-c84affb54bf2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04611169', 'ctest-policy1-91376062'] 2026-01-28 22:22:54,122 - INFO - VN ctest-vn4-33619920 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-28 22:22:54,122 - DEBUG - Verifying the vn in opserver 2026-01-28 22:22:54,122 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920 virtual network link through opserver 10.0.0.249 2026-01-28 22:22:54,122 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-28 22:22:54,412 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2026-01-28 22:22:54,468 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920?flat'} 2026-01-28 22:22:54,468 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04611169:ctest-vn4-33619920 is found in opserver 2026-01-28 22:22:54,477 - DEBUG - Do not have enough data to verify VN in agent 2026-01-28 22:22:54,480 - DEBUG - VRF ids for VN ctest-vn4-33619920: {} 2026-01-28 22:22:54,481 - DEBUG - ====Verifying data for ctest-policy1-91376062 in API_Server ====== 2026-01-28 22:22:54,481 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-28 22:22:54,486 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7f4837a-788e-4a51-a2cb-23a127bebc0c 2026-01-28 22:22:54,499 - DEBUG - Requesting: http://10.0.0.249:8082/project/799b5ae2-7295-4dca-838c-e23db5a02a88 2026-01-28 22:22:54,571 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/cd988dc7-62e1-4c86-a4d2-c84affb54bf2 2026-01-28 22:22:54,581 - INFO - Verified policy ctest-policy1-91376062 in API Server, Result: True 2026-01-28 22:22:54,581 - INFO - Done with setup and verification, moving onto test .. 2026-01-28 22:22:54,588 - INFO - Deleting VN ctest-vn4-33619920 2026-01-28 22:22:54,711 - DEBUG - Response for deleting network () 2026-01-28 22:22:54,712 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/cd8a92b3-09b0-4085-8e19-1a110bfa6d68 2026-01-28 22:22:54,716 - DEBUG - Response Code: 404 2026-01-28 22:22:54,716 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2026-01-28 22:22:54,721 - DEBUG - Requesting: http://10.0.0.249:8082/domain/c7f4837a-788e-4a51-a2cb-23a127bebc0c 2026-01-28 22:22:54,773 - DEBUG - Requesting: http://10.0.0.249:8082/project/799b5ae2-7295-4dca-838c-e23db5a02a88 2026-01-28 22:22:54,844 - INFO - Validated that VN ctest-vn4-33619920 is not found in API Server 2026-01-28 22:22:54,851 - DEBUG - VN ctest-vn4-33619920 is not present in Agent 10.0.0.249 2026-01-28 22:22:54,851 - INFO - Validated that VN ctest-vn4-33619920 is not in any agent 2026-01-28 22:22:54,863 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33619920 info 2026-01-28 22:22:54,884 - INFO - Deleted policy ctest-policy1-91376062 2026-01-28 22:22:55,043 - DEBUG - policy ctest-policy1-91376062 is not found in API Server 2026-01-28 22:22:55,300 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 22:22:55,300 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 22:22:55,300 - INFO - -------------------------------------------------------------------------------- 2026-01-28 22:22:55,596 - DEBUG - No XMPP flaps were noticed during the test 2026-01-28 22:22:55,596 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-01-28 22:22:55,596 - INFO - -------------------------------------------------------------------------------- 2026-01-28 22:22:56,249 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-04611169, ID : 799b5ae2-7295-4dca-838c-e23db5a02a88