2025-10-31 07:55:02,571 - INFO - Domain Default found not creating 2025-10-31 07:55:02,697 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19327546 not found, creating it 2025-10-31 07:55:03,132 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19327546, ID : 0953d046-b78a-4026-aa90-03ce679d9382 2025-10-31 07:55:04,566 - INFO - ================================================================================ 2025-10-31 07:55:04,567 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 07:55:04,822 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 07:55:04,822 - INFO - Initial checks done. Running the testcase now 2025-10-31 07:55:04,822 - INFO - 2025-10-31 07:55:04,822 - INFO - ================================================================================ 2025-10-31 07:55:04,822 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-31 07:55:04,822 - 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-10-31 07:55:05,120 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with 2025-10-31 07:55:05,120 - INFO - Initial checks done. Running the testcase now 2025-10-31 07:55:05,120 - INFO - 2025-10-31 07:55:05,462 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548, 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-19327546:ctest-vn4-70001548, 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-19327546:ctest-vn4-70001548, 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-19327546:ctest-vn4-70001548, 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-10-31 07:55:05,938 - DEBUG - Response for create_network : {'network': {'id': 'a41ee2f4-d02c-43ff-a164-b46a22226ec9', 'name': 'ctest-vn4-70001548', 'tenant_id': '0953d046b78a4026aa9003ce679d9382', 'project_id': '0953d046b78a4026aa9003ce679d9382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19327546', 'ctest-vn4-70001548'], 'port_security_enabled': True, 'description': ''}} 2025-10-31 07:55:06,137 - DEBUG - Response for create_subnet : {'subnet': {'id': '244216ec-1575-4012-a8f8-f3aefa067086', 'name': '', 'tenant_id': '0953d046b78a4026aa9003ce679d9382', 'network_id': 'a41ee2f4-d02c-43ff-a164-b46a22226ec9', 'ip_version': 4, 'cidr': '78.51.180.0/26', 'allocation_pools': [{'start': '78.51.180.2', 'end': '78.51.180.62'}], 'gateway_ip': '78.51.180.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.51.180.2', 'tags': [], 'project_id': '0953d046b78a4026aa9003ce679d9382'}} 2025-10-31 07:55:06,292 - DEBUG - Response for create_subnet : {'subnet': {'id': '4548af32-d4fb-4ddc-babf-b2906b2a2b06', 'name': '', 'tenant_id': '0953d046b78a4026aa9003ce679d9382', 'network_id': 'a41ee2f4-d02c-43ff-a164-b46a22226ec9', 'ip_version': 6, 'cidr': '306e:3dd3:eb83:3d84:6d59:79cc::/96', 'allocation_pools': [{'start': '306e:3dd3:eb83:3d84:6d59:79cc:0:2', 'end': '306e:3dd3:eb83:3d84:6d59:79cc:ffff:fffe'}], 'gateway_ip': '306e:3dd3:eb83:3d84:6d59:79cc:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '306e:3dd3:eb83:3d84:6d59:79cc:0:2', 'tags': [], 'project_id': '0953d046b78a4026aa9003ce679d9382'}} 2025-10-31 07:55:06,310 - INFO - Created VN ctest-vn4-70001548 2025-10-31 07:55:06,361 - DEBUG - VN ctest-vn4-70001548 UUID is a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:06,532 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a41ee2f4-d02c-43ff-a164-b46a22226ec9', 'name': 'ctest-vn4-70001548', 'tenant_id': '0953d046b78a4026aa9003ce679d9382', 'project_id': '0953d046b78a4026aa9003ce679d9382', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['244216ec-1575-4012-a8f8-f3aefa067086', '4548af32-d4fb-4ddc-babf-b2906b2a2b06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19327546', 'ctest-vn4-70001548'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19327546', 'ctest-policy1-31520710']], 'subnet_ipam': [{'subnet_cidr': '78.51.180.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '306e:3dd3:eb83:3d84:6d59:79cc::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-31 07:55:06,686 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 07:55:06,973 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 07:55:06,997 - DEBUG - Requesting: http://10.0.0.254:8082/domain/12a3e0c6-666b-4d63-86e6-56a0562d662f 2025-10-31 07:55:07,008 - DEBUG - Requesting: http://10.0.0.254:8082/project/0953d046-b78a-4026-aa90-03ce679d9382 2025-10-31 07:55:07,074 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,083 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,091 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,097 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,103 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a9f7261-a403-432e-a516-2197b3bf0c48 2025-10-31 07:55:07,107 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 07:55:07,107 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,115 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,125 - INFO - Verified VN network id 12 for VN a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,125 - INFO - Verifications in API Server for VN ctest-vn4-70001548 passed 2025-10-31 07:55:07,125 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,133 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,138 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,143 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0a9f7261-a403-432e-a516-2197b3bf0c48 2025-10-31 07:55:07,152 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19327546', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11826139212613960703', 'uuid-lslong': '11629618505709678281'}, 'enable': 'true', 'created': '2025-10-31T07:55:05', 'last-modified': '2025-10-31T07:55:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.643892'} 2025-10-31 07:55:07,157 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-31 07:55:07,157 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-70001548 passed 2025-10-31 07:55:07,157 - DEBUG - ====Verifying policy data for ctest-vn4-70001548 in API_Server ====== 2025-10-31 07:55:07,157 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 07:55:07,162 - DEBUG - Requesting: http://10.0.0.254:8082/domain/12a3e0c6-666b-4d63-86e6-56a0562d662f 2025-10-31 07:55:07,173 - DEBUG - Requesting: http://10.0.0.254:8082/project/0953d046-b78a-4026-aa90-03ce679d9382 2025-10-31 07:55:07,247 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a41ee2f4-d02c-43ff-a164-b46a22226ec9 2025-10-31 07:55:07,256 - DEBUG - ==>Verifying data for policy with id: e3dde3a0-65d4-40f0-aa41-fa5c84ef2750, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19327546', 'ctest-policy1-31520710'] 2025-10-31 07:55:07,256 - INFO - VN ctest-vn4-70001548 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-31 07:55:07,256 - DEBUG - Verifying the vn in opserver 2025-10-31 07:55:07,256 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548 virtual network link through opserver 10.0.0.254 2025-10-31 07:55:07,257 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 07:55:07,549 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-31 07:55:07,600 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548?flat'} 2025-10-31 07:55:07,600 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19327546:ctest-vn4-70001548 is found in opserver 2025-10-31 07:55:07,609 - DEBUG - Do not have enough data to verify VN in agent 2025-10-31 07:55:07,613 - DEBUG - VRF ids for VN ctest-vn4-70001548: {} 2025-10-31 07:55:07,614 - DEBUG - ====Verifying data for ctest-policy1-31520710 in API_Server ====== 2025-10-31 07:55:07,614 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 07:55:07,619 - DEBUG - Requesting: http://10.0.0.254:8082/domain/12a3e0c6-666b-4d63-86e6-56a0562d662f 2025-10-31 07:55:07,630 - DEBUG - Requesting: http://10.0.0.254:8082/project/0953d046-b78a-4026-aa90-03ce679d9382 2025-10-31 07:55:07,698 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/e3dde3a0-65d4-40f0-aa41-fa5c84ef2750 2025-10-31 07:55:07,708 - INFO - Verified policy ctest-policy1-31520710 in API Server, Result: True 2025-10-31 07:55:07,708 - INFO - Done with setup and verification, moving onto test .. 2025-10-31 07:55:07,714 - INFO - Deleting VN ctest-vn4-70001548 2025-10-31 07:55:07,835 - DEBUG - Response for deleting network () 2025-10-31 07:55:07,835 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/c7547713-810a-4087-ba4d-7f803f32efdd 2025-10-31 07:55:07,839 - DEBUG - Response Code: 404 2025-10-31 07:55:07,840 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-31 07:55:07,844 - DEBUG - Requesting: http://10.0.0.254:8082/domain/12a3e0c6-666b-4d63-86e6-56a0562d662f 2025-10-31 07:55:07,894 - DEBUG - Requesting: http://10.0.0.254:8082/project/0953d046-b78a-4026-aa90-03ce679d9382 2025-10-31 07:55:07,959 - INFO - Validated that VN ctest-vn4-70001548 is not found in API Server 2025-10-31 07:55:07,970 - DEBUG - VN ctest-vn4-70001548 is not present in Agent 10.0.0.254 2025-10-31 07:55:07,970 - INFO - Validated that VN ctest-vn4-70001548 is not in any agent 2025-10-31 07:55:07,981 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-70001548 info 2025-10-31 07:55:08,001 - INFO - Deleted policy ctest-policy1-31520710 2025-10-31 07:55:08,161 - DEBUG - policy ctest-policy1-31520710 is not found in API Server 2025-10-31 07:55:08,413 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 07:55:08,414 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 07:55:08,414 - INFO - -------------------------------------------------------------------------------- 2025-10-31 07:55:08,703 - DEBUG - No XMPP flaps were noticed during the test
2025-10-31 07:55:08,703 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-31 07:55:08,703 - INFO - -------------------------------------------------------------------------------- 2025-10-31 07:55:09,343 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19327546, ID : 0953d046-b78a-4026-aa90-03ce679d9382