2025-09-04 20:25:53,392 - INFO - Domain Default found not creating 2025-09-04 20:25:53,536 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26448728 not found, creating it 2025-09-04 20:25:53,965 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26448728, ID : f9833c75-782f-4673-b784-5ab3eae428ef 2025-09-04 20:25:55,940 - INFO - ================================================================================ 2025-09-04 20:25:55,940 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 20:25:56,195 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-04 20:25:56,196 - INFO - Initial checks done. Running the testcase now 2025-09-04 20:25:56,196 - INFO - 2025-09-04 20:25:56,196 - INFO - ================================================================================ 2025-09-04 20:25:56,196 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-04 20:25:56,196 - 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-04 20:25:56,486 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.254': '0'}} with 2025-09-04 20:25:56,486 - INFO - Initial checks done. Running the testcase now 2025-09-04 20:25:56,486 - INFO - 2025-09-04 20:25:56,887 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670, 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-26448728:ctest-vn4-87342670, 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-26448728:ctest-vn4-87342670, 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-26448728:ctest-vn4-87342670, 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-04 20:25:57,386 - DEBUG - Response for create_network : {'network': {'id': '26a0390f-1fb0-48a6-9f45-8f02545e7456', 'name': 'ctest-vn4-87342670', 'tenant_id': 'f9833c75782f4673b7845ab3eae428ef', 'project_id': 'f9833c75782f4673b7845ab3eae428ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26448728', 'ctest-vn4-87342670'], 'port_security_enabled': True, 'description': ''}} 2025-09-04 20:25:57,595 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc2fb9c3-6190-463b-aa4f-f8e8c8036b75', 'name': '', 'tenant_id': 'f9833c75782f4673b7845ab3eae428ef', 'network_id': '26a0390f-1fb0-48a6-9f45-8f02545e7456', 'ip_version': 4, 'cidr': '185.171.234.64/26', 'allocation_pools': [{'start': '185.171.234.66', 'end': '185.171.234.126'}], 'gateway_ip': '185.171.234.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '185.171.234.66', 'tags': [], 'project_id': 'f9833c75782f4673b7845ab3eae428ef'}} 2025-09-04 20:25:57,753 - DEBUG - Response for create_subnet : {'subnet': {'id': '81cd2ef5-8db3-4cbd-81fe-771d517dc797', 'name': '', 'tenant_id': 'f9833c75782f4673b7845ab3eae428ef', 'network_id': '26a0390f-1fb0-48a6-9f45-8f02545e7456', 'ip_version': 6, 'cidr': '36e0:7fc7:ec85:ead4:6083:d366::/96', 'allocation_pools': [{'start': '36e0:7fc7:ec85:ead4:6083:d366:0:2', 'end': '36e0:7fc7:ec85:ead4:6083:d366:ffff:fffe'}], 'gateway_ip': '36e0:7fc7:ec85:ead4:6083:d366:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36e0:7fc7:ec85:ead4:6083:d366:0:2', 'tags': [], 'project_id': 'f9833c75782f4673b7845ab3eae428ef'}} 2025-09-04 20:25:57,773 - INFO - Created VN ctest-vn4-87342670 2025-09-04 20:25:57,826 - DEBUG - VN ctest-vn4-87342670 UUID is 26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,106 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '26a0390f-1fb0-48a6-9f45-8f02545e7456', 'name': 'ctest-vn4-87342670', 'tenant_id': 'f9833c75782f4673b7845ab3eae428ef', 'project_id': 'f9833c75782f4673b7845ab3eae428ef', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc2fb9c3-6190-463b-aa4f-f8e8c8036b75', '81cd2ef5-8db3-4cbd-81fe-771d517dc797'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26448728', 'ctest-vn4-87342670'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26448728', 'ctest-policy1-61180491']], 'subnet_ipam': [{'subnet_cidr': '185.171.234.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36e0:7fc7:ec85:ead4:6083:d366::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-04 20:25:58,286 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-04 20:25:58,620 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-04 20:25:58,648 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8 2025-09-04 20:25:58,660 - DEBUG - Requesting: http://10.0.0.33:8082/project/f9833c75-782f-4673-b784-5ab3eae428ef 2025-09-04 20:25:58,732 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,745 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,757 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:58,765 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:58,771 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dc38c857-ef01-46f9-9875-9296418c04e9 2025-09-04 20:25:58,777 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 20:25:58,777 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,785 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:58,797 - INFO - Verified VN network id 11 for VN 26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,797 - INFO - Verifications in API Server for VN ctest-vn4-87342670 passed 2025-09-04 20:25:58,797 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,806 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:58,811 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:58,816 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/dc38c857-ef01-46f9-9875-9296418c04e9 2025-09-04 20:25:58,826 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26448728', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2783287306833905830', 'uuid-lslong': '11476736465591759958'}, 'enable': 'true', 'created': '2025-09-04T20:25:57', 'last-modified': '2025-09-04T20:25:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764382'} 2025-09-04 20:25:58,832 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-04 20:25:58,832 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87342670 passed 2025-09-04 20:25:58,832 - DEBUG - ====Verifying policy data for ctest-vn4-87342670 in API_Server ====== 2025-09-04 20:25:58,832 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-04 20:25:58,838 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8 2025-09-04 20:25:58,848 - DEBUG - Requesting: http://10.0.0.33:8082/project/f9833c75-782f-4673-b784-5ab3eae428ef 2025-09-04 20:25:58,916 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/26a0390f-1fb0-48a6-9f45-8f02545e7456 2025-09-04 20:25:58,925 - DEBUG - ==>Verifying data for policy with id: ae13bf77-9da8-4717-94c1-7cdac075ae16, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26448728', 'ctest-policy1-61180491'] 2025-09-04 20:25:58,926 - INFO - VN ctest-vn4-87342670 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-04 20:25:58,926 - DEBUG - Verifying the vn in opserver 2025-09-04 20:25:58,926 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670 virtual network link through opserver 10.0.0.33 2025-09-04 20:25:58,926 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-04 20:25:59,257 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-04 20:25:59,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670?flat'} 2025-09-04 20:25:59,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26448728:ctest-vn4-87342670 is found in opserver 2025-09-04 20:25:59,316 - DEBUG - Do not have enough data to verify VN in agent 2025-09-04 20:25:59,320 - DEBUG - VRF ids for VN ctest-vn4-87342670: {} 2025-09-04 20:25:59,320 - DEBUG - ====Verifying data for ctest-policy1-61180491 in API_Server ====== 2025-09-04 20:25:59,320 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-04 20:25:59,325 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8 2025-09-04 20:25:59,336 - DEBUG - Requesting: http://10.0.0.33:8082/project/f9833c75-782f-4673-b784-5ab3eae428ef 2025-09-04 20:25:59,405 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/ae13bf77-9da8-4717-94c1-7cdac075ae16 2025-09-04 20:25:59,415 - INFO - Verified policy ctest-policy1-61180491 in API Server, Result: True 2025-09-04 20:25:59,415 - INFO - Done with setup and verification, moving onto test .. 2025-09-04 20:25:59,423 - INFO - Deleting VN ctest-vn4-87342670 2025-09-04 20:25:59,526 - DEBUG - Response for deleting network () 2025-09-04 20:25:59,526 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/802f5510-9966-415d-ad8f-87a85064df06 2025-09-04 20:25:59,531 - DEBUG - Response Code: 404 2025-09-04 20:25:59,531 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-04 20:25:59,536 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e67aab7d-26af-4c3f-b4eb-c6f56f4c36d8 2025-09-04 20:25:59,591 - DEBUG - Requesting: http://10.0.0.33:8082/project/f9833c75-782f-4673-b784-5ab3eae428ef 2025-09-04 20:25:59,662 - INFO - Validated that VN ctest-vn4-87342670 is not found in API Server 2025-09-04 20:25:59,671 - DEBUG - VN ctest-vn4-87342670 is not present in Agent 10.0.0.33 2025-09-04 20:25:59,671 - INFO - Validated that VN ctest-vn4-87342670 is not in any agent 2025-09-04 20:25:59,684 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87342670 info 2025-09-04 20:25:59,709 - INFO - Deleted policy ctest-policy1-61180491 2025-09-04 20:25:59,878 - DEBUG - policy ctest-policy1-61180491 is not found in API Server 2025-09-04 20:26:00,135 - DEBUG - No XMPP flaps were noticed during the test