2025-08-19 21:03:24,850 - INFO - Domain Default found not creating 2025-08-19 21:03:24,966 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-06860754 not found, creating it 2025-08-19 21:03:25,369 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-06860754, ID : 19937386-2dde-48f0-acc6-2105f8b13530 2025-08-19 21:03:26,808 - INFO - ================================================================================ 2025-08-19 21:03:26,808 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 21:03:27,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-19 21:03:27,064 - INFO - Initial checks done. Running the testcase now 2025-08-19 21:03:27,064 - INFO - 2025-08-19 21:03:27,064 - INFO - ================================================================================ 2025-08-19 21:03:27,064 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 21:03:27,064 - 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-08-19 21:03:27,354 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-19 21:03:27,354 - INFO - Initial checks done. Running the testcase now 2025-08-19 21:03:27,354 - INFO - 2025-08-19 21:03:27,689 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978, 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-06860754:ctest-vn4-72531978, 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-06860754:ctest-vn4-72531978, 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-06860754:ctest-vn4-72531978, 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-08-19 21:03:28,180 - DEBUG - Response for create_network : {'network': {'id': '69718afd-c43c-4418-9a11-69e1f83f59bc', 'name': 'ctest-vn4-72531978', 'tenant_id': '199373862dde48f0acc62105f8b13530', 'project_id': '199373862dde48f0acc62105f8b13530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06860754', 'ctest-vn4-72531978'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 21:03:28,327 - DEBUG - Response for create_subnet : {'subnet': {'id': '5415575a-0f39-464b-af41-3ae698c4389f', 'name': '', 'tenant_id': '199373862dde48f0acc62105f8b13530', 'network_id': '69718afd-c43c-4418-9a11-69e1f83f59bc', 'ip_version': 4, 'cidr': '104.0.252.128/26', 'allocation_pools': [{'start': '104.0.252.130', 'end': '104.0.252.190'}], 'gateway_ip': '104.0.252.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '104.0.252.130', 'tags': [], 'project_id': '199373862dde48f0acc62105f8b13530'}} 2025-08-19 21:03:28,494 - DEBUG - Response for create_subnet : {'subnet': {'id': '35d40645-a281-4695-afca-8884ce2fbb49', 'name': '', 'tenant_id': '199373862dde48f0acc62105f8b13530', 'network_id': '69718afd-c43c-4418-9a11-69e1f83f59bc', 'ip_version': 6, 'cidr': '3b2e:5db2:2628:1079:d713:f256::/96', 'allocation_pools': [{'start': '3b2e:5db2:2628:1079:d713:f256:0:2', 'end': '3b2e:5db2:2628:1079:d713:f256:ffff:fffe'}], 'gateway_ip': '3b2e:5db2:2628:1079:d713:f256:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b2e:5db2:2628:1079:d713:f256:0:2', 'tags': [], 'project_id': '199373862dde48f0acc62105f8b13530'}} 2025-08-19 21:03:28,509 - INFO - Created VN ctest-vn4-72531978 2025-08-19 21:03:28,559 - DEBUG - VN ctest-vn4-72531978 UUID is 69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:28,730 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '69718afd-c43c-4418-9a11-69e1f83f59bc', 'name': 'ctest-vn4-72531978', 'tenant_id': '199373862dde48f0acc62105f8b13530', 'project_id': '199373862dde48f0acc62105f8b13530', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5415575a-0f39-464b-af41-3ae698c4389f', '35d40645-a281-4695-afca-8884ce2fbb49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06860754', 'ctest-vn4-72531978'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06860754', 'ctest-policy1-68265751']], 'subnet_ipam': [{'subnet_cidr': '104.0.252.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b2e:5db2:2628:1079:d713:f256::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 21:03:28,883 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 21:03:29,169 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 21:03:29,192 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61 2025-08-19 21:03:29,201 - DEBUG - Requesting: http://10.0.0.254:8082/project/19937386-2dde-48f0-acc6-2105f8b13530 2025-08-19 21:03:29,270 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,279 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,286 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:29,291 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:29,296 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/657260ae-1b9d-445c-8aa6-3415ca868f63 2025-08-19 21:03:29,300 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 21:03:29,300 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,307 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:29,317 - INFO - Verified VN network id 11 for VN 69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,317 - INFO - Verifications in API Server for VN ctest-vn4-72531978 passed 2025-08-19 21:03:29,317 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,325 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:29,331 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:29,336 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/657260ae-1b9d-445c-8aa6-3415ca868f63 2025-08-19 21:03:29,348 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-06860754', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7598006868874380312', 'uuid-lslong': '11101770975698442684'}, 'enable': 'true', 'created': '2025-08-19T21:03:28', 'last-modified': '2025-08-19T21:03:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.647852'} 2025-08-19 21:03:29,354 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 21:03:29,354 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-72531978 passed 2025-08-19 21:03:29,354 - DEBUG - ====Verifying policy data for ctest-vn4-72531978 in API_Server ====== 2025-08-19 21:03:29,354 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 21:03:29,358 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61 2025-08-19 21:03:29,368 - DEBUG - Requesting: http://10.0.0.254:8082/project/19937386-2dde-48f0-acc6-2105f8b13530 2025-08-19 21:03:29,443 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/69718afd-c43c-4418-9a11-69e1f83f59bc 2025-08-19 21:03:29,452 - DEBUG - ==>Verifying data for policy with id: 56e80684-4046-4147-a537-7f0d1bbacb21, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-06860754', 'ctest-policy1-68265751'] 2025-08-19 21:03:29,452 - INFO - VN ctest-vn4-72531978 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 21:03:29,453 - DEBUG - Verifying the vn in opserver 2025-08-19 21:03:29,453 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978 virtual network link through opserver 10.0.0.254 2025-08-19 21:03:29,453 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-19 21:03:29,744 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-19 21:03:29,789 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978?flat'} 2025-08-19 21:03:29,789 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-06860754:ctest-vn4-72531978 is found in opserver 2025-08-19 21:03:29,797 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 21:03:29,801 - DEBUG - VRF ids for VN ctest-vn4-72531978: {} 2025-08-19 21:03:29,801 - DEBUG - ====Verifying data for ctest-policy1-68265751 in API_Server ====== 2025-08-19 21:03:29,801 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 21:03:29,805 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61 2025-08-19 21:03:29,813 - DEBUG - Requesting: http://10.0.0.254:8082/project/19937386-2dde-48f0-acc6-2105f8b13530 2025-08-19 21:03:29,878 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/56e80684-4046-4147-a537-7f0d1bbacb21 2025-08-19 21:03:29,886 - INFO - Verified policy ctest-policy1-68265751 in API Server, Result: True 2025-08-19 21:03:29,886 - INFO - Done with setup and verification, moving onto test .. 2025-08-19 21:03:29,892 - INFO - Deleting VN ctest-vn4-72531978 2025-08-19 21:03:30,009 - DEBUG - Response for deleting network () 2025-08-19 21:03:30,009 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2fd5c584-bdf9-4d57-8438-c0443573dabd 2025-08-19 21:03:30,014 - DEBUG - Response Code: 404 2025-08-19 21:03:30,014 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-19 21:03:30,021 - DEBUG - Requesting: http://10.0.0.254:8082/domain/bf074e1c-34c2-4b07-aba1-fb1c85cecc61 2025-08-19 21:03:30,070 - DEBUG - Requesting: http://10.0.0.254:8082/project/19937386-2dde-48f0-acc6-2105f8b13530 2025-08-19 21:03:30,139 - INFO - Validated that VN ctest-vn4-72531978 is not found in API Server 2025-08-19 21:03:30,151 - DEBUG - VN ctest-vn4-72531978 is not present in Agent 10.0.0.254 2025-08-19 21:03:30,151 - INFO - Validated that VN ctest-vn4-72531978 is not in any agent 2025-08-19 21:03:30,162 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-72531978 info 2025-08-19 21:03:30,192 - INFO - Deleted policy ctest-policy1-68265751 2025-08-19 21:03:30,350 - DEBUG - policy ctest-policy1-68265751 is not found in API Server 2025-08-19 21:03:30,602 - DEBUG - No XMPP flaps were noticed during the test