2025-12-05 17:08:19,607 - INFO - Domain Default found not creating 2025-12-05 17:08:19,804 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19735694 not found, creating it 2025-12-05 17:08:20,287 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19735694, ID : 585bc079-b958-447f-9095-e1c054b8fc7a 2025-12-05 17:08:21,923 - INFO - ================================================================================ 2025-12-05 17:08:21,923 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-05 17:08:22,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-05 17:08:22,193 - INFO - Initial checks done. Running the testcase now 2025-12-05 17:08:22,194 - INFO - 2025-12-05 17:08:22,194 - INFO - ================================================================================ 2025-12-05 17:08:22,194 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-05 17:08:22,194 - 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-05 17:08:22,496 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.14': '0'}} with 2025-12-05 17:08:22,496 - INFO - Initial checks done. Running the testcase now 2025-12-05 17:08:22,497 - INFO - 2025-12-05 17:08:22,874 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096, 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-19735694:ctest-vn4-93203096, 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-19735694:ctest-vn4-93203096, 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-19735694:ctest-vn4-93203096, 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-05 17:08:23,413 - DEBUG - Response for create_network : {'network': {'id': '08dfb875-158e-4604-b314-d71b4224f898', 'name': 'ctest-vn4-93203096', 'tenant_id': '585bc079b958447f9095e1c054b8fc7a', 'project_id': '585bc079b958447f9095e1c054b8fc7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19735694', 'ctest-vn4-93203096'], 'port_security_enabled': True, 'description': ''}} 2025-12-05 17:08:23,581 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ce0a2eb5-affb-4452-baa0-d14eea3457e5', 'name': '', 'tenant_id': '585bc079b958447f9095e1c054b8fc7a', 'network_id': '08dfb875-158e-4604-b314-d71b4224f898', 'ip_version': 4, 'cidr': '95.50.90.64/26', 'allocation_pools': [{'start': '95.50.90.66', 'end': '95.50.90.126'}], 'gateway_ip': '95.50.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.50.90.66', 'tags': [], 'project_id': '585bc079b958447f9095e1c054b8fc7a'}} 2025-12-05 17:08:23,773 - DEBUG - Response for create_subnet : {'subnet': {'id': '976d382b-6112-4a79-9dea-43712422cda6', 'name': '', 'tenant_id': '585bc079b958447f9095e1c054b8fc7a', 'network_id': '08dfb875-158e-4604-b314-d71b4224f898', 'ip_version': 6, 'cidr': '2e75:4776:123a:c89a:8344:9187::/96', 'allocation_pools': [{'start': '2e75:4776:123a:c89a:8344:9187:0:2', 'end': '2e75:4776:123a:c89a:8344:9187:ffff:fffe'}], 'gateway_ip': '2e75:4776:123a:c89a:8344:9187:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e75:4776:123a:c89a:8344:9187:0:2', 'tags': [], 'project_id': '585bc079b958447f9095e1c054b8fc7a'}} 2025-12-05 17:08:23,794 - INFO - Created VN ctest-vn4-93203096 2025-12-05 17:08:23,848 - DEBUG - VN ctest-vn4-93203096 UUID is 08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,070 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '08dfb875-158e-4604-b314-d71b4224f898', 'name': 'ctest-vn4-93203096', 'tenant_id': '585bc079b958447f9095e1c054b8fc7a', 'project_id': '585bc079b958447f9095e1c054b8fc7a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ce0a2eb5-affb-4452-baa0-d14eea3457e5', '976d382b-6112-4a79-9dea-43712422cda6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19735694', 'ctest-vn4-93203096'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19735694', 'ctest-policy1-18124001']], 'subnet_ipam': [{'subnet_cidr': '95.50.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e75:4776:123a:c89a:8344:9187::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-05 17:08:24,243 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-05 17:08:24,541 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-05 17:08:24,581 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c991aa2b-5740-456b-9325-fa9e131690db 2025-12-05 17:08:24,596 - DEBUG - Requesting: http://10.0.0.38:8082/project/585bc079-b958-447f-9095-e1c054b8fc7a 2025-12-05 17:08:24,673 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,688 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,700 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:24,711 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:24,719 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b490b45-d6d9-4b3e-9a15-9dbead5e79ab 2025-12-05 17:08:24,726 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-05 17:08:24,726 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,736 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:24,752 - INFO - Verified VN network id 11 for VN 08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,753 - INFO - Verifications in API Server for VN ctest-vn4-93203096 passed 2025-12-05 17:08:24,753 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,764 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:24,772 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:24,781 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/5b490b45-d6d9-4b3e-9a15-9dbead5e79ab 2025-12-05 17:08:24,798 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19735694', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '639432485122229764', 'uuid-lslong': '12904175344397121688'}, 'enable': 'true', 'created': '2025-12-05T17:08:23', 'last-modified': '2025-12-05T17:08:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.757655'} 2025-12-05 17:08:24,807 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-05 17:08:24,807 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-93203096 passed 2025-12-05 17:08:24,807 - DEBUG - ====Verifying policy data for ctest-vn4-93203096 in API_Server ====== 2025-12-05 17:08:24,807 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-05 17:08:24,814 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c991aa2b-5740-456b-9325-fa9e131690db 2025-12-05 17:08:24,825 - DEBUG - Requesting: http://10.0.0.38:8082/project/585bc079-b958-447f-9095-e1c054b8fc7a 2025-12-05 17:08:24,900 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/08dfb875-158e-4604-b314-d71b4224f898 2025-12-05 17:08:24,913 - DEBUG - ==>Verifying data for policy with id: 415fc1e0-3761-4fc7-9b72-bcf765e89050, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19735694', 'ctest-policy1-18124001'] 2025-12-05 17:08:24,913 - INFO - VN ctest-vn4-93203096 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-05 17:08:24,913 - DEBUG - Verifying the vn in opserver 2025-12-05 17:08:24,913 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096 virtual network link through opserver 10.0.0.38 2025-12-05 17:08:24,913 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-05 17:08:25,212 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-12-05 17:08:25,283 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096?flat'} 2025-12-05 17:08:25,283 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19735694:ctest-vn4-93203096 is found in opserver 2025-12-05 17:08:25,294 - DEBUG - Do not have enough data to verify VN in agent 2025-12-05 17:08:25,299 - DEBUG - VRF ids for VN ctest-vn4-93203096: {} 2025-12-05 17:08:25,300 - DEBUG - ====Verifying data for ctest-policy1-18124001 in API_Server ====== 2025-12-05 17:08:25,300 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-05 17:08:25,306 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c991aa2b-5740-456b-9325-fa9e131690db 2025-12-05 17:08:25,320 - DEBUG - Requesting: http://10.0.0.38:8082/project/585bc079-b958-447f-9095-e1c054b8fc7a 2025-12-05 17:08:25,399 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/415fc1e0-3761-4fc7-9b72-bcf765e89050 2025-12-05 17:08:25,413 - INFO - Verified policy ctest-policy1-18124001 in API Server, Result: True 2025-12-05 17:08:25,413 - INFO - Done with setup and verification, moving onto test .. 2025-12-05 17:08:25,424 - INFO - Deleting VN ctest-vn4-93203096 2025-12-05 17:08:25,548 - DEBUG - Response for deleting network () 2025-12-05 17:08:25,548 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b30794e8-1824-492d-87ed-4ed60d25b03b 2025-12-05 17:08:25,555 - DEBUG - Response Code: 404 2025-12-05 17:08:25,555 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-12-05 17:08:25,561 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c991aa2b-5740-456b-9325-fa9e131690db 2025-12-05 17:08:25,618 - DEBUG - Requesting: http://10.0.0.38:8082/project/585bc079-b958-447f-9095-e1c054b8fc7a 2025-12-05 17:08:25,690 - INFO - Validated that VN ctest-vn4-93203096 is not found in API Server 2025-12-05 17:08:25,700 - DEBUG - VN ctest-vn4-93203096 is not present in Agent 10.0.0.38 2025-12-05 17:08:25,700 - INFO - Validated that VN ctest-vn4-93203096 is not in any agent 2025-12-05 17:08:25,715 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-93203096 info 2025-12-05 17:08:25,739 - INFO - Deleted policy ctest-policy1-18124001 2025-12-05 17:08:25,907 - DEBUG - policy ctest-policy1-18124001 is not found in API Server 2025-12-05 17:08:26,166 - DEBUG - No XMPP flaps were noticed during the test
2025-12-05 17:08:26,166 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-12-05 17:08:26,166 - INFO - -------------------------------------------------------------------------------- 2025-12-05 17:08:26,470 - DEBUG - No XMPP flaps were noticed during the test
2025-12-05 17:08:26,470 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-12-05 17:08:26,470 - INFO - -------------------------------------------------------------------------------- 2025-12-05 17:08:27,192 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19735694, ID : 585bc079-b958-447f-9095-e1c054b8fc7a