2026-01-06 04:13:38,818 - INFO - Domain Default found not creating 2026-01-06 04:13:38,978 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67403823 not found, creating it 2026-01-06 04:13:39,426 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67403823, ID : 631931fa-9b37-4d44-93ce-a0b78831bbba 2026-01-06 04:13:40,858 - INFO - ================================================================================ 2026-01-06 04:13:40,858 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 04:13:41,115 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-06 04:13:41,115 - INFO - Initial checks done. Running the testcase now 2026-01-06 04:13:41,115 - INFO - 2026-01-06 04:13:41,115 - INFO - ================================================================================ 2026-01-06 04:13:41,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-06 04:13:41,116 - 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-06 04:13:41,404 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-06 04:13:41,404 - INFO - Initial checks done. Running the testcase now 2026-01-06 04:13:41,404 - INFO - 2026-01-06 04:13:41,758 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787, 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-67403823:ctest-vn4-52562787, 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-67403823:ctest-vn4-52562787, 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-67403823:ctest-vn4-52562787, 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-06 04:13:42,243 - DEBUG - Response for create_network : {'network': {'id': '5b5804e2-671a-4f46-93d0-545c2ddc1e71', 'name': 'ctest-vn4-52562787', 'tenant_id': '631931fa9b374d4493cea0b78831bbba', 'project_id': '631931fa9b374d4493cea0b78831bbba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67403823', 'ctest-vn4-52562787'], 'port_security_enabled': True, 'description': ''}} 2026-01-06 04:13:42,451 - DEBUG - Response for create_subnet : {'subnet': {'id': '8a518b48-9daf-4ddf-aff3-281847d83fbf', 'name': '', 'tenant_id': '631931fa9b374d4493cea0b78831bbba', 'network_id': '5b5804e2-671a-4f46-93d0-545c2ddc1e71', 'ip_version': 4, 'cidr': '1.107.138.128/26', 'allocation_pools': [{'start': '1.107.138.130', 'end': '1.107.138.190'}], 'gateway_ip': '1.107.138.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '1.107.138.130', 'tags': [], 'project_id': '631931fa9b374d4493cea0b78831bbba'}} 2026-01-06 04:13:42,649 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2cd93b8-19f9-42ff-9b07-83024f75c69b', 'name': '', 'tenant_id': '631931fa9b374d4493cea0b78831bbba', 'network_id': '5b5804e2-671a-4f46-93d0-545c2ddc1e71', 'ip_version': 6, 'cidr': '3c1a:6c5f:c4cc:281e:1be6:6590::/96', 'allocation_pools': [{'start': '3c1a:6c5f:c4cc:281e:1be6:6590:0:2', 'end': '3c1a:6c5f:c4cc:281e:1be6:6590:ffff:fffe'}], 'gateway_ip': '3c1a:6c5f:c4cc:281e:1be6:6590:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3c1a:6c5f:c4cc:281e:1be6:6590:0:2', 'tags': [], 'project_id': '631931fa9b374d4493cea0b78831bbba'}} 2026-01-06 04:13:42,671 - INFO - Created VN ctest-vn4-52562787 2026-01-06 04:13:42,723 - DEBUG - VN ctest-vn4-52562787 UUID is 5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:42,927 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b5804e2-671a-4f46-93d0-545c2ddc1e71', 'name': 'ctest-vn4-52562787', 'tenant_id': '631931fa9b374d4493cea0b78831bbba', 'project_id': '631931fa9b374d4493cea0b78831bbba', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8a518b48-9daf-4ddf-aff3-281847d83fbf', 'c2cd93b8-19f9-42ff-9b07-83024f75c69b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67403823', 'ctest-vn4-52562787'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67403823', 'ctest-policy1-13400975']], 'subnet_ipam': [{'subnet_cidr': '1.107.138.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3c1a:6c5f:c4cc:281e:1be6:6590::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-06 04:13:43,083 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-06 04:13:43,375 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-06 04:13:43,406 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bbe84470-f704-4e92-836b-35ba110c8624 2026-01-06 04:13:43,417 - DEBUG - Requesting: http://10.0.0.33:8082/project/631931fa-9b37-4d44-93ce-a0b78831bbba 2026-01-06 04:13:43,487 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,498 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,507 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:43,514 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:43,520 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea1c6c5-0704-4c18-ab33-808ab48c4abf 2026-01-06 04:13:43,526 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 04:13:43,526 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,534 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:43,547 - INFO - Verified VN network id 10 for VN 5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,547 - INFO - Verifications in API Server for VN ctest-vn4-52562787 passed 2026-01-06 04:13:43,547 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,556 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:43,562 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:43,569 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5ea1c6c5-0704-4c18-ab33-808ab48c4abf 2026-01-06 04:13:43,584 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67403823', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6582016225840877382', 'uuid-lslong': '10651105873614347889'}, 'enable': 'true', 'created': '2026-01-06T04:13:42', 'last-modified': '2026-01-06T04:13:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684841'} 2026-01-06 04:13:43,593 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-06 04:13:43,593 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-52562787 passed 2026-01-06 04:13:43,593 - DEBUG - ====Verifying policy data for ctest-vn4-52562787 in API_Server ====== 2026-01-06 04:13:43,593 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-06 04:13:43,599 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bbe84470-f704-4e92-836b-35ba110c8624 2026-01-06 04:13:43,612 - DEBUG - Requesting: http://10.0.0.33:8082/project/631931fa-9b37-4d44-93ce-a0b78831bbba 2026-01-06 04:13:43,681 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5b5804e2-671a-4f46-93d0-545c2ddc1e71 2026-01-06 04:13:43,689 - DEBUG - ==>Verifying data for policy with id: 49e3d47f-4fe2-4154-88a5-b649aa1fd167, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67403823', 'ctest-policy1-13400975'] 2026-01-06 04:13:43,689 - INFO - VN ctest-vn4-52562787 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-06 04:13:43,690 - DEBUG - Verifying the vn in opserver 2026-01-06 04:13:43,690 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787 virtual network link through opserver 10.0.0.33 2026-01-06 04:13:43,690 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-06 04:13:43,983 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-06 04:13:44,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787?flat'} 2026-01-06 04:13:44,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67403823:ctest-vn4-52562787 is found in opserver 2026-01-06 04:13:44,097 - DEBUG - Do not have enough data to verify VN in agent 2026-01-06 04:13:44,104 - DEBUG - VRF ids for VN ctest-vn4-52562787: {} 2026-01-06 04:13:44,105 - DEBUG - ====Verifying data for ctest-policy1-13400975 in API_Server ====== 2026-01-06 04:13:44,105 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-06 04:13:44,110 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bbe84470-f704-4e92-836b-35ba110c8624 2026-01-06 04:13:44,186 - DEBUG - Requesting: http://10.0.0.33:8082/project/631931fa-9b37-4d44-93ce-a0b78831bbba 2026-01-06 04:13:44,253 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/49e3d47f-4fe2-4154-88a5-b649aa1fd167 2026-01-06 04:13:44,261 - INFO - Verified policy ctest-policy1-13400975 in API Server, Result: True 2026-01-06 04:13:44,262 - INFO - Done with setup and verification, moving onto test .. 2026-01-06 04:13:44,269 - INFO - Deleting VN ctest-vn4-52562787 2026-01-06 04:13:44,370 - DEBUG - Response for deleting network () 2026-01-06 04:13:44,370 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ce586891-769a-4873-9b66-9d3df476a0b8 2026-01-06 04:13:44,375 - DEBUG - Response Code: 404 2026-01-06 04:13:44,376 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-06 04:13:44,380 - DEBUG - Requesting: http://10.0.0.33:8082/domain/bbe84470-f704-4e92-836b-35ba110c8624 2026-01-06 04:13:44,431 - DEBUG - Requesting: http://10.0.0.33:8082/project/631931fa-9b37-4d44-93ce-a0b78831bbba 2026-01-06 04:13:44,504 - INFO - Validated that VN ctest-vn4-52562787 is not found in API Server 2026-01-06 04:13:44,512 - DEBUG - VN ctest-vn4-52562787 is not present in Agent 10.0.0.33 2026-01-06 04:13:44,512 - INFO - Validated that VN ctest-vn4-52562787 is not in any agent 2026-01-06 04:13:44,525 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-52562787 info 2026-01-06 04:13:44,548 - INFO - Deleted policy ctest-policy1-13400975 2026-01-06 04:13:44,710 - DEBUG - policy ctest-policy1-13400975 is not found in API Server 2026-01-06 04:13:44,968 - DEBUG - No XMPP flaps were noticed during the test 2026-01-06 04:13:44,968 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2026-01-06 04:13:44,968 - INFO - -------------------------------------------------------------------------------- 2026-01-06 04:13:45,255 - DEBUG - No XMPP flaps were noticed during the test 2026-01-06 04:13:45,255 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-01-06 04:13:45,255 - INFO - -------------------------------------------------------------------------------- 2026-01-06 04:13:45,924 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-67403823, ID : 631931fa-9b37-4d44-93ce-a0b78831bbba