2025-09-11 08:34:51,034 - INFO - Domain Default found not creating 2025-09-11 08:34:51,160 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-38325423 not found, creating it 2025-09-11 08:34:51,581 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-38325423, ID : cff1edd0-666d-4aeb-b664-d1bc7351391b 2025-09-11 08:34:52,888 - INFO - ================================================================================ 2025-09-11 08:34:52,888 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:34:53,151 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0'}} with 2025-09-11 08:34:53,151 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:34:53,151 - INFO - 2025-09-11 08:34:53,151 - INFO - ================================================================================ 2025-09-11 08:34:53,151 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 08:34:53,151 - 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-11 08:34:53,434 - DEBUG - Nothing to compare xmpp stats {'10.0.0.73': {'10.20.0.25': '0'}} with 2025-09-11 08:34:53,434 - INFO - Initial checks done. Running the testcase now 2025-09-11 08:34:53,434 - INFO - 2025-09-11 08:34:53,767 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404, 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-38325423:ctest-vn4-03054404, 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-38325423:ctest-vn4-03054404, 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-38325423:ctest-vn4-03054404, 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-11 08:34:54,260 - DEBUG - Response for create_network : {'network': {'id': 'dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5', 'name': 'ctest-vn4-03054404', 'tenant_id': 'cff1edd0666d4aebb664d1bc7351391b', 'project_id': 'cff1edd0666d4aebb664d1bc7351391b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38325423', 'ctest-vn4-03054404'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:34:54,390 - DEBUG - Response for create_subnet : {'subnet': {'id': '80242969-c0bc-4285-b937-4fd00d56175a', 'name': '', 'tenant_id': 'cff1edd0666d4aebb664d1bc7351391b', 'network_id': 'dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5', 'ip_version': 4, 'cidr': '31.38.177.192/26', 'allocation_pools': [{'start': '31.38.177.194', 'end': '31.38.177.254'}], 'gateway_ip': '31.38.177.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.38.177.194', 'tags': [], 'project_id': 'cff1edd0666d4aebb664d1bc7351391b'}} 2025-09-11 08:34:54,601 - DEBUG - Response for create_subnet : {'subnet': {'id': '57accc35-8e21-4df3-921e-1ddf7a66d24c', 'name': '', 'tenant_id': 'cff1edd0666d4aebb664d1bc7351391b', 'network_id': 'dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5', 'ip_version': 6, 'cidr': '31fa:7497:815a:957c:d625:9be1::/96', 'allocation_pools': [{'start': '31fa:7497:815a:957c:d625:9be1:0:2', 'end': '31fa:7497:815a:957c:d625:9be1:ffff:fffe'}], 'gateway_ip': '31fa:7497:815a:957c:d625:9be1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31fa:7497:815a:957c:d625:9be1:0:2', 'tags': [], 'project_id': 'cff1edd0666d4aebb664d1bc7351391b'}} 2025-09-11 08:34:54,617 - INFO - Created VN ctest-vn4-03054404 2025-09-11 08:34:54,669 - DEBUG - VN ctest-vn4-03054404 UUID is dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:54,863 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5', 'name': 'ctest-vn4-03054404', 'tenant_id': 'cff1edd0666d4aebb664d1bc7351391b', 'project_id': 'cff1edd0666d4aebb664d1bc7351391b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['80242969-c0bc-4285-b937-4fd00d56175a', '57accc35-8e21-4df3-921e-1ddf7a66d24c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38325423', 'ctest-vn4-03054404'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38325423', 'ctest-policy1-71718148']], 'subnet_ipam': [{'subnet_cidr': '31.38.177.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31fa:7497:815a:957c:d625:9be1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 08:34:55,021 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-09-11 08:34:55,309 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-09-11 08:34:55,389 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852 2025-09-11 08:34:55,403 - DEBUG - Requesting: http://10.0.0.73:8082/project/cff1edd0-666d-4aeb-b664-d1bc7351391b 2025-09-11 08:34:55,474 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,485 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,493 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:55,498 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:55,504 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/2fc3db54-63b4-4900-8753-e256127c99b0 2025-09-11 08:34:55,509 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:34:55,509 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,516 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:55,527 - INFO - Verified VN network id 11 for VN dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,528 - INFO - Verifications in API Server for VN ctest-vn4-03054404 passed 2025-09-11 08:34:55,528 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,535 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:55,540 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:55,545 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/2fc3db54-63b4-4900-8753-e256127c99b0 2025-09-11 08:34:55,555 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-38325423', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15830475614570303188', 'uuid-lslong': '10202851615131244501'}, 'enable': 'true', 'created': '2025-09-11T08:34:54', 'last-modified': '2025-09-11T08:34:54', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.714898'} 2025-09-11 08:34:55,560 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 08:34:55,560 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03054404 passed 2025-09-11 08:34:55,561 - DEBUG - ====Verifying policy data for ctest-vn4-03054404 in API_Server ====== 2025-09-11 08:34:55,561 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-09-11 08:34:55,565 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852 2025-09-11 08:34:55,574 - DEBUG - Requesting: http://10.0.0.73:8082/project/cff1edd0-666d-4aeb-b664-d1bc7351391b 2025-09-11 08:34:55,638 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/dbb125b2-aff2-4ed4-8d97-cf7ca7eb17d5 2025-09-11 08:34:55,647 - DEBUG - ==>Verifying data for policy with id: 7fc24ce0-5102-466d-b8e4-a275527e2b1a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-38325423', 'ctest-policy1-71718148'] 2025-09-11 08:34:55,647 - INFO - VN ctest-vn4-03054404 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 08:34:55,647 - DEBUG - Verifying the vn in opserver 2025-09-11 08:34:55,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404 virtual network link through opserver 10.0.0.73 2025-09-11 08:34:55,648 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-09-11 08:34:55,935 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2025-09-11 08:34:55,982 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404?flat'} 2025-09-11 08:34:55,982 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-38325423:ctest-vn4-03054404 is found in opserver 2025-09-11 08:34:55,991 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 08:34:55,995 - DEBUG - VRF ids for VN ctest-vn4-03054404: {} 2025-09-11 08:34:55,995 - DEBUG - ====Verifying data for ctest-policy1-71718148 in API_Server ====== 2025-09-11 08:34:55,995 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-09-11 08:34:56,000 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852 2025-09-11 08:34:56,009 - DEBUG - Requesting: http://10.0.0.73:8082/project/cff1edd0-666d-4aeb-b664-d1bc7351391b 2025-09-11 08:34:56,085 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/7fc24ce0-5102-466d-b8e4-a275527e2b1a 2025-09-11 08:34:56,095 - INFO - Verified policy ctest-policy1-71718148 in API Server, Result: True 2025-09-11 08:34:56,095 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 08:34:56,102 - INFO - Deleting VN ctest-vn4-03054404 2025-09-11 08:34:56,210 - DEBUG - Response for deleting network () 2025-09-11 08:34:56,210 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/c1f87252-5e0b-4b0a-b47f-988876a2497c 2025-09-11 08:34:56,213 - DEBUG - Response Code: 404 2025-09-11 08:34:56,214 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2025-09-11 08:34:56,218 - DEBUG - Requesting: http://10.0.0.73:8082/domain/6711179a-bbf7-4392-830f-4a51d29b6852 2025-09-11 08:34:56,269 - DEBUG - Requesting: http://10.0.0.73:8082/project/cff1edd0-666d-4aeb-b664-d1bc7351391b 2025-09-11 08:34:56,341 - INFO - Validated that VN ctest-vn4-03054404 is not found in API Server 2025-09-11 08:34:56,349 - DEBUG - VN ctest-vn4-03054404 is not present in Agent 10.0.0.73 2025-09-11 08:34:56,349 - INFO - Validated that VN ctest-vn4-03054404 is not in any agent 2025-09-11 08:34:56,360 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03054404 info 2025-09-11 08:34:56,381 - INFO - Deleted policy ctest-policy1-71718148 2025-09-11 08:34:56,545 - DEBUG - policy ctest-policy1-71718148 is not found in API Server 2025-09-11 08:34:56,801 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 08:34:56,801 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-11 08:34:56,801 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:34:57,085 - DEBUG - No XMPP flaps were noticed during the test 2025-09-11 08:34:57,085 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-11 08:34:57,085 - INFO - -------------------------------------------------------------------------------- 2025-09-11 08:34:57,715 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-38325423, ID : cff1edd0-666d-4aeb-b664-d1bc7351391b