2025-10-24 20:23:29,056 - INFO - Domain Default found not creating 2025-10-24 20:23:29,373 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20847608 not found, creating it 2025-10-24 20:23:30,023 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20847608, ID : ad679228-b05c-4b4a-abe2-6f6bd2ad9b19 2025-10-24 20:23:32,021 - INFO - ================================================================================ 2025-10-24 20:23:32,021 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 20:23:32,336 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-10-24 20:23:32,336 - INFO - Initial checks done. Running the testcase now 2025-10-24 20:23:32,336 - INFO - 2025-10-24 20:23:32,337 - INFO - ================================================================================ 2025-10-24 20:23:32,337 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-24 20:23:32,337 - 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-24 20:23:32,688 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-10-24 20:23:32,688 - INFO - Initial checks done. Running the testcase now 2025-10-24 20:23:32,688 - INFO - 2025-10-24 20:23:33,078 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016, 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-20847608:ctest-vn4-62080016, 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-20847608:ctest-vn4-62080016, 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-20847608:ctest-vn4-62080016, 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-24 20:23:33,827 - DEBUG - Response for create_network : {'network': {'id': '734c1f03-b4ec-4252-9993-ea95d10b6b3b', 'name': 'ctest-vn4-62080016', 'tenant_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'project_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20847608', 'ctest-vn4-62080016'], 'port_security_enabled': True, 'description': ''}} 2025-10-24 20:23:34,053 - DEBUG - Response for create_subnet : {'subnet': {'id': '1113a175-98a5-40ac-b0a7-6546d57391ef', 'name': '', 'tenant_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'network_id': '734c1f03-b4ec-4252-9993-ea95d10b6b3b', 'ip_version': 4, 'cidr': '63.86.8.192/26', 'allocation_pools': [{'start': '63.86.8.194', 'end': '63.86.8.254'}], 'gateway_ip': '63.86.8.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.86.8.194', 'tags': [], 'project_id': 'ad679228b05c4b4aabe26f6bd2ad9b19'}} 2025-10-24 20:23:34,278 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7ddd329-a6c9-4430-8bf0-b610ded9f1c9', 'name': '', 'tenant_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'network_id': '734c1f03-b4ec-4252-9993-ea95d10b6b3b', 'ip_version': 6, 'cidr': '2585:1cf9:c59b:9da8:d150:c401::/96', 'allocation_pools': [{'start': '2585:1cf9:c59b:9da8:d150:c401:0:2', 'end': '2585:1cf9:c59b:9da8:d150:c401:ffff:fffe'}], 'gateway_ip': '2585:1cf9:c59b:9da8:d150:c401:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2585:1cf9:c59b:9da8:d150:c401:0:2', 'tags': [], 'project_id': 'ad679228b05c4b4aabe26f6bd2ad9b19'}} 2025-10-24 20:23:34,298 - INFO - Created VN ctest-vn4-62080016 2025-10-24 20:23:34,351 - DEBUG - VN ctest-vn4-62080016 UUID is 734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:34,589 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '734c1f03-b4ec-4252-9993-ea95d10b6b3b', 'name': 'ctest-vn4-62080016', 'tenant_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'project_id': 'ad679228b05c4b4aabe26f6bd2ad9b19', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1113a175-98a5-40ac-b0a7-6546d57391ef', 'd7ddd329-a6c9-4430-8bf0-b610ded9f1c9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20847608', 'ctest-vn4-62080016'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20847608', 'ctest-policy1-39414243']], 'subnet_ipam': [{'subnet_cidr': '63.86.8.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2585:1cf9:c59b:9da8:d150:c401::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-24 20:23:34,751 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-24 20:23:35,062 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-24 20:23:35,103 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45 2025-10-24 20:23:35,130 - DEBUG - Requesting: http://10.0.0.22:8082/project/ad679228-b05c-4b4a-abe2-6f6bd2ad9b19 2025-10-24 20:23:35,247 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,284 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,306 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:35,321 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:35,338 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/423e627c-d2c7-4172-a3bf-001013762566 2025-10-24 20:23:35,354 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 20:23:35,354 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,379 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:35,419 - INFO - Verified VN network id 11 for VN 734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,420 - INFO - Verifications in API Server for VN ctest-vn4-62080016 passed 2025-10-24 20:23:35,420 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,447 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:35,465 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:35,484 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/423e627c-d2c7-4172-a3bf-001013762566 2025-10-24 20:23:35,514 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20847608', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8308049513372467794', 'uuid-lslong': '11066446638557653819'}, 'enable': 'true', 'created': '2025-10-24T20:23:33', 'last-modified': '2025-10-24T20:23:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.957084'} 2025-10-24 20:23:35,530 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-24 20:23:35,530 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62080016 passed 2025-10-24 20:23:35,531 - DEBUG - ====Verifying policy data for ctest-vn4-62080016 in API_Server ====== 2025-10-24 20:23:35,531 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-24 20:23:35,542 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45 2025-10-24 20:23:35,560 - DEBUG - Requesting: http://10.0.0.22:8082/project/ad679228-b05c-4b4a-abe2-6f6bd2ad9b19 2025-10-24 20:23:35,661 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/734c1f03-b4ec-4252-9993-ea95d10b6b3b 2025-10-24 20:23:35,685 - DEBUG - ==>Verifying data for policy with id: 4d749ff5-593e-43ef-bf92-1cce0401a9ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20847608', 'ctest-policy1-39414243'] 2025-10-24 20:23:35,686 - INFO - VN ctest-vn4-62080016 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-24 20:23:35,686 - DEBUG - Verifying the vn in opserver 2025-10-24 20:23:35,686 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016 virtual network link through opserver 10.0.0.22 2025-10-24 20:23:35,687 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-24 20:23:36,051 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-24 20:23:36,131 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016?flat'} 2025-10-24 20:23:36,131 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20847608:ctest-vn4-62080016 is found in opserver 2025-10-24 20:23:36,155 - DEBUG - Do not have enough data to verify VN in agent 2025-10-24 20:23:36,164 - DEBUG - VRF ids for VN ctest-vn4-62080016: {} 2025-10-24 20:23:36,165 - DEBUG - ====Verifying data for ctest-policy1-39414243 in API_Server ====== 2025-10-24 20:23:36,165 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-24 20:23:36,176 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45 2025-10-24 20:23:36,203 - DEBUG - Requesting: http://10.0.0.22:8082/project/ad679228-b05c-4b4a-abe2-6f6bd2ad9b19 2025-10-24 20:23:36,310 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/4d749ff5-593e-43ef-bf92-1cce0401a9ba 2025-10-24 20:23:36,337 - INFO - Verified policy ctest-policy1-39414243 in API Server, Result: True 2025-10-24 20:23:36,337 - INFO - Done with setup and verification, moving onto test .. 2025-10-24 20:23:36,354 - INFO - Deleting VN ctest-vn4-62080016 2025-10-24 20:23:36,566 - DEBUG - Response for deleting network () 2025-10-24 20:23:36,566 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3489f113-303a-4954-a3df-019984e0abc5 2025-10-24 20:23:36,573 - DEBUG - Response Code: 404 2025-10-24 20:23:36,573 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-24 20:23:36,583 - DEBUG - Requesting: http://10.0.0.22:8082/domain/4d58c87c-9580-41b5-9c39-fe0c3ac8cd45 2025-10-24 20:23:36,641 - DEBUG - Requesting: http://10.0.0.22:8082/project/ad679228-b05c-4b4a-abe2-6f6bd2ad9b19 2025-10-24 20:23:36,736 - INFO - Validated that VN ctest-vn4-62080016 is not found in API Server 2025-10-24 20:23:36,752 - DEBUG - VN ctest-vn4-62080016 is not present in Agent 10.0.0.22 2025-10-24 20:23:36,752 - INFO - Validated that VN ctest-vn4-62080016 is not in any agent 2025-10-24 20:23:36,777 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62080016 info 2025-10-24 20:23:36,819 - INFO - Deleted policy ctest-policy1-39414243 2025-10-24 20:23:37,011 - DEBUG - policy ctest-policy1-39414243 is not found in API Server 2025-10-24 20:23:37,315 - DEBUG - No XMPP flaps were noticed during the test
2025-10-24 20:23:37,316 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-24 20:23:37,316 - INFO - -------------------------------------------------------------------------------- 2025-10-24 20:23:37,639 - DEBUG - No XMPP flaps were noticed during the test
2025-10-24 20:23:37,639 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-24 20:23:37,639 - INFO - -------------------------------------------------------------------------------- 2025-10-24 20:23:38,389 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20847608, ID : ad679228-b05c-4b4a-abe2-6f6bd2ad9b19