2025-08-31 02:34:25,425 - INFO - Domain Default found not creating 2025-08-31 02:34:25,555 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10573355 not found, creating it 2025-08-31 02:34:26,001 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10573355, ID : 08adfe4e-fe88-45e4-85df-93db6e742fec 2025-08-31 02:34:27,392 - INFO - ================================================================================ 2025-08-31 02:34:27,392 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 02:34:27,646 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-31 02:34:27,646 - INFO - Initial checks done. Running the testcase now 2025-08-31 02:34:27,646 - INFO - 2025-08-31 02:34:27,646 - INFO - ================================================================================ 2025-08-31 02:34:27,646 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-31 02:34:27,646 - 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-31 02:34:27,934 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-08-31 02:34:27,934 - INFO - Initial checks done. Running the testcase now 2025-08-31 02:34:27,934 - INFO - 2025-08-31 02:34:28,272 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538, 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-10573355:ctest-vn4-67825538, 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-10573355:ctest-vn4-67825538, 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-10573355:ctest-vn4-67825538, 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-31 02:34:28,756 - DEBUG - Response for create_network : {'network': {'id': 'ba4add5b-bb86-4090-baa5-a00f070c0d9f', 'name': 'ctest-vn4-67825538', 'tenant_id': '08adfe4efe8845e485df93db6e742fec', 'project_id': '08adfe4efe8845e485df93db6e742fec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10573355', 'ctest-vn4-67825538'], 'port_security_enabled': True, 'description': ''}} 2025-08-31 02:34:28,926 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dcfac70f-b7f1-4e99-ad43-be4dae3389f2', 'name': '', 'tenant_id': '08adfe4efe8845e485df93db6e742fec', 'network_id': 'ba4add5b-bb86-4090-baa5-a00f070c0d9f', 'ip_version': 4, 'cidr': '178.137.141.192/26', 'allocation_pools': [{'start': '178.137.141.194', 'end': '178.137.141.254'}], 'gateway_ip': '178.137.141.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '178.137.141.194', 'tags': [], 'project_id': '08adfe4efe8845e485df93db6e742fec'}} 2025-08-31 02:34:29,117 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cb1b464-cf63-4f53-9f56-7677fdfd8afb', 'name': '', 'tenant_id': '08adfe4efe8845e485df93db6e742fec', 'network_id': 'ba4add5b-bb86-4090-baa5-a00f070c0d9f', 'ip_version': 6, 'cidr': '27c1:93cf:3b00:8e6d:bfd5:cd98::/96', 'allocation_pools': [{'start': '27c1:93cf:3b00:8e6d:bfd5:cd98:0:2', 'end': '27c1:93cf:3b00:8e6d:bfd5:cd98:ffff:fffe'}], 'gateway_ip': '27c1:93cf:3b00:8e6d:bfd5:cd98:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27c1:93cf:3b00:8e6d:bfd5:cd98:0:2', 'tags': [], 'project_id': '08adfe4efe8845e485df93db6e742fec'}} 2025-08-31 02:34:29,134 - INFO - Created VN ctest-vn4-67825538 2025-08-31 02:34:29,186 - DEBUG - VN ctest-vn4-67825538 UUID is ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:29,388 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ba4add5b-bb86-4090-baa5-a00f070c0d9f', 'name': 'ctest-vn4-67825538', 'tenant_id': '08adfe4efe8845e485df93db6e742fec', 'project_id': '08adfe4efe8845e485df93db6e742fec', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['dcfac70f-b7f1-4e99-ad43-be4dae3389f2', '5cb1b464-cf63-4f53-9f56-7677fdfd8afb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10573355', 'ctest-vn4-67825538'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10573355', 'ctest-policy1-76827571']], 'subnet_ipam': [{'subnet_cidr': '178.137.141.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27c1:93cf:3b00:8e6d:bfd5:cd98::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-31 02:34:29,554 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 02:34:29,843 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 02:34:29,870 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a 2025-08-31 02:34:29,883 - DEBUG - Requesting: http://10.0.0.50:8082/project/08adfe4e-fe88-45e4-85df-93db6e742fec 2025-08-31 02:34:29,958 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:29,969 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:29,978 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:29,984 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:29,990 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6f365afb-6313-485f-848a-d45cc210fa30 2025-08-31 02:34:29,996 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 02:34:29,996 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:30,005 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:30,019 - INFO - Verified VN network id 12 for VN ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:30,019 - INFO - Verifications in API Server for VN ctest-vn4-67825538 passed 2025-08-31 02:34:30,019 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:30,028 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:30,034 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:30,041 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/6f365afb-6313-485f-848a-d45cc210fa30 2025-08-31 02:34:30,052 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10573355', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13423785025389084816', 'uuid-lslong': '13449331848615038367'}, 'enable': 'true', 'created': '2025-08-31T02:34:28', 'last-modified': '2025-08-31T02:34:29', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.690510'} 2025-08-31 02:34:30,061 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-31 02:34:30,061 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-67825538 passed 2025-08-31 02:34:30,061 - DEBUG - ====Verifying policy data for ctest-vn4-67825538 in API_Server ====== 2025-08-31 02:34:30,061 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 02:34:30,067 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a 2025-08-31 02:34:30,076 - DEBUG - Requesting: http://10.0.0.50:8082/project/08adfe4e-fe88-45e4-85df-93db6e742fec 2025-08-31 02:34:30,149 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ba4add5b-bb86-4090-baa5-a00f070c0d9f 2025-08-31 02:34:30,157 - DEBUG - ==>Verifying data for policy with id: 7db94ad8-2354-4d6a-a9ab-e952b9437490, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10573355', 'ctest-policy1-76827571'] 2025-08-31 02:34:30,157 - INFO - VN ctest-vn4-67825538 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-31 02:34:30,157 - DEBUG - Verifying the vn in opserver 2025-08-31 02:34:30,157 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538 virtual network link through opserver 10.0.0.50 2025-08-31 02:34:30,157 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-31 02:34:30,446 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-31 02:34:30,498 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538?flat'} 2025-08-31 02:34:30,498 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10573355:ctest-vn4-67825538 is found in opserver 2025-08-31 02:34:30,509 - DEBUG - Do not have enough data to verify VN in agent 2025-08-31 02:34:30,514 - DEBUG - VRF ids for VN ctest-vn4-67825538: {} 2025-08-31 02:34:30,515 - DEBUG - ====Verifying data for ctest-policy1-76827571 in API_Server ====== 2025-08-31 02:34:30,515 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 02:34:30,520 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a 2025-08-31 02:34:30,529 - DEBUG - Requesting: http://10.0.0.50:8082/project/08adfe4e-fe88-45e4-85df-93db6e742fec 2025-08-31 02:34:30,602 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7db94ad8-2354-4d6a-a9ab-e952b9437490 2025-08-31 02:34:30,613 - INFO - Verified policy ctest-policy1-76827571 in API Server, Result: True 2025-08-31 02:34:30,613 - INFO - Done with setup and verification, moving onto test .. 2025-08-31 02:34:30,636 - INFO - Deleting VN ctest-vn4-67825538 2025-08-31 02:34:30,743 - DEBUG - Response for deleting network () 2025-08-31 02:34:30,743 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/8ccf3751-7fd9-4f15-9753-d4a9d1e9a328 2025-08-31 02:34:30,748 - DEBUG - Response Code: 404 2025-08-31 02:34:30,749 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-31 02:34:30,754 - DEBUG - Requesting: http://10.0.0.50:8082/domain/70d7e6a2-f546-44a0-8971-885b2793ec9a 2025-08-31 02:34:30,807 - DEBUG - Requesting: http://10.0.0.50:8082/project/08adfe4e-fe88-45e4-85df-93db6e742fec 2025-08-31 02:34:30,880 - INFO - Validated that VN ctest-vn4-67825538 is not found in API Server 2025-08-31 02:34:30,888 - DEBUG - VN ctest-vn4-67825538 is not present in Agent 10.0.0.50 2025-08-31 02:34:30,889 - INFO - Validated that VN ctest-vn4-67825538 is not in any agent 2025-08-31 02:34:30,902 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-67825538 info 2025-08-31 02:34:30,923 - INFO - Deleted policy ctest-policy1-76827571 2025-08-31 02:34:31,089 - DEBUG - policy ctest-policy1-76827571 is not found in API Server 2025-08-31 02:34:31,342 - DEBUG - No XMPP flaps were noticed during the test 2025-08-31 02:34:31,342 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-31 02:34:31,343 - INFO - -------------------------------------------------------------------------------- 2025-08-31 02:34:31,634 - DEBUG - No XMPP flaps were noticed during the test 2025-08-31 02:34:31,634 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-31 02:34:31,634 - INFO - -------------------------------------------------------------------------------- 2025-08-31 02:34:32,325 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10573355, ID : 08adfe4e-fe88-45e4-85df-93db6e742fec