2025-12-08 17:20:35,767 - INFO - Domain Default found not creating 2025-12-08 17:20:35,907 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-72400827 not found, creating it 2025-12-08 17:20:36,330 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-72400827, ID : 3d6ed21a-03ae-424f-a158-cba91da11630 2025-12-08 17:20:37,695 - INFO - ================================================================================ 2025-12-08 17:20:37,695 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 17:20:37,955 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-12-08 17:20:37,956 - INFO - Initial checks done. Running the testcase now 2025-12-08 17:20:37,956 - INFO - 2025-12-08 17:20:37,956 - INFO - ================================================================================ 2025-12-08 17:20:37,956 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-08 17:20:37,956 - 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-12-08 17:20:38,239 - DEBUG - Nothing to compare xmpp stats {'10.0.0.129': {'10.20.0.14': '0'}} with 2025-12-08 17:20:38,239 - INFO - Initial checks done. Running the testcase now 2025-12-08 17:20:38,239 - INFO - 2025-12-08 17:20:38,584 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918, 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-72400827:ctest-vn4-19397918, 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-72400827:ctest-vn4-19397918, 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-72400827:ctest-vn4-19397918, 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-12-08 17:20:39,076 - DEBUG - Response for create_network : {'network': {'id': '6e51bab3-5340-42da-b02f-194410fc41e2', 'name': 'ctest-vn4-19397918', 'tenant_id': '3d6ed21a03ae424fa158cba91da11630', 'project_id': '3d6ed21a03ae424fa158cba91da11630', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72400827', 'ctest-vn4-19397918'], 'port_security_enabled': True, 'description': ''}} 2025-12-08 17:20:39,267 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b3c1ee0-9785-446f-b9d4-feb6eb861fea', 'name': '', 'tenant_id': '3d6ed21a03ae424fa158cba91da11630', 'network_id': '6e51bab3-5340-42da-b02f-194410fc41e2', 'ip_version': 4, 'cidr': '172.96.191.0/26', 'allocation_pools': [{'start': '172.96.191.2', 'end': '172.96.191.62'}], 'gateway_ip': '172.96.191.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '172.96.191.2', 'tags': [], 'project_id': '3d6ed21a03ae424fa158cba91da11630'}} 2025-12-08 17:20:39,472 - DEBUG - Response for create_subnet : {'subnet': {'id': '7606bf95-bd64-4195-9134-0c87dd046b2a', 'name': '', 'tenant_id': '3d6ed21a03ae424fa158cba91da11630', 'network_id': '6e51bab3-5340-42da-b02f-194410fc41e2', 'ip_version': 6, 'cidr': '2a85:122f:6ead:412a:38e3:1e2d::/96', 'allocation_pools': [{'start': '2a85:122f:6ead:412a:38e3:1e2d:0:2', 'end': '2a85:122f:6ead:412a:38e3:1e2d:ffff:fffe'}], 'gateway_ip': '2a85:122f:6ead:412a:38e3:1e2d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a85:122f:6ead:412a:38e3:1e2d:0:2', 'tags': [], 'project_id': '3d6ed21a03ae424fa158cba91da11630'}} 2025-12-08 17:20:39,489 - INFO - Created VN ctest-vn4-19397918 2025-12-08 17:20:39,539 - DEBUG - VN ctest-vn4-19397918 UUID is 6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:39,717 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6e51bab3-5340-42da-b02f-194410fc41e2', 'name': 'ctest-vn4-19397918', 'tenant_id': '3d6ed21a03ae424fa158cba91da11630', 'project_id': '3d6ed21a03ae424fa158cba91da11630', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b3c1ee0-9785-446f-b9d4-feb6eb861fea', '7606bf95-bd64-4195-9134-0c87dd046b2a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72400827', 'ctest-vn4-19397918'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72400827', 'ctest-policy1-70881494']], 'subnet_ipam': [{'subnet_cidr': '172.96.191.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a85:122f:6ead:412a:38e3:1e2d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-08 17:20:39,871 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-08 17:20:40,167 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-08 17:20:40,196 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697 2025-12-08 17:20:40,207 - DEBUG - Requesting: http://10.0.0.129:8082/project/3d6ed21a-03ae-424f-a158-cba91da11630 2025-12-08 17:20:40,285 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,295 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,304 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:40,309 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:40,315 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/cbd18b4c-0837-4350-a674-367ee1af8fe8 2025-12-08 17:20:40,320 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 17:20:40,320 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,328 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:40,340 - INFO - Verified VN network id 12 for VN 6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,340 - INFO - Verifications in API Server for VN ctest-vn4-19397918 passed 2025-12-08 17:20:40,340 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,348 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:40,353 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:40,359 - DEBUG - Requesting: http://10.0.0.129:8082/route-target/cbd18b4c-0837-4350-a674-367ee1af8fe8 2025-12-08 17:20:40,368 - DEBUG - Control-node 10.0.0.129 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-72400827', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7949340096644268762', 'uuid-lslong': '12695393654714155490'}, 'enable': 'true', 'created': '2025-12-08T17:20:39', 'last-modified': '2025-12-08T17:20:39', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677093'} 2025-12-08 17:20:40,372 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-08 17:20:40,372 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-19397918 passed 2025-12-08 17:20:40,373 - DEBUG - ====Verifying policy data for ctest-vn4-19397918 in API_Server ====== 2025-12-08 17:20:40,373 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-08 17:20:40,377 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697 2025-12-08 17:20:40,386 - DEBUG - Requesting: http://10.0.0.129:8082/project/3d6ed21a-03ae-424f-a158-cba91da11630 2025-12-08 17:20:40,456 - DEBUG - Requesting: http://10.0.0.129:8082/virtual-network/6e51bab3-5340-42da-b02f-194410fc41e2 2025-12-08 17:20:40,465 - DEBUG - ==>Verifying data for policy with id: 260d57c8-78c6-49bf-9b2b-04b04545dc07, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-72400827', 'ctest-policy1-70881494'] 2025-12-08 17:20:40,465 - INFO - VN ctest-vn4-19397918 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-08 17:20:40,465 - DEBUG - Verifying the vn in opserver 2025-12-08 17:20:40,465 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918 virtual network link through opserver 10.0.0.129 2025-12-08 17:20:40,465 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-12-08 17:20:40,757 - DEBUG - Requesting: http://10.0.0.129:8081/analytics/uves/virtual-networks 2025-12-08 17:20:40,811 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918', 'href': 'http://10.0.0.129:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918?flat'} 2025-12-08 17:20:40,811 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-72400827:ctest-vn4-19397918 is found in opserver 2025-12-08 17:20:40,819 - DEBUG - Do not have enough data to verify VN in agent 2025-12-08 17:20:40,823 - DEBUG - VRF ids for VN ctest-vn4-19397918: {} 2025-12-08 17:20:40,824 - DEBUG - ====Verifying data for ctest-policy1-70881494 in API_Server ====== 2025-12-08 17:20:40,824 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-08 17:20:40,829 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697 2025-12-08 17:20:40,838 - DEBUG - Requesting: http://10.0.0.129:8082/project/3d6ed21a-03ae-424f-a158-cba91da11630 2025-12-08 17:20:40,909 - DEBUG - Requesting: http://10.0.0.129:8082/network-policy/260d57c8-78c6-49bf-9b2b-04b04545dc07 2025-12-08 17:20:40,917 - INFO - Verified policy ctest-policy1-70881494 in API Server, Result: True 2025-12-08 17:20:40,917 - INFO - Done with setup and verification, moving onto test .. 2025-12-08 17:20:40,923 - INFO - Deleting VN ctest-vn4-19397918 2025-12-08 17:20:41,023 - DEBUG - Response for deleting network () 2025-12-08 17:20:41,023 - DEBUG - Requesting: http://10.0.0.129:8082/routing-instance/8c099e14-ea84-4e11-b8f6-a1995d17d419 2025-12-08 17:20:41,028 - DEBUG - Response Code: 404 2025-12-08 17:20:41,028 - DEBUG - Requesting: http://10.0.0.129:8082/domains 2025-12-08 17:20:41,033 - DEBUG - Requesting: http://10.0.0.129:8082/domain/bece9f62-338c-4186-bf42-3ac7f9272697 2025-12-08 17:20:41,088 - DEBUG - Requesting: http://10.0.0.129:8082/project/3d6ed21a-03ae-424f-a158-cba91da11630 2025-12-08 17:20:41,157 - INFO - Validated that VN ctest-vn4-19397918 is not found in API Server 2025-12-08 17:20:41,166 - DEBUG - VN ctest-vn4-19397918 is not present in Agent 10.0.0.129 2025-12-08 17:20:41,166 - INFO - Validated that VN ctest-vn4-19397918 is not in any agent 2025-12-08 17:20:41,180 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-19397918 info 2025-12-08 17:20:41,203 - INFO - Deleted policy ctest-policy1-70881494 2025-12-08 17:20:41,363 - DEBUG - policy ctest-policy1-70881494 is not found in API Server 2025-12-08 17:20:41,615 - DEBUG - No XMPP flaps were noticed during the test