2025-11-01 16:04:58,512 - INFO - Domain Default found not creating 2025-11-01 16:04:58,658 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-56145506 not found, creating it 2025-11-01 16:04:59,112 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-56145506, ID : 629cb003-1545-4334-bb85-4def9669c95d 2025-11-01 16:05:00,683 - INFO - ================================================================================ 2025-11-01 16:05:00,683 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 16:05:00,938 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-01 16:05:00,938 - INFO - Initial checks done. Running the testcase now 2025-11-01 16:05:00,938 - INFO - 2025-11-01 16:05:00,938 - INFO - ================================================================================ 2025-11-01 16:05:00,938 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-01 16:05:00,938 - 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-11-01 16:05:01,229 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with 2025-11-01 16:05:01,229 - INFO - Initial checks done. Running the testcase now 2025-11-01 16:05:01,229 - INFO - 2025-11-01 16:05:01,621 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350, 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-56145506:ctest-vn4-44564350, 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-56145506:ctest-vn4-44564350, 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-56145506:ctest-vn4-44564350, 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-11-01 16:05:02,140 - DEBUG - Response for create_network : {'network': {'id': '0d3b930a-cdde-4cf3-a75f-63443bdae63a', 'name': 'ctest-vn4-44564350', 'tenant_id': '629cb00315454334bb854def9669c95d', 'project_id': '629cb00315454334bb854def9669c95d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56145506', 'ctest-vn4-44564350'], 'port_security_enabled': True, 'description': ''}} 2025-11-01 16:05:02,319 - DEBUG - Response for create_subnet : {'subnet': {'id': '237b12be-71ee-4610-8e48-298b5f841282', 'name': '', 'tenant_id': '629cb00315454334bb854def9669c95d', 'network_id': '0d3b930a-cdde-4cf3-a75f-63443bdae63a', 'ip_version': 4, 'cidr': '57.142.1.128/26', 'allocation_pools': [{'start': '57.142.1.130', 'end': '57.142.1.190'}], 'gateway_ip': '57.142.1.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '57.142.1.130', 'tags': [], 'project_id': '629cb00315454334bb854def9669c95d'}} 2025-11-01 16:05:02,536 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3650179-cc3f-4e79-952e-798fa3a648fb', 'name': '', 'tenant_id': '629cb00315454334bb854def9669c95d', 'network_id': '0d3b930a-cdde-4cf3-a75f-63443bdae63a', 'ip_version': 6, 'cidr': '3229:daad:2503:2c08:ac21:b072::/96', 'allocation_pools': [{'start': '3229:daad:2503:2c08:ac21:b072:0:2', 'end': '3229:daad:2503:2c08:ac21:b072:ffff:fffe'}], 'gateway_ip': '3229:daad:2503:2c08:ac21:b072:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3229:daad:2503:2c08:ac21:b072:0:2', 'tags': [], 'project_id': '629cb00315454334bb854def9669c95d'}} 2025-11-01 16:05:02,563 - INFO - Created VN ctest-vn4-44564350 2025-11-01 16:05:02,620 - DEBUG - VN ctest-vn4-44564350 UUID is 0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:02,830 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0d3b930a-cdde-4cf3-a75f-63443bdae63a', 'name': 'ctest-vn4-44564350', 'tenant_id': '629cb00315454334bb854def9669c95d', 'project_id': '629cb00315454334bb854def9669c95d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['237b12be-71ee-4610-8e48-298b5f841282', 'a3650179-cc3f-4e79-952e-798fa3a648fb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56145506', 'ctest-vn4-44564350'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56145506', 'ctest-policy1-24853676']], 'subnet_ipam': [{'subnet_cidr': '57.142.1.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3229:daad:2503:2c08:ac21:b072::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-01 16:05:02,996 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-01 16:05:03,329 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-01 16:05:03,360 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4 2025-11-01 16:05:03,371 - DEBUG - Requesting: http://10.0.0.50:8082/project/629cb003-1545-4334-bb85-4def9669c95d 2025-11-01 16:05:03,446 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,460 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,473 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:03,482 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:03,589 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a30bf6a-93a5-4266-ac77-a445ac4b1ad8 2025-11-01 16:05:03,596 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 16:05:03,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,607 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:03,622 - INFO - Verified VN network id 12 for VN 0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,622 - INFO - Verifications in API Server for VN ctest-vn4-44564350 passed 2025-11-01 16:05:03,623 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,634 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:03,642 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:03,649 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/0a30bf6a-93a5-4266-ac77-a445ac4b1ad8 2025-11-01 16:05:03,663 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-56145506', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '953517420731845875', 'uuid-lslong': '12060467471834605114'}, 'enable': 'true', 'created': '2025-11-01T16:05:02', 'last-modified': '2025-11-01T16:05:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.860704'} 2025-11-01 16:05:03,671 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-01 16:05:03,671 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-44564350 passed 2025-11-01 16:05:03,671 - DEBUG - ====Verifying policy data for ctest-vn4-44564350 in API_Server ====== 2025-11-01 16:05:03,671 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-01 16:05:03,677 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4 2025-11-01 16:05:03,690 - DEBUG - Requesting: http://10.0.0.50:8082/project/629cb003-1545-4334-bb85-4def9669c95d 2025-11-01 16:05:03,765 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/0d3b930a-cdde-4cf3-a75f-63443bdae63a 2025-11-01 16:05:03,774 - DEBUG - ==>Verifying data for policy with id: 7559ee34-af06-416b-ae3f-8b6fb9a75174, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-56145506', 'ctest-policy1-24853676'] 2025-11-01 16:05:03,774 - INFO - VN ctest-vn4-44564350 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-01 16:05:03,775 - DEBUG - Verifying the vn in opserver 2025-11-01 16:05:03,775 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350 virtual network link through opserver 10.0.0.50 2025-11-01 16:05:03,775 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-01 16:05:04,106 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-11-01 16:05:04,161 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350?flat'} 2025-11-01 16:05:04,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-56145506:ctest-vn4-44564350 is found in opserver 2025-11-01 16:05:04,170 - DEBUG - Do not have enough data to verify VN in agent 2025-11-01 16:05:04,174 - DEBUG - VRF ids for VN ctest-vn4-44564350: {} 2025-11-01 16:05:04,174 - DEBUG - ====Verifying data for ctest-policy1-24853676 in API_Server ====== 2025-11-01 16:05:04,174 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-01 16:05:04,179 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4 2025-11-01 16:05:04,189 - DEBUG - Requesting: http://10.0.0.50:8082/project/629cb003-1545-4334-bb85-4def9669c95d 2025-11-01 16:05:04,258 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7559ee34-af06-416b-ae3f-8b6fb9a75174 2025-11-01 16:05:04,269 - INFO - Verified policy ctest-policy1-24853676 in API Server, Result: True 2025-11-01 16:05:04,269 - INFO - Done with setup and verification, moving onto test .. 2025-11-01 16:05:04,277 - INFO - Deleting VN ctest-vn4-44564350 2025-11-01 16:05:04,403 - DEBUG - Response for deleting network () 2025-11-01 16:05:04,403 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/888821c7-f415-40ce-a57c-0f5f961346a2 2025-11-01 16:05:04,409 - DEBUG - Response Code: 404 2025-11-01 16:05:04,410 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-11-01 16:05:04,414 - DEBUG - Requesting: http://10.0.0.50:8082/domain/a2397960-d558-4df0-b58f-1f7a36c527a4 2025-11-01 16:05:04,469 - DEBUG - Requesting: http://10.0.0.50:8082/project/629cb003-1545-4334-bb85-4def9669c95d 2025-11-01 16:05:04,536 - INFO - Validated that VN ctest-vn4-44564350 is not found in API Server 2025-11-01 16:05:04,547 - DEBUG - VN ctest-vn4-44564350 is not present in Agent 10.0.0.50 2025-11-01 16:05:04,547 - INFO - Validated that VN ctest-vn4-44564350 is not in any agent 2025-11-01 16:05:04,559 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-44564350 info 2025-11-01 16:05:04,584 - INFO - Deleted policy ctest-policy1-24853676 2025-11-01 16:05:04,747 - DEBUG - policy ctest-policy1-24853676 is not found in API Server 2025-11-01 16:05:05,005 - DEBUG - No XMPP flaps were noticed during the test
2025-11-01 16:05:05,005 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-01 16:05:05,005 - INFO - -------------------------------------------------------------------------------- 2025-11-01 16:05:05,293 - DEBUG - No XMPP flaps were noticed during the test
2025-11-01 16:05:05,293 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-11-01 16:05:05,293 - INFO - -------------------------------------------------------------------------------- 2025-11-01 16:05:06,013 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-56145506, ID : 629cb003-1545-4334-bb85-4def9669c95d