2025-09-18 12:43:32,737 - INFO - Domain Default found not creating 2025-09-18 12:43:32,886 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68653688 not found, creating it 2025-09-18 12:43:33,350 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68653688, ID : 34101f38-dd08-44b0-b3c7-e44b11a44ad6 2025-09-18 12:43:34,745 - INFO - ================================================================================ 2025-09-18 12:43:34,745 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 12:43:34,996 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-09-18 12:43:34,996 - INFO - Initial checks done. Running the testcase now 2025-09-18 12:43:34,996 - INFO - 2025-09-18 12:43:34,996 - INFO - ================================================================================ 2025-09-18 12:43:34,996 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-18 12:43:34,996 - 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-18 12:43:35,284 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.254': '0'}} with 2025-09-18 12:43:35,284 - INFO - Initial checks done. Running the testcase now 2025-09-18 12:43:35,284 - INFO - 2025-09-18 12:43:35,624 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202, 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-68653688:ctest-vn4-16469202, 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-68653688:ctest-vn4-16469202, 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-68653688:ctest-vn4-16469202, 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-18 12:43:36,125 - DEBUG - Response for create_network : {'network': {'id': '9aca8837-38b3-43f8-bf5b-1fe660367520', 'name': 'ctest-vn4-16469202', 'tenant_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'project_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68653688', 'ctest-vn4-16469202'], 'port_security_enabled': True, 'description': ''}} 2025-09-18 12:43:36,326 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e0023e84-a144-4dc6-9054-76f7069d5741', 'name': '', 'tenant_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'network_id': '9aca8837-38b3-43f8-bf5b-1fe660367520', 'ip_version': 4, 'cidr': '32.40.108.128/26', 'allocation_pools': [{'start': '32.40.108.130', 'end': '32.40.108.190'}], 'gateway_ip': '32.40.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '32.40.108.130', 'tags': [], 'project_id': '34101f38dd0844b0b3c7e44b11a44ad6'}} 2025-09-18 12:43:36,511 - DEBUG - Response for create_subnet : {'subnet': {'id': '6e0a2270-5f6e-4008-af15-91b1df4c3269', 'name': '', 'tenant_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'network_id': '9aca8837-38b3-43f8-bf5b-1fe660367520', 'ip_version': 6, 'cidr': '3cbb:4dcf:9fce:d121:cd45:2291::/96', 'allocation_pools': [{'start': '3cbb:4dcf:9fce:d121:cd45:2291:0:2', 'end': '3cbb:4dcf:9fce:d121:cd45:2291:ffff:fffe'}], 'gateway_ip': '3cbb:4dcf:9fce:d121:cd45:2291:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3cbb:4dcf:9fce:d121:cd45:2291:0:2', 'tags': [], 'project_id': '34101f38dd0844b0b3c7e44b11a44ad6'}} 2025-09-18 12:43:36,531 - INFO - Created VN ctest-vn4-16469202 2025-09-18 12:43:36,587 - DEBUG - VN ctest-vn4-16469202 UUID is 9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:36,791 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9aca8837-38b3-43f8-bf5b-1fe660367520', 'name': 'ctest-vn4-16469202', 'tenant_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'project_id': '34101f38dd0844b0b3c7e44b11a44ad6', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e0023e84-a144-4dc6-9054-76f7069d5741', '6e0a2270-5f6e-4008-af15-91b1df4c3269'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68653688', 'ctest-vn4-16469202'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68653688', 'ctest-policy1-77073255']], 'subnet_ipam': [{'subnet_cidr': '32.40.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3cbb:4dcf:9fce:d121:cd45:2291::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-18 12:43:36,959 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-18 12:43:37,248 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-18 12:43:37,275 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24 2025-09-18 12:43:37,285 - DEBUG - Requesting: http://10.0.0.48:8082/project/34101f38-dd08-44b0-b3c7-e44b11a44ad6 2025-09-18 12:43:37,355 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,366 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,375 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:37,381 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:37,387 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2a9ce3ba-ce4f-4a0d-9e96-a055d192a084 2025-09-18 12:43:37,394 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 12:43:37,394 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,403 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:37,418 - INFO - Verified VN network id 11 for VN 9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,418 - INFO - Verifications in API Server for VN ctest-vn4-16469202 passed 2025-09-18 12:43:37,418 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,426 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:37,431 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:37,437 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2a9ce3ba-ce4f-4a0d-9e96-a055d192a084 2025-09-18 12:43:37,446 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68653688', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11153877197892305912', 'uuid-lslong': '13788649758442026272'}, 'enable': 'true', 'created': '2025-09-18T12:43:36', 'last-modified': '2025-09-18T12:43:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680433'} 2025-09-18 12:43:37,452 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-18 12:43:37,452 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16469202 passed 2025-09-18 12:43:37,452 - DEBUG - ====Verifying policy data for ctest-vn4-16469202 in API_Server ====== 2025-09-18 12:43:37,453 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-18 12:43:37,457 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24 2025-09-18 12:43:37,466 - DEBUG - Requesting: http://10.0.0.48:8082/project/34101f38-dd08-44b0-b3c7-e44b11a44ad6 2025-09-18 12:43:37,529 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/9aca8837-38b3-43f8-bf5b-1fe660367520 2025-09-18 12:43:37,539 - DEBUG - ==>Verifying data for policy with id: 5d603925-0662-4d5c-b1a2-0849bad5d073, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68653688', 'ctest-policy1-77073255'] 2025-09-18 12:43:37,539 - INFO - VN ctest-vn4-16469202 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-18 12:43:37,539 - DEBUG - Verifying the vn in opserver 2025-09-18 12:43:37,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202 virtual network link through opserver 10.0.0.48 2025-09-18 12:43:37,539 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-18 12:43:37,841 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-18 12:43:37,906 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202?flat'} 2025-09-18 12:43:37,907 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68653688:ctest-vn4-16469202 is found in opserver 2025-09-18 12:43:37,919 - DEBUG - Do not have enough data to verify VN in agent 2025-09-18 12:43:37,926 - DEBUG - VRF ids for VN ctest-vn4-16469202: {} 2025-09-18 12:43:37,926 - DEBUG - ====Verifying data for ctest-policy1-77073255 in API_Server ====== 2025-09-18 12:43:37,926 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-18 12:43:37,933 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24 2025-09-18 12:43:37,945 - DEBUG - Requesting: http://10.0.0.48:8082/project/34101f38-dd08-44b0-b3c7-e44b11a44ad6 2025-09-18 12:43:38,017 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/5d603925-0662-4d5c-b1a2-0849bad5d073 2025-09-18 12:43:38,028 - INFO - Verified policy ctest-policy1-77073255 in API Server, Result: True 2025-09-18 12:43:38,028 - INFO - Done with setup and verification, moving onto test .. 2025-09-18 12:43:38,036 - INFO - Deleting VN ctest-vn4-16469202 2025-09-18 12:43:38,156 - DEBUG - Response for deleting network () 2025-09-18 12:43:38,156 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/5e9d2a80-47b9-45f3-ae6a-3bd687bbadb9 2025-09-18 12:43:38,161 - DEBUG - Response Code: 404 2025-09-18 12:43:38,161 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-18 12:43:38,166 - DEBUG - Requesting: http://10.0.0.48:8082/domain/aa830de6-4095-446f-b6e8-528ce44cca24 2025-09-18 12:43:38,220 - DEBUG - Requesting: http://10.0.0.48:8082/project/34101f38-dd08-44b0-b3c7-e44b11a44ad6 2025-09-18 12:43:38,299 - INFO - Validated that VN ctest-vn4-16469202 is not found in API Server 2025-09-18 12:43:38,309 - DEBUG - VN ctest-vn4-16469202 is not present in Agent 10.0.0.48 2025-09-18 12:43:38,309 - INFO - Validated that VN ctest-vn4-16469202 is not in any agent 2025-09-18 12:43:38,323 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16469202 info 2025-09-18 12:43:38,348 - INFO - Deleted policy ctest-policy1-77073255 2025-09-18 12:43:38,506 - DEBUG - policy ctest-policy1-77073255 is not found in API Server 2025-09-18 12:43:38,764 - DEBUG - No XMPP flaps were noticed during the test