2025-09-11 16:57:55,100 - INFO - Domain Default found not creating 2025-09-11 16:57:55,248 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-77328592 not found, creating it 2025-09-11 16:57:55,682 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-77328592, ID : b7297128-250a-4ddd-9fce-090b519723c1 2025-09-11 16:57:57,033 - INFO - ================================================================================ 2025-09-11 16:57:57,033 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 16:57:57,288 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-09-11 16:57:57,288 - INFO - Initial checks done. Running the testcase now 2025-09-11 16:57:57,288 - INFO - 2025-09-11 16:57:57,288 - INFO - ================================================================================ 2025-09-11 16:57:57,288 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-11 16:57:57,288 - 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 16:57:57,575 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.254': '0'}} with 2025-09-11 16:57:57,575 - INFO - Initial checks done. Running the testcase now 2025-09-11 16:57:57,575 - INFO - 2025-09-11 16:57:57,923 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051, 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-77328592:ctest-vn4-94461051, 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-77328592:ctest-vn4-94461051, 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-77328592:ctest-vn4-94461051, 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 16:57:58,407 - DEBUG - Response for create_network : {'network': {'id': '6937337e-6aeb-4039-b4ee-9d86136a7908', 'name': 'ctest-vn4-94461051', 'tenant_id': 'b7297128250a4ddd9fce090b519723c1', 'project_id': 'b7297128250a4ddd9fce090b519723c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77328592', 'ctest-vn4-94461051'], 'port_security_enabled': True, 'description': ''}} 2025-09-11 16:57:58,591 - DEBUG - Response for create_subnet : {'subnet': {'id': '70a7cfaa-8bf0-4209-b58f-d07b69f072a3', 'name': '', 'tenant_id': 'b7297128250a4ddd9fce090b519723c1', 'network_id': '6937337e-6aeb-4039-b4ee-9d86136a7908', 'ip_version': 4, 'cidr': '156.28.85.0/26', 'allocation_pools': [{'start': '156.28.85.2', 'end': '156.28.85.62'}], 'gateway_ip': '156.28.85.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.28.85.2', 'tags': [], 'project_id': 'b7297128250a4ddd9fce090b519723c1'}} 2025-09-11 16:57:58,746 - DEBUG - Response for create_subnet : {'subnet': {'id': '3dab432c-80ea-4f11-98ae-ddf5a1a35360', 'name': '', 'tenant_id': 'b7297128250a4ddd9fce090b519723c1', 'network_id': '6937337e-6aeb-4039-b4ee-9d86136a7908', 'ip_version': 6, 'cidr': '31ee:1afc:60cb:7777:f9ec:5cd2::/96', 'allocation_pools': [{'start': '31ee:1afc:60cb:7777:f9ec:5cd2:0:2', 'end': '31ee:1afc:60cb:7777:f9ec:5cd2:ffff:fffe'}], 'gateway_ip': '31ee:1afc:60cb:7777:f9ec:5cd2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31ee:1afc:60cb:7777:f9ec:5cd2:0:2', 'tags': [], 'project_id': 'b7297128250a4ddd9fce090b519723c1'}} 2025-09-11 16:57:58,766 - INFO - Created VN ctest-vn4-94461051 2025-09-11 16:57:58,819 - DEBUG - VN ctest-vn4-94461051 UUID is 6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,010 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6937337e-6aeb-4039-b4ee-9d86136a7908', 'name': 'ctest-vn4-94461051', 'tenant_id': 'b7297128250a4ddd9fce090b519723c1', 'project_id': 'b7297128250a4ddd9fce090b519723c1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70a7cfaa-8bf0-4209-b58f-d07b69f072a3', '3dab432c-80ea-4f11-98ae-ddf5a1a35360'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77328592', 'ctest-vn4-94461051'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77328592', 'ctest-policy1-02264589']], 'subnet_ipam': [{'subnet_cidr': '156.28.85.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31ee:1afc:60cb:7777:f9ec:5cd2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-11 16:57:59,175 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 16:57:59,464 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 16:57:59,493 - DEBUG - Requesting: http://10.0.0.50:8082/domain/60104877-ff97-4f4a-96f2-783b5fd6e12b 2025-09-11 16:57:59,504 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7297128-250a-4ddd-9fce-090b519723c1 2025-09-11 16:57:59,572 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,591 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:57:59,597 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:57:59,602 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36a0f423-112d-40a9-807e-f68ca9bef69c 2025-09-11 16:57:59,608 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 16:57:59,608 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,616 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:57:59,629 - INFO - Verified VN network id 12 for VN 6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,629 - INFO - Verifications in API Server for VN ctest-vn4-94461051 passed 2025-09-11 16:57:59,629 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,638 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:57:59,644 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:57:59,650 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/36a0f423-112d-40a9-807e-f68ca9bef69c 2025-09-11 16:57:59,659 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-77328592', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7581585115754217529', 'uuid-lslong': '13037531170461088008'}, 'enable': 'true', 'created': '2025-09-11T16:57:58', 'last-modified': '2025-09-11T16:57:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.671931'} 2025-09-11 16:57:59,665 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-11 16:57:59,665 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94461051 passed 2025-09-11 16:57:59,665 - DEBUG - ====Verifying policy data for ctest-vn4-94461051 in API_Server ====== 2025-09-11 16:57:59,665 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 16:57:59,670 - DEBUG - Requesting: http://10.0.0.50:8082/domain/60104877-ff97-4f4a-96f2-783b5fd6e12b 2025-09-11 16:57:59,680 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7297128-250a-4ddd-9fce-090b519723c1 2025-09-11 16:57:59,749 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/6937337e-6aeb-4039-b4ee-9d86136a7908 2025-09-11 16:57:59,759 - DEBUG - ==>Verifying data for policy with id: 800fd79b-47cb-4c60-8a3c-f6bae534e138, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-77328592', 'ctest-policy1-02264589'] 2025-09-11 16:57:59,759 - INFO - VN ctest-vn4-94461051 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-11 16:57:59,759 - DEBUG - Verifying the vn in opserver 2025-09-11 16:57:59,759 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051 virtual network link through opserver 10.0.0.50 2025-09-11 16:57:59,759 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-11 16:58:00,058 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-09-11 16:58:00,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051?flat'} 2025-09-11 16:58:00,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-77328592:ctest-vn4-94461051 is found in opserver 2025-09-11 16:58:00,132 - DEBUG - Do not have enough data to verify VN in agent 2025-09-11 16:58:00,137 - DEBUG - VRF ids for VN ctest-vn4-94461051: {} 2025-09-11 16:58:00,138 - DEBUG - ====Verifying data for ctest-policy1-02264589 in API_Server ====== 2025-09-11 16:58:00,138 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 16:58:00,143 - DEBUG - Requesting: http://10.0.0.50:8082/domain/60104877-ff97-4f4a-96f2-783b5fd6e12b 2025-09-11 16:58:00,156 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7297128-250a-4ddd-9fce-090b519723c1 2025-09-11 16:58:00,232 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/800fd79b-47cb-4c60-8a3c-f6bae534e138 2025-09-11 16:58:00,243 - INFO - Verified policy ctest-policy1-02264589 in API Server, Result: True 2025-09-11 16:58:00,243 - INFO - Done with setup and verification, moving onto test .. 2025-09-11 16:58:00,251 - INFO - Deleting VN ctest-vn4-94461051 2025-09-11 16:58:00,384 - DEBUG - Response for deleting network () 2025-09-11 16:58:00,384 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1a7b6ede-3033-4cdd-a2c0-eb3dba5c9d05 2025-09-11 16:58:00,389 - DEBUG - Response Code: 404 2025-09-11 16:58:00,390 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-09-11 16:58:00,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/60104877-ff97-4f4a-96f2-783b5fd6e12b 2025-09-11 16:58:00,448 - DEBUG - Requesting: http://10.0.0.50:8082/project/b7297128-250a-4ddd-9fce-090b519723c1 2025-09-11 16:58:00,520 - INFO - Validated that VN ctest-vn4-94461051 is not found in API Server 2025-09-11 16:58:00,529 - DEBUG - VN ctest-vn4-94461051 is not present in Agent 10.0.0.50 2025-09-11 16:58:00,529 - INFO - Validated that VN ctest-vn4-94461051 is not in any agent 2025-09-11 16:58:00,545 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94461051 info 2025-09-11 16:58:00,572 - INFO - Deleted policy ctest-policy1-02264589 2025-09-11 16:58:00,739 - DEBUG - policy ctest-policy1-02264589 is not found in API Server 2025-09-11 16:58:01,012 - DEBUG - No XMPP flaps were noticed during the test