2025-09-11 02:00:52,623 - INFO - Domain Default found not creating 2025-09-11 02:00:52,751 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47391356 not found, creating it 2025-09-11 02:00:53,200 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47391356, ID : f1c71678-9e89-4a99-a8a0-df973d2ab580 2025-09-11 02:00:54,587 - INFO - ================================================================================ 2025-09-11 02:00:54,587 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:00:54,845 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-09-11 02:00:54,845 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:00:54,845 - INFO - 2025-09-11 02:00:54,845 - INFO - ================================================================================ 2025-09-11 02:00:54,845 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 02:00:54,845 - 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-09-11 02:00:55,132 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-09-11 02:00:55,132 - INFO - Initial checks done. Running the testcase now 2025-09-11 02:00:55,133 - INFO - 2025-09-11 02:00:55,481 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611, 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-47391356:ctest-vn4-85501611, 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-47391356:ctest-vn4-85501611, 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-47391356:ctest-vn4-85501611, 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-09-11 02:00:55,997 - DEBUG - Response for create_network : {'network': {'id': '278e47c2-985c-4c5a-b39f-41046fc941a8', 'name': 'ctest-vn4-85501611', 'tenant_id': 'f1c716789e894a99a8a0df973d2ab580', 'project_id': 'f1c716789e894a99a8a0df973d2ab580', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47391356', 'ctest-vn4-85501611'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:00:56,181 - DEBUG - Response for create_subnet : {'subnet': {'id': '39b3b825-fbf6-46aa-bc04-99516835fc17', 'name': '', 'tenant_id': 'f1c716789e894a99a8a0df973d2ab580', 'network_id': '278e47c2-985c-4c5a-b39f-41046fc941a8', 'ip_version': 4, 'cidr': '31.82.226.192/26', 'allocation_pools': [{'start': '31.82.226.194', 'end': '31.82.226.254'}], 'gateway_ip': '31.82.226.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.82.226.194', 'tags': [], 'project_id': 'f1c716789e894a99a8a0df973d2ab580'}} 2025-09-11 02:00:56,344 - DEBUG - Response for create_subnet : {'subnet': {'id': '2fa140ef-0f85-41b2-ac24-80ca672a763f', 'name': '', 'tenant_id': 'f1c716789e894a99a8a0df973d2ab580', 'network_id': '278e47c2-985c-4c5a-b39f-41046fc941a8', 'ip_version': 6, 'cidr': '306c:ec4e:b542:aa30:f763:16fc::/96', 'allocation_pools': [{'start': '306c:ec4e:b542:aa30:f763:16fc:0:2', 'end': '306c:ec4e:b542:aa30:f763:16fc:ffff:fffe'}], 'gateway_ip': '306c:ec4e:b542:aa30:f763:16fc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '306c:ec4e:b542:aa30:f763:16fc:0:2', 'tags': [], 'project_id': 'f1c716789e894a99a8a0df973d2ab580'}} 2025-09-11 02:00:56,362 - INFO - Created VN ctest-vn4-85501611 2025-09-11 02:00:56,412 - DEBUG - VN ctest-vn4-85501611 UUID is 278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:56,603 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '278e47c2-985c-4c5a-b39f-41046fc941a8', 'name': 'ctest-vn4-85501611', 'tenant_id': 'f1c716789e894a99a8a0df973d2ab580', 'project_id': 'f1c716789e894a99a8a0df973d2ab580', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['39b3b825-fbf6-46aa-bc04-99516835fc17', '2fa140ef-0f85-41b2-ac24-80ca672a763f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47391356', 'ctest-vn4-85501611'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47391356', 'ctest-policy1-53497230']], 'subnet_ipam': [{'subnet_cidr': '31.82.226.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '306c:ec4e:b542:aa30:f763:16fc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 02:00:56,772 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 02:00:57,065 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 02:00:57,091 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444 2025-09-11 02:00:57,102 - DEBUG - Requesting: http://10.0.0.50:8082/project/f1c71678-9e89-4a99-a8a0-df973d2ab580 2025-09-11 02:00:57,174 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,189 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,200 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:57,208 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:57,214 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4475bb29-784c-4280-ab6d-c378f39d650f 2025-09-11 02:00:57,219 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:00:57,219 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:57,243 - INFO - Verified VN network id 11 for VN 278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,243 - INFO - Verifications in API Server for VN ctest-vn4-85501611 passed 2025-09-11 02:00:57,243 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,251 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:57,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:57,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4475bb29-784c-4280-ab6d-c378f39d650f 2025-09-11 02:00:57,271 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47391356', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2850294515277515866', 'uuid-lslong': '12943135341397229992'}, 'enable': 'true', 'created': '2025-09-11T02:00:55', 'last-modified': '2025-09-11T02:00:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694069'} 2025-09-11 02:00:57,278 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 02:00:57,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-85501611 passed 2025-09-11 02:00:57,278 - DEBUG - ====Verifying policy data for ctest-vn4-85501611 in API_Server ====== 2025-09-11 02:00:57,278 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 02:00:57,283 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444 2025-09-11 02:00:57,293 - DEBUG - Requesting: http://10.0.0.50:8082/project/f1c71678-9e89-4a99-a8a0-df973d2ab580 2025-09-11 02:00:57,361 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/278e47c2-985c-4c5a-b39f-41046fc941a8 2025-09-11 02:00:57,369 - DEBUG - ==>Verifying data for policy with id: acfbd8ba-b227-4743-bf5f-246a9143a82f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47391356', 'ctest-policy1-53497230'] 2025-09-11 02:00:57,369 - INFO - VN ctest-vn4-85501611 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 02:00:57,369 - DEBUG - Verifying the vn in opserver 2025-09-11 02:00:57,369 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611 virtual network link through opserver 10.0.0.50 2025-09-11 02:00:57,369 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-11 02:00:57,660 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-11 02:00:57,710 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611?flat'} 2025-09-11 02:00:57,710 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47391356:ctest-vn4-85501611 is found in opserver 2025-09-11 02:00:57,720 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 02:00:57,724 - DEBUG - VRF ids for VN ctest-vn4-85501611: {} 2025-09-11 02:00:57,724 - DEBUG - ====Verifying data for ctest-policy1-53497230 in API_Server ====== 2025-09-11 02:00:57,724 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 02:00:57,729 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444 2025-09-11 02:00:57,738 - DEBUG - Requesting: http://10.0.0.50:8082/project/f1c71678-9e89-4a99-a8a0-df973d2ab580 2025-09-11 02:00:57,807 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/acfbd8ba-b227-4743-bf5f-246a9143a82f 2025-09-11 02:00:57,815 - INFO - Verified policy ctest-policy1-53497230 in API Server, Result: True 2025-09-11 02:00:57,815 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 02:00:57,825 - INFO - Deleting VN ctest-vn4-85501611 2025-09-11 02:00:58,115 - DEBUG - Response for deleting network () 2025-09-11 02:00:58,115 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/80a73d65-d021-48dc-b976-630e7d318771 2025-09-11 02:00:58,126 - DEBUG - Response Code: 404 2025-09-11 02:00:58,127 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 02:00:58,200 - DEBUG - Requesting: http://10.0.0.50:8082/domain/14e38ff5-4e2a-408d-8776-b2858b281444 2025-09-11 02:00:58,215 - DEBUG - Requesting: http://10.0.0.50:8082/project/f1c71678-9e89-4a99-a8a0-df973d2ab580 2025-09-11 02:00:58,249 - INFO - Validated that VN ctest-vn4-85501611 is not found in API Server 2025-09-11 02:00:58,259 - DEBUG - VN ctest-vn4-85501611 is not present in Agent 10.0.0.50 2025-09-11 02:00:58,259 - INFO - Validated that VN ctest-vn4-85501611 is not in any agent 2025-09-11 02:00:58,271 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-85501611 info 2025-09-11 02:00:58,342 - INFO - Deleted policy ctest-policy1-53497230 2025-09-11 02:00:58,579 - DEBUG - policy ctest-policy1-53497230 is not found in API Server 2025-09-11 02:00:58,832 - DEBUG - No XMPP flaps were noticed during the test