2025-09-15 07:49:34,392 - INFO - Domain Default found not creating 2025-09-15 07:49:34,554 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-15913094 not found, creating it 2025-09-15 07:49:35,016 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-15913094, ID : ba53c648-f21d-4db2-958d-c94f22f467a8 2025-09-15 07:49:36,617 - INFO - ================================================================================ 2025-09-15 07:49:36,617 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 07:49:36,877 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-15 07:49:36,877 - INFO - Initial checks done. Running the testcase now 2025-09-15 07:49:36,877 - INFO - 2025-09-15 07:49:36,877 - INFO - ================================================================================ 2025-09-15 07:49:36,877 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-15 07:49:36,877 - 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-09-15 07:49:37,165 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-15 07:49:37,165 - INFO - Initial checks done. Running the testcase now 2025-09-15 07:49:37,165 - INFO - 2025-09-15 07:49:37,564 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811, 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-15913094:ctest-vn4-07578811, 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-15913094:ctest-vn4-07578811, 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-15913094:ctest-vn4-07578811, 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-09-15 07:49:38,100 - DEBUG - Response for create_network : {'network': {'id': 'e11bea4e-cb0e-466e-a094-a63bd5678be2', 'name': 'ctest-vn4-07578811', 'tenant_id': 'ba53c648f21d4db2958dc94f22f467a8', 'project_id': 'ba53c648f21d4db2958dc94f22f467a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15913094', 'ctest-vn4-07578811'], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:38,314 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd65d927a-9fbd-4745-8745-f9259f885219', 'name': '', 'tenant_id': 'ba53c648f21d4db2958dc94f22f467a8', 'network_id': 'e11bea4e-cb0e-466e-a094-a63bd5678be2', 'ip_version': 4, 'cidr': '5.18.243.192/26', 'allocation_pools': [{'start': '5.18.243.194', 'end': '5.18.243.254'}], 'gateway_ip': '5.18.243.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '5.18.243.194', 'tags': [], 'project_id': 'ba53c648f21d4db2958dc94f22f467a8'}} 2025-09-15 07:49:38,498 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc13f10d-59c6-41b0-9fa5-31dbbc6f22a6', 'name': '', 'tenant_id': 'ba53c648f21d4db2958dc94f22f467a8', 'network_id': 'e11bea4e-cb0e-466e-a094-a63bd5678be2', 'ip_version': 6, 'cidr': '38a4:ca2e:9ae4:afd:1cfb:bedf::/96', 'allocation_pools': [{'start': '38a4:ca2e:9ae4:afd:1cfb:bedf:0:2', 'end': '38a4:ca2e:9ae4:afd:1cfb:bedf:ffff:fffe'}], 'gateway_ip': '38a4:ca2e:9ae4:afd:1cfb:bedf:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38a4:ca2e:9ae4:afd:1cfb:bedf:0:2', 'tags': [], 'project_id': 'ba53c648f21d4db2958dc94f22f467a8'}} 2025-09-15 07:49:38,521 - INFO - Created VN ctest-vn4-07578811 2025-09-15 07:49:38,575 - DEBUG - VN ctest-vn4-07578811 UUID is e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:38,784 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e11bea4e-cb0e-466e-a094-a63bd5678be2', 'name': 'ctest-vn4-07578811', 'tenant_id': 'ba53c648f21d4db2958dc94f22f467a8', 'project_id': 'ba53c648f21d4db2958dc94f22f467a8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d65d927a-9fbd-4745-8745-f9259f885219', 'cc13f10d-59c6-41b0-9fa5-31dbbc6f22a6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15913094', 'ctest-vn4-07578811'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15913094', 'ctest-policy1-43713727']], 'subnet_ipam': [{'subnet_cidr': '5.18.243.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38a4:ca2e:9ae4:afd:1cfb:bedf::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-15 07:49:38,947 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:39,283 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:39,312 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:39,325 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba53c648-f21d-4db2-958d-c94f22f467a8 2025-09-15 07:49:39,401 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,414 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,423 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:39,432 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:39,440 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/31e11405-3881-4f06-99ee-17d09e432599 2025-09-15 07:49:39,448 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 07:49:39,448 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,458 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:39,476 - INFO - Verified VN network id 11 for VN e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,476 - INFO - Verifications in API Server for VN ctest-vn4-07578811 passed 2025-09-15 07:49:39,476 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,488 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:39,499 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:39,508 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/31e11405-3881-4f06-99ee-17d09e432599 2025-09-15 07:49:39,522 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-15913094', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16220816107040032366', 'uuid-lslong': '11571056118535261154'}, 'enable': 'true', 'created': '2025-09-15T07:49:38', 'last-modified': '2025-09-15T07:49:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.764932'} 2025-09-15 07:49:39,529 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-15 07:49:39,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07578811 passed 2025-09-15 07:49:39,529 - DEBUG - ====Verifying policy data for ctest-vn4-07578811 in API_Server ====== 2025-09-15 07:49:39,529 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:39,536 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:39,551 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba53c648-f21d-4db2-958d-c94f22f467a8 2025-09-15 07:49:39,627 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/e11bea4e-cb0e-466e-a094-a63bd5678be2 2025-09-15 07:49:39,636 - DEBUG - ==>Verifying data for policy with id: a533f932-334f-4818-a082-26974bedb8c6, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-15913094', 'ctest-policy1-43713727'] 2025-09-15 07:49:39,636 - INFO - VN ctest-vn4-07578811 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-15 07:49:39,637 - DEBUG - Verifying the vn in opserver 2025-09-15 07:49:39,637 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811 virtual network link through opserver 10.0.0.22 2025-09-15 07:49:39,637 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-15 07:49:39,974 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-15 07:49:40,043 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811?flat'} 2025-09-15 07:49:40,043 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-15913094:ctest-vn4-07578811 is found in opserver 2025-09-15 07:49:40,055 - DEBUG - Do not have enough data to verify VN in agent 2025-09-15 07:49:40,061 - DEBUG - VRF ids for VN ctest-vn4-07578811: {} 2025-09-15 07:49:40,061 - DEBUG - ====Verifying data for ctest-policy1-43713727 in API_Server ====== 2025-09-15 07:49:40,062 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:40,069 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:40,084 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba53c648-f21d-4db2-958d-c94f22f467a8 2025-09-15 07:49:40,160 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/a533f932-334f-4818-a082-26974bedb8c6 2025-09-15 07:49:40,171 - INFO - Verified policy ctest-policy1-43713727 in API Server, Result: True 2025-09-15 07:49:40,171 - INFO - Done with setup and verification, moving onto test .. 2025-09-15 07:49:40,180 - INFO - Deleting VN ctest-vn4-07578811 2025-09-15 07:49:40,307 - DEBUG - Response for deleting network () 2025-09-15 07:49:40,307 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/33f4368c-9f52-42c9-93c9-022d9583f42c 2025-09-15 07:49:40,313 - DEBUG - Response Code: 404 2025-09-15 07:49:40,313 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-15 07:49:40,402 - DEBUG - Requesting: http://10.0.0.22:8082/domain/79e98f44-2028-41fd-b2a6-5d57d1e8e610 2025-09-15 07:49:40,415 - DEBUG - Requesting: http://10.0.0.22:8082/project/ba53c648-f21d-4db2-958d-c94f22f467a8 2025-09-15 07:49:40,490 - INFO - Validated that VN ctest-vn4-07578811 is not found in API Server 2025-09-15 07:49:40,501 - DEBUG - VN ctest-vn4-07578811 is not present in Agent 10.0.0.22 2025-09-15 07:49:40,501 - INFO - Validated that VN ctest-vn4-07578811 is not in any agent 2025-09-15 07:49:40,515 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07578811 info 2025-09-15 07:49:40,540 - INFO - Deleted policy ctest-policy1-43713727 2025-09-15 07:49:40,706 - DEBUG - policy ctest-policy1-43713727 is not found in API Server 2025-09-15 07:49:40,960 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 07:49:40,960 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-09-15 07:49:40,960 - INFO - -------------------------------------------------------------------------------- 2025-09-15 07:49:41,253 - DEBUG - No XMPP flaps were noticed during the test
2025-09-15 07:49:41,253 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-15 07:49:41,253 - INFO - -------------------------------------------------------------------------------- 2025-09-15 07:49:41,982 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-15913094, ID : ba53c648-f21d-4db2-958d-c94f22f467a8