2025-11-05 20:06:53,589 - INFO - Domain Default found not creating 2025-11-05 20:06:53,927 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-70451277 not found, creating it 2025-11-05 20:06:54,439 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-70451277, ID : 4c163f0a-eb90-41fc-946b-0efa2faefa53 2025-11-05 20:06:56,292 - INFO - ================================================================================ 2025-11-05 20:06:56,292 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 20:06:56,612 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2025-11-05 20:06:56,612 - INFO - Initial checks done. Running the testcase now 2025-11-05 20:06:56,612 - INFO - 2025-11-05 20:06:56,613 - INFO - ================================================================================ 2025-11-05 20:06:56,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 20:06:56,613 - 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-05 20:06:56,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.192': '0'}} with 2025-11-05 20:06:56,954 - INFO - Initial checks done. Running the testcase now 2025-11-05 20:06:56,955 - INFO - 2025-11-05 20:06:57,460 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963, 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-70451277:ctest-vn4-54065963, 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-70451277:ctest-vn4-54065963, 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-70451277:ctest-vn4-54065963, 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-05 20:06:58,125 - DEBUG - Response for create_network : {'network': {'id': '24649b1a-0b1d-4a13-9362-b3176186820e', 'name': 'ctest-vn4-54065963', 'tenant_id': '4c163f0aeb9041fc946b0efa2faefa53', 'project_id': '4c163f0aeb9041fc946b0efa2faefa53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70451277', 'ctest-vn4-54065963'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:06:58,295 - DEBUG - Response for create_subnet : {'subnet': {'id': '9e1de131-57a2-4102-a516-59455079390a', 'name': '', 'tenant_id': '4c163f0aeb9041fc946b0efa2faefa53', 'network_id': '24649b1a-0b1d-4a13-9362-b3176186820e', 'ip_version': 4, 'cidr': '211.246.26.0/26', 'allocation_pools': [{'start': '211.246.26.2', 'end': '211.246.26.62'}], 'gateway_ip': '211.246.26.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '211.246.26.2', 'tags': [], 'project_id': '4c163f0aeb9041fc946b0efa2faefa53'}} 2025-11-05 20:06:58,570 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a190cf8b-b6ff-44be-ad1a-76a261529de8', 'name': '', 'tenant_id': '4c163f0aeb9041fc946b0efa2faefa53', 'network_id': '24649b1a-0b1d-4a13-9362-b3176186820e', 'ip_version': 6, 'cidr': '3332:cd44:23ad:7104:f6ba:523::/96', 'allocation_pools': [{'start': '3332:cd44:23ad:7104:f6ba:523:0:2', 'end': '3332:cd44:23ad:7104:f6ba:523:ffff:fffe'}], 'gateway_ip': '3332:cd44:23ad:7104:f6ba:523:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3332:cd44:23ad:7104:f6ba:523:0:2', 'tags': [], 'project_id': '4c163f0aeb9041fc946b0efa2faefa53'}} 2025-11-05 20:06:58,602 - INFO - Created VN ctest-vn4-54065963 2025-11-05 20:06:58,656 - DEBUG - VN ctest-vn4-54065963 UUID is 24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:58,929 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '24649b1a-0b1d-4a13-9362-b3176186820e', 'name': 'ctest-vn4-54065963', 'tenant_id': '4c163f0aeb9041fc946b0efa2faefa53', 'project_id': '4c163f0aeb9041fc946b0efa2faefa53', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9e1de131-57a2-4102-a516-59455079390a', 'a190cf8b-b6ff-44be-ad1a-76a261529de8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70451277', 'ctest-vn4-54065963'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70451277', 'ctest-policy1-59396115']], 'subnet_ipam': [{'subnet_cidr': '211.246.26.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3332:cd44:23ad:7104:f6ba:523::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 20:06:59,120 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:06:59,437 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:06:59,525 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:06:59,548 - DEBUG - Requesting: http://10.0.0.50:8082/project/4c163f0a-eb90-41fc-946b-0efa2faefa53 2025-11-05 20:06:59,661 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:59,682 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:59,701 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:06:59,713 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:06:59,731 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/99bb3807-2cf4-475b-9f5d-1f8d496aed0b 2025-11-05 20:06:59,740 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 20:06:59,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:59,751 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:06:59,769 - INFO - Verified VN network id 10 for VN 24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:59,769 - INFO - Verifications in API Server for VN ctest-vn4-54065963 passed 2025-11-05 20:06:59,770 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:06:59,787 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:06:59,800 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:06:59,812 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/99bb3807-2cf4-475b-9f5d-1f8d496aed0b 2025-11-05 20:06:59,835 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-70451277', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2622391419194395155', 'uuid-lslong': '10620247784294875662'}, 'enable': 'true', 'created': '2025-11-05T20:06:58', 'last-modified': '2025-11-05T20:06:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.929480'} 2025-11-05 20:06:59,852 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 20:06:59,852 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-54065963 passed 2025-11-05 20:06:59,852 - DEBUG - ====Verifying policy data for ctest-vn4-54065963 in API_Server ====== 2025-11-05 20:06:59,852 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:06:59,867 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:06:59,887 - DEBUG - Requesting: http://10.0.0.50:8082/project/4c163f0a-eb90-41fc-946b-0efa2faefa53 2025-11-05 20:06:59,998 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/24649b1a-0b1d-4a13-9362-b3176186820e 2025-11-05 20:07:00,024 - DEBUG - ==>Verifying data for policy with id: 8ee8cbcf-9b25-461d-984d-88c839716596, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-70451277', 'ctest-policy1-59396115'] 2025-11-05 20:07:00,024 - INFO - VN ctest-vn4-54065963 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 20:07:00,024 - DEBUG - Verifying the vn in opserver 2025-11-05 20:07:00,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963 virtual network link through opserver 10.0.0.50 2025-11-05 20:07:00,024 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 20:07:00,326 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-05 20:07:00,403 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963?flat'} 2025-11-05 20:07:00,403 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-70451277:ctest-vn4-54065963 is found in opserver 2025-11-05 20:07:00,416 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 20:07:00,422 - DEBUG - VRF ids for VN ctest-vn4-54065963: {} 2025-11-05 20:07:00,423 - DEBUG - ====Verifying data for ctest-policy1-59396115 in API_Server ====== 2025-11-05 20:07:00,423 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:00,430 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:00,445 - DEBUG - Requesting: http://10.0.0.50:8082/project/4c163f0a-eb90-41fc-946b-0efa2faefa53 2025-11-05 20:07:00,544 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/8ee8cbcf-9b25-461d-984d-88c839716596 2025-11-05 20:07:00,556 - INFO - Verified policy ctest-policy1-59396115 in API Server, Result: True 2025-11-05 20:07:00,556 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 20:07:00,565 - INFO - Deleting VN ctest-vn4-54065963 2025-11-05 20:07:00,699 - DEBUG - Response for deleting network () 2025-11-05 20:07:00,699 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/574a1e6f-aa49-4272-9906-952a70359f18 2025-11-05 20:07:00,704 - DEBUG - Response Code: 404 2025-11-05 20:07:00,704 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-05 20:07:00,711 - DEBUG - Requesting: http://10.0.0.50:8082/domain/fb754f0e-a19c-4bb1-954f-b06c1c85aca4 2025-11-05 20:07:00,765 - DEBUG - Requesting: http://10.0.0.50:8082/project/4c163f0a-eb90-41fc-946b-0efa2faefa53 2025-11-05 20:07:00,848 - INFO - Validated that VN ctest-vn4-54065963 is not found in API Server 2025-11-05 20:07:00,861 - DEBUG - VN ctest-vn4-54065963 is not present in Agent 10.0.0.50 2025-11-05 20:07:00,861 - INFO - Validated that VN ctest-vn4-54065963 is not in any agent 2025-11-05 20:07:00,881 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-54065963 info 2025-11-05 20:07:00,915 - INFO - Deleted policy ctest-policy1-59396115 2025-11-05 20:07:01,100 - DEBUG - policy ctest-policy1-59396115 is not found in API Server 2025-11-05 20:07:01,410 - DEBUG - No XMPP flaps were noticed during the test