2025-09-19 21:32:20,089 - INFO - Domain Default found not creating 2025-09-19 21:32:20,228 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97557021 not found, creating it 2025-09-19 21:32:20,649 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97557021, ID : 79989bfe-1ee5-4097-95db-0e30b845e045 2025-09-19 21:32:22,007 - INFO - ================================================================================ 2025-09-19 21:32:22,007 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 21:32:22,258 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 21:32:22,258 - INFO - Initial checks done. Running the testcase now 2025-09-19 21:32:22,258 - INFO - 2025-09-19 21:32:22,258 - INFO - ================================================================================ 2025-09-19 21:32:22,258 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-19 21:32:22,258 - 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-09-19 21:32:22,554 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-09-19 21:32:22,554 - INFO - Initial checks done. Running the testcase now 2025-09-19 21:32:22,554 - INFO - 2025-09-19 21:32:22,891 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165, 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-97557021:ctest-vn4-07103165, 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-97557021:ctest-vn4-07103165, 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-97557021:ctest-vn4-07103165, 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-09-19 21:32:23,364 - DEBUG - Response for create_network : {'network': {'id': '85621a24-a1f0-40d0-9589-acf2379b515c', 'name': 'ctest-vn4-07103165', 'tenant_id': '79989bfe1ee5409795db0e30b845e045', 'project_id': '79989bfe1ee5409795db0e30b845e045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97557021', 'ctest-vn4-07103165'], 'port_security_enabled': True, 'description': ''}} 2025-09-19 21:32:23,503 - DEBUG - Response for create_subnet : {'subnet': {'id': 'de1563ff-d830-49dc-be00-669883cafd70', 'name': '', 'tenant_id': '79989bfe1ee5409795db0e30b845e045', 'network_id': '85621a24-a1f0-40d0-9589-acf2379b515c', 'ip_version': 4, 'cidr': '171.77.71.128/26', 'allocation_pools': [{'start': '171.77.71.130', 'end': '171.77.71.190'}], 'gateway_ip': '171.77.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.77.71.130', 'tags': [], 'project_id': '79989bfe1ee5409795db0e30b845e045'}} 2025-09-19 21:32:23,648 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e94af5d-62c6-41c1-b683-77c3ec69c887', 'name': '', 'tenant_id': '79989bfe1ee5409795db0e30b845e045', 'network_id': '85621a24-a1f0-40d0-9589-acf2379b515c', 'ip_version': 6, 'cidr': '3694:4a74:857b:f9b5:914f:22d6::/96', 'allocation_pools': [{'start': '3694:4a74:857b:f9b5:914f:22d6:0:2', 'end': '3694:4a74:857b:f9b5:914f:22d6:ffff:fffe'}], 'gateway_ip': '3694:4a74:857b:f9b5:914f:22d6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3694:4a74:857b:f9b5:914f:22d6:0:2', 'tags': [], 'project_id': '79989bfe1ee5409795db0e30b845e045'}} 2025-09-19 21:32:23,667 - INFO - Created VN ctest-vn4-07103165 2025-09-19 21:32:23,718 - DEBUG - VN ctest-vn4-07103165 UUID is 85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:23,949 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85621a24-a1f0-40d0-9589-acf2379b515c', 'name': 'ctest-vn4-07103165', 'tenant_id': '79989bfe1ee5409795db0e30b845e045', 'project_id': '79989bfe1ee5409795db0e30b845e045', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['de1563ff-d830-49dc-be00-669883cafd70', '2e94af5d-62c6-41c1-b683-77c3ec69c887'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97557021', 'ctest-vn4-07103165'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97557021', 'ctest-policy1-96926924']], 'subnet_ipam': [{'subnet_cidr': '171.77.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3694:4a74:857b:f9b5:914f:22d6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-19 21:32:24,102 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 21:32:24,389 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 21:32:24,413 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e 2025-09-19 21:32:24,423 - DEBUG - Requesting: http://10.0.0.38:8082/project/79989bfe-1ee5-4097-95db-0e30b845e045 2025-09-19 21:32:24,488 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,498 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,506 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:24,511 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:24,516 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c73e9f3-4950-474e-b0ef-ab71a05db397 2025-09-19 21:32:24,521 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 21:32:24,521 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,528 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:24,540 - INFO - Verified VN network id 12 for VN 85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,540 - INFO - Verifications in API Server for VN ctest-vn4-07103165 passed 2025-09-19 21:32:24,540 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,550 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:24,555 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:24,560 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/0c73e9f3-4950-474e-b0ef-ab71a05db397 2025-09-19 21:32:24,569 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97557021', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9611273299400081616', 'uuid-lslong': '10775333739775611228'}, 'enable': 'true', 'created': '2025-09-19T21:32:23', 'last-modified': '2025-09-19T21:32:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.643221'} 2025-09-19 21:32:24,575 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-19 21:32:24,575 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07103165 passed 2025-09-19 21:32:24,575 - DEBUG - ====Verifying policy data for ctest-vn4-07103165 in API_Server ====== 2025-09-19 21:32:24,575 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 21:32:24,580 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e 2025-09-19 21:32:24,589 - DEBUG - Requesting: http://10.0.0.38:8082/project/79989bfe-1ee5-4097-95db-0e30b845e045 2025-09-19 21:32:24,657 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/85621a24-a1f0-40d0-9589-acf2379b515c 2025-09-19 21:32:24,665 - DEBUG - ==>Verifying data for policy with id: 333bf398-a169-459c-af22-fc343a546255, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97557021', 'ctest-policy1-96926924'] 2025-09-19 21:32:24,665 - INFO - VN ctest-vn4-07103165 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-19 21:32:24,666 - DEBUG - Verifying the vn in opserver 2025-09-19 21:32:24,666 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165 virtual network link through opserver 10.0.0.38 2025-09-19 21:32:24,666 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 21:32:24,952 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-19 21:32:25,000 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165?flat'} 2025-09-19 21:32:25,001 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97557021:ctest-vn4-07103165 is found in opserver 2025-09-19 21:32:25,009 - DEBUG - Do not have enough data to verify VN in agent 2025-09-19 21:32:25,013 - DEBUG - VRF ids for VN ctest-vn4-07103165: {} 2025-09-19 21:32:25,013 - DEBUG - ====Verifying data for ctest-policy1-96926924 in API_Server ====== 2025-09-19 21:32:25,013 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 21:32:25,017 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e 2025-09-19 21:32:25,026 - DEBUG - Requesting: http://10.0.0.38:8082/project/79989bfe-1ee5-4097-95db-0e30b845e045 2025-09-19 21:32:25,092 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/333bf398-a169-459c-af22-fc343a546255 2025-09-19 21:32:25,100 - INFO - Verified policy ctest-policy1-96926924 in API Server, Result: True 2025-09-19 21:32:25,100 - INFO - Done with setup and verification, moving onto test .. 2025-09-19 21:32:25,107 - INFO - Deleting VN ctest-vn4-07103165 2025-09-19 21:32:25,206 - DEBUG - Response for deleting network () 2025-09-19 21:32:25,206 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5917f546-d2d1-405c-81fa-ee2d4ff071ca 2025-09-19 21:32:25,210 - DEBUG - Response Code: 404 2025-09-19 21:32:25,210 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-09-19 21:32:25,214 - DEBUG - Requesting: http://10.0.0.38:8082/domain/48bdc502-fd46-470b-813a-db247fce7b6e 2025-09-19 21:32:25,266 - DEBUG - Requesting: http://10.0.0.38:8082/project/79989bfe-1ee5-4097-95db-0e30b845e045 2025-09-19 21:32:25,356 - INFO - Validated that VN ctest-vn4-07103165 is not found in API Server 2025-09-19 21:32:25,365 - DEBUG - VN ctest-vn4-07103165 is not present in Agent 10.0.0.38 2025-09-19 21:32:25,365 - INFO - Validated that VN ctest-vn4-07103165 is not in any agent 2025-09-19 21:32:25,376 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07103165 info 2025-09-19 21:32:25,398 - INFO - Deleted policy ctest-policy1-96926924 2025-09-19 21:32:25,562 - DEBUG - policy ctest-policy1-96926924 is not found in API Server 2025-09-19 21:32:25,818 - DEBUG - No XMPP flaps were noticed during the test