2025-08-11 16:30:12,670 - INFO - Domain Default found not creating 2025-08-11 16:30:12,840 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-65791670 not found, creating it 2025-08-11 16:30:13,395 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-65791670, ID : 1352a2da-261a-4ad0-801b-1f49017a7855 2025-08-11 16:30:14,796 - INFO - ================================================================================ 2025-08-11 16:30:14,796 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 16:30:16,059 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0', '10.20.0.193': '0'}, '10.0.0.249': {'10.20.0.193': '0', '10.20.0.192': '0'}} with 2025-08-11 16:30:16,059 - INFO - Initial checks done. Running the testcase now 2025-08-11 16:30:16,059 - INFO - 2025-08-11 16:30:16,059 - INFO - ================================================================================ 2025-08-11 16:30:16,059 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 16:30:16,059 - 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-11 16:30:17,306 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.192': '0', '10.20.0.193': '0'}, '10.0.0.249': {'10.20.0.193': '0', '10.20.0.192': '0'}} with 2025-08-11 16:30:17,306 - INFO - Initial checks done. Running the testcase now 2025-08-11 16:30:17,306 - INFO - 2025-08-11 16:30:17,646 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717, 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-65791670:ctest-vn4-18061717, 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-65791670:ctest-vn4-18061717, 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-65791670:ctest-vn4-18061717, 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-11 16:30:18,205 - DEBUG - Response for create_network : {'network': {'id': 'e1f4fbd3-6033-46d2-8f75-4c007ec740c6', 'name': 'ctest-vn4-18061717', 'tenant_id': '1352a2da261a4ad0801b1f49017a7855', 'project_id': '1352a2da261a4ad0801b1f49017a7855', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'ctest-vn4-18061717'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:30:18,489 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b7ee2bcc-3f3b-4e54-a9a3-a1f8d569a7b7', 'name': '', 'tenant_id': '1352a2da261a4ad0801b1f49017a7855', 'network_id': 'e1f4fbd3-6033-46d2-8f75-4c007ec740c6', 'ip_version': 4, 'cidr': '120.139.11.192/26', 'allocation_pools': [{'start': '120.139.11.194', 'end': '120.139.11.254'}], 'gateway_ip': '120.139.11.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.139.11.194', 'tags': [], 'project_id': '1352a2da261a4ad0801b1f49017a7855'}} 2025-08-11 16:30:18,730 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e9d74726-804c-4aeb-8e92-9b3f57edf127', 'name': '', 'tenant_id': '1352a2da261a4ad0801b1f49017a7855', 'network_id': 'e1f4fbd3-6033-46d2-8f75-4c007ec740c6', 'ip_version': 6, 'cidr': '27ca:b47f:7b61:2b1a:c728:1ca2::/96', 'allocation_pools': [{'start': '27ca:b47f:7b61:2b1a:c728:1ca2:0:2', 'end': '27ca:b47f:7b61:2b1a:c728:1ca2:ffff:fffe'}], 'gateway_ip': '27ca:b47f:7b61:2b1a:c728:1ca2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27ca:b47f:7b61:2b1a:c728:1ca2:0:2', 'tags': [], 'project_id': '1352a2da261a4ad0801b1f49017a7855'}} 2025-08-11 16:30:18,753 - INFO - Created VN ctest-vn4-18061717 2025-08-11 16:30:18,766 - DEBUG - VN ctest-vn4-18061717 UUID is e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:18,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e1f4fbd3-6033-46d2-8f75-4c007ec740c6', 'name': 'ctest-vn4-18061717', 'tenant_id': '1352a2da261a4ad0801b1f49017a7855', 'project_id': '1352a2da261a4ad0801b1f49017a7855', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b7ee2bcc-3f3b-4e54-a9a3-a1f8d569a7b7', 'e9d74726-804c-4aeb-8e92-9b3f57edf127'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'ctest-vn4-18061717'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'ctest-policy1-59127707']], 'subnet_ipam': [{'subnet_cidr': '120.139.11.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '27ca:b47f:7b61:2b1a:c728:1ca2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 16:30:19,073 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:30:19,365 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:30:19,402 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:30:19,421 - DEBUG - Requesting: http://10.0.0.27:8082/project/1352a2da-261a-4ad0-801b-1f49017a7855 2025-08-11 16:30:19,518 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,533 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,545 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:19,552 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:19,560 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ee28d21d-2618-43ef-b853-fb9605126b46 2025-08-11 16:30:19,568 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:30:19,568 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,578 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:19,594 - INFO - Verified VN network id 12 for VN e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,594 - INFO - Verifications in API Server for VN ctest-vn4-18061717 passed 2025-08-11 16:30:19,594 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,604 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:19,612 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:19,617 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ee28d21d-2618-43ef-b853-fb9605126b46 2025-08-11 16:30:19,629 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16281915438121830098', 'uuid-lslong': '10337252084709540038'}, 'enable': 'true', 'created': '2025-08-11T16:30:18', 'last-modified': '2025-08-11T16:30:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.715408'} 2025-08-11 16:30:19,635 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:30:19,640 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16281915438121830098', 'uuid-lslong': '10337252084709540038'}, 'enable': 'true', 'created': '2025-08-11T16:30:18', 'last-modified': '2025-08-11T16:30:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727029'} 2025-08-11 16:30:19,647 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:30:19,653 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16281915438121830098', 'uuid-lslong': '10337252084709540038'}, 'enable': 'true', 'created': '2025-08-11T16:30:18', 'last-modified': '2025-08-11T16:30:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.739179'} 2025-08-11 16:30:19,659 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 16:30:19,659 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18061717 passed 2025-08-11 16:30:19,659 - DEBUG - ====Verifying policy data for ctest-vn4-18061717 in API_Server ====== 2025-08-11 16:30:19,659 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:30:19,664 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:30:19,675 - DEBUG - Requesting: http://10.0.0.27:8082/project/1352a2da-261a-4ad0-801b-1f49017a7855 2025-08-11 16:30:19,774 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e1f4fbd3-6033-46d2-8f75-4c007ec740c6 2025-08-11 16:30:19,785 - DEBUG - ==>Verifying data for policy with id: 52d6abca-862d-4c24-9e91-c8b707438c8d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-65791670', 'ctest-policy1-59127707'] 2025-08-11 16:30:19,785 - INFO - VN ctest-vn4-18061717 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 16:30:19,785 - DEBUG - Verifying the vn in opserver 2025-08-11 16:30:19,785 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717 virtual network link through opserver 10.0.0.27 2025-08-11 16:30:19,785 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,075 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717?flat'} 2025-08-11 16:30:20,124 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717 virtual network link through opserver 10.0.0.23 2025-08-11 16:30:20,124 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,410 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,460 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717?flat'} 2025-08-11 16:30:20,460 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717 virtual network link through opserver 10.0.0.19 2025-08-11 16:30:20,460 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,747 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-11 16:30:20,800 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717?flat'} 2025-08-11 16:30:20,800 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-65791670:ctest-vn4-18061717 is found in opserver 2025-08-11 16:30:20,823 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 16:30:20,835 - DEBUG - VRF ids for VN ctest-vn4-18061717: {} 2025-08-11 16:30:20,835 - DEBUG - ====Verifying data for ctest-policy1-59127707 in API_Server ====== 2025-08-11 16:30:20,835 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:30:20,841 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:30:20,854 - DEBUG - Requesting: http://10.0.0.27:8082/project/1352a2da-261a-4ad0-801b-1f49017a7855 2025-08-11 16:30:20,941 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/52d6abca-862d-4c24-9e91-c8b707438c8d 2025-08-11 16:30:20,957 - INFO - Verified policy ctest-policy1-59127707 in API Server, Result: True 2025-08-11 16:30:20,957 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 16:30:20,968 - INFO - Deleting VN ctest-vn4-18061717 2025-08-11 16:30:21,159 - DEBUG - Response for deleting network () 2025-08-11 16:30:21,160 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/f2d4c5b5-8b4b-42d8-9e43-d732044cecbf 2025-08-11 16:30:21,167 - DEBUG - Response Code: 404 2025-08-11 16:30:21,167 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-11 16:30:21,173 - DEBUG - Requesting: http://10.0.0.27:8082/domain/4bc87c47-8b22-47dc-8747-cffafaf5f39a 2025-08-11 16:30:21,227 - DEBUG - Requesting: http://10.0.0.27:8082/project/1352a2da-261a-4ad0-801b-1f49017a7855 2025-08-11 16:30:21,333 - INFO - Validated that VN ctest-vn4-18061717 is not found in API Server 2025-08-11 16:30:21,346 - DEBUG - VN ctest-vn4-18061717 is not present in Agent 10.0.0.141 2025-08-11 16:30:21,358 - DEBUG - VN ctest-vn4-18061717 is not present in Agent 10.0.0.249 2025-08-11 16:30:21,358 - INFO - Validated that VN ctest-vn4-18061717 is not in any agent 2025-08-11 16:30:21,391 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18061717 info 2025-08-11 16:30:21,427 - INFO - Deleted policy ctest-policy1-59127707 2025-08-11 16:30:21,606 - DEBUG - policy ctest-policy1-59127707 is not found in API Server 2025-08-11 16:30:22,866 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 16:30:22,867 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06]
2025-08-11 16:30:22,867 - INFO - -------------------------------------------------------------------------------- 2025-08-11 16:30:24,134 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 16:30:24,134 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-08-11 16:30:24,134 - INFO - -------------------------------------------------------------------------------- 2025-08-11 16:30:24,800 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-65791670, ID : 1352a2da-261a-4ad0-801b-1f49017a7855