2025-10-30 10:11:31,497 - INFO - Domain Default found not creating 2025-10-30 10:11:31,639 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31956251 not found, creating it 2025-10-30 10:11:32,067 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31956251, ID : 1bc0a24f-bea2-4e0b-be0c-1aa9761725b1 2025-10-30 10:11:33,452 - INFO - ================================================================================ 2025-10-30 10:11:33,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 10:11:33,704 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.241': '0'}} with 2025-10-30 10:11:33,704 - INFO - Initial checks done. Running the testcase now 2025-10-30 10:11:33,704 - INFO - 2025-10-30 10:11:33,704 - INFO - ================================================================================ 2025-10-30 10:11:33,704 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 10:11:33,704 - 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-30 10:11:33,992 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.241': '0'}} with 2025-10-30 10:11:33,992 - INFO - Initial checks done. Running the testcase now 2025-10-30 10:11:33,992 - INFO - 2025-10-30 10:11:34,341 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289, 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-31956251:ctest-vn4-24516289, 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-31956251:ctest-vn4-24516289, 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-31956251:ctest-vn4-24516289, 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-30 10:11:34,842 - DEBUG - Response for create_network : {'network': {'id': '9e7c2d7f-e023-4ef9-9cb9-0639f073f865', 'name': 'ctest-vn4-24516289', 'tenant_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'project_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31956251', 'ctest-vn4-24516289'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 10:11:35,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '201cac53-2578-4023-baf4-8498497a90ca', 'name': '', 'tenant_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'network_id': '9e7c2d7f-e023-4ef9-9cb9-0639f073f865', 'ip_version': 4, 'cidr': '195.114.42.128/26', 'allocation_pools': [{'start': '195.114.42.130', 'end': '195.114.42.190'}], 'gateway_ip': '195.114.42.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.114.42.130', 'tags': [], 'project_id': '1bc0a24fbea24e0bbe0c1aa9761725b1'}} 2025-10-30 10:11:35,163 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e48be2c1-0340-43bb-8371-7a7fa39d7bdd', 'name': '', 'tenant_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'network_id': '9e7c2d7f-e023-4ef9-9cb9-0639f073f865', 'ip_version': 6, 'cidr': '34de:122d:8d0d:cd1e:99ff:bf21::/96', 'allocation_pools': [{'start': '34de:122d:8d0d:cd1e:99ff:bf21:0:2', 'end': '34de:122d:8d0d:cd1e:99ff:bf21:ffff:fffe'}], 'gateway_ip': '34de:122d:8d0d:cd1e:99ff:bf21:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '34de:122d:8d0d:cd1e:99ff:bf21:0:2', 'tags': [], 'project_id': '1bc0a24fbea24e0bbe0c1aa9761725b1'}} 2025-10-30 10:11:35,187 - INFO - Created VN ctest-vn4-24516289 2025-10-30 10:11:35,239 - DEBUG - VN ctest-vn4-24516289 UUID is 9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:35,443 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9e7c2d7f-e023-4ef9-9cb9-0639f073f865', 'name': 'ctest-vn4-24516289', 'tenant_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'project_id': '1bc0a24fbea24e0bbe0c1aa9761725b1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['201cac53-2578-4023-baf4-8498497a90ca', 'e48be2c1-0340-43bb-8371-7a7fa39d7bdd'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31956251', 'ctest-vn4-24516289'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31956251', 'ctest-policy1-04381070']], 'subnet_ipam': [{'subnet_cidr': '195.114.42.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '34de:122d:8d0d:cd1e:99ff:bf21::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 10:11:35,599 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-30 10:11:35,905 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-30 10:11:35,931 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc 2025-10-30 10:11:35,942 - DEBUG - Requesting: http://10.0.0.73:8082/project/1bc0a24f-bea2-4e0b-be0c-1aa9761725b1 2025-10-30 10:11:36,014 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,025 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,034 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,040 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,046 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/0656f816-a614-40e1-85f3-7260c1b28639 2025-10-30 10:11:36,052 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:11:36,052 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,061 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,074 - INFO - Verified VN network id 9 for VN 9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,074 - INFO - Verifications in API Server for VN ctest-vn4-24516289 passed 2025-10-30 10:11:36,074 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,083 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,089 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,096 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/0656f816-a614-40e1-85f3-7260c1b28639 2025-10-30 10:11:36,107 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31956251', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11420052782349242105', 'uuid-lslong': '11293064386525263973'}, 'enable': 'true', 'created': '2025-10-30T10:11:34', 'last-modified': '2025-10-30T10:11:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.685227'} 2025-10-30 10:11:36,113 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:11:36,113 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24516289 passed 2025-10-30 10:11:36,113 - DEBUG - ====Verifying policy data for ctest-vn4-24516289 in API_Server ====== 2025-10-30 10:11:36,113 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-30 10:11:36,118 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc 2025-10-30 10:11:36,129 - DEBUG - Requesting: http://10.0.0.73:8082/project/1bc0a24f-bea2-4e0b-be0c-1aa9761725b1 2025-10-30 10:11:36,196 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/9e7c2d7f-e023-4ef9-9cb9-0639f073f865 2025-10-30 10:11:36,205 - DEBUG - ==>Verifying data for policy with id: 9d4da178-0b3b-4afd-b8a9-f473c59c9a5f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31956251', 'ctest-policy1-04381070'] 2025-10-30 10:11:36,205 - INFO - VN ctest-vn4-24516289 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 10:11:36,205 - DEBUG - Verifying the vn in opserver 2025-10-30 10:11:36,205 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289 virtual network link through opserver 10.0.0.73 2025-10-30 10:11:36,206 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-30 10:11:36,493 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-10-30 10:11:36,546 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289?flat'} 2025-10-30 10:11:36,546 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31956251:ctest-vn4-24516289 is found in opserver 2025-10-30 10:11:36,555 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 10:11:36,559 - DEBUG - VRF ids for VN ctest-vn4-24516289: {} 2025-10-30 10:11:36,559 - DEBUG - ====Verifying data for ctest-policy1-04381070 in API_Server ====== 2025-10-30 10:11:36,559 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-30 10:11:36,564 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc 2025-10-30 10:11:36,574 - DEBUG - Requesting: http://10.0.0.73:8082/project/1bc0a24f-bea2-4e0b-be0c-1aa9761725b1 2025-10-30 10:11:36,642 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/9d4da178-0b3b-4afd-b8a9-f473c59c9a5f 2025-10-30 10:11:36,652 - INFO - Verified policy ctest-policy1-04381070 in API Server, Result: True 2025-10-30 10:11:36,652 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 10:11:36,660 - INFO - Deleting VN ctest-vn4-24516289 2025-10-30 10:11:36,767 - DEBUG - Response for deleting network () 2025-10-30 10:11:36,768 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/d6920559-b369-49f4-82b3-f95a614364ec 2025-10-30 10:11:36,773 - DEBUG - Response Code: 404 2025-10-30 10:11:36,773 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-10-30 10:11:36,779 - DEBUG - Requesting: http://10.0.0.73:8082/domain/7d4d0124-f8d2-4fc0-bcd2-3eca357d77bc 2025-10-30 10:11:36,833 - DEBUG - Requesting: http://10.0.0.73:8082/project/1bc0a24f-bea2-4e0b-be0c-1aa9761725b1 2025-10-30 10:11:36,902 - INFO - Validated that VN ctest-vn4-24516289 is not found in API Server 2025-10-30 10:11:36,910 - DEBUG - VN ctest-vn4-24516289 is not present in Agent 10.0.0.73 2025-10-30 10:11:36,910 - INFO - Validated that VN ctest-vn4-24516289 is not in any agent 2025-10-30 10:11:36,924 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24516289 info 2025-10-30 10:11:36,945 - INFO - Deleted policy ctest-policy1-04381070 2025-10-30 10:11:37,107 - DEBUG - policy ctest-policy1-04381070 is not found in API Server 2025-10-30 10:11:37,364 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 10:11:37,364 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 10:11:37,364 - INFO - -------------------------------------------------------------------------------- 2025-10-30 10:11:37,651 - DEBUG - No XMPP flaps were noticed during the test 2025-10-30 10:11:37,651 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-30 10:11:37,651 - INFO - -------------------------------------------------------------------------------- 2025-10-30 10:11:38,320 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31956251, ID : 1bc0a24f-bea2-4e0b-be0c-1aa9761725b1