2025-11-20 13:38:37,309 - INFO - Domain Default found not creating 2025-11-20 13:38:37,480 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00228076 not found, creating it 2025-11-20 13:38:37,934 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00228076, ID : 39ea4a82-2811-42e2-ab57-aa7be205074c 2025-11-20 13:38:39,425 - INFO - ================================================================================ 2025-11-20 13:38:39,425 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 13:38:39,681 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.241': '0'}} with 2025-11-20 13:38:39,681 - INFO - Initial checks done. Running the testcase now 2025-11-20 13:38:39,681 - INFO - 2025-11-20 13:38:39,681 - INFO - ================================================================================ 2025-11-20 13:38:39,682 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-20 13:38:39,682 - 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-20 13:38:39,982 - DEBUG - Nothing to compare xmpp stats {'10.0.0.128': {'10.20.0.241': '0'}} with 2025-11-20 13:38:39,982 - INFO - Initial checks done. Running the testcase now 2025-11-20 13:38:39,982 - INFO - 2025-11-20 13:38:40,337 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937, 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-00228076:ctest-vn4-89174937, 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-00228076:ctest-vn4-89174937, 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-00228076:ctest-vn4-89174937, 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-20 13:38:40,883 - DEBUG - Response for create_network : {'network': {'id': '11c07265-3a51-459b-b31c-921951eff389', 'name': 'ctest-vn4-89174937', 'tenant_id': '39ea4a82281142e2ab57aa7be205074c', 'project_id': '39ea4a82281142e2ab57aa7be205074c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00228076', 'ctest-vn4-89174937'], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:38:41,030 - DEBUG - Response for create_subnet : {'subnet': {'id': 'df61e039-cfa4-4cb4-b662-ec1007ebb19f', 'name': '', 'tenant_id': '39ea4a82281142e2ab57aa7be205074c', 'network_id': '11c07265-3a51-459b-b31c-921951eff389', 'ip_version': 4, 'cidr': '96.157.186.64/26', 'allocation_pools': [{'start': '96.157.186.66', 'end': '96.157.186.126'}], 'gateway_ip': '96.157.186.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.157.186.66', 'tags': [], 'project_id': '39ea4a82281142e2ab57aa7be205074c'}} 2025-11-20 13:38:41,180 - DEBUG - Response for create_subnet : {'subnet': {'id': '3c2dd171-ed6d-45ce-aef9-086042b51ef0', 'name': '', 'tenant_id': '39ea4a82281142e2ab57aa7be205074c', 'network_id': '11c07265-3a51-459b-b31c-921951eff389', 'ip_version': 6, 'cidr': '20d7:9261:538:8566:27d:a80e::/96', 'allocation_pools': [{'start': '20d7:9261:538:8566:27d:a80e:0:2', 'end': '20d7:9261:538:8566:27d:a80e:ffff:fffe'}], 'gateway_ip': '20d7:9261:538:8566:27d:a80e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '20d7:9261:538:8566:27d:a80e:0:2', 'tags': [], 'project_id': '39ea4a82281142e2ab57aa7be205074c'}} 2025-11-20 13:38:41,202 - INFO - Created VN ctest-vn4-89174937 2025-11-20 13:38:41,254 - DEBUG - VN ctest-vn4-89174937 UUID is 11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:41,451 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '11c07265-3a51-459b-b31c-921951eff389', 'name': 'ctest-vn4-89174937', 'tenant_id': '39ea4a82281142e2ab57aa7be205074c', 'project_id': '39ea4a82281142e2ab57aa7be205074c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['df61e039-cfa4-4cb4-b662-ec1007ebb19f', '3c2dd171-ed6d-45ce-aef9-086042b51ef0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00228076', 'ctest-vn4-89174937'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00228076', 'ctest-policy1-46040759']], 'subnet_ipam': [{'subnet_cidr': '96.157.186.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '20d7:9261:538:8566:27d:a80e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-20 13:38:41,606 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-11-20 13:38:41,917 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-11-20 13:38:41,953 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0 2025-11-20 13:38:41,968 - DEBUG - Requesting: http://10.0.0.128:8082/project/39ea4a82-2811-42e2-ab57-aa7be205074c 2025-11-20 13:38:42,037 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,049 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,062 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,069 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,077 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/fe6c7d24-94cc-42fc-8f19-c07f1bd781b0 2025-11-20 13:38:42,084 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 13:38:42,085 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,095 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,109 - INFO - Verified VN network id 11 for VN 11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,109 - INFO - Verifications in API Server for VN ctest-vn4-89174937 passed 2025-11-20 13:38:42,109 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,120 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,128 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,135 - DEBUG - Requesting: http://10.0.0.128:8082/route-target/fe6c7d24-94cc-42fc-8f19-c07f1bd781b0 2025-11-20 13:38:42,146 - DEBUG - Control-node 10.0.0.128 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00228076', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1279148073268888987', 'uuid-lslong': '12906351269583516553'}, 'enable': 'true', 'created': '2025-11-20T13:38:40', 'last-modified': '2025-11-20T13:38:41', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727596'} 2025-11-20 13:38:42,151 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-20 13:38:42,151 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89174937 passed 2025-11-20 13:38:42,151 - DEBUG - ====Verifying policy data for ctest-vn4-89174937 in API_Server ====== 2025-11-20 13:38:42,151 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-11-20 13:38:42,156 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0 2025-11-20 13:38:42,166 - DEBUG - Requesting: http://10.0.0.128:8082/project/39ea4a82-2811-42e2-ab57-aa7be205074c 2025-11-20 13:38:42,234 - DEBUG - Requesting: http://10.0.0.128:8082/virtual-network/11c07265-3a51-459b-b31c-921951eff389 2025-11-20 13:38:42,243 - DEBUG - ==>Verifying data for policy with id: 94c375eb-2af6-4142-9892-c9088a33f79f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00228076', 'ctest-policy1-46040759'] 2025-11-20 13:38:42,243 - INFO - VN ctest-vn4-89174937 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-20 13:38:42,243 - DEBUG - Verifying the vn in opserver 2025-11-20 13:38:42,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937 virtual network link through opserver 10.0.0.128 2025-11-20 13:38:42,243 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-11-20 13:38:42,541 - DEBUG - Requesting: http://10.0.0.128:8081/analytics/uves/virtual-networks 2025-11-20 13:38:42,605 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937', 'href': 'http://10.0.0.128:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937?flat'} 2025-11-20 13:38:42,605 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00228076:ctest-vn4-89174937 is found in opserver 2025-11-20 13:38:42,616 - DEBUG - Do not have enough data to verify VN in agent 2025-11-20 13:38:42,621 - DEBUG - VRF ids for VN ctest-vn4-89174937: {} 2025-11-20 13:38:42,622 - DEBUG - ====Verifying data for ctest-policy1-46040759 in API_Server ====== 2025-11-20 13:38:42,622 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-11-20 13:38:42,627 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0 2025-11-20 13:38:42,637 - DEBUG - Requesting: http://10.0.0.128:8082/project/39ea4a82-2811-42e2-ab57-aa7be205074c 2025-11-20 13:38:42,709 - DEBUG - Requesting: http://10.0.0.128:8082/network-policy/94c375eb-2af6-4142-9892-c9088a33f79f 2025-11-20 13:38:42,720 - INFO - Verified policy ctest-policy1-46040759 in API Server, Result: True 2025-11-20 13:38:42,721 - INFO - Done with setup and verification, moving onto test .. 2025-11-20 13:38:42,729 - INFO - Deleting VN ctest-vn4-89174937 2025-11-20 13:38:42,849 - DEBUG - Response for deleting network () 2025-11-20 13:38:42,849 - DEBUG - Requesting: http://10.0.0.128:8082/routing-instance/775c16bc-1381-47de-a072-2e7d2ae4a514 2025-11-20 13:38:42,855 - DEBUG - Response Code: 404 2025-11-20 13:38:42,856 - DEBUG - Requesting: http://10.0.0.128:8082/domains 2025-11-20 13:38:42,862 - DEBUG - Requesting: http://10.0.0.128:8082/domain/5f962690-5bd6-4cb0-a686-abcea7def5d0 2025-11-20 13:38:42,915 - DEBUG - Requesting: http://10.0.0.128:8082/project/39ea4a82-2811-42e2-ab57-aa7be205074c 2025-11-20 13:38:42,989 - INFO - Validated that VN ctest-vn4-89174937 is not found in API Server 2025-11-20 13:38:42,999 - DEBUG - VN ctest-vn4-89174937 is not present in Agent 10.0.0.128 2025-11-20 13:38:42,999 - INFO - Validated that VN ctest-vn4-89174937 is not in any agent 2025-11-20 13:38:43,011 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89174937 info 2025-11-20 13:38:43,037 - INFO - Deleted policy ctest-policy1-46040759 2025-11-20 13:38:43,202 - DEBUG - policy ctest-policy1-46040759 is not found in API Server 2025-11-20 13:38:43,459 - DEBUG - No XMPP flaps were noticed during the test