2025-08-19 12:57:54,063 - INFO - Domain Default found not creating 2025-08-19 12:57:54,178 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93502690 not found, creating it 2025-08-19 12:57:54,624 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93502690, ID : 409a6d0a-d0e2-4dea-bbe4-ba8bc179288f 2025-08-19 12:57:55,920 - INFO - ================================================================================ 2025-08-19 12:57:55,920 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 12:57:56,172 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2025-08-19 12:57:56,172 - INFO - Initial checks done. Running the testcase now 2025-08-19 12:57:56,172 - INFO - 2025-08-19 12:57:56,172 - INFO - ================================================================================ 2025-08-19 12:57:56,172 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-19 12:57:56,173 - 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-19 12:57:56,464 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.0.0.57': '0'}} with 2025-08-19 12:57:56,464 - INFO - Initial checks done. Running the testcase now 2025-08-19 12:57:56,464 - INFO - 2025-08-19 12:57:56,797 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580, 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-93502690:ctest-vn4-41783580, 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-93502690:ctest-vn4-41783580, 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-93502690:ctest-vn4-41783580, 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-19 12:57:57,282 - DEBUG - Response for create_network : {'network': {'id': '82f1931e-3224-415c-8bf4-c713e74faebc', 'name': 'ctest-vn4-41783580', 'tenant_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'project_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93502690', 'ctest-vn4-41783580'], 'port_security_enabled': True, 'description': ''}} 2025-08-19 12:57:57,467 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c04d591c-02d1-479b-a825-7162e112567d', 'name': '', 'tenant_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'network_id': '82f1931e-3224-415c-8bf4-c713e74faebc', 'ip_version': 4, 'cidr': '124.81.232.64/26', 'allocation_pools': [{'start': '124.81.232.66', 'end': '124.81.232.126'}], 'gateway_ip': '124.81.232.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '124.81.232.66', 'tags': [], 'project_id': '409a6d0ad0e24deabbe4ba8bc179288f'}} 2025-08-19 12:57:57,670 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f775e2a0-7ca4-4fe2-873c-40b5cd758783', 'name': '', 'tenant_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'network_id': '82f1931e-3224-415c-8bf4-c713e74faebc', 'ip_version': 6, 'cidr': '2d9b:855:8ee5:44f2:6e5f:7fe2::/96', 'allocation_pools': [{'start': '2d9b:855:8ee5:44f2:6e5f:7fe2:0:2', 'end': '2d9b:855:8ee5:44f2:6e5f:7fe2:ffff:fffe'}], 'gateway_ip': '2d9b:855:8ee5:44f2:6e5f:7fe2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2d9b:855:8ee5:44f2:6e5f:7fe2:0:2', 'tags': [], 'project_id': '409a6d0ad0e24deabbe4ba8bc179288f'}} 2025-08-19 12:57:57,687 - INFO - Created VN ctest-vn4-41783580 2025-08-19 12:57:57,736 - DEBUG - VN ctest-vn4-41783580 UUID is 82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:57,911 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '82f1931e-3224-415c-8bf4-c713e74faebc', 'name': 'ctest-vn4-41783580', 'tenant_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'project_id': '409a6d0ad0e24deabbe4ba8bc179288f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c04d591c-02d1-479b-a825-7162e112567d', 'f775e2a0-7ca4-4fe2-873c-40b5cd758783'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93502690', 'ctest-vn4-41783580'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93502690', 'ctest-policy1-48437640']], 'subnet_ipam': [{'subnet_cidr': '124.81.232.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2d9b:855:8ee5:44f2:6e5f:7fe2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-19 12:57:58,080 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-19 12:57:58,367 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-19 12:57:58,391 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc 2025-08-19 12:57:58,402 - DEBUG - Requesting: http://10.0.0.57:8082/project/409a6d0a-d0e2-4dea-bbe4-ba8bc179288f 2025-08-19 12:57:58,469 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,480 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,488 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:58,493 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:58,498 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c38b1f1e-088e-4ac7-8d46-0b0fb17dee88 2025-08-19 12:57:58,502 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 12:57:58,502 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,510 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:58,520 - INFO - Verified VN network id 12 for VN 82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,520 - INFO - Verifications in API Server for VN ctest-vn4-41783580 passed 2025-08-19 12:57:58,520 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,528 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:58,533 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:58,538 - DEBUG - Requesting: http://10.0.0.57:8082/route-target/c38b1f1e-088e-4ac7-8d46-0b0fb17dee88 2025-08-19 12:57:58,547 - DEBUG - Control-node 10.0.0.57 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93502690', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9435484452217438556', 'uuid-lslong': '10084904353888448188'}, 'enable': 'true', 'created': '2025-08-19T12:57:57', 'last-modified': '2025-08-19T12:57:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.664409'} 2025-08-19 12:57:58,553 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-19 12:57:58,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-41783580 passed 2025-08-19 12:57:58,553 - DEBUG - ====Verifying policy data for ctest-vn4-41783580 in API_Server ====== 2025-08-19 12:57:58,553 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-19 12:57:58,557 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc 2025-08-19 12:57:58,566 - DEBUG - Requesting: http://10.0.0.57:8082/project/409a6d0a-d0e2-4dea-bbe4-ba8bc179288f 2025-08-19 12:57:58,633 - DEBUG - Requesting: http://10.0.0.57:8082/virtual-network/82f1931e-3224-415c-8bf4-c713e74faebc 2025-08-19 12:57:58,642 - DEBUG - ==>Verifying data for policy with id: 454f511d-d344-4256-a551-5b00ecb45f02, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93502690', 'ctest-policy1-48437640'] 2025-08-19 12:57:58,642 - INFO - VN ctest-vn4-41783580 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-19 12:57:58,642 - DEBUG - Verifying the vn in opserver 2025-08-19 12:57:58,642 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580 virtual network link through opserver 10.0.0.57 2025-08-19 12:57:58,642 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-19 12:57:58,928 - DEBUG - Requesting: http://10.0.0.57:8081/analytics/uves/virtual-networks 2025-08-19 12:57:58,984 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580', 'href': 'http://10.0.0.57:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580?flat'} 2025-08-19 12:57:58,984 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93502690:ctest-vn4-41783580 is found in opserver 2025-08-19 12:57:58,993 - DEBUG - Do not have enough data to verify VN in agent 2025-08-19 12:57:58,998 - DEBUG - VRF ids for VN ctest-vn4-41783580: {} 2025-08-19 12:57:58,998 - DEBUG - ====Verifying data for ctest-policy1-48437640 in API_Server ====== 2025-08-19 12:57:58,998 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-19 12:57:59,003 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc 2025-08-19 12:57:59,014 - DEBUG - Requesting: http://10.0.0.57:8082/project/409a6d0a-d0e2-4dea-bbe4-ba8bc179288f 2025-08-19 12:57:59,086 - DEBUG - Requesting: http://10.0.0.57:8082/network-policy/454f511d-d344-4256-a551-5b00ecb45f02 2025-08-19 12:57:59,097 - INFO - Verified policy ctest-policy1-48437640 in API Server, Result: True 2025-08-19 12:57:59,097 - INFO - Done with setup and verification, moving onto test .. 2025-08-19 12:57:59,104 - INFO - Deleting VN ctest-vn4-41783580 2025-08-19 12:57:59,204 - DEBUG - Response for deleting network () 2025-08-19 12:57:59,204 - DEBUG - Requesting: http://10.0.0.57:8082/routing-instance/0f7e0143-0df5-470e-8011-d1337617b5c3 2025-08-19 12:57:59,208 - DEBUG - Response Code: 404 2025-08-19 12:57:59,208 - DEBUG - Requesting: http://10.0.0.57:8082/domains 2025-08-19 12:57:59,212 - DEBUG - Requesting: http://10.0.0.57:8082/domain/37c5b4fd-3460-4eca-8bb5-f29a49538ddc 2025-08-19 12:57:59,269 - DEBUG - Requesting: http://10.0.0.57:8082/project/409a6d0a-d0e2-4dea-bbe4-ba8bc179288f 2025-08-19 12:57:59,336 - INFO - Validated that VN ctest-vn4-41783580 is not found in API Server 2025-08-19 12:57:59,345 - DEBUG - VN ctest-vn4-41783580 is not present in Agent 10.0.0.57 2025-08-19 12:57:59,345 - INFO - Validated that VN ctest-vn4-41783580 is not in any agent 2025-08-19 12:57:59,357 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-41783580 info 2025-08-19 12:57:59,378 - INFO - Deleted policy ctest-policy1-48437640 2025-08-19 12:57:59,544 - DEBUG - policy ctest-policy1-48437640 is not found in API Server 2025-08-19 12:57:59,801 - DEBUG - No XMPP flaps were noticed during the test 2025-08-19 12:57:59,801 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-08-19 12:57:59,801 - INFO - -------------------------------------------------------------------------------- 2025-08-19 12:58:00,088 - DEBUG - No XMPP flaps were noticed during the test 2025-08-19 12:58:00,088 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-19 12:58:00,088 - INFO - -------------------------------------------------------------------------------- 2025-08-19 12:58:00,722 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-93502690, ID : 409a6d0a-d0e2-4dea-bbe4-ba8bc179288f