2025-11-24 20:31:43,206 - INFO - Domain Default found not creating 2025-11-24 20:31:43,378 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-00709082 not found, creating it 2025-11-24 20:31:43,858 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-00709082, ID : 54d82f08-163f-4c31-b7a2-80cf5b731ba4 2025-11-24 20:31:46,006 - INFO - ================================================================================ 2025-11-24 20:31:46,007 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 20:31:46,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-11-24 20:31:46,272 - INFO - Initial checks done. Running the testcase now 2025-11-24 20:31:46,272 - INFO - 2025-11-24 20:31:46,272 - INFO - ================================================================================ 2025-11-24 20:31:46,272 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 20:31:46,272 - 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-24 20:31:46,563 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.14': '0'}} with 2025-11-24 20:31:46,563 - INFO - Initial checks done. Running the testcase now 2025-11-24 20:31:46,563 - INFO - 2025-11-24 20:31:46,887 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916, 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-00709082:ctest-vn4-34416916, 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-00709082:ctest-vn4-34416916, 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-00709082:ctest-vn4-34416916, 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-24 20:31:47,412 - DEBUG - Response for create_network : {'network': {'id': '5247e05c-9636-4522-815d-3794f57206b2', 'name': 'ctest-vn4-34416916', 'tenant_id': '54d82f08163f4c31b7a280cf5b731ba4', 'project_id': '54d82f08163f4c31b7a280cf5b731ba4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00709082', 'ctest-vn4-34416916'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 20:31:47,583 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e730ed30-a778-44e9-9c9c-a9b9459461c0', 'name': '', 'tenant_id': '54d82f08163f4c31b7a280cf5b731ba4', 'network_id': '5247e05c-9636-4522-815d-3794f57206b2', 'ip_version': 4, 'cidr': '21.159.148.128/26', 'allocation_pools': [{'start': '21.159.148.130', 'end': '21.159.148.190'}], 'gateway_ip': '21.159.148.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21.159.148.130', 'tags': [], 'project_id': '54d82f08163f4c31b7a280cf5b731ba4'}} 2025-11-24 20:31:47,723 - DEBUG - Response for create_subnet : {'subnet': {'id': '56176d80-56ab-44d6-aa1f-c842049bba69', 'name': '', 'tenant_id': '54d82f08163f4c31b7a280cf5b731ba4', 'network_id': '5247e05c-9636-4522-815d-3794f57206b2', 'ip_version': 6, 'cidr': '2b9a:4165:a4d4:7c1e:c7cf:affd::/96', 'allocation_pools': [{'start': '2b9a:4165:a4d4:7c1e:c7cf:affd:0:2', 'end': '2b9a:4165:a4d4:7c1e:c7cf:affd:ffff:fffe'}], 'gateway_ip': '2b9a:4165:a4d4:7c1e:c7cf:affd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2b9a:4165:a4d4:7c1e:c7cf:affd:0:2', 'tags': [], 'project_id': '54d82f08163f4c31b7a280cf5b731ba4'}} 2025-11-24 20:31:47,744 - INFO - Created VN ctest-vn4-34416916 2025-11-24 20:31:47,798 - DEBUG - VN ctest-vn4-34416916 UUID is 5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:47,989 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5247e05c-9636-4522-815d-3794f57206b2', 'name': 'ctest-vn4-34416916', 'tenant_id': '54d82f08163f4c31b7a280cf5b731ba4', 'project_id': '54d82f08163f4c31b7a280cf5b731ba4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e730ed30-a778-44e9-9c9c-a9b9459461c0', '56176d80-56ab-44d6-aa1f-c842049bba69'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00709082', 'ctest-vn4-34416916'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00709082', 'ctest-policy1-54775325']], 'subnet_ipam': [{'subnet_cidr': '21.159.148.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2b9a:4165:a4d4:7c1e:c7cf:affd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 20:31:48,154 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 20:31:48,458 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 20:31:48,490 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1 2025-11-24 20:31:48,503 - DEBUG - Requesting: http://10.0.0.22:8082/project/54d82f08-163f-4c31-b7a2-80cf5b731ba4 2025-11-24 20:31:48,576 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,587 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,596 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:48,603 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:48,613 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fdaac1e1-e4e9-4641-8fd8-10480e7111af 2025-11-24 20:31:48,621 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 20:31:48,621 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,630 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:48,643 - INFO - Verified VN network id 11 for VN 5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,643 - INFO - Verifications in API Server for VN ctest-vn4-34416916 passed 2025-11-24 20:31:48,643 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,652 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:48,658 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:48,664 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/fdaac1e1-e4e9-4641-8fd8-10480e7111af 2025-11-24 20:31:48,675 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-00709082', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5928954122718299426', 'uuid-lslong': '9321667916639372978'}, 'enable': 'true', 'created': '2025-11-24T20:31:47', 'last-modified': '2025-11-24T20:31:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708837'} 2025-11-24 20:31:48,681 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 20:31:48,681 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-34416916 passed 2025-11-24 20:31:48,681 - DEBUG - ====Verifying policy data for ctest-vn4-34416916 in API_Server ====== 2025-11-24 20:31:48,682 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 20:31:48,686 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1 2025-11-24 20:31:48,697 - DEBUG - Requesting: http://10.0.0.22:8082/project/54d82f08-163f-4c31-b7a2-80cf5b731ba4 2025-11-24 20:31:48,782 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5247e05c-9636-4522-815d-3794f57206b2 2025-11-24 20:31:48,791 - DEBUG - ==>Verifying data for policy with id: 74e3ca21-a1bc-48ca-a69d-ee8824ded74d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-00709082', 'ctest-policy1-54775325'] 2025-11-24 20:31:48,791 - INFO - VN ctest-vn4-34416916 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 20:31:48,792 - DEBUG - Verifying the vn in opserver 2025-11-24 20:31:48,792 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916 virtual network link through opserver 10.0.0.22 2025-11-24 20:31:48,792 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-24 20:31:49,100 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-24 20:31:49,160 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916?flat'} 2025-11-24 20:31:49,161 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-00709082:ctest-vn4-34416916 is found in opserver 2025-11-24 20:31:49,169 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 20:31:49,174 - DEBUG - VRF ids for VN ctest-vn4-34416916: {} 2025-11-24 20:31:49,174 - DEBUG - ====Verifying data for ctest-policy1-54775325 in API_Server ====== 2025-11-24 20:31:49,174 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 20:31:49,179 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1 2025-11-24 20:31:49,189 - DEBUG - Requesting: http://10.0.0.22:8082/project/54d82f08-163f-4c31-b7a2-80cf5b731ba4 2025-11-24 20:31:49,255 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/74e3ca21-a1bc-48ca-a69d-ee8824ded74d 2025-11-24 20:31:49,263 - INFO - Verified policy ctest-policy1-54775325 in API Server, Result: True 2025-11-24 20:31:49,264 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 20:31:49,271 - INFO - Deleting VN ctest-vn4-34416916 2025-11-24 20:31:49,395 - DEBUG - Response for deleting network () 2025-11-24 20:31:49,395 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/441d7989-1131-4a0e-ae56-0346318d74e2 2025-11-24 20:31:49,401 - DEBUG - Response Code: 404 2025-11-24 20:31:49,401 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-24 20:31:49,407 - DEBUG - Requesting: http://10.0.0.22:8082/domain/ff814fc4-ddc4-4126-8264-c0ceb729ede1 2025-11-24 20:31:49,463 - DEBUG - Requesting: http://10.0.0.22:8082/project/54d82f08-163f-4c31-b7a2-80cf5b731ba4 2025-11-24 20:31:49,531 - INFO - Validated that VN ctest-vn4-34416916 is not found in API Server 2025-11-24 20:31:49,541 - DEBUG - VN ctest-vn4-34416916 is not present in Agent 10.0.0.22 2025-11-24 20:31:49,541 - INFO - Validated that VN ctest-vn4-34416916 is not in any agent 2025-11-24 20:31:49,553 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-34416916 info 2025-11-24 20:31:49,574 - INFO - Deleted policy ctest-policy1-54775325 2025-11-24 20:31:49,737 - DEBUG - policy ctest-policy1-54775325 is not found in API Server 2025-11-24 20:31:49,991 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 20:31:49,991 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-11-24 20:31:49,991 - INFO - -------------------------------------------------------------------------------- 2025-11-24 20:31:50,283 - DEBUG - No XMPP flaps were noticed during the test
2025-11-24 20:31:50,283 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-24 20:31:50,283 - INFO - -------------------------------------------------------------------------------- 2025-11-24 20:31:50,969 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-00709082, ID : 54d82f08-163f-4c31-b7a2-80cf5b731ba4