2025-08-15 17:04:00,599 - INFO - Domain Default found not creating 2025-08-15 17:04:00,711 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94748095 not found, creating it 2025-08-15 17:04:01,143 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94748095, ID : c1471eac-c02c-444f-9903-72cfa52a9d0a 2025-08-15 17:04:02,448 - INFO - ================================================================================ 2025-08-15 17:04:02,448 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 17:04:02,698 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-15 17:04:02,698 - INFO - Initial checks done. Running the testcase now 2025-08-15 17:04:02,698 - INFO - 2025-08-15 17:04:02,698 - INFO - ================================================================================ 2025-08-15 17:04:02,699 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-15 17:04:02,699 - 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-15 17:04:02,980 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.0.0.254': '0'}} with 2025-08-15 17:04:02,980 - INFO - Initial checks done. Running the testcase now 2025-08-15 17:04:02,980 - INFO - 2025-08-15 17:04:03,312 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537, 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-94748095:ctest-vn4-29336537, 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-94748095:ctest-vn4-29336537, 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-94748095:ctest-vn4-29336537, 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-15 17:04:03,798 - DEBUG - Response for create_network : {'network': {'id': '818b6dc8-8a5b-4d4c-994e-33697bf7f29c', 'name': 'ctest-vn4-29336537', 'tenant_id': 'c1471eacc02c444f990372cfa52a9d0a', 'project_id': 'c1471eacc02c444f990372cfa52a9d0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94748095', 'ctest-vn4-29336537'], 'port_security_enabled': True, 'description': ''}} 2025-08-15 17:04:03,975 - DEBUG - Response for create_subnet : {'subnet': {'id': 'edeb419d-7044-496e-9532-79b958fb2194', 'name': '', 'tenant_id': 'c1471eacc02c444f990372cfa52a9d0a', 'network_id': '818b6dc8-8a5b-4d4c-994e-33697bf7f29c', 'ip_version': 4, 'cidr': '63.98.124.128/26', 'allocation_pools': [{'start': '63.98.124.130', 'end': '63.98.124.190'}], 'gateway_ip': '63.98.124.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.98.124.130', 'tags': [], 'project_id': 'c1471eacc02c444f990372cfa52a9d0a'}} 2025-08-15 17:04:04,147 - DEBUG - Response for create_subnet : {'subnet': {'id': '13ccae06-5f9c-482f-81f1-7fcca7fb3493', 'name': '', 'tenant_id': 'c1471eacc02c444f990372cfa52a9d0a', 'network_id': '818b6dc8-8a5b-4d4c-994e-33697bf7f29c', 'ip_version': 6, 'cidr': '21f0:2b31:1607:12d8:3106:cf24::/96', 'allocation_pools': [{'start': '21f0:2b31:1607:12d8:3106:cf24:0:2', 'end': '21f0:2b31:1607:12d8:3106:cf24:ffff:fffe'}], 'gateway_ip': '21f0:2b31:1607:12d8:3106:cf24:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '21f0:2b31:1607:12d8:3106:cf24:0:2', 'tags': [], 'project_id': 'c1471eacc02c444f990372cfa52a9d0a'}} 2025-08-15 17:04:04,163 - INFO - Created VN ctest-vn4-29336537 2025-08-15 17:04:04,215 - DEBUG - VN ctest-vn4-29336537 UUID is 818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '818b6dc8-8a5b-4d4c-994e-33697bf7f29c', 'name': 'ctest-vn4-29336537', 'tenant_id': 'c1471eacc02c444f990372cfa52a9d0a', 'project_id': 'c1471eacc02c444f990372cfa52a9d0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['edeb419d-7044-496e-9532-79b958fb2194', '13ccae06-5f9c-482f-81f1-7fcca7fb3493'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94748095', 'ctest-vn4-29336537'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94748095', 'ctest-policy1-97176268']], 'subnet_ipam': [{'subnet_cidr': '63.98.124.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '21f0:2b31:1607:12d8:3106:cf24::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-15 17:04:04,543 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 17:04:04,829 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 17:04:04,853 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083 2025-08-15 17:04:04,864 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1471eac-c02c-444f-9903-72cfa52a9d0a 2025-08-15 17:04:04,932 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,942 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,950 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:04,956 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:04,961 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a877cea7-3d14-44d6-bc6f-0afde8bdd72a 2025-08-15 17:04:04,966 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 17:04:04,966 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,973 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:04,984 - INFO - Verified VN network id 11 for VN 818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,984 - INFO - Verifications in API Server for VN ctest-vn4-29336537 passed 2025-08-15 17:04:04,984 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:04,992 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:04,997 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:05,002 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/a877cea7-3d14-44d6-bc6f-0afde8bdd72a 2025-08-15 17:04:05,011 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94748095', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9334675360737611084', 'uuid-lslong': '11046823464130835100'}, 'enable': 'true', 'created': '2025-08-15T17:04:03', 'last-modified': '2025-08-15T17:04:04', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.645710'} 2025-08-15 17:04:05,016 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-15 17:04:05,016 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29336537 passed 2025-08-15 17:04:05,016 - DEBUG - ====Verifying policy data for ctest-vn4-29336537 in API_Server ====== 2025-08-15 17:04:05,016 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 17:04:05,020 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083 2025-08-15 17:04:05,029 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1471eac-c02c-444f-9903-72cfa52a9d0a 2025-08-15 17:04:05,097 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/818b6dc8-8a5b-4d4c-994e-33697bf7f29c 2025-08-15 17:04:05,105 - DEBUG - ==>Verifying data for policy with id: 341d2f91-c103-40d7-b771-2fcc2805b27c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94748095', 'ctest-policy1-97176268'] 2025-08-15 17:04:05,105 - INFO - VN ctest-vn4-29336537 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-15 17:04:05,105 - DEBUG - Verifying the vn in opserver 2025-08-15 17:04:05,106 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537 virtual network link through opserver 10.0.0.254 2025-08-15 17:04:05,106 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-15 17:04:05,392 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-15 17:04:05,437 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537?flat'} 2025-08-15 17:04:05,437 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94748095:ctest-vn4-29336537 is found in opserver 2025-08-15 17:04:05,446 - DEBUG - Do not have enough data to verify VN in agent 2025-08-15 17:04:05,450 - DEBUG - VRF ids for VN ctest-vn4-29336537: {} 2025-08-15 17:04:05,450 - DEBUG - ====Verifying data for ctest-policy1-97176268 in API_Server ====== 2025-08-15 17:04:05,450 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 17:04:05,455 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083 2025-08-15 17:04:05,464 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1471eac-c02c-444f-9903-72cfa52a9d0a 2025-08-15 17:04:05,530 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/341d2f91-c103-40d7-b771-2fcc2805b27c 2025-08-15 17:04:05,538 - INFO - Verified policy ctest-policy1-97176268 in API Server, Result: True 2025-08-15 17:04:05,538 - INFO - Done with setup and verification, moving onto test .. 2025-08-15 17:04:05,544 - INFO - Deleting VN ctest-vn4-29336537 2025-08-15 17:04:05,640 - DEBUG - Response for deleting network () 2025-08-15 17:04:05,640 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2dea7283-8f3f-4126-9700-281170414c55 2025-08-15 17:04:05,644 - DEBUG - Response Code: 404 2025-08-15 17:04:05,644 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-15 17:04:05,648 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8d180d7d-7023-40e6-b2ef-f79186022083 2025-08-15 17:04:05,699 - DEBUG - Requesting: http://10.0.0.254:8082/project/c1471eac-c02c-444f-9903-72cfa52a9d0a 2025-08-15 17:04:05,769 - INFO - Validated that VN ctest-vn4-29336537 is not found in API Server 2025-08-15 17:04:05,778 - DEBUG - VN ctest-vn4-29336537 is not present in Agent 10.0.0.254 2025-08-15 17:04:05,778 - INFO - Validated that VN ctest-vn4-29336537 is not in any agent 2025-08-15 17:04:05,791 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29336537 info 2025-08-15 17:04:05,813 - INFO - Deleted policy ctest-policy1-97176268 2025-08-15 17:04:05,975 - DEBUG - policy ctest-policy1-97176268 is not found in API Server 2025-08-15 17:04:06,227 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 17:04:06,227 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-15 17:04:06,227 - INFO - -------------------------------------------------------------------------------- 2025-08-15 17:04:06,520 - DEBUG - No XMPP flaps were noticed during the test
2025-08-15 17:04:06,520 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-15 17:04:06,520 - INFO - -------------------------------------------------------------------------------- 2025-08-15 17:04:07,159 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94748095, ID : c1471eac-c02c-444f-9903-72cfa52a9d0a