2025-12-04 02:41:25,364 - INFO - Domain Default found not creating 2025-12-04 02:41:25,555 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03793739 not found, creating it 2025-12-04 02:41:26,057 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03793739, ID : b7dc5469-b876-47be-8e94-d64e59d5e127 2025-12-04 02:41:27,732 - INFO - ================================================================================ 2025-12-04 02:41:27,732 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:41:27,999 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-04 02:41:27,999 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:41:27,999 - INFO - 2025-12-04 02:41:28,000 - INFO - ================================================================================ 2025-12-04 02:41:28,000 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-04 02:41:28,000 - 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-12-04 02:41:28,281 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-04 02:41:28,281 - INFO - Initial checks done. Running the testcase now 2025-12-04 02:41:28,281 - INFO - 2025-12-04 02:41:28,688 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918, 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-03793739:ctest-vn4-47594918, 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-03793739:ctest-vn4-47594918, 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-03793739:ctest-vn4-47594918, 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-12-04 02:41:29,234 - DEBUG - Response for create_network : {'network': {'id': 'ed90716b-8b7d-47c2-91ce-031085a93365', 'name': 'ctest-vn4-47594918', 'tenant_id': 'b7dc5469b87647be8e94d64e59d5e127', 'project_id': 'b7dc5469b87647be8e94d64e59d5e127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03793739', 'ctest-vn4-47594918'], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:41:29,417 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f735691d-0f2f-436c-be37-195b5a4cd196', 'name': '', 'tenant_id': 'b7dc5469b87647be8e94d64e59d5e127', 'network_id': 'ed90716b-8b7d-47c2-91ce-031085a93365', 'ip_version': 4, 'cidr': '178.12.57.64/26', 'allocation_pools': [{'start': '178.12.57.66', 'end': '178.12.57.126'}], 'gateway_ip': '178.12.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.12.57.66', 'tags': [], 'project_id': 'b7dc5469b87647be8e94d64e59d5e127'}} 2025-12-04 02:41:29,626 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b6abb3d-9197-4cb2-a4e1-5be20b6c2fc4', 'name': '', 'tenant_id': 'b7dc5469b87647be8e94d64e59d5e127', 'network_id': 'ed90716b-8b7d-47c2-91ce-031085a93365', 'ip_version': 6, 'cidr': '3567:1b2d:ca69:407:8e47:ff4d::/96', 'allocation_pools': [{'start': '3567:1b2d:ca69:407:8e47:ff4d:0:2', 'end': '3567:1b2d:ca69:407:8e47:ff4d:ffff:fffe'}], 'gateway_ip': '3567:1b2d:ca69:407:8e47:ff4d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3567:1b2d:ca69:407:8e47:ff4d:0:2', 'tags': [], 'project_id': 'b7dc5469b87647be8e94d64e59d5e127'}} 2025-12-04 02:41:29,650 - INFO - Created VN ctest-vn4-47594918 2025-12-04 02:41:29,702 - DEBUG - VN ctest-vn4-47594918 UUID is ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:29,924 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ed90716b-8b7d-47c2-91ce-031085a93365', 'name': 'ctest-vn4-47594918', 'tenant_id': 'b7dc5469b87647be8e94d64e59d5e127', 'project_id': 'b7dc5469b87647be8e94d64e59d5e127', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f735691d-0f2f-436c-be37-195b5a4cd196', '0b6abb3d-9197-4cb2-a4e1-5be20b6c2fc4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03793739', 'ctest-vn4-47594918'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03793739', 'ctest-policy1-35550855']], 'subnet_ipam': [{'subnet_cidr': '178.12.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3567:1b2d:ca69:407:8e47:ff4d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-04 02:41:30,082 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 02:41:30,423 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 02:41:30,455 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd 2025-12-04 02:41:30,468 - DEBUG - Requesting: http://10.0.0.38:8082/project/b7dc5469-b876-47be-8e94-d64e59d5e127 2025-12-04 02:41:30,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,552 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,562 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:30,569 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:30,577 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41941fe4-a661-4bb1-bb8f-2f4b41c56e90 2025-12-04 02:41:30,583 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:41:30,583 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,593 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:30,607 - INFO - Verified VN network id 11 for VN ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,607 - INFO - Verifications in API Server for VN ctest-vn4-47594918 passed 2025-12-04 02:41:30,607 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,617 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:30,625 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:30,631 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41941fe4-a661-4bb1-bb8f-2f4b41c56e90 2025-12-04 02:41:30,646 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03793739', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17118306890350938050', 'uuid-lslong': '10506338350198764389'}, 'enable': 'true', 'created': '2025-12-04T02:41:29', 'last-modified': '2025-12-04T02:41:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.760677'} 2025-12-04 02:41:30,653 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-04 02:41:30,653 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47594918 passed 2025-12-04 02:41:30,653 - DEBUG - ====Verifying policy data for ctest-vn4-47594918 in API_Server ====== 2025-12-04 02:41:30,653 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 02:41:30,661 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd 2025-12-04 02:41:30,676 - DEBUG - Requesting: http://10.0.0.38:8082/project/b7dc5469-b876-47be-8e94-d64e59d5e127 2025-12-04 02:41:30,750 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ed90716b-8b7d-47c2-91ce-031085a93365 2025-12-04 02:41:30,762 - DEBUG - ==>Verifying data for policy with id: e7af3fa4-fc3d-49d3-8727-fab72901749d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03793739', 'ctest-policy1-35550855'] 2025-12-04 02:41:30,762 - INFO - VN ctest-vn4-47594918 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-04 02:41:30,762 - DEBUG - Verifying the vn in opserver 2025-12-04 02:41:30,762 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918 virtual network link through opserver 10.0.0.38 2025-12-04 02:41:30,762 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-04 02:41:31,100 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-04 02:41:31,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918?flat'} 2025-12-04 02:41:31,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03793739:ctest-vn4-47594918 is found in opserver 2025-12-04 02:41:31,191 - DEBUG - Do not have enough data to verify VN in agent 2025-12-04 02:41:31,197 - DEBUG - VRF ids for VN ctest-vn4-47594918: {} 2025-12-04 02:41:31,197 - DEBUG - ====Verifying data for ctest-policy1-35550855 in API_Server ====== 2025-12-04 02:41:31,197 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 02:41:31,204 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd 2025-12-04 02:41:31,216 - DEBUG - Requesting: http://10.0.0.38:8082/project/b7dc5469-b876-47be-8e94-d64e59d5e127 2025-12-04 02:41:31,301 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/e7af3fa4-fc3d-49d3-8727-fab72901749d 2025-12-04 02:41:31,314 - INFO - Verified policy ctest-policy1-35550855 in API Server, Result: True 2025-12-04 02:41:31,314 - INFO - Done with setup and verification, moving onto test .. 2025-12-04 02:41:31,325 - INFO - Deleting VN ctest-vn4-47594918 2025-12-04 02:41:31,448 - DEBUG - Response for deleting network () 2025-12-04 02:41:31,449 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/57bf453e-4a27-440f-83ad-456541f6055f 2025-12-04 02:41:31,454 - DEBUG - Response Code: 404 2025-12-04 02:41:31,454 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-04 02:41:31,460 - DEBUG - Requesting: http://10.0.0.38:8082/domain/936f408a-4e9d-4518-b764-6d352fd347fd 2025-12-04 02:41:31,513 - DEBUG - Requesting: http://10.0.0.38:8082/project/b7dc5469-b876-47be-8e94-d64e59d5e127 2025-12-04 02:41:31,592 - INFO - Validated that VN ctest-vn4-47594918 is not found in API Server 2025-12-04 02:41:31,604 - DEBUG - VN ctest-vn4-47594918 is not present in Agent 10.0.0.38 2025-12-04 02:41:31,604 - INFO - Validated that VN ctest-vn4-47594918 is not in any agent 2025-12-04 02:41:31,624 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47594918 info 2025-12-04 02:41:31,650 - INFO - Deleted policy ctest-policy1-35550855 2025-12-04 02:41:31,826 - DEBUG - policy ctest-policy1-35550855 is not found in API Server 2025-12-04 02:41:32,083 - DEBUG - No XMPP flaps were noticed during the test