2025-11-18 11:11:17,985 - INFO - Domain Default found not creating 2025-11-18 11:11:18,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83343849 not found, creating it 2025-11-18 11:11:18,616 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83343849, ID : 6821f124-8547-4655-b090-e5a91668f985 2025-11-18 11:11:20,094 - INFO - ================================================================================ 2025-11-18 11:11:20,094 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 11:11:20,348 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-11-18 11:11:20,348 - INFO - Initial checks done. Running the testcase now 2025-11-18 11:11:20,348 - INFO - 2025-11-18 11:11:20,348 - INFO - ================================================================================ 2025-11-18 11:11:20,348 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 11:11:20,349 - 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-18 11:11:20,635 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.129': '0'}} with 2025-11-18 11:11:20,636 - INFO - Initial checks done. Running the testcase now 2025-11-18 11:11:20,636 - INFO - 2025-11-18 11:11:20,984 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259, 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-83343849:ctest-vn4-80383259, 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-83343849:ctest-vn4-80383259, 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-83343849:ctest-vn4-80383259, 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-18 11:11:21,474 - DEBUG - Response for create_network : {'network': {'id': '22ecaeda-c8bb-4093-b777-fb46e111219b', 'name': 'ctest-vn4-80383259', 'tenant_id': '6821f12485474655b090e5a91668f985', 'project_id': '6821f12485474655b090e5a91668f985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83343849', 'ctest-vn4-80383259'], 'port_security_enabled': True, 'description': ''}} 2025-11-18 11:11:21,647 - DEBUG - Response for create_subnet : {'subnet': {'id': '305d3ac2-9b88-486a-9e76-934a970e3942', 'name': '', 'tenant_id': '6821f12485474655b090e5a91668f985', 'network_id': '22ecaeda-c8bb-4093-b777-fb46e111219b', 'ip_version': 4, 'cidr': '179.125.242.0/26', 'allocation_pools': [{'start': '179.125.242.2', 'end': '179.125.242.62'}], 'gateway_ip': '179.125.242.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '179.125.242.2', 'tags': [], 'project_id': '6821f12485474655b090e5a91668f985'}} 2025-11-18 11:11:21,789 - DEBUG - Response for create_subnet : {'subnet': {'id': '102e288e-64fc-44c4-90f1-a6059e7e3b4a', 'name': '', 'tenant_id': '6821f12485474655b090e5a91668f985', 'network_id': '22ecaeda-c8bb-4093-b777-fb46e111219b', 'ip_version': 6, 'cidr': '264d:fcaf:e4dc:216a:c310:d953::/96', 'allocation_pools': [{'start': '264d:fcaf:e4dc:216a:c310:d953:0:2', 'end': '264d:fcaf:e4dc:216a:c310:d953:ffff:fffe'}], 'gateway_ip': '264d:fcaf:e4dc:216a:c310:d953:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '264d:fcaf:e4dc:216a:c310:d953:0:2', 'tags': [], 'project_id': '6821f12485474655b090e5a91668f985'}} 2025-11-18 11:11:21,806 - INFO - Created VN ctest-vn4-80383259 2025-11-18 11:11:21,858 - DEBUG - VN ctest-vn4-80383259 UUID is 22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,054 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '22ecaeda-c8bb-4093-b777-fb46e111219b', 'name': 'ctest-vn4-80383259', 'tenant_id': '6821f12485474655b090e5a91668f985', 'project_id': '6821f12485474655b090e5a91668f985', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['305d3ac2-9b88-486a-9e76-934a970e3942', '102e288e-64fc-44c4-90f1-a6059e7e3b4a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83343849', 'ctest-vn4-80383259'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83343849', 'ctest-policy1-93540953']], 'subnet_ipam': [{'subnet_cidr': '179.125.242.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '264d:fcaf:e4dc:216a:c310:d953::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-18 11:11:22,219 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 11:11:22,523 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 11:11:22,553 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36802e14-d08f-4a14-b4aa-bb3d2f74a783 2025-11-18 11:11:22,565 - DEBUG - Requesting: http://10.0.0.38:8082/project/6821f124-8547-4655-b090-e5a91668f985 2025-11-18 11:11:22,641 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,653 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,663 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:22,670 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:22,677 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3896a395-1e9d-4231-85ea-74c3949759ff 2025-11-18 11:11:22,683 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 11:11:22,683 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:22,707 - INFO - Verified VN network id 12 for VN 22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,707 - INFO - Verifications in API Server for VN ctest-vn4-80383259 passed 2025-11-18 11:11:22,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,716 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:22,721 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:22,728 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/3896a395-1e9d-4231-85ea-74c3949759ff 2025-11-18 11:11:22,741 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83343849', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2516578546487083155', 'uuid-lslong': '13220311513011659163'}, 'enable': 'true', 'created': '2025-11-18T11:11:21', 'last-modified': '2025-11-18T11:11:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715302'} 2025-11-18 11:11:22,746 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 11:11:22,746 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-80383259 passed 2025-11-18 11:11:22,747 - DEBUG - ====Verifying policy data for ctest-vn4-80383259 in API_Server ====== 2025-11-18 11:11:22,747 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 11:11:22,752 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36802e14-d08f-4a14-b4aa-bb3d2f74a783 2025-11-18 11:11:22,761 - DEBUG - Requesting: http://10.0.0.38:8082/project/6821f124-8547-4655-b090-e5a91668f985 2025-11-18 11:11:22,832 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/22ecaeda-c8bb-4093-b777-fb46e111219b 2025-11-18 11:11:22,842 - DEBUG - ==>Verifying data for policy with id: 5348da9a-7bb3-4227-acc5-11f786ecd6a3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83343849', 'ctest-policy1-93540953'] 2025-11-18 11:11:22,842 - INFO - VN ctest-vn4-80383259 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-18 11:11:22,842 - DEBUG - Verifying the vn in opserver 2025-11-18 11:11:22,842 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259 virtual network link through opserver 10.0.0.38 2025-11-18 11:11:22,842 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-18 11:11:23,136 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-18 11:11:23,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259?flat'} 2025-11-18 11:11:23,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83343849:ctest-vn4-80383259 is found in opserver 2025-11-18 11:11:23,216 - DEBUG - Do not have enough data to verify VN in agent 2025-11-18 11:11:23,220 - DEBUG - VRF ids for VN ctest-vn4-80383259: {} 2025-11-18 11:11:23,221 - DEBUG - ====Verifying data for ctest-policy1-93540953 in API_Server ====== 2025-11-18 11:11:23,221 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 11:11:23,226 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36802e14-d08f-4a14-b4aa-bb3d2f74a783 2025-11-18 11:11:23,236 - DEBUG - Requesting: http://10.0.0.38:8082/project/6821f124-8547-4655-b090-e5a91668f985 2025-11-18 11:11:23,307 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/5348da9a-7bb3-4227-acc5-11f786ecd6a3 2025-11-18 11:11:23,318 - INFO - Verified policy ctest-policy1-93540953 in API Server, Result: True 2025-11-18 11:11:23,318 - INFO - Done with setup and verification, moving onto test .. 2025-11-18 11:11:23,326 - INFO - Deleting VN ctest-vn4-80383259 2025-11-18 11:11:23,439 - DEBUG - Response for deleting network () 2025-11-18 11:11:23,439 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b9a35035-8e06-490b-aacc-c4648f237c1c 2025-11-18 11:11:23,443 - DEBUG - Response Code: 404 2025-11-18 11:11:23,443 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 11:11:23,448 - DEBUG - Requesting: http://10.0.0.38:8082/domain/36802e14-d08f-4a14-b4aa-bb3d2f74a783 2025-11-18 11:11:23,503 - DEBUG - Requesting: http://10.0.0.38:8082/project/6821f124-8547-4655-b090-e5a91668f985 2025-11-18 11:11:23,578 - INFO - Validated that VN ctest-vn4-80383259 is not found in API Server 2025-11-18 11:11:23,587 - DEBUG - VN ctest-vn4-80383259 is not present in Agent 10.0.0.38 2025-11-18 11:11:23,587 - INFO - Validated that VN ctest-vn4-80383259 is not in any agent 2025-11-18 11:11:23,600 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-80383259 info 2025-11-18 11:11:23,631 - INFO - Deleted policy ctest-policy1-93540953 2025-11-18 11:11:23,794 - DEBUG - policy ctest-policy1-93540953 is not found in API Server 2025-11-18 11:11:24,052 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 11:11:24,052 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 11:11:24,052 - INFO - -------------------------------------------------------------------------------- 2025-11-18 11:11:24,349 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 11:11:24,349 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 11:11:24,349 - INFO - -------------------------------------------------------------------------------- 2025-11-18 11:11:25,015 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83343849, ID : 6821f124-8547-4655-b090-e5a91668f985