2025-10-22 21:18:03,070 - INFO - Domain Default found not creating 2025-10-22 21:18:03,250 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44589150 not found, creating it 2025-10-22 21:18:03,726 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44589150, ID : 26e2ddc0-0c84-4319-9cdf-1f9310522aad 2025-10-22 21:18:05,185 - INFO - ================================================================================ 2025-10-22 21:18:05,185 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 21:18:05,438 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 21:18:05,438 - INFO - Initial checks done. Running the testcase now 2025-10-22 21:18:05,438 - INFO - 2025-10-22 21:18:05,438 - INFO - ================================================================================ 2025-10-22 21:18:05,438 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 21:18:05,438 - 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. 2025-10-22 21:18:05,727 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-22 21:18:05,727 - INFO - Initial checks done. Running the testcase now 2025-10-22 21:18:05,727 - INFO - 2025-10-22 21:18:06,070 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027, 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-44589150:ctest-vn4-75338027, 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-44589150:ctest-vn4-75338027, 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-44589150:ctest-vn4-75338027, 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] 2025-10-22 21:18:06,573 - DEBUG - Response for create_network : {'network': {'id': '70c89cd2-4e5b-444e-98ca-ac196ea8c691', 'name': 'ctest-vn4-75338027', 'tenant_id': '26e2ddc00c8443199cdf1f9310522aad', 'project_id': '26e2ddc00c8443199cdf1f9310522aad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44589150', 'ctest-vn4-75338027'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 21:18:06,858 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e84e907b-3c29-4103-af53-4f7eb78ec79b', 'name': '', 'tenant_id': '26e2ddc00c8443199cdf1f9310522aad', 'network_id': '70c89cd2-4e5b-444e-98ca-ac196ea8c691', 'ip_version': 4, 'cidr': '196.214.59.128/26', 'allocation_pools': [{'start': '196.214.59.130', 'end': '196.214.59.190'}], 'gateway_ip': '196.214.59.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '196.214.59.130', 'tags': [], 'project_id': '26e2ddc00c8443199cdf1f9310522aad'}} 2025-10-22 21:18:07,014 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e77ee40-566a-4b68-b768-40b179c46ed7', 'name': '', 'tenant_id': '26e2ddc00c8443199cdf1f9310522aad', 'network_id': '70c89cd2-4e5b-444e-98ca-ac196ea8c691', 'ip_version': 6, 'cidr': '3a0b:4b26:fee6:89f8:c870:5291::/96', 'allocation_pools': [{'start': '3a0b:4b26:fee6:89f8:c870:5291:0:2', 'end': '3a0b:4b26:fee6:89f8:c870:5291:ffff:fffe'}], 'gateway_ip': '3a0b:4b26:fee6:89f8:c870:5291:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a0b:4b26:fee6:89f8:c870:5291:0:2', 'tags': [], 'project_id': '26e2ddc00c8443199cdf1f9310522aad'}} 2025-10-22 21:18:07,032 - INFO - Created VN ctest-vn4-75338027 2025-10-22 21:18:07,085 - DEBUG - VN ctest-vn4-75338027 UUID is 70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,289 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '70c89cd2-4e5b-444e-98ca-ac196ea8c691', 'name': 'ctest-vn4-75338027', 'tenant_id': '26e2ddc00c8443199cdf1f9310522aad', 'project_id': '26e2ddc00c8443199cdf1f9310522aad', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e84e907b-3c29-4103-af53-4f7eb78ec79b', '2e77ee40-566a-4b68-b768-40b179c46ed7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44589150', 'ctest-vn4-75338027'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44589150', 'ctest-policy1-82904856']], 'subnet_ipam': [{'subnet_cidr': '196.214.59.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a0b:4b26:fee6:89f8:c870:5291::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 21:18:07,441 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 21:18:07,733 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 21:18:07,759 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a 2025-10-22 21:18:07,769 - DEBUG - Requesting: http://10.0.0.254:8082/project/26e2ddc0-0c84-4319-9cdf-1f9310522aad 2025-10-22 21:18:07,845 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,856 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,865 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:07,870 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:07,876 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a4b6ac17-31b9-44e4-a24b-2d9c367fe1ed 2025-10-22 21:18:07,882 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 21:18:07,882 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,891 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:07,904 - INFO - Verified VN network id 10 for VN 70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,904 - INFO - Verifications in API Server for VN ctest-vn4-75338027 passed 2025-10-22 21:18:07,904 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:07,912 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:07,918 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:07,923 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a4b6ac17-31b9-44e4-a24b-2d9c367fe1ed 2025-10-22 21:18:07,933 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44589150', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8126917954661729358', 'uuid-lslong': '11009801464291313297'}, 'enable': 'true', 'created': '2025-10-22T21:18:06', 'last-modified': '2025-10-22T21:18:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677985'} 2025-10-22 21:18:07,938 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 21:18:07,938 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-75338027 passed 2025-10-22 21:18:07,938 - DEBUG - ====Verifying policy data for ctest-vn4-75338027 in API_Server ====== 2025-10-22 21:18:07,938 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 21:18:07,942 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a 2025-10-22 21:18:07,951 - DEBUG - Requesting: http://10.0.0.254:8082/project/26e2ddc0-0c84-4319-9cdf-1f9310522aad 2025-10-22 21:18:08,021 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/70c89cd2-4e5b-444e-98ca-ac196ea8c691 2025-10-22 21:18:08,030 - DEBUG - ==>Verifying data for policy with id: 03018f97-a4a9-4168-b12e-52685a68c714, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44589150', 'ctest-policy1-82904856'] 2025-10-22 21:18:08,030 - INFO - VN ctest-vn4-75338027 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 21:18:08,030 - DEBUG - Verifying the vn in opserver 2025-10-22 21:18:08,030 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027 virtual network link through opserver 10.0.0.254 2025-10-22 21:18:08,030 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 21:18:08,322 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-22 21:18:08,377 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027?flat'} 2025-10-22 21:18:08,377 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44589150:ctest-vn4-75338027 is found in opserver 2025-10-22 21:18:08,387 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 21:18:08,391 - DEBUG - VRF ids for VN ctest-vn4-75338027: {} 2025-10-22 21:18:08,392 - DEBUG - ====Verifying data for ctest-policy1-82904856 in API_Server ====== 2025-10-22 21:18:08,392 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 21:18:08,397 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a 2025-10-22 21:18:08,407 - DEBUG - Requesting: http://10.0.0.254:8082/project/26e2ddc0-0c84-4319-9cdf-1f9310522aad 2025-10-22 21:18:08,473 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/03018f97-a4a9-4168-b12e-52685a68c714 2025-10-22 21:18:08,482 - INFO - Verified policy ctest-policy1-82904856 in API Server, Result: True 2025-10-22 21:18:08,482 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 21:18:08,491 - INFO - Deleting VN ctest-vn4-75338027 2025-10-22 21:18:08,617 - DEBUG - Response for deleting network () 2025-10-22 21:18:08,617 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/19d78b07-efe2-4951-95d7-64f93219fd07 2025-10-22 21:18:08,621 - DEBUG - Response Code: 404 2025-10-22 21:18:08,622 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-22 21:18:08,627 - DEBUG - Requesting: http://10.0.0.254:8082/domain/d7513584-b509-4864-bf70-fcc357d5381a 2025-10-22 21:18:08,682 - DEBUG - Requesting: http://10.0.0.254:8082/project/26e2ddc0-0c84-4319-9cdf-1f9310522aad 2025-10-22 21:18:08,751 - INFO - Validated that VN ctest-vn4-75338027 is not found in API Server 2025-10-22 21:18:08,762 - DEBUG - VN ctest-vn4-75338027 is not present in Agent 10.0.0.254 2025-10-22 21:18:08,762 - INFO - Validated that VN ctest-vn4-75338027 is not in any agent 2025-10-22 21:18:08,778 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-75338027 info 2025-10-22 21:18:08,800 - INFO - Deleted policy ctest-policy1-82904856 2025-10-22 21:18:08,961 - DEBUG - policy ctest-policy1-82904856 is not found in API Server 2025-10-22 21:18:09,218 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 21:18:09,218 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 21:18:09,218 - INFO - -------------------------------------------------------------------------------- 2025-10-22 21:18:09,511 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 21:18:09,511 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-22 21:18:09,511 - INFO - -------------------------------------------------------------------------------- 2025-10-22 21:18:10,167 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44589150, ID : 26e2ddc0-0c84-4319-9cdf-1f9310522aad