2025-11-06 06:33:06,251 - INFO - Domain Default found not creating 2025-11-06 06:33:06,407 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-97140584 not found, creating it 2025-11-06 06:33:06,835 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-97140584, ID : 3c44509b-7a74-472f-9f3d-604a9a96699a 2025-11-06 06:33:08,283 - INFO - ================================================================================ 2025-11-06 06:33:08,283 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 06:33:08,542 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-11-06 06:33:08,542 - INFO - Initial checks done. Running the testcase now 2025-11-06 06:33:08,542 - INFO - 2025-11-06 06:33:08,542 - INFO - ================================================================================ 2025-11-06 06:33:08,542 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 06:33:08,542 - 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-06 06:33:08,830 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.192': '0'}} with 2025-11-06 06:33:08,830 - INFO - Initial checks done. Running the testcase now 2025-11-06 06:33:08,830 - INFO - 2025-11-06 06:33:09,183 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465, 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-97140584:ctest-vn4-33080465, 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-97140584:ctest-vn4-33080465, 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-97140584:ctest-vn4-33080465, 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-06 06:33:09,697 - DEBUG - Response for create_network : {'network': {'id': '2b3f3268-0dbc-41b1-b421-93752bf05573', 'name': 'ctest-vn4-33080465', 'tenant_id': '3c44509b7a74472f9f3d604a9a96699a', 'project_id': '3c44509b7a74472f9f3d604a9a96699a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97140584', 'ctest-vn4-33080465'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 06:33:09,851 - DEBUG - Response for create_subnet : {'subnet': {'id': '90c85d1b-9b59-4367-a78c-22022aafa185', 'name': '', 'tenant_id': '3c44509b7a74472f9f3d604a9a96699a', 'network_id': '2b3f3268-0dbc-41b1-b421-93752bf05573', 'ip_version': 4, 'cidr': '156.112.135.128/26', 'allocation_pools': [{'start': '156.112.135.130', 'end': '156.112.135.190'}], 'gateway_ip': '156.112.135.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '156.112.135.130', 'tags': [], 'project_id': '3c44509b7a74472f9f3d604a9a96699a'}} 2025-11-06 06:33:10,032 - DEBUG - Response for create_subnet : {'subnet': {'id': '66eec5ba-0dee-43d9-be02-30c6f3c7c5f0', 'name': '', 'tenant_id': '3c44509b7a74472f9f3d604a9a96699a', 'network_id': '2b3f3268-0dbc-41b1-b421-93752bf05573', 'ip_version': 6, 'cidr': '33c3:7e05:b6d0:4790:f235:838c::/96', 'allocation_pools': [{'start': '33c3:7e05:b6d0:4790:f235:838c:0:2', 'end': '33c3:7e05:b6d0:4790:f235:838c:ffff:fffe'}], 'gateway_ip': '33c3:7e05:b6d0:4790:f235:838c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33c3:7e05:b6d0:4790:f235:838c:0:2', 'tags': [], 'project_id': '3c44509b7a74472f9f3d604a9a96699a'}} 2025-11-06 06:33:10,055 - INFO - Created VN ctest-vn4-33080465 2025-11-06 06:33:10,104 - DEBUG - VN ctest-vn4-33080465 UUID is 2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,314 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2b3f3268-0dbc-41b1-b421-93752bf05573', 'name': 'ctest-vn4-33080465', 'tenant_id': '3c44509b7a74472f9f3d604a9a96699a', 'project_id': '3c44509b7a74472f9f3d604a9a96699a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['90c85d1b-9b59-4367-a78c-22022aafa185', '66eec5ba-0dee-43d9-be02-30c6f3c7c5f0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97140584', 'ctest-vn4-33080465'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97140584', 'ctest-policy1-18038376']], 'subnet_ipam': [{'subnet_cidr': '156.112.135.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33c3:7e05:b6d0:4790:f235:838c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-06 06:33:10,472 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-06 06:33:10,763 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-06 06:33:10,790 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696 2025-11-06 06:33:10,803 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c44509b-7a74-472f-9f3d-604a9a96699a 2025-11-06 06:33:10,893 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,905 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,915 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:10,922 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:10,928 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/66bb9498-3faf-4b5a-9c0f-f663f2a686e2 2025-11-06 06:33:10,935 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 06:33:10,935 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,945 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:10,957 - INFO - Verified VN network id 12 for VN 2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,957 - INFO - Verifications in API Server for VN ctest-vn4-33080465 passed 2025-11-06 06:33:10,957 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:10,968 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:10,975 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:10,981 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/66bb9498-3faf-4b5a-9c0f-f663f2a686e2 2025-11-06 06:33:10,992 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-97140584', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3116264889652101553', 'uuid-lslong': '12979817732516107635'}, 'enable': 'true', 'created': '2025-11-06T06:33:09', 'last-modified': '2025-11-06T06:33:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707520'} 2025-11-06 06:33:11,003 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 06:33:11,003 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-33080465 passed 2025-11-06 06:33:11,003 - DEBUG - ====Verifying policy data for ctest-vn4-33080465 in API_Server ====== 2025-11-06 06:33:11,003 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-06 06:33:11,008 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696 2025-11-06 06:33:11,018 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c44509b-7a74-472f-9f3d-604a9a96699a 2025-11-06 06:33:11,097 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/2b3f3268-0dbc-41b1-b421-93752bf05573 2025-11-06 06:33:11,105 - DEBUG - ==>Verifying data for policy with id: 4cd48542-fb99-487a-97a3-057a6958bb04, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-97140584', 'ctest-policy1-18038376'] 2025-11-06 06:33:11,105 - INFO - VN ctest-vn4-33080465 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-06 06:33:11,106 - DEBUG - Verifying the vn in opserver 2025-11-06 06:33:11,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465 virtual network link through opserver 10.0.0.22 2025-11-06 06:33:11,106 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-06 06:33:11,399 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-11-06 06:33:11,450 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465?flat'} 2025-11-06 06:33:11,450 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-97140584:ctest-vn4-33080465 is found in opserver 2025-11-06 06:33:11,460 - DEBUG - Do not have enough data to verify VN in agent 2025-11-06 06:33:11,464 - DEBUG - VRF ids for VN ctest-vn4-33080465: {} 2025-11-06 06:33:11,464 - DEBUG - ====Verifying data for ctest-policy1-18038376 in API_Server ====== 2025-11-06 06:33:11,464 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-06 06:33:11,469 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696 2025-11-06 06:33:11,479 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c44509b-7a74-472f-9f3d-604a9a96699a 2025-11-06 06:33:11,550 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/4cd48542-fb99-487a-97a3-057a6958bb04 2025-11-06 06:33:11,558 - INFO - Verified policy ctest-policy1-18038376 in API Server, Result: True 2025-11-06 06:33:11,559 - INFO - Done with setup and verification, moving onto test .. 2025-11-06 06:33:11,565 - INFO - Deleting VN ctest-vn4-33080465 2025-11-06 06:33:11,668 - DEBUG - Response for deleting network () 2025-11-06 06:33:11,668 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c8373dab-0fbb-4f0e-be11-7248d52c2c4c 2025-11-06 06:33:11,672 - DEBUG - Response Code: 404 2025-11-06 06:33:11,672 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-11-06 06:33:11,676 - DEBUG - Requesting: http://10.0.0.22:8082/domain/60626f23-fc59-43e2-9f52-5aeae7917696 2025-11-06 06:33:11,729 - DEBUG - Requesting: http://10.0.0.22:8082/project/3c44509b-7a74-472f-9f3d-604a9a96699a 2025-11-06 06:33:11,793 - INFO - Validated that VN ctest-vn4-33080465 is not found in API Server 2025-11-06 06:33:11,802 - DEBUG - VN ctest-vn4-33080465 is not present in Agent 10.0.0.22 2025-11-06 06:33:11,802 - INFO - Validated that VN ctest-vn4-33080465 is not in any agent 2025-11-06 06:33:11,814 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-33080465 info 2025-11-06 06:33:11,837 - INFO - Deleted policy ctest-policy1-18038376 2025-11-06 06:33:12,000 - DEBUG - policy ctest-policy1-18038376 is not found in API Server 2025-11-06 06:33:12,253 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 06:33:12,253 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-06 06:33:12,253 - INFO - -------------------------------------------------------------------------------- 2025-11-06 06:33:12,541 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 06:33:12,541 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-06 06:33:12,541 - INFO - -------------------------------------------------------------------------------- 2025-11-06 06:33:13,194 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-97140584, ID : 3c44509b-7a74-472f-9f3d-604a9a96699a