2025-08-20 09:13:59,781 - INFO - Domain Default found not creating 2025-08-20 09:13:59,907 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-47291021 not found, creating it 2025-08-20 09:14:00,336 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-47291021, ID : 5d1a7746-ee4d-4bb7-84ab-66a8060c5d3c 2025-08-20 09:14:01,646 - INFO - ================================================================================ 2025-08-20 09:14:01,646 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 09:14:01,905 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-08-20 09:14:01,905 - INFO - Initial checks done. Running the testcase now 2025-08-20 09:14:01,905 - INFO - 2025-08-20 09:14:01,905 - INFO - ================================================================================ 2025-08-20 09:14:01,905 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-20 09:14:01,906 - 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-20 09:14:02,200 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with 2025-08-20 09:14:02,200 - INFO - Initial checks done. Running the testcase now 2025-08-20 09:14:02,200 - INFO - 2025-08-20 09:14:02,533 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771, 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-47291021:ctest-vn4-88766771, 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-47291021:ctest-vn4-88766771, 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-47291021:ctest-vn4-88766771, 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-20 09:14:03,031 - DEBUG - Response for create_network : {'network': {'id': '311e6db6-a5a7-4f52-aec5-bd82a8d80ed1', 'name': 'ctest-vn4-88766771', 'tenant_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'project_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47291021', 'ctest-vn4-88766771'], 'port_security_enabled': True, 'description': ''}} 2025-08-20 09:14:03,219 - DEBUG - Response for create_subnet : {'subnet': {'id': '51f9c5ad-ee14-476b-a784-af4a414580a4', 'name': '', 'tenant_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'network_id': '311e6db6-a5a7-4f52-aec5-bd82a8d80ed1', 'ip_version': 4, 'cidr': '102.38.112.128/26', 'allocation_pools': [{'start': '102.38.112.130', 'end': '102.38.112.190'}], 'gateway_ip': '102.38.112.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.38.112.130', 'tags': [], 'project_id': '5d1a7746ee4d4bb784ab66a8060c5d3c'}} 2025-08-20 09:14:03,405 - DEBUG - Response for create_subnet : {'subnet': {'id': '04e56ae8-f6b6-40d5-8c17-a3f66d21d98e', 'name': '', 'tenant_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'network_id': '311e6db6-a5a7-4f52-aec5-bd82a8d80ed1', 'ip_version': 6, 'cidr': '3341:a694:6d44:8c92:783a:8b0b::/96', 'allocation_pools': [{'start': '3341:a694:6d44:8c92:783a:8b0b:0:2', 'end': '3341:a694:6d44:8c92:783a:8b0b:ffff:fffe'}], 'gateway_ip': '3341:a694:6d44:8c92:783a:8b0b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3341:a694:6d44:8c92:783a:8b0b:0:2', 'tags': [], 'project_id': '5d1a7746ee4d4bb784ab66a8060c5d3c'}} 2025-08-20 09:14:03,423 - INFO - Created VN ctest-vn4-88766771 2025-08-20 09:14:03,476 - DEBUG - VN ctest-vn4-88766771 UUID is 311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:03,664 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '311e6db6-a5a7-4f52-aec5-bd82a8d80ed1', 'name': 'ctest-vn4-88766771', 'tenant_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'project_id': '5d1a7746ee4d4bb784ab66a8060c5d3c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51f9c5ad-ee14-476b-a784-af4a414580a4', '04e56ae8-f6b6-40d5-8c17-a3f66d21d98e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47291021', 'ctest-vn4-88766771'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47291021', 'ctest-policy1-03101724']], 'subnet_ipam': [{'subnet_cidr': '102.38.112.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3341:a694:6d44:8c92:783a:8b0b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-20 09:14:03,832 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-20 09:14:04,117 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-20 09:14:04,142 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc 2025-08-20 09:14:04,153 - DEBUG - Requesting: http://10.0.0.49:8082/project/5d1a7746-ee4d-4bb7-84ab-66a8060c5d3c 2025-08-20 09:14:04,225 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,235 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,243 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,249 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,254 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f0a6e921-2ec1-49ca-a22f-cf756083e3e5 2025-08-20 09:14:04,258 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 09:14:04,258 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,266 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,276 - INFO - Verified VN network id 12 for VN 311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,276 - INFO - Verifications in API Server for VN ctest-vn4-88766771 passed 2025-08-20 09:14:04,276 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,284 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,290 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,295 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/f0a6e921-2ec1-49ca-a22f-cf756083e3e5 2025-08-20 09:14:04,304 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-47291021', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3539386988390469458', 'uuid-lslong': '12593680301887590097'}, 'enable': 'true', 'created': '2025-08-20T09:14:03', 'last-modified': '2025-08-20T09:14:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.673359'} 2025-08-20 09:14:04,309 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-20 09:14:04,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88766771 passed 2025-08-20 09:14:04,309 - DEBUG - ====Verifying policy data for ctest-vn4-88766771 in API_Server ====== 2025-08-20 09:14:04,309 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-20 09:14:04,313 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc 2025-08-20 09:14:04,323 - DEBUG - Requesting: http://10.0.0.49:8082/project/5d1a7746-ee4d-4bb7-84ab-66a8060c5d3c 2025-08-20 09:14:04,391 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/311e6db6-a5a7-4f52-aec5-bd82a8d80ed1 2025-08-20 09:14:04,399 - DEBUG - ==>Verifying data for policy with id: 2cc51c52-9461-456c-8b75-656e55ff615f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-47291021', 'ctest-policy1-03101724'] 2025-08-20 09:14:04,399 - INFO - VN ctest-vn4-88766771 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-20 09:14:04,399 - DEBUG - Verifying the vn in opserver 2025-08-20 09:14:04,400 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771 virtual network link through opserver 10.0.0.49 2025-08-20 09:14:04,400 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-20 09:14:04,688 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks 2025-08-20 09:14:04,735 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771?flat'} 2025-08-20 09:14:04,735 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-47291021:ctest-vn4-88766771 is found in opserver 2025-08-20 09:14:04,743 - DEBUG - Do not have enough data to verify VN in agent 2025-08-20 09:14:04,748 - DEBUG - VRF ids for VN ctest-vn4-88766771: {} 2025-08-20 09:14:04,748 - DEBUG - ====Verifying data for ctest-policy1-03101724 in API_Server ====== 2025-08-20 09:14:04,748 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-20 09:14:04,753 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc 2025-08-20 09:14:04,762 - DEBUG - Requesting: http://10.0.0.49:8082/project/5d1a7746-ee4d-4bb7-84ab-66a8060c5d3c 2025-08-20 09:14:04,827 - DEBUG - Requesting: http://10.0.0.49:8082/network-policy/2cc51c52-9461-456c-8b75-656e55ff615f 2025-08-20 09:14:04,836 - INFO - Verified policy ctest-policy1-03101724 in API Server, Result: True 2025-08-20 09:14:04,836 - INFO - Done with setup and verification, moving onto test .. 2025-08-20 09:14:04,844 - INFO - Deleting VN ctest-vn4-88766771 2025-08-20 09:14:04,965 - DEBUG - Response for deleting network () 2025-08-20 09:14:04,965 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f9e2708e-464b-411e-9e6e-7e1c1b0dc1e0 2025-08-20 09:14:04,969 - DEBUG - Response Code: 404 2025-08-20 09:14:04,969 - DEBUG - Requesting: http://10.0.0.49:8082/domains 2025-08-20 09:14:04,973 - DEBUG - Requesting: http://10.0.0.49:8082/domain/ac2afb38-e6a2-4bc9-84a0-5630d8cad4fc 2025-08-20 09:14:05,028 - DEBUG - Requesting: http://10.0.0.49:8082/project/5d1a7746-ee4d-4bb7-84ab-66a8060c5d3c 2025-08-20 09:14:05,096 - INFO - Validated that VN ctest-vn4-88766771 is not found in API Server 2025-08-20 09:14:05,105 - DEBUG - VN ctest-vn4-88766771 is not present in Agent 10.0.0.49 2025-08-20 09:14:05,105 - INFO - Validated that VN ctest-vn4-88766771 is not in any agent 2025-08-20 09:14:05,117 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88766771 info 2025-08-20 09:14:05,137 - INFO - Deleted policy ctest-policy1-03101724 2025-08-20 09:14:05,295 - DEBUG - policy ctest-policy1-03101724 is not found in API Server 2025-08-20 09:14:05,548 - DEBUG - No XMPP flaps were noticed during the test