2025-08-15 12:13:21,864 - INFO - Domain Default found not creating 2025-08-15 12:13:22,001 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-51323887 not found, creating it 2025-08-15 12:13:22,469 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-51323887, ID : cb64677f-cb7a-4830-9e2e-fdd40d458a33 2025-08-15 12:13:23,828 - INFO - ================================================================================ 2025-08-15 12:13:23,828 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 12:13:24,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-08-15 12:13:24,083 - INFO - Initial checks done. Running the testcase now 2025-08-15 12:13:24,083 - INFO - 2025-08-15 12:13:24,083 - INFO - ================================================================================ 2025-08-15 12:13:24,083 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 12:13:24,083 - 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-15 12:13:24,378 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.129': '0'}} with 2025-08-15 12:13:24,378 - INFO - Initial checks done. Running the testcase now 2025-08-15 12:13:24,378 - INFO - 2025-08-15 12:13:24,727 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013, 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-51323887:ctest-vn4-77619013, 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-51323887:ctest-vn4-77619013, 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-51323887:ctest-vn4-77619013, 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-15 12:13:25,253 - DEBUG - Response for create_network : {'network': {'id': 'e2e0ea60-992f-48c6-bf97-0a8114985378', 'name': 'ctest-vn4-77619013', 'tenant_id': 'cb64677fcb7a48309e2efdd40d458a33', 'project_id': 'cb64677fcb7a48309e2efdd40d458a33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51323887', 'ctest-vn4-77619013'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 12:13:25,470 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ce740c9-c0fe-4037-a91d-0b14c000b71c', 'name': '', 'tenant_id': 'cb64677fcb7a48309e2efdd40d458a33', 'network_id': 'e2e0ea60-992f-48c6-bf97-0a8114985378', 'ip_version': 4, 'cidr': '7.207.149.64/26', 'allocation_pools': [{'start': '7.207.149.66', 'end': '7.207.149.126'}], 'gateway_ip': '7.207.149.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '7.207.149.66', 'tags': [], 'project_id': 'cb64677fcb7a48309e2efdd40d458a33'}} 2025-08-15 12:13:25,694 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f59b99f-aebc-4a08-a236-b3c6f801ecf6', 'name': '', 'tenant_id': 'cb64677fcb7a48309e2efdd40d458a33', 'network_id': 'e2e0ea60-992f-48c6-bf97-0a8114985378', 'ip_version': 6, 'cidr': '2c02:8025:aa38:df71:1352:d079::/96', 'allocation_pools': [{'start': '2c02:8025:aa38:df71:1352:d079:0:2', 'end': '2c02:8025:aa38:df71:1352:d079:ffff:fffe'}], 'gateway_ip': '2c02:8025:aa38:df71:1352:d079:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2c02:8025:aa38:df71:1352:d079:0:2', 'tags': [], 'project_id': 'cb64677fcb7a48309e2efdd40d458a33'}} 2025-08-15 12:13:25,713 - INFO - Created VN ctest-vn4-77619013 2025-08-15 12:13:25,765 - DEBUG - VN ctest-vn4-77619013 UUID is e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:25,978 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e2e0ea60-992f-48c6-bf97-0a8114985378', 'name': 'ctest-vn4-77619013', 'tenant_id': 'cb64677fcb7a48309e2efdd40d458a33', 'project_id': 'cb64677fcb7a48309e2efdd40d458a33', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4ce740c9-c0fe-4037-a91d-0b14c000b71c', '1f59b99f-aebc-4a08-a236-b3c6f801ecf6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51323887', 'ctest-vn4-77619013'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51323887', 'ctest-policy1-86537244']], 'subnet_ipam': [{'subnet_cidr': '7.207.149.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2c02:8025:aa38:df71:1352:d079::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 12:13:26,141 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-15 12:13:26,431 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-15 12:13:26,457 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8ea3f26-88a8-43aa-b21a-4dacbf72410d 2025-08-15 12:13:26,470 - DEBUG - Requesting: http://10.0.0.33:8082/project/cb64677f-cb7a-4830-9e2e-fdd40d458a33 2025-08-15 12:13:26,540 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,553 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,565 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:26,573 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:26,580 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0652764a-3618-4491-b24d-7fc810b574f9 2025-08-15 12:13:26,587 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 12:13:26,587 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,597 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:26,612 - INFO - Verified VN network id 12 for VN e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,612 - INFO - Verifications in API Server for VN ctest-vn4-77619013 passed 2025-08-15 12:13:26,612 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,622 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:26,630 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:26,638 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/0652764a-3618-4491-b24d-7fc810b574f9 2025-08-15 12:13:26,650 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-51323887', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16348324347962673350', 'uuid-lslong': '13805514732240130936'}, 'enable': 'true', 'created': '2025-08-15T12:13:25', 'last-modified': '2025-08-15T12:13:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.705304'} 2025-08-15 12:13:26,657 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 12:13:26,657 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77619013 passed 2025-08-15 12:13:26,657 - DEBUG - ====Verifying policy data for ctest-vn4-77619013 in API_Server ====== 2025-08-15 12:13:26,657 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-15 12:13:26,662 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8ea3f26-88a8-43aa-b21a-4dacbf72410d 2025-08-15 12:13:26,674 - DEBUG - Requesting: http://10.0.0.33:8082/project/cb64677f-cb7a-4830-9e2e-fdd40d458a33 2025-08-15 12:13:26,753 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/e2e0ea60-992f-48c6-bf97-0a8114985378 2025-08-15 12:13:26,765 - DEBUG - ==>Verifying data for policy with id: e425afe7-25dd-4a32-bb42-1e7c47a1fa6d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-51323887', 'ctest-policy1-86537244'] 2025-08-15 12:13:26,765 - INFO - VN ctest-vn4-77619013 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 12:13:26,766 - DEBUG - Verifying the vn in opserver 2025-08-15 12:13:26,766 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013 virtual network link through opserver 10.0.0.33 2025-08-15 12:13:26,766 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-15 12:13:27,058 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-08-15 12:13:27,113 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013?flat'} 2025-08-15 12:13:27,113 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-51323887:ctest-vn4-77619013 is found in opserver 2025-08-15 12:13:27,125 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 12:13:27,130 - DEBUG - VRF ids for VN ctest-vn4-77619013: {} 2025-08-15 12:13:27,131 - DEBUG - ====Verifying data for ctest-policy1-86537244 in API_Server ====== 2025-08-15 12:13:27,131 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-15 12:13:27,136 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8ea3f26-88a8-43aa-b21a-4dacbf72410d 2025-08-15 12:13:27,149 - DEBUG - Requesting: http://10.0.0.33:8082/project/cb64677f-cb7a-4830-9e2e-fdd40d458a33 2025-08-15 12:13:27,219 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/e425afe7-25dd-4a32-bb42-1e7c47a1fa6d 2025-08-15 12:13:27,228 - INFO - Verified policy ctest-policy1-86537244 in API Server, Result: True 2025-08-15 12:13:27,229 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 12:13:27,236 - INFO - Deleting VN ctest-vn4-77619013 2025-08-15 12:13:27,340 - DEBUG - Response for deleting network () 2025-08-15 12:13:27,340 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/90318117-71de-4a81-b71b-a386d189960c 2025-08-15 12:13:27,346 - DEBUG - Response Code: 404 2025-08-15 12:13:27,346 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-08-15 12:13:27,351 - DEBUG - Requesting: http://10.0.0.33:8082/domain/d8ea3f26-88a8-43aa-b21a-4dacbf72410d 2025-08-15 12:13:27,406 - DEBUG - Requesting: http://10.0.0.33:8082/project/cb64677f-cb7a-4830-9e2e-fdd40d458a33 2025-08-15 12:13:27,484 - INFO - Validated that VN ctest-vn4-77619013 is not found in API Server 2025-08-15 12:13:27,494 - DEBUG - VN ctest-vn4-77619013 is not present in Agent 10.0.0.33 2025-08-15 12:13:27,494 - INFO - Validated that VN ctest-vn4-77619013 is not in any agent 2025-08-15 12:13:27,509 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77619013 info 2025-08-15 12:13:27,533 - INFO - Deleted policy ctest-policy1-86537244 2025-08-15 12:13:27,696 - DEBUG - policy ctest-policy1-86537244 is not found in API Server 2025-08-15 12:13:27,950 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 12:13:27,950 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-08-15 12:13:27,950 - INFO - -------------------------------------------------------------------------------- 2025-08-15 12:13:28,239 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 12:13:28,239 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-15 12:13:28,239 - INFO - -------------------------------------------------------------------------------- 2025-08-15 12:13:28,917 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-51323887, ID : cb64677f-cb7a-4830-9e2e-fdd40d458a33