2025-11-13 10:49:23,379 - INFO - Domain Default found not creating 2025-11-13 10:49:23,545 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70518022 not found, creating it 2025-11-13 10:49:24,026 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70518022, ID : 515c83f9-b27f-4337-894e-f441a475b851 2025-11-13 10:49:25,622 - INFO - ================================================================================ 2025-11-13 10:49:25,622 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 10:49:25,882 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-13 10:49:25,882 - INFO - Initial checks done. Running the testcase now 2025-11-13 10:49:25,883 - INFO - 2025-11-13 10:49:25,883 - INFO - ================================================================================ 2025-11-13 10:49:25,883 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-13 10:49:25,883 - 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-11-13 10:49:26,174 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-11-13 10:49:26,174 - INFO - Initial checks done. Running the testcase now 2025-11-13 10:49:26,174 - INFO - 2025-11-13 10:49:26,551 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730, 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-70518022:ctest-vn4-63605730, 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-70518022:ctest-vn4-63605730, 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-70518022:ctest-vn4-63605730, 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-11-13 10:49:27,065 - DEBUG - Response for create_network : {'network': {'id': '3e8fa457-af9f-4e3a-b41e-fb8483067ffa', 'name': 'ctest-vn4-63605730', 'tenant_id': '515c83f9b27f4337894ef441a475b851', 'project_id': '515c83f9b27f4337894ef441a475b851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70518022', 'ctest-vn4-63605730'], 'port_security_enabled': True, 'description': ''}} 2025-11-13 10:49:27,265 - DEBUG - Response for create_subnet : {'subnet': {'id': '4aba4dd3-ee24-4bf3-add8-e390569016f4', 'name': '', 'tenant_id': '515c83f9b27f4337894ef441a475b851', 'network_id': '3e8fa457-af9f-4e3a-b41e-fb8483067ffa', 'ip_version': 4, 'cidr': '195.157.85.192/26', 'allocation_pools': [{'start': '195.157.85.194', 'end': '195.157.85.254'}], 'gateway_ip': '195.157.85.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.157.85.194', 'tags': [], 'project_id': '515c83f9b27f4337894ef441a475b851'}} 2025-11-13 10:49:27,412 - DEBUG - Response for create_subnet : {'subnet': {'id': '307dbea0-0b48-4fe9-ae12-02ff16c1964f', 'name': '', 'tenant_id': '515c83f9b27f4337894ef441a475b851', 'network_id': '3e8fa457-af9f-4e3a-b41e-fb8483067ffa', 'ip_version': 6, 'cidr': '3b3e:6bf0:ad85:73fc:47fb:73f6::/96', 'allocation_pools': [{'start': '3b3e:6bf0:ad85:73fc:47fb:73f6:0:2', 'end': '3b3e:6bf0:ad85:73fc:47fb:73f6:ffff:fffe'}], 'gateway_ip': '3b3e:6bf0:ad85:73fc:47fb:73f6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b3e:6bf0:ad85:73fc:47fb:73f6:0:2', 'tags': [], 'project_id': '515c83f9b27f4337894ef441a475b851'}} 2025-11-13 10:49:27,433 - INFO - Created VN ctest-vn4-63605730 2025-11-13 10:49:27,488 - DEBUG - VN ctest-vn4-63605730 UUID is 3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:27,722 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3e8fa457-af9f-4e3a-b41e-fb8483067ffa', 'name': 'ctest-vn4-63605730', 'tenant_id': '515c83f9b27f4337894ef441a475b851', 'project_id': '515c83f9b27f4337894ef441a475b851', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4aba4dd3-ee24-4bf3-add8-e390569016f4', '307dbea0-0b48-4fe9-ae12-02ff16c1964f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70518022', 'ctest-vn4-63605730'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70518022', 'ctest-policy1-22076659']], 'subnet_ipam': [{'subnet_cidr': '195.157.85.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b3e:6bf0:ad85:73fc:47fb:73f6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-13 10:49:27,900 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 10:49:28,220 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 10:49:28,249 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3 2025-11-13 10:49:28,262 - DEBUG - Requesting: http://10.0.0.38:8082/project/515c83f9-b27f-4337-894e-f441a475b851 2025-11-13 10:49:28,336 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,350 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,361 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:28,370 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:28,378 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41b1b36e-6078-4d74-aaf2-03c6b9a4cfc9 2025-11-13 10:49:28,385 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 10:49:28,385 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,395 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:28,412 - INFO - Verified VN network id 11 for VN 3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,412 - INFO - Verifications in API Server for VN ctest-vn4-63605730 passed 2025-11-13 10:49:28,412 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,423 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:28,431 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:28,439 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/41b1b36e-6078-4d74-aaf2-03c6b9a4cfc9 2025-11-13 10:49:28,453 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70518022', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4508002448536718906', 'uuid-lslong': '12979087722680844282'}, 'enable': 'true', 'created': '2025-11-13T10:49:27', 'last-modified': '2025-11-13T10:49:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759927'} 2025-11-13 10:49:28,460 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-13 10:49:28,461 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63605730 passed 2025-11-13 10:49:28,461 - DEBUG - ====Verifying policy data for ctest-vn4-63605730 in API_Server ====== 2025-11-13 10:49:28,461 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 10:49:28,468 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3 2025-11-13 10:49:28,480 - DEBUG - Requesting: http://10.0.0.38:8082/project/515c83f9-b27f-4337-894e-f441a475b851 2025-11-13 10:49:28,548 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/3e8fa457-af9f-4e3a-b41e-fb8483067ffa 2025-11-13 10:49:28,557 - DEBUG - ==>Verifying data for policy with id: c3cbbe47-a13f-40ee-9ea2-9064b66d29e2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70518022', 'ctest-policy1-22076659'] 2025-11-13 10:49:28,557 - INFO - VN ctest-vn4-63605730 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-13 10:49:28,557 - DEBUG - Verifying the vn in opserver 2025-11-13 10:49:28,557 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730 virtual network link through opserver 10.0.0.38 2025-11-13 10:49:28,557 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 10:49:28,876 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-13 10:49:28,946 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730?flat'} 2025-11-13 10:49:28,946 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70518022:ctest-vn4-63605730 is found in opserver 2025-11-13 10:49:28,956 - DEBUG - Do not have enough data to verify VN in agent 2025-11-13 10:49:28,960 - DEBUG - VRF ids for VN ctest-vn4-63605730: {} 2025-11-13 10:49:28,961 - DEBUG - ====Verifying data for ctest-policy1-22076659 in API_Server ====== 2025-11-13 10:49:28,961 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 10:49:28,967 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3 2025-11-13 10:49:28,981 - DEBUG - Requesting: http://10.0.0.38:8082/project/515c83f9-b27f-4337-894e-f441a475b851 2025-11-13 10:49:29,053 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c3cbbe47-a13f-40ee-9ea2-9064b66d29e2 2025-11-13 10:49:29,062 - INFO - Verified policy ctest-policy1-22076659 in API Server, Result: True 2025-11-13 10:49:29,063 - INFO - Done with setup and verification, moving onto test .. 2025-11-13 10:49:29,072 - INFO - Deleting VN ctest-vn4-63605730 2025-11-13 10:49:29,224 - DEBUG - Response for deleting network () 2025-11-13 10:49:29,224 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/9aac3228-b1d0-4c62-a37f-d5472a294a75 2025-11-13 10:49:29,229 - DEBUG - Response Code: 404 2025-11-13 10:49:29,229 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-13 10:49:29,234 - DEBUG - Requesting: http://10.0.0.38:8082/domain/80bf899c-de7c-4e12-b8f2-75a0f18115f3 2025-11-13 10:49:29,289 - DEBUG - Requesting: http://10.0.0.38:8082/project/515c83f9-b27f-4337-894e-f441a475b851 2025-11-13 10:49:29,360 - INFO - Validated that VN ctest-vn4-63605730 is not found in API Server 2025-11-13 10:49:29,371 - DEBUG - VN ctest-vn4-63605730 is not present in Agent 10.0.0.38 2025-11-13 10:49:29,371 - INFO - Validated that VN ctest-vn4-63605730 is not in any agent 2025-11-13 10:49:29,386 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63605730 info 2025-11-13 10:49:29,409 - INFO - Deleted policy ctest-policy1-22076659 2025-11-13 10:49:29,575 - DEBUG - policy ctest-policy1-22076659 is not found in API Server 2025-11-13 10:49:29,844 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 10:49:29,844 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-13 10:49:29,844 - INFO - -------------------------------------------------------------------------------- 2025-11-13 10:49:30,128 - DEBUG - No XMPP flaps were noticed during the test
2025-11-13 10:49:30,129 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-13 10:49:30,129 - INFO - -------------------------------------------------------------------------------- 2025-11-13 10:49:30,842 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-70518022, ID : 515c83f9-b27f-4337-894e-f441a475b851