2025-10-22 08:50:02,499 - INFO - Domain Default found not creating 2025-10-22 08:50:02,669 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80997546 not found, creating it 2025-10-22 08:50:03,139 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80997546, ID : d029fddd-3f81-4489-acdc-5b386b6c9a63 2025-10-22 08:50:04,591 - INFO - ================================================================================ 2025-10-22 08:50:04,591 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 08:50:04,847 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-22 08:50:04,848 - INFO - Initial checks done. Running the testcase now 2025-10-22 08:50:04,848 - INFO - 2025-10-22 08:50:04,848 - INFO - ================================================================================ 2025-10-22 08:50:04,848 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 08:50:04,848 - 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-22 08:50:05,146 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-10-22 08:50:05,146 - INFO - Initial checks done. Running the testcase now 2025-10-22 08:50:05,146 - INFO - 2025-10-22 08:50:05,517 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028, 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-80997546:ctest-vn4-08866028, 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-80997546:ctest-vn4-08866028, 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-80997546:ctest-vn4-08866028, 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-22 08:50:06,051 - DEBUG - Response for create_network : {'network': {'id': '310c943c-1847-4f1d-a789-4d964102745f', 'name': 'ctest-vn4-08866028', 'tenant_id': 'd029fddd3f814489acdc5b386b6c9a63', 'project_id': 'd029fddd3f814489acdc5b386b6c9a63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80997546', 'ctest-vn4-08866028'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:50:06,255 - DEBUG - Response for create_subnet : {'subnet': {'id': '86bfb171-aaa2-43d6-a6b2-83698a46541a', 'name': '', 'tenant_id': 'd029fddd3f814489acdc5b386b6c9a63', 'network_id': '310c943c-1847-4f1d-a789-4d964102745f', 'ip_version': 4, 'cidr': '96.96.221.64/26', 'allocation_pools': [{'start': '96.96.221.66', 'end': '96.96.221.126'}], 'gateway_ip': '96.96.221.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '96.96.221.66', 'tags': [], 'project_id': 'd029fddd3f814489acdc5b386b6c9a63'}} 2025-10-22 08:50:06,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '4afe3c71-e347-465a-8fdd-c4ad619d5826', 'name': '', 'tenant_id': 'd029fddd3f814489acdc5b386b6c9a63', 'network_id': '310c943c-1847-4f1d-a789-4d964102745f', 'ip_version': 6, 'cidr': '3606:6589:15a8:2f01:3b12:d061::/96', 'allocation_pools': [{'start': '3606:6589:15a8:2f01:3b12:d061:0:2', 'end': '3606:6589:15a8:2f01:3b12:d061:ffff:fffe'}], 'gateway_ip': '3606:6589:15a8:2f01:3b12:d061:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3606:6589:15a8:2f01:3b12:d061:0:2', 'tags': [], 'project_id': 'd029fddd3f814489acdc5b386b6c9a63'}} 2025-10-22 08:50:06,481 - INFO - Created VN ctest-vn4-08866028 2025-10-22 08:50:06,534 - DEBUG - VN ctest-vn4-08866028 UUID is 310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:06,757 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '310c943c-1847-4f1d-a789-4d964102745f', 'name': 'ctest-vn4-08866028', 'tenant_id': 'd029fddd3f814489acdc5b386b6c9a63', 'project_id': 'd029fddd3f814489acdc5b386b6c9a63', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['86bfb171-aaa2-43d6-a6b2-83698a46541a', '4afe3c71-e347-465a-8fdd-c4ad619d5826'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80997546', 'ctest-vn4-08866028'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80997546', 'ctest-policy1-42528439']], 'subnet_ipam': [{'subnet_cidr': '96.96.221.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3606:6589:15a8:2f01:3b12:d061::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 08:50:06,915 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-22 08:50:07,213 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-22 08:50:07,241 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5810d57b-20d0-413c-98c7-7607799c096e 2025-10-22 08:50:07,253 - DEBUG - Requesting: http://10.0.0.33:8082/project/d029fddd-3f81-4489-acdc-5b386b6c9a63 2025-10-22 08:50:07,320 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,332 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,342 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:07,349 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:07,355 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5704d246-7d75-4dd3-8ac2-e41e1aa15c31 2025-10-22 08:50:07,361 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:50:07,361 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,370 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:07,383 - INFO - Verified VN network id 11 for VN 310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,383 - INFO - Verifications in API Server for VN ctest-vn4-08866028 passed 2025-10-22 08:50:07,383 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,392 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:07,399 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:07,405 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5704d246-7d75-4dd3-8ac2-e41e1aa15c31 2025-10-22 08:50:07,415 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80997546', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3534362793405271837', 'uuid-lslong': '12072265583874438239'}, 'enable': 'true', 'created': '2025-10-22T08:50:06', 'last-modified': '2025-10-22T08:50:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707526'} 2025-10-22 08:50:07,421 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 08:50:07,421 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-08866028 passed 2025-10-22 08:50:07,421 - DEBUG - ====Verifying policy data for ctest-vn4-08866028 in API_Server ====== 2025-10-22 08:50:07,421 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-22 08:50:07,427 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5810d57b-20d0-413c-98c7-7607799c096e 2025-10-22 08:50:07,436 - DEBUG - Requesting: http://10.0.0.33:8082/project/d029fddd-3f81-4489-acdc-5b386b6c9a63 2025-10-22 08:50:07,504 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/310c943c-1847-4f1d-a789-4d964102745f 2025-10-22 08:50:07,513 - DEBUG - ==>Verifying data for policy with id: 25fba151-abdd-4480-aa7b-0d8a1200b3c0, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80997546', 'ctest-policy1-42528439'] 2025-10-22 08:50:07,513 - INFO - VN ctest-vn4-08866028 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 08:50:07,513 - DEBUG - Verifying the vn in opserver 2025-10-22 08:50:07,513 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028 virtual network link through opserver 10.0.0.33 2025-10-22 08:50:07,513 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-22 08:50:07,821 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-22 08:50:07,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028?flat'} 2025-10-22 08:50:07,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80997546:ctest-vn4-08866028 is found in opserver 2025-10-22 08:50:07,890 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 08:50:07,894 - DEBUG - VRF ids for VN ctest-vn4-08866028: {} 2025-10-22 08:50:07,895 - DEBUG - ====Verifying data for ctest-policy1-42528439 in API_Server ====== 2025-10-22 08:50:07,895 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-22 08:50:07,901 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5810d57b-20d0-413c-98c7-7607799c096e 2025-10-22 08:50:07,915 - DEBUG - Requesting: http://10.0.0.33:8082/project/d029fddd-3f81-4489-acdc-5b386b6c9a63 2025-10-22 08:50:07,983 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/25fba151-abdd-4480-aa7b-0d8a1200b3c0 2025-10-22 08:50:07,992 - INFO - Verified policy ctest-policy1-42528439 in API Server, Result: True 2025-10-22 08:50:07,992 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 08:50:08,000 - INFO - Deleting VN ctest-vn4-08866028 2025-10-22 08:50:08,160 - DEBUG - Response for deleting network () 2025-10-22 08:50:08,160 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/6259ccff-6e2c-466d-97e4-a2622d4aefb8 2025-10-22 08:50:08,166 - DEBUG - Response Code: 404 2025-10-22 08:50:08,166 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-10-22 08:50:08,173 - DEBUG - Requesting: http://10.0.0.33:8082/domain/5810d57b-20d0-413c-98c7-7607799c096e 2025-10-22 08:50:08,228 - DEBUG - Requesting: http://10.0.0.33:8082/project/d029fddd-3f81-4489-acdc-5b386b6c9a63 2025-10-22 08:50:08,303 - INFO - Validated that VN ctest-vn4-08866028 is not found in API Server 2025-10-22 08:50:08,314 - DEBUG - VN ctest-vn4-08866028 is not present in Agent 10.0.0.33 2025-10-22 08:50:08,314 - INFO - Validated that VN ctest-vn4-08866028 is not in any agent 2025-10-22 08:50:08,328 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-08866028 info 2025-10-22 08:50:08,355 - INFO - Deleted policy ctest-policy1-42528439 2025-10-22 08:50:08,522 - DEBUG - policy ctest-policy1-42528439 is not found in API Server 2025-10-22 08:50:08,777 - DEBUG - No XMPP flaps were noticed during the test