2026-02-05 10:05:21,380 - INFO - Domain Default found not creating 2026-02-05 10:05:21,541 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56566480 not found, creating it 2026-02-05 10:05:21,974 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56566480, ID : f67d05bc-a35c-41dc-a7f8-11be340d0b3b 2026-02-05 10:05:23,434 - INFO - ================================================================================ 2026-02-05 10:05:23,434 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 10:05:23,689 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-05 10:05:23,689 - INFO - Initial checks done. Running the testcase now 2026-02-05 10:05:23,689 - INFO - 2026-02-05 10:05:23,689 - INFO - ================================================================================ 2026-02-05 10:05:23,689 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 10:05:23,689 - 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-02-05 10:05:23,977 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2026-02-05 10:05:23,977 - INFO - Initial checks done. Running the testcase now 2026-02-05 10:05:23,977 - INFO - 2026-02-05 10:05:24,343 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775, 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-56566480:ctest-vn4-47057775, 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-56566480:ctest-vn4-47057775, 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-56566480:ctest-vn4-47057775, 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-02-05 10:05:24,842 - DEBUG - Response for create_network : {'network': {'id': '1358cf78-c362-4221-adcc-2c9c1e386e84', 'name': 'ctest-vn4-47057775', 'tenant_id': 'f67d05bca35c41dca7f811be340d0b3b', 'project_id': 'f67d05bca35c41dca7f811be340d0b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56566480', 'ctest-vn4-47057775'], 'port_security_enabled': True, 'description': ''}} 2026-02-05 10:05:25,040 - DEBUG - Response for create_subnet : {'subnet': {'id': '22b407a6-1b05-4ffa-86f5-6a8e4a3a863b', 'name': '', 'tenant_id': 'f67d05bca35c41dca7f811be340d0b3b', 'network_id': '1358cf78-c362-4221-adcc-2c9c1e386e84', 'ip_version': 4, 'cidr': '219.157.170.192/26', 'allocation_pools': [{'start': '219.157.170.194', 'end': '219.157.170.254'}], 'gateway_ip': '219.157.170.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '219.157.170.194', 'tags': [], 'project_id': 'f67d05bca35c41dca7f811be340d0b3b'}} 2026-02-05 10:05:25,189 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e9d9f76-5dfc-4797-b82f-bb22ca7906fd', 'name': '', 'tenant_id': 'f67d05bca35c41dca7f811be340d0b3b', 'network_id': '1358cf78-c362-4221-adcc-2c9c1e386e84', 'ip_version': 6, 'cidr': '29db:2bd6:5c22:3591:1f68:6d7d::/96', 'allocation_pools': [{'start': '29db:2bd6:5c22:3591:1f68:6d7d:0:2', 'end': '29db:2bd6:5c22:3591:1f68:6d7d:ffff:fffe'}], 'gateway_ip': '29db:2bd6:5c22:3591:1f68:6d7d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '29db:2bd6:5c22:3591:1f68:6d7d:0:2', 'tags': [], 'project_id': 'f67d05bca35c41dca7f811be340d0b3b'}} 2026-02-05 10:05:25,209 - INFO - Created VN ctest-vn4-47057775 2026-02-05 10:05:25,260 - DEBUG - VN ctest-vn4-47057775 UUID is 1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:25,460 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1358cf78-c362-4221-adcc-2c9c1e386e84', 'name': 'ctest-vn4-47057775', 'tenant_id': 'f67d05bca35c41dca7f811be340d0b3b', 'project_id': 'f67d05bca35c41dca7f811be340d0b3b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['22b407a6-1b05-4ffa-86f5-6a8e4a3a863b', '2e9d9f76-5dfc-4797-b82f-bb22ca7906fd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56566480', 'ctest-vn4-47057775'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56566480', 'ctest-policy1-69728516']], 'subnet_ipam': [{'subnet_cidr': '219.157.170.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '29db:2bd6:5c22:3591:1f68:6d7d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-05 10:05:25,620 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 10:05:25,913 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 10:05:25,942 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129 2026-02-05 10:05:25,953 - DEBUG - Requesting: http://10.0.0.22:8082/project/f67d05bc-a35c-41dc-a7f8-11be340d0b3b 2026-02-05 10:05:26,023 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,034 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,044 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,052 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,058 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73f79af8-1218-4280-96b5-57965b6d88ad 2026-02-05 10:05:26,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 10:05:26,063 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,071 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,084 - INFO - Verified VN network id 12 for VN 1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,084 - INFO - Verifications in API Server for VN ctest-vn4-47057775 passed 2026-02-05 10:05:26,084 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,092 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,099 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,106 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/73f79af8-1218-4280-96b5-57965b6d88ad 2026-02-05 10:05:26,119 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56566480', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1394092202252190241', 'uuid-lslong': '12523433712844041860'}, 'enable': 'true', 'created': '2026-02-05T10:05:24', 'last-modified': '2026-02-05T10:05:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688449'} 2026-02-05 10:05:26,126 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 10:05:26,126 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47057775 passed 2026-02-05 10:05:26,127 - DEBUG - ====Verifying policy data for ctest-vn4-47057775 in API_Server ====== 2026-02-05 10:05:26,127 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 10:05:26,132 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129 2026-02-05 10:05:26,143 - DEBUG - Requesting: http://10.0.0.22:8082/project/f67d05bc-a35c-41dc-a7f8-11be340d0b3b 2026-02-05 10:05:26,215 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/1358cf78-c362-4221-adcc-2c9c1e386e84 2026-02-05 10:05:26,224 - DEBUG - ==>Verifying data for policy with id: faa54dfe-83aa-4d7e-9c6c-a029515f5368, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56566480', 'ctest-policy1-69728516'] 2026-02-05 10:05:26,224 - INFO - VN ctest-vn4-47057775 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 10:05:26,224 - DEBUG - Verifying the vn in opserver 2026-02-05 10:05:26,224 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775 virtual network link through opserver 10.0.0.22 2026-02-05 10:05:26,224 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-05 10:05:26,516 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-05 10:05:26,591 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775?flat'} 2026-02-05 10:05:26,591 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56566480:ctest-vn4-47057775 is found in opserver 2026-02-05 10:05:26,600 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 10:05:26,605 - DEBUG - VRF ids for VN ctest-vn4-47057775: {} 2026-02-05 10:05:26,605 - DEBUG - ====Verifying data for ctest-policy1-69728516 in API_Server ====== 2026-02-05 10:05:26,605 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 10:05:26,612 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129 2026-02-05 10:05:26,626 - DEBUG - Requesting: http://10.0.0.22:8082/project/f67d05bc-a35c-41dc-a7f8-11be340d0b3b 2026-02-05 10:05:26,691 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/faa54dfe-83aa-4d7e-9c6c-a029515f5368 2026-02-05 10:05:26,700 - INFO - Verified policy ctest-policy1-69728516 in API Server, Result: True 2026-02-05 10:05:26,700 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 10:05:26,707 - INFO - Deleting VN ctest-vn4-47057775 2026-02-05 10:05:26,820 - DEBUG - Response for deleting network () 2026-02-05 10:05:26,820 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/a45cfa73-8f27-4665-981a-3e48bd7dcd44 2026-02-05 10:05:26,824 - DEBUG - Response Code: 404 2026-02-05 10:05:26,825 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2026-02-05 10:05:26,829 - DEBUG - Requesting: http://10.0.0.22:8082/domain/8de96c00-c690-4829-838c-6a62ec0a7129 2026-02-05 10:05:26,882 - DEBUG - Requesting: http://10.0.0.22:8082/project/f67d05bc-a35c-41dc-a7f8-11be340d0b3b 2026-02-05 10:05:26,947 - INFO - Validated that VN ctest-vn4-47057775 is not found in API Server 2026-02-05 10:05:26,959 - DEBUG - VN ctest-vn4-47057775 is not present in Agent 10.0.0.22 2026-02-05 10:05:26,959 - INFO - Validated that VN ctest-vn4-47057775 is not in any agent 2026-02-05 10:05:26,971 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47057775 info 2026-02-05 10:05:26,996 - INFO - Deleted policy ctest-policy1-69728516 2026-02-05 10:05:27,160 - DEBUG - policy ctest-policy1-69728516 is not found in API Server 2026-02-05 10:05:27,413 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 10:05:27,413 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-05 10:05:27,413 - INFO - -------------------------------------------------------------------------------- 2026-02-05 10:05:27,701 - DEBUG - No XMPP flaps were noticed during the test
2026-02-05 10:05:27,701 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-05 10:05:27,701 - INFO - -------------------------------------------------------------------------------- 2026-02-05 10:05:28,382 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56566480, ID : f67d05bc-a35c-41dc-a7f8-11be340d0b3b