2026-02-04 06:30:56,185 - INFO - Domain Default found not creating 2026-02-04 06:30:56,367 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-48691721 not found, creating it 2026-02-04 06:30:56,863 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-48691721, ID : 2d491aaf-2421-4b40-b7a6-e79e27257925 2026-02-04 06:30:58,549 - INFO - ================================================================================ 2026-02-04 06:30:58,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 06:30:58,818 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 06:30:58,818 - INFO - Initial checks done. Running the testcase now 2026-02-04 06:30:58,818 - INFO - 2026-02-04 06:30:58,819 - INFO - ================================================================================ 2026-02-04 06:30:58,819 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-04 06:30:58,819 - 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. 2026-02-04 06:30:59,104 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2026-02-04 06:30:59,104 - INFO - Initial checks done. Running the testcase now 2026-02-04 06:30:59,104 - INFO - 2026-02-04 06:30:59,466 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671, 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-48691721:ctest-vn4-29778671, 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-48691721:ctest-vn4-29778671, 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-48691721:ctest-vn4-29778671, 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] 2026-02-04 06:30:59,975 - DEBUG - Response for create_network : {'network': {'id': 'ea3137f1-8f94-42e9-8736-2f7f2511eccd', 'name': 'ctest-vn4-29778671', 'tenant_id': '2d491aaf24214b40b7a6e79e27257925', 'project_id': '2d491aaf24214b40b7a6e79e27257925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48691721', 'ctest-vn4-29778671'], 'port_security_enabled': True, 'description': ''}} 2026-02-04 06:31:00,148 - DEBUG - Response for create_subnet : {'subnet': {'id': '7684796a-0c0f-48f6-b35b-6383ecf24e6a', 'name': '', 'tenant_id': '2d491aaf24214b40b7a6e79e27257925', 'network_id': 'ea3137f1-8f94-42e9-8736-2f7f2511eccd', 'ip_version': 4, 'cidr': '133.170.192.0/26', 'allocation_pools': [{'start': '133.170.192.2', 'end': '133.170.192.62'}], 'gateway_ip': '133.170.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.170.192.2', 'tags': [], 'project_id': '2d491aaf24214b40b7a6e79e27257925'}} 2026-02-04 06:31:00,294 - DEBUG - Response for create_subnet : {'subnet': {'id': '078ed4fa-83db-4429-8010-22b52102e0f5', 'name': '', 'tenant_id': '2d491aaf24214b40b7a6e79e27257925', 'network_id': 'ea3137f1-8f94-42e9-8736-2f7f2511eccd', 'ip_version': 6, 'cidr': '33e1:2c16:3bf3:6d32:8d6f:a74b::/96', 'allocation_pools': [{'start': '33e1:2c16:3bf3:6d32:8d6f:a74b:0:2', 'end': '33e1:2c16:3bf3:6d32:8d6f:a74b:ffff:fffe'}], 'gateway_ip': '33e1:2c16:3bf3:6d32:8d6f:a74b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '33e1:2c16:3bf3:6d32:8d6f:a74b:0:2', 'tags': [], 'project_id': '2d491aaf24214b40b7a6e79e27257925'}} 2026-02-04 06:31:00,314 - INFO - Created VN ctest-vn4-29778671 2026-02-04 06:31:00,367 - DEBUG - VN ctest-vn4-29778671 UUID is ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:00,576 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ea3137f1-8f94-42e9-8736-2f7f2511eccd', 'name': 'ctest-vn4-29778671', 'tenant_id': '2d491aaf24214b40b7a6e79e27257925', 'project_id': '2d491aaf24214b40b7a6e79e27257925', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7684796a-0c0f-48f6-b35b-6383ecf24e6a', '078ed4fa-83db-4429-8010-22b52102e0f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48691721', 'ctest-vn4-29778671'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48691721', 'ctest-policy1-89258311']], 'subnet_ipam': [{'subnet_cidr': '133.170.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '33e1:2c16:3bf3:6d32:8d6f:a74b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-04 06:31:00,743 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 06:31:01,051 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 06:31:01,085 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2718dcf-be8a-4092-b32c-ed3b2c379266 2026-02-04 06:31:01,097 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d491aaf-2421-4b40-b7a6-e79e27257925 2026-02-04 06:31:01,169 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,183 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,192 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:01,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:01,206 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba2da460-c585-4bbb-9c2f-34e30787382d 2026-02-04 06:31:01,213 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 06:31:01,213 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,223 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:01,237 - INFO - Verified VN network id 12 for VN ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,237 - INFO - Verifications in API Server for VN ctest-vn4-29778671 passed 2026-02-04 06:31:01,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,246 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:01,252 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:01,259 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ba2da460-c585-4bbb-9c2f-34e30787382d 2026-02-04 06:31:01,272 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-48691721', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16875330789369463529', 'uuid-lslong': '9743027066991930573'}, 'enable': 'true', 'created': '2026-02-04T06:30:59', 'last-modified': '2026-02-04T06:31:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.722708'} 2026-02-04 06:31:01,278 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-04 06:31:01,278 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-29778671 passed 2026-02-04 06:31:01,278 - DEBUG - ====Verifying policy data for ctest-vn4-29778671 in API_Server ====== 2026-02-04 06:31:01,278 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 06:31:01,283 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2718dcf-be8a-4092-b32c-ed3b2c379266 2026-02-04 06:31:01,295 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d491aaf-2421-4b40-b7a6-e79e27257925 2026-02-04 06:31:01,374 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/ea3137f1-8f94-42e9-8736-2f7f2511eccd 2026-02-04 06:31:01,386 - DEBUG - ==>Verifying data for policy with id: dee1ce15-507f-4166-a0f1-c6c7b0f7f309, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-48691721', 'ctest-policy1-89258311'] 2026-02-04 06:31:01,386 - INFO - VN ctest-vn4-29778671 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-04 06:31:01,387 - DEBUG - Verifying the vn in opserver 2026-02-04 06:31:01,387 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671 virtual network link through opserver 10.0.0.38 2026-02-04 06:31:01,387 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 06:31:01,686 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-02-04 06:31:01,753 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671?flat'} 2026-02-04 06:31:01,753 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-48691721:ctest-vn4-29778671 is found in opserver 2026-02-04 06:31:01,762 - DEBUG - Do not have enough data to verify VN in agent 2026-02-04 06:31:01,767 - DEBUG - VRF ids for VN ctest-vn4-29778671: {} 2026-02-04 06:31:01,767 - DEBUG - ====Verifying data for ctest-policy1-89258311 in API_Server ====== 2026-02-04 06:31:01,767 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 06:31:01,773 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2718dcf-be8a-4092-b32c-ed3b2c379266 2026-02-04 06:31:01,783 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d491aaf-2421-4b40-b7a6-e79e27257925 2026-02-04 06:31:01,856 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/dee1ce15-507f-4166-a0f1-c6c7b0f7f309 2026-02-04 06:31:01,865 - INFO - Verified policy ctest-policy1-89258311 in API Server, Result: True 2026-02-04 06:31:01,865 - INFO - Done with setup and verification, moving onto test .. 2026-02-04 06:31:01,875 - INFO - Deleting VN ctest-vn4-29778671 2026-02-04 06:31:02,018 - DEBUG - Response for deleting network () 2026-02-04 06:31:02,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61c17b6c-89de-4251-9eb0-265aa423dd13 2026-02-04 06:31:02,024 - DEBUG - Response Code: 404 2026-02-04 06:31:02,024 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-02-04 06:31:02,031 - DEBUG - Requesting: http://10.0.0.38:8082/domain/d2718dcf-be8a-4092-b32c-ed3b2c379266 2026-02-04 06:31:02,087 - DEBUG - Requesting: http://10.0.0.38:8082/project/2d491aaf-2421-4b40-b7a6-e79e27257925 2026-02-04 06:31:02,159 - INFO - Validated that VN ctest-vn4-29778671 is not found in API Server 2026-02-04 06:31:02,170 - DEBUG - VN ctest-vn4-29778671 is not present in Agent 10.0.0.38 2026-02-04 06:31:02,170 - INFO - Validated that VN ctest-vn4-29778671 is not in any agent 2026-02-04 06:31:02,185 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-29778671 info 2026-02-04 06:31:02,212 - INFO - Deleted policy ctest-policy1-89258311 2026-02-04 06:31:02,382 - DEBUG - policy ctest-policy1-89258311 is not found in API Server 2026-02-04 06:31:02,641 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 06:31:02,641 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-04 06:31:02,642 - INFO - -------------------------------------------------------------------------------- 2026-02-04 06:31:02,939 - DEBUG - No XMPP flaps were noticed during the test
2026-02-04 06:31:02,939 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-02-04 06:31:02,939 - INFO - -------------------------------------------------------------------------------- 2026-02-04 06:31:03,631 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-48691721, ID : 2d491aaf-2421-4b40-b7a6-e79e27257925