2026-02-05 01:53:57,432 - INFO - Reading existing Domain with UUID 70bce805-d50c-4da5-abf7-4b11fc3802fd 2026-02-05 01:53:57,449 - INFO - Using existing domain ['admin_domain'](70bce805-d50c-4da5-abf7-4b11fc3802fd) 2026-02-05 01:53:57,661 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-89585974 not found, creating it 2026-02-05 01:53:58,211 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-89585974, ID : 1269f14e-a976-4f72-a4af-50b09006189b 2026-02-05 01:54:00,059 - INFO - ================================================================================ 2026-02-05 01:54:00,060 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 01:54:00,455 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-02-05 01:54:00,455 - INFO - Initial checks done. Running the testcase now 2026-02-05 01:54:00,455 - INFO - 2026-02-05 01:54:00,455 - INFO - ================================================================================ 2026-02-05 01:54:00,456 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-05 01:54:00,456 - 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 01:54:00,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.0.0.241': '0'}} with 2026-02-05 01:54:00,848 - INFO - Initial checks done. Running the testcase now 2026-02-05 01:54:00,848 - INFO - 2026-02-05 01:54:01,225 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185, 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 01:54:01,931 - DEBUG - Response for create_network : {'network': {'id': '01c31b14-cc7e-4e13-91d8-08a526b713f6', 'name': 'ctest-vn4-94015185', 'tenant_id': '1269f14ea9764f72a4af50b09006189b', 'project_id': '1269f14ea9764f72a4af50b09006189b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89585974', 'ctest-vn4-94015185'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2026-02-05 01:54:02,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '7615ba5d-5d8c-406d-b56c-07aa647c1f88', 'name': '', 'tenant_id': '1269f14ea9764f72a4af50b09006189b', 'network_id': '01c31b14-cc7e-4e13-91d8-08a526b713f6', 'ip_version': 4, 'cidr': '62.213.62.0/26', 'allocation_pools': [{'start': '62.213.62.2', 'end': '62.213.62.62'}], 'gateway_ip': '62.213.62.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-05T01:54:02.103737', 'updated_at': '2026-02-05T01:54:02.103737', 'dns_server_address': '62.213.62.2', 'tags': [], 'project_id': '1269f14ea9764f72a4af50b09006189b'}} 2026-02-05 01:54:02,435 - DEBUG - Response for create_subnet : {'subnet': {'id': '2909fe57-a064-4055-9f54-63d9dcedece6', 'name': '', 'tenant_id': '1269f14ea9764f72a4af50b09006189b', 'network_id': '01c31b14-cc7e-4e13-91d8-08a526b713f6', 'ip_version': 6, 'cidr': '3477:c7b6:62ef:3dac:ad82:a99f::/96', 'allocation_pools': [{'start': '3477:c7b6:62ef:3dac:ad82:a99f:0:2', 'end': '3477:c7b6:62ef:3dac:ad82:a99f:ffff:fffe'}], 'gateway_ip': '3477:c7b6:62ef:3dac:ad82:a99f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2026-02-05T01:54:02.323218', 'updated_at': '2026-02-05T01:54:02.323218', 'dns_server_address': '3477:c7b6:62ef:3dac:ad82:a99f:0:2', 'tags': [], 'project_id': '1269f14ea9764f72a4af50b09006189b'}} 2026-02-05 01:54:02,504 - INFO - Created VN ctest-vn4-94015185 2026-02-05 01:54:02,570 - DEBUG - VN ctest-vn4-94015185 UUID is 01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:03,046 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '01c31b14-cc7e-4e13-91d8-08a526b713f6', 'name': 'ctest-vn4-94015185', 'tenant_id': '1269f14ea9764f72a4af50b09006189b', 'project_id': '1269f14ea9764f72a4af50b09006189b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7615ba5d-5d8c-406d-b56c-07aa647c1f88', '2909fe57-a064-4055-9f54-63d9dcedece6'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89585974', 'ctest-vn4-94015185'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89585974', 'ctest-policy1-36222162']], 'subnet_ipam': [{'subnet_cidr': '62.213.62.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3477:c7b6:62ef:3dac:ad82:a99f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2026-02-05T01:54:01.856749', 'updated_at': '2026-02-05T01:54:02.337841'}} 2026-02-05 01:54:03,222 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-05 01:54:03,565 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-05 01:54:03,646 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd 2026-02-05 01:54:03,703 - DEBUG - Requesting: https://10.0.0.241:8082/project/1269f14e-a976-4f72-a4af-50b09006189b 2026-02-05 01:54:03,783 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:03,844 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:03,900 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:03,955 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:04,007 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/cbb902b5-743c-4e81-81f1-0d2657d099b4 2026-02-05 01:54:04,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 01:54:04,063 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:04,121 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:04,187 - INFO - Verified VN network id 10 for VN 01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:04,188 - INFO - Verifications in API Server for VN ctest-vn4-94015185 passed 2026-02-05 01:54:04,188 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:04,244 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:04,299 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:04,355 - DEBUG - Requesting: https://10.0.0.241:8082/route-target/cbb902b5-743c-4e81-81f1-0d2657d099b4 2026-02-05 01:54:04,459 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-89585974', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '126974990640631315', 'uuid-lslong': '10509159235881210870'}, 'enable': 'true', 'created': '2026-02-05T01:54:01', 'last-modified': '2026-02-05T01:54:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.457705'} 2026-02-05 01:54:04,512 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-05 01:54:04,512 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94015185 passed 2026-02-05 01:54:04,512 - DEBUG - ====Verifying policy data for ctest-vn4-94015185 in API_Server ====== 2026-02-05 01:54:04,512 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-05 01:54:04,566 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd 2026-02-05 01:54:04,627 - DEBUG - Requesting: https://10.0.0.241:8082/project/1269f14e-a976-4f72-a4af-50b09006189b 2026-02-05 01:54:04,719 - DEBUG - Requesting: https://10.0.0.241:8082/virtual-network/01c31b14-cc7e-4e13-91d8-08a526b713f6 2026-02-05 01:54:04,776 - DEBUG - ==>Verifying data for policy with id: 9b91f2fd-d6fc-4fb2-b520-6e5d399ddb1b, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-89585974', 'ctest-policy1-36222162'] 2026-02-05 01:54:04,776 - INFO - VN ctest-vn4-94015185 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-05 01:54:04,776 - DEBUG - Verifying the vn in opserver 2026-02-05 01:54:04,776 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185 virtual network link through opserver 10.0.0.241 2026-02-05 01:54:04,776 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-05 01:54:05,125 - DEBUG - Requesting: https://10.0.0.241:8081/analytics/uves/virtual-networks 2026-02-05 01:54:05,238 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185', 'href': 'https://10.0.0.241:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185?flat'} 2026-02-05 01:54:05,239 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-89585974:ctest-vn4-94015185 is found in opserver 2026-02-05 01:54:05,334 - DEBUG - Do not have enough data to verify VN in agent 2026-02-05 01:54:05,382 - DEBUG - VRF ids for VN ctest-vn4-94015185: {} 2026-02-05 01:54:05,383 - DEBUG - ====Verifying data for ctest-policy1-36222162 in API_Server ====== 2026-02-05 01:54:05,383 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-05 01:54:05,434 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd 2026-02-05 01:54:05,495 - DEBUG - Requesting: https://10.0.0.241:8082/project/1269f14e-a976-4f72-a4af-50b09006189b 2026-02-05 01:54:05,571 - DEBUG - Requesting: https://10.0.0.241:8082/network-policy/9b91f2fd-d6fc-4fb2-b520-6e5d399ddb1b 2026-02-05 01:54:05,628 - INFO - Verified policy ctest-policy1-36222162 in API Server, Result: True 2026-02-05 01:54:05,628 - INFO - Done with setup and verification, moving onto test .. 2026-02-05 01:54:05,638 - INFO - Deleting VN ctest-vn4-94015185 2026-02-05 01:54:05,820 - DEBUG - Response for deleting network () 2026-02-05 01:54:05,820 - DEBUG - Requesting: https://10.0.0.241:8082/routing-instance/f0cd8b81-4954-4476-a74c-38475ebaad01 2026-02-05 01:54:05,870 - DEBUG - Response Code: 404 2026-02-05 01:54:05,870 - DEBUG - Requesting: https://10.0.0.241:8082/domains 2026-02-05 01:54:05,922 - DEBUG - Requesting: https://10.0.0.241:8082/domain/70bce805-d50c-4da5-abf7-4b11fc3802fd 2026-02-05 01:54:05,979 - DEBUG - Requesting: https://10.0.0.241:8082/project/1269f14e-a976-4f72-a4af-50b09006189b 2026-02-05 01:54:06,059 - INFO - Validated that VN ctest-vn4-94015185 is not found in API Server 2026-02-05 01:54:06,167 - DEBUG - VN ctest-vn4-94015185 is not present in Agent 10.0.0.241 2026-02-05 01:54:06,167 - INFO - Validated that VN ctest-vn4-94015185 is not in any agent 2026-02-05 01:54:06,327 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94015185 info 2026-02-05 01:54:06,359 - INFO - Deleted policy ctest-policy1-36222162 2026-02-05 01:54:06,533 - DEBUG - policy ctest-policy1-36222162 is not found in API Server 2026-02-05 01:54:06,927 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 01:54:06,927 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2026-02-05 01:54:06,927 - INFO - -------------------------------------------------------------------------------- 2026-02-05 01:54:07,319 - DEBUG - No XMPP flaps were noticed during the test 2026-02-05 01:54:07,319 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2026-02-05 01:54:07,319 - INFO - -------------------------------------------------------------------------------- 2026-02-05 01:54:08,097 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-89585974, ID : 1269f14e-a976-4f72-a4af-50b09006189b