2025-10-06 16:41:35,588 - INFO - Domain Default found not creating 2025-10-06 16:41:35,719 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95613408 not found, creating it 2025-10-06 16:41:36,156 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95613408, ID : 369aaf4e-4a91-47b5-a112-0447637faa11 2025-10-06 16:41:37,495 - INFO - ================================================================================ 2025-10-06 16:41:37,495 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 16:41:37,755 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-06 16:41:37,755 - INFO - Initial checks done. Running the testcase now 2025-10-06 16:41:37,756 - INFO - 2025-10-06 16:41:37,756 - INFO - ================================================================================ 2025-10-06 16:41:37,756 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 16:41:37,756 - 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-06 16:41:38,051 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-06 16:41:38,051 - INFO - Initial checks done. Running the testcase now 2025-10-06 16:41:38,051 - INFO - 2025-10-06 16:41:38,388 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160, 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-95613408:ctest-vn4-63318160, 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-95613408:ctest-vn4-63318160, 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-95613408:ctest-vn4-63318160, 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-06 16:41:38,880 - DEBUG - Response for create_network : {'network': {'id': '7316a96c-9564-4bfe-9d96-4c5942c3256c', 'name': 'ctest-vn4-63318160', 'tenant_id': '369aaf4e4a9147b5a1120447637faa11', 'project_id': '369aaf4e4a9147b5a1120447637faa11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95613408', 'ctest-vn4-63318160'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 16:41:39,049 - DEBUG - Response for create_subnet : {'subnet': {'id': '45073083-f06e-450b-846a-1d1dd998e034', 'name': '', 'tenant_id': '369aaf4e4a9147b5a1120447637faa11', 'network_id': '7316a96c-9564-4bfe-9d96-4c5942c3256c', 'ip_version': 4, 'cidr': '40.186.218.0/26', 'allocation_pools': [{'start': '40.186.218.2', 'end': '40.186.218.62'}], 'gateway_ip': '40.186.218.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.186.218.2', 'tags': [], 'project_id': '369aaf4e4a9147b5a1120447637faa11'}} 2025-10-06 16:41:39,199 - DEBUG - Response for create_subnet : {'subnet': {'id': '61e871be-051e-47fd-9ed2-1fbe820bfbda', 'name': '', 'tenant_id': '369aaf4e4a9147b5a1120447637faa11', 'network_id': '7316a96c-9564-4bfe-9d96-4c5942c3256c', 'ip_version': 6, 'cidr': '2bb6:9dc3:7ac1:5f96:53e5:3ac4::/96', 'allocation_pools': [{'start': '2bb6:9dc3:7ac1:5f96:53e5:3ac4:0:2', 'end': '2bb6:9dc3:7ac1:5f96:53e5:3ac4:ffff:fffe'}], 'gateway_ip': '2bb6:9dc3:7ac1:5f96:53e5:3ac4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2bb6:9dc3:7ac1:5f96:53e5:3ac4:0:2', 'tags': [], 'project_id': '369aaf4e4a9147b5a1120447637faa11'}} 2025-10-06 16:41:39,216 - INFO - Created VN ctest-vn4-63318160 2025-10-06 16:41:39,267 - DEBUG - VN ctest-vn4-63318160 UUID is 7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:39,455 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7316a96c-9564-4bfe-9d96-4c5942c3256c', 'name': 'ctest-vn4-63318160', 'tenant_id': '369aaf4e4a9147b5a1120447637faa11', 'project_id': '369aaf4e4a9147b5a1120447637faa11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['45073083-f06e-450b-846a-1d1dd998e034', '61e871be-051e-47fd-9ed2-1fbe820bfbda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95613408', 'ctest-vn4-63318160'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95613408', 'ctest-policy1-06332896']], 'subnet_ipam': [{'subnet_cidr': '40.186.218.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2bb6:9dc3:7ac1:5f96:53e5:3ac4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 16:41:39,603 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 16:41:39,898 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 16:41:39,932 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90 2025-10-06 16:41:39,945 - DEBUG - Requesting: http://10.0.0.254:8082/project/369aaf4e-4a91-47b5-a112-0447637faa11 2025-10-06 16:41:40,019 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,030 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,038 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,045 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,050 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6c799e03-f8fa-46bc-b9d5-d422007a8eab 2025-10-06 16:41:40,055 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 16:41:40,055 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,063 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,073 - INFO - Verified VN network id 12 for VN 7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,074 - INFO - Verifications in API Server for VN ctest-vn4-63318160 passed 2025-10-06 16:41:40,074 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,081 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,087 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,092 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/6c799e03-f8fa-46bc-b9d5-d422007a8eab 2025-10-06 16:41:40,102 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95613408', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8293002047677287422', 'uuid-lslong': '11355347456717170028'}, 'enable': 'true', 'created': '2025-10-06T16:41:38', 'last-modified': '2025-10-06T16:41:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678187'} 2025-10-06 16:41:40,108 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 16:41:40,108 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-63318160 passed 2025-10-06 16:41:40,108 - DEBUG - ====Verifying policy data for ctest-vn4-63318160 in API_Server ====== 2025-10-06 16:41:40,109 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 16:41:40,113 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90 2025-10-06 16:41:40,122 - DEBUG - Requesting: http://10.0.0.254:8082/project/369aaf4e-4a91-47b5-a112-0447637faa11 2025-10-06 16:41:40,191 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/7316a96c-9564-4bfe-9d96-4c5942c3256c 2025-10-06 16:41:40,199 - DEBUG - ==>Verifying data for policy with id: 6ca43b3d-48ac-4d54-be72-1637808c9da1, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95613408', 'ctest-policy1-06332896'] 2025-10-06 16:41:40,199 - INFO - VN ctest-vn4-63318160 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 16:41:40,199 - DEBUG - Verifying the vn in opserver 2025-10-06 16:41:40,199 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160 virtual network link through opserver 10.0.0.254 2025-10-06 16:41:40,199 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-06 16:41:40,494 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-06 16:41:40,552 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160?flat'} 2025-10-06 16:41:40,552 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95613408:ctest-vn4-63318160 is found in opserver 2025-10-06 16:41:40,561 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 16:41:40,565 - DEBUG - VRF ids for VN ctest-vn4-63318160: {} 2025-10-06 16:41:40,565 - DEBUG - ====Verifying data for ctest-policy1-06332896 in API_Server ====== 2025-10-06 16:41:40,565 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 16:41:40,570 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90 2025-10-06 16:41:40,578 - DEBUG - Requesting: http://10.0.0.254:8082/project/369aaf4e-4a91-47b5-a112-0447637faa11 2025-10-06 16:41:40,648 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/6ca43b3d-48ac-4d54-be72-1637808c9da1 2025-10-06 16:41:40,656 - INFO - Verified policy ctest-policy1-06332896 in API Server, Result: True 2025-10-06 16:41:40,656 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 16:41:40,663 - INFO - Deleting VN ctest-vn4-63318160 2025-10-06 16:41:40,775 - DEBUG - Response for deleting network () 2025-10-06 16:41:40,775 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/4b51c350-7342-4ada-9fc9-9a7c5e6582f7 2025-10-06 16:41:40,779 - DEBUG - Response Code: 404 2025-10-06 16:41:40,779 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-06 16:41:40,784 - DEBUG - Requesting: http://10.0.0.254:8082/domain/043283a7-7b44-4844-8e63-bce273e74e90 2025-10-06 16:41:40,835 - DEBUG - Requesting: http://10.0.0.254:8082/project/369aaf4e-4a91-47b5-a112-0447637faa11 2025-10-06 16:41:40,904 - INFO - Validated that VN ctest-vn4-63318160 is not found in API Server 2025-10-06 16:41:40,913 - DEBUG - VN ctest-vn4-63318160 is not present in Agent 10.0.0.254 2025-10-06 16:41:40,914 - INFO - Validated that VN ctest-vn4-63318160 is not in any agent 2025-10-06 16:41:40,926 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-63318160 info 2025-10-06 16:41:40,949 - INFO - Deleted policy ctest-policy1-06332896 2025-10-06 16:41:41,111 - DEBUG - policy ctest-policy1-06332896 is not found in API Server 2025-10-06 16:41:41,363 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 16:41:41,363 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 16:41:41,363 - INFO - -------------------------------------------------------------------------------- 2025-10-06 16:41:41,651 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 16:41:41,651 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-06 16:41:41,651 - INFO - -------------------------------------------------------------------------------- 2025-10-06 16:41:42,314 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-95613408, ID : 369aaf4e-4a91-47b5-a112-0447637faa11