2025-11-24 15:12:41,928 - INFO - Domain Default found not creating 2025-11-24 15:12:42,073 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-19938538 not found, creating it 2025-11-24 15:12:42,521 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-19938538, ID : 96622fcc-0fe9-47df-a4eb-72c62a858b06 2025-11-24 15:12:43,977 - INFO - ================================================================================ 2025-11-24 15:12:43,977 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 15:12:44,236 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0'}} with 2025-11-24 15:12:44,236 - INFO - Initial checks done. Running the testcase now 2025-11-24 15:12:44,236 - INFO - 2025-11-24 15:12:44,236 - INFO - ================================================================================ 2025-11-24 15:12:44,236 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-24 15:12:44,236 - 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-11-24 15:12:44,523 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.18': '0'}} with 2025-11-24 15:12:44,523 - INFO - Initial checks done. Running the testcase now 2025-11-24 15:12:44,523 - INFO - 2025-11-24 15:12:44,875 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201, 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-19938538:ctest-vn4-62751201, 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-19938538:ctest-vn4-62751201, 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-19938538:ctest-vn4-62751201, 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-11-24 15:12:45,379 - DEBUG - Response for create_network : {'network': {'id': 'c3dbed24-b130-412a-9baf-3e9adf1849ec', 'name': 'ctest-vn4-62751201', 'tenant_id': '96622fcc0fe947dfa4eb72c62a858b06', 'project_id': '96622fcc0fe947dfa4eb72c62a858b06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19938538', 'ctest-vn4-62751201'], 'port_security_enabled': True, 'description': ''}} 2025-11-24 15:12:45,600 - DEBUG - Response for create_subnet : {'subnet': {'id': '312efb22-8da7-413a-abc3-3529e08545f2', 'name': '', 'tenant_id': '96622fcc0fe947dfa4eb72c62a858b06', 'network_id': 'c3dbed24-b130-412a-9baf-3e9adf1849ec', 'ip_version': 4, 'cidr': '154.28.221.64/26', 'allocation_pools': [{'start': '154.28.221.66', 'end': '154.28.221.126'}], 'gateway_ip': '154.28.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '154.28.221.66', 'tags': [], 'project_id': '96622fcc0fe947dfa4eb72c62a858b06'}} 2025-11-24 15:12:45,795 - DEBUG - Response for create_subnet : {'subnet': {'id': '651d254b-7985-48e5-8f5a-a4ee27a5b904', 'name': '', 'tenant_id': '96622fcc0fe947dfa4eb72c62a858b06', 'network_id': 'c3dbed24-b130-412a-9baf-3e9adf1849ec', 'ip_version': 6, 'cidr': '37d4:f876:b058:4b21:197e:b7ad::/96', 'allocation_pools': [{'start': '37d4:f876:b058:4b21:197e:b7ad:0:2', 'end': '37d4:f876:b058:4b21:197e:b7ad:ffff:fffe'}], 'gateway_ip': '37d4:f876:b058:4b21:197e:b7ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37d4:f876:b058:4b21:197e:b7ad:0:2', 'tags': [], 'project_id': '96622fcc0fe947dfa4eb72c62a858b06'}} 2025-11-24 15:12:45,815 - INFO - Created VN ctest-vn4-62751201 2025-11-24 15:12:45,866 - DEBUG - VN ctest-vn4-62751201 UUID is c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,057 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c3dbed24-b130-412a-9baf-3e9adf1849ec', 'name': 'ctest-vn4-62751201', 'tenant_id': '96622fcc0fe947dfa4eb72c62a858b06', 'project_id': '96622fcc0fe947dfa4eb72c62a858b06', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['312efb22-8da7-413a-abc3-3529e08545f2', '651d254b-7985-48e5-8f5a-a4ee27a5b904'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19938538', 'ctest-vn4-62751201'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19938538', 'ctest-policy1-55475648']], 'subnet_ipam': [{'subnet_cidr': '154.28.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '37d4:f876:b058:4b21:197e:b7ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-24 15:12:46,218 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-24 15:12:46,509 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-24 15:12:46,539 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4 2025-11-24 15:12:46,550 - DEBUG - Requesting: http://10.0.0.141:8082/project/96622fcc-0fe9-47df-a4eb-72c62a858b06 2025-11-24 15:12:46,618 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,630 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,640 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:46,647 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:46,653 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e893e903-aa1b-44ea-8cce-7eb3ee1afcd7 2025-11-24 15:12:46,659 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 15:12:46,659 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,668 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:46,681 - INFO - Verified VN network id 11 for VN c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,681 - INFO - Verifications in API Server for VN ctest-vn4-62751201 passed 2025-11-24 15:12:46,682 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,690 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:46,697 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:46,704 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/e893e903-aa1b-44ea-8cce-7eb3ee1afcd7 2025-11-24 15:12:46,715 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-19938538', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14113134599142916394', 'uuid-lslong': '11218254031691991532'}, 'enable': 'true', 'created': '2025-11-24T15:12:45', 'last-modified': '2025-11-24T15:12:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682990'} 2025-11-24 15:12:46,721 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-24 15:12:46,721 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62751201 passed 2025-11-24 15:12:46,721 - DEBUG - ====Verifying policy data for ctest-vn4-62751201 in API_Server ====== 2025-11-24 15:12:46,721 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-24 15:12:46,727 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4 2025-11-24 15:12:46,738 - DEBUG - Requesting: http://10.0.0.141:8082/project/96622fcc-0fe9-47df-a4eb-72c62a858b06 2025-11-24 15:12:46,807 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/c3dbed24-b130-412a-9baf-3e9adf1849ec 2025-11-24 15:12:46,817 - DEBUG - ==>Verifying data for policy with id: 52cc21c0-5b9d-422e-8125-0bd43bf5827d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-19938538', 'ctest-policy1-55475648'] 2025-11-24 15:12:46,817 - INFO - VN ctest-vn4-62751201 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-24 15:12:46,817 - DEBUG - Verifying the vn in opserver 2025-11-24 15:12:46,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201 virtual network link through opserver 10.0.0.141 2025-11-24 15:12:46,818 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-24 15:12:47,108 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-11-24 15:12:47,173 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201?flat'} 2025-11-24 15:12:47,173 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-19938538:ctest-vn4-62751201 is found in opserver 2025-11-24 15:12:47,182 - DEBUG - Do not have enough data to verify VN in agent 2025-11-24 15:12:47,186 - DEBUG - VRF ids for VN ctest-vn4-62751201: {} 2025-11-24 15:12:47,187 - DEBUG - ====Verifying data for ctest-policy1-55475648 in API_Server ====== 2025-11-24 15:12:47,187 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-24 15:12:47,191 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4 2025-11-24 15:12:47,201 - DEBUG - Requesting: http://10.0.0.141:8082/project/96622fcc-0fe9-47df-a4eb-72c62a858b06 2025-11-24 15:12:47,274 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/52cc21c0-5b9d-422e-8125-0bd43bf5827d 2025-11-24 15:12:47,284 - INFO - Verified policy ctest-policy1-55475648 in API Server, Result: True 2025-11-24 15:12:47,284 - INFO - Done with setup and verification, moving onto test .. 2025-11-24 15:12:47,292 - INFO - Deleting VN ctest-vn4-62751201 2025-11-24 15:12:47,418 - DEBUG - Response for deleting network () 2025-11-24 15:12:47,418 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/7321626c-62ab-4b99-a8a4-64ba61efa4b4 2025-11-24 15:12:47,424 - DEBUG - Response Code: 404 2025-11-24 15:12:47,424 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-11-24 15:12:47,431 - DEBUG - Requesting: http://10.0.0.141:8082/domain/14519060-1d68-4339-9082-efb7ea5a07c4 2025-11-24 15:12:47,488 - DEBUG - Requesting: http://10.0.0.141:8082/project/96622fcc-0fe9-47df-a4eb-72c62a858b06 2025-11-24 15:12:47,558 - INFO - Validated that VN ctest-vn4-62751201 is not found in API Server 2025-11-24 15:12:47,572 - DEBUG - VN ctest-vn4-62751201 is not present in Agent 10.0.0.141 2025-11-24 15:12:47,572 - INFO - Validated that VN ctest-vn4-62751201 is not in any agent 2025-11-24 15:12:47,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62751201 info 2025-11-24 15:12:47,614 - INFO - Deleted policy ctest-policy1-55475648 2025-11-24 15:12:47,774 - DEBUG - policy ctest-policy1-55475648 is not found in API Server 2025-11-24 15:12:48,027 - DEBUG - No XMPP flaps were noticed during the test 2025-11-24 15:12:48,027 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-11-24 15:12:48,027 - INFO - -------------------------------------------------------------------------------- 2025-11-24 15:12:48,315 - DEBUG - No XMPP flaps were noticed during the test 2025-11-24 15:12:48,315 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-11-24 15:12:48,315 - INFO - -------------------------------------------------------------------------------- 2025-11-24 15:12:48,996 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-19938538, ID : 96622fcc-0fe9-47df-a4eb-72c62a858b06