2025-10-09 08:27:32,678 - INFO - Domain Default found not creating 2025-10-09 08:27:32,815 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-75062759 not found, creating it 2025-10-09 08:27:33,247 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-75062759, ID : 6bbb96d4-cbdb-4722-b44b-f461b6b1faea 2025-10-09 08:27:34,600 - INFO - ================================================================================ 2025-10-09 08:27:34,600 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 08:27:34,852 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 08:27:34,852 - INFO - Initial checks done. Running the testcase now 2025-10-09 08:27:34,852 - INFO - 2025-10-09 08:27:34,852 - INFO - ================================================================================ 2025-10-09 08:27:34,853 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 08:27:34,853 - 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-09 08:27:35,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-09 08:27:35,141 - INFO - Initial checks done. Running the testcase now 2025-10-09 08:27:35,141 - INFO - 2025-10-09 08:27:35,479 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674, 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-75062759:ctest-vn4-74989674, 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-75062759:ctest-vn4-74989674, 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-75062759:ctest-vn4-74989674, 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-09 08:27:35,974 - DEBUG - Response for create_network : {'network': {'id': '257e93e0-fa05-4282-b57c-85072396e4e6', 'name': 'ctest-vn4-74989674', 'tenant_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'project_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75062759', 'ctest-vn4-74989674'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 08:27:36,127 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c26d6dc1-d366-4bcb-b59b-0071343a3638', 'name': '', 'tenant_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'network_id': '257e93e0-fa05-4282-b57c-85072396e4e6', 'ip_version': 4, 'cidr': '97.201.121.128/26', 'allocation_pools': [{'start': '97.201.121.130', 'end': '97.201.121.190'}], 'gateway_ip': '97.201.121.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.201.121.130', 'tags': [], 'project_id': '6bbb96d4cbdb4722b44bf461b6b1faea'}} 2025-10-09 08:27:36,276 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bcc15cc5-40e9-4884-8103-ddea138b8f1e', 'name': '', 'tenant_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'network_id': '257e93e0-fa05-4282-b57c-85072396e4e6', 'ip_version': 6, 'cidr': '3f1e:245f:99b4:f90f:a67b:732e::/96', 'allocation_pools': [{'start': '3f1e:245f:99b4:f90f:a67b:732e:0:2', 'end': '3f1e:245f:99b4:f90f:a67b:732e:ffff:fffe'}], 'gateway_ip': '3f1e:245f:99b4:f90f:a67b:732e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f1e:245f:99b4:f90f:a67b:732e:0:2', 'tags': [], 'project_id': '6bbb96d4cbdb4722b44bf461b6b1faea'}} 2025-10-09 08:27:36,294 - INFO - Created VN ctest-vn4-74989674 2025-10-09 08:27:36,343 - DEBUG - VN ctest-vn4-74989674 UUID is 257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:36,539 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '257e93e0-fa05-4282-b57c-85072396e4e6', 'name': 'ctest-vn4-74989674', 'tenant_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'project_id': '6bbb96d4cbdb4722b44bf461b6b1faea', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c26d6dc1-d366-4bcb-b59b-0071343a3638', 'bcc15cc5-40e9-4884-8103-ddea138b8f1e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75062759', 'ctest-vn4-74989674'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75062759', 'ctest-policy1-95389168']], 'subnet_ipam': [{'subnet_cidr': '97.201.121.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f1e:245f:99b4:f90f:a67b:732e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 08:27:36,692 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 08:27:36,982 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 08:27:37,018 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac 2025-10-09 08:27:37,031 - DEBUG - Requesting: http://10.0.0.33:8082/project/6bbb96d4-cbdb-4722-b44b-f461b6b1faea 2025-10-09 08:27:37,102 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,112 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,120 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,126 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,131 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a6909bd4-8255-47ea-a24d-e752100b07b9 2025-10-09 08:27:37,136 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 08:27:37,136 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,143 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,154 - INFO - Verified VN network id 9 for VN 257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,154 - INFO - Verifications in API Server for VN ctest-vn4-74989674 passed 2025-10-09 08:27:37,154 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,161 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,166 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,172 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/a6909bd4-8255-47ea-a24d-e752100b07b9 2025-10-09 08:27:37,181 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-75062759', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2701759420945482370', 'uuid-lslong': '13077473683685434598'}, 'enable': 'true', 'created': '2025-10-09T08:27:35', 'last-modified': '2025-10-09T08:27:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684138'} 2025-10-09 08:27:37,186 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 08:27:37,186 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-74989674 passed 2025-10-09 08:27:37,186 - DEBUG - ====Verifying policy data for ctest-vn4-74989674 in API_Server ====== 2025-10-09 08:27:37,187 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 08:27:37,191 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac 2025-10-09 08:27:37,203 - DEBUG - Requesting: http://10.0.0.33:8082/project/6bbb96d4-cbdb-4722-b44b-f461b6b1faea 2025-10-09 08:27:37,273 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/257e93e0-fa05-4282-b57c-85072396e4e6 2025-10-09 08:27:37,282 - DEBUG - ==>Verifying data for policy with id: bde5eb33-dd7f-4083-b8d1-da31790f0b30, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-75062759', 'ctest-policy1-95389168'] 2025-10-09 08:27:37,282 - INFO - VN ctest-vn4-74989674 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 08:27:37,282 - DEBUG - Verifying the vn in opserver 2025-10-09 08:27:37,282 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674 virtual network link through opserver 10.0.0.33 2025-10-09 08:27:37,282 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 08:27:37,571 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 08:27:37,624 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674?flat'} 2025-10-09 08:27:37,624 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-75062759:ctest-vn4-74989674 is found in opserver 2025-10-09 08:27:37,635 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 08:27:37,639 - DEBUG - VRF ids for VN ctest-vn4-74989674: {} 2025-10-09 08:27:37,640 - DEBUG - ====Verifying data for ctest-policy1-95389168 in API_Server ====== 2025-10-09 08:27:37,640 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 08:27:37,645 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac 2025-10-09 08:27:37,656 - DEBUG - Requesting: http://10.0.0.33:8082/project/6bbb96d4-cbdb-4722-b44b-f461b6b1faea 2025-10-09 08:27:37,728 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/bde5eb33-dd7f-4083-b8d1-da31790f0b30 2025-10-09 08:27:37,738 - INFO - Verified policy ctest-policy1-95389168 in API Server, Result: True 2025-10-09 08:27:37,738 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 08:27:37,745 - INFO - Deleting VN ctest-vn4-74989674 2025-10-09 08:27:37,859 - DEBUG - Response for deleting network () 2025-10-09 08:27:37,859 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/f712e5af-bfa7-4c2a-bd4f-77594121163d 2025-10-09 08:27:37,864 - DEBUG - Response Code: 404 2025-10-09 08:27:37,864 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-09 08:27:37,869 - DEBUG - Requesting: http://10.0.0.33:8082/domain/1f8125b1-b5c6-4390-b854-f43a5ea2f1ac 2025-10-09 08:27:37,924 - DEBUG - Requesting: http://10.0.0.33:8082/project/6bbb96d4-cbdb-4722-b44b-f461b6b1faea 2025-10-09 08:27:37,995 - INFO - Validated that VN ctest-vn4-74989674 is not found in API Server 2025-10-09 08:27:38,004 - DEBUG - VN ctest-vn4-74989674 is not present in Agent 10.0.0.33 2025-10-09 08:27:38,004 - INFO - Validated that VN ctest-vn4-74989674 is not in any agent 2025-10-09 08:27:38,019 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-74989674 info 2025-10-09 08:27:38,051 - INFO - Deleted policy ctest-policy1-95389168 2025-10-09 08:27:38,215 - DEBUG - policy ctest-policy1-95389168 is not found in API Server 2025-10-09 08:27:38,468 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 08:27:38,468 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-09 08:27:38,468 - INFO - -------------------------------------------------------------------------------- 2025-10-09 08:27:38,762 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 08:27:38,762 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-09 08:27:38,762 - INFO - -------------------------------------------------------------------------------- 2025-10-09 08:27:39,432 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-75062759, ID : 6bbb96d4-cbdb-4722-b44b-f461b6b1faea