2025-07-23 17:20:08,282 - INFO - Domain Default found not creating 2025-07-23 17:20:08,424 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-12213077 not found, creating it 2025-07-23 17:20:08,893 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-12213077, ID : ad53792f-af67-416d-a598-047a978460fa 2025-07-23 17:20:10,290 - INFO - ================================================================================ 2025-07-23 17:20:10,290 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 17:20:10,550 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.18': '0'}} with 2025-07-23 17:20:10,550 - INFO - Initial checks done. Running the testcase now 2025-07-23 17:20:10,550 - INFO - 2025-07-23 17:20:10,550 - INFO - ================================================================================ 2025-07-23 17:20:10,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 17:20:10,550 - 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-07-23 17:20:10,837 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.18': '0'}} with 2025-07-23 17:20:10,837 - INFO - Initial checks done. Running the testcase now 2025-07-23 17:20:10,837 - INFO - 2025-07-23 17:20:11,188 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929, 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-12213077:ctest-vn4-87720929, 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-12213077:ctest-vn4-87720929, 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-12213077:ctest-vn4-87720929, 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-07-23 17:20:11,708 - DEBUG - Response for create_network : {'network': {'id': '96c5b4f4-1f18-425c-bf46-a44e7f2e491e', 'name': 'ctest-vn4-87720929', 'tenant_id': 'ad53792faf67416da598047a978460fa', 'project_id': 'ad53792faf67416da598047a978460fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12213077', 'ctest-vn4-87720929'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 17:20:11,905 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd6b59c06-f201-42b2-b486-b1185ea648b4', 'name': '', 'tenant_id': 'ad53792faf67416da598047a978460fa', 'network_id': '96c5b4f4-1f18-425c-bf46-a44e7f2e491e', 'ip_version': 4, 'cidr': '25.178.94.128/26', 'allocation_pools': [{'start': '25.178.94.130', 'end': '25.178.94.190'}], 'gateway_ip': '25.178.94.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25.178.94.130', 'tags': [], 'project_id': 'ad53792faf67416da598047a978460fa'}} 2025-07-23 17:20:12,102 - DEBUG - Response for create_subnet : {'subnet': {'id': '1c5b771b-75ed-4192-bed1-5d14f5ee6470', 'name': '', 'tenant_id': 'ad53792faf67416da598047a978460fa', 'network_id': '96c5b4f4-1f18-425c-bf46-a44e7f2e491e', 'ip_version': 6, 'cidr': '3f59:48d6:db68:ccb7:2a66:685d::/96', 'allocation_pools': [{'start': '3f59:48d6:db68:ccb7:2a66:685d:0:2', 'end': '3f59:48d6:db68:ccb7:2a66:685d:ffff:fffe'}], 'gateway_ip': '3f59:48d6:db68:ccb7:2a66:685d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3f59:48d6:db68:ccb7:2a66:685d:0:2', 'tags': [], 'project_id': 'ad53792faf67416da598047a978460fa'}} 2025-07-23 17:20:12,121 - INFO - Created VN ctest-vn4-87720929 2025-07-23 17:20:12,175 - DEBUG - VN ctest-vn4-87720929 UUID is 96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:12,385 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '96c5b4f4-1f18-425c-bf46-a44e7f2e491e', 'name': 'ctest-vn4-87720929', 'tenant_id': 'ad53792faf67416da598047a978460fa', 'project_id': 'ad53792faf67416da598047a978460fa', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d6b59c06-f201-42b2-b486-b1185ea648b4', '1c5b771b-75ed-4192-bed1-5d14f5ee6470'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12213077', 'ctest-vn4-87720929'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12213077', 'ctest-policy1-82970608']], 'subnet_ipam': [{'subnet_cidr': '25.178.94.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3f59:48d6:db68:ccb7:2a66:685d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 17:20:12,555 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 17:20:12,850 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 17:20:12,877 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89 2025-07-23 17:20:12,893 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad53792f-af67-416d-a598-047a978460fa 2025-07-23 17:20:12,972 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:12,986 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:12,997 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,005 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,014 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/519e6ef4-c3e4-4332-b195-b4bdc86f6e9d 2025-07-23 17:20:13,022 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:20:13,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:13,033 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,048 - INFO - Verified VN network id 12 for VN 96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:13,048 - INFO - Verifications in API Server for VN ctest-vn4-87720929 passed 2025-07-23 17:20:13,048 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:13,060 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,070 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,078 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/519e6ef4-c3e4-4332-b195-b4bdc86f6e9d 2025-07-23 17:20:13,092 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-12213077', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10864288636687893084', 'uuid-lslong': '13782884366662125854'}, 'enable': 'true', 'created': '2025-07-23T17:20:11', 'last-modified': '2025-07-23T17:20:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.737668'} 2025-07-23 17:20:13,099 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 17:20:13,099 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87720929 passed 2025-07-23 17:20:13,099 - DEBUG - ====Verifying policy data for ctest-vn4-87720929 in API_Server ====== 2025-07-23 17:20:13,099 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 17:20:13,105 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89 2025-07-23 17:20:13,117 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad53792f-af67-416d-a598-047a978460fa 2025-07-23 17:20:13,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/96c5b4f4-1f18-425c-bf46-a44e7f2e491e 2025-07-23 17:20:13,202 - DEBUG - ==>Verifying data for policy with id: 3aec156d-7360-44c8-bd2d-579107af2af4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-12213077', 'ctest-policy1-82970608'] 2025-07-23 17:20:13,202 - INFO - VN ctest-vn4-87720929 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 17:20:13,202 - DEBUG - Verifying the vn in opserver 2025-07-23 17:20:13,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929 virtual network link through opserver 10.0.0.254 2025-07-23 17:20:13,202 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-23 17:20:13,493 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-07-23 17:20:13,547 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929?flat'} 2025-07-23 17:20:13,547 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-12213077:ctest-vn4-87720929 is found in opserver 2025-07-23 17:20:13,559 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 17:20:13,564 - DEBUG - VRF ids for VN ctest-vn4-87720929: {} 2025-07-23 17:20:13,565 - DEBUG - ====Verifying data for ctest-policy1-82970608 in API_Server ====== 2025-07-23 17:20:13,565 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 17:20:13,572 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89 2025-07-23 17:20:13,585 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad53792f-af67-416d-a598-047a978460fa 2025-07-23 17:20:13,666 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/3aec156d-7360-44c8-bd2d-579107af2af4 2025-07-23 17:20:13,677 - INFO - Verified policy ctest-policy1-82970608 in API Server, Result: True 2025-07-23 17:20:13,677 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 17:20:13,685 - INFO - Deleting VN ctest-vn4-87720929 2025-07-23 17:20:13,823 - DEBUG - Response for deleting network () 2025-07-23 17:20:13,823 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/6e4e5b1f-cc44-4437-ab55-68c2746e817a 2025-07-23 17:20:13,829 - DEBUG - Response Code: 404 2025-07-23 17:20:13,829 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-07-23 17:20:13,835 - DEBUG - Requesting: http://10.0.0.254:8082/domain/6fe0b66b-f81d-48ed-a363-41c33e82bf89 2025-07-23 17:20:13,890 - DEBUG - Requesting: http://10.0.0.254:8082/project/ad53792f-af67-416d-a598-047a978460fa 2025-07-23 17:20:13,968 - INFO - Validated that VN ctest-vn4-87720929 is not found in API Server 2025-07-23 17:20:13,981 - DEBUG - VN ctest-vn4-87720929 is not present in Agent 10.0.0.254 2025-07-23 17:20:13,981 - INFO - Validated that VN ctest-vn4-87720929 is not in any agent 2025-07-23 17:20:13,998 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87720929 info 2025-07-23 17:20:14,021 - INFO - Deleted policy ctest-policy1-82970608 2025-07-23 17:20:14,182 - DEBUG - policy ctest-policy1-82970608 is not found in API Server 2025-07-23 17:20:14,436 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 17:20:14,436 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 17:20:14,436 - INFO - -------------------------------------------------------------------------------- 2025-07-23 17:20:14,732 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 17:20:14,732 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 17:20:14,732 - INFO - -------------------------------------------------------------------------------- 2025-07-23 17:20:15,390 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-12213077, ID : ad53792f-af67-416d-a598-047a978460fa