2025-10-22 19:49:17,396 - INFO - Reading existing Domain with UUID cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:17,412 - INFO - Using existing domain ['admin_domain'](cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8) 2025-10-22 19:49:17,668 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52444208 not found, creating it 2025-10-22 19:49:18,317 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52444208, ID : a0816f51-11ae-470a-9baf-2323930346c8 2025-10-22 19:49:20,307 - INFO - ================================================================================ 2025-10-22 19:49:20,307 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 19:49:20,726 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with 2025-10-22 19:49:20,726 - INFO - Initial checks done. Running the testcase now 2025-10-22 19:49:20,726 - INFO - 2025-10-22 19:49:20,726 - INFO - ================================================================================ 2025-10-22 19:49:20,726 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 19:49:20,726 - 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 19:49:21,149 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.0.0.141': '0'}} with 2025-10-22 19:49:21,149 - INFO - Initial checks done. Running the testcase now 2025-10-22 19:49:21,149 - INFO - 2025-10-22 19:49:21,568 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056, 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 19:49:22,417 - DEBUG - Response for create_network : {'network': {'id': '85ca5b4f-7303-4097-aaa5-f8953db60861', 'name': 'ctest-vn4-84593056', 'tenant_id': 'a0816f5111ae470a9baf2323930346c8', 'project_id': 'a0816f5111ae470a9baf2323930346c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52444208', 'ctest-vn4-84593056'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-22 19:49:22,761 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc05212e-acdf-4968-aa0d-cfe26eb24386', 'name': '', 'tenant_id': 'a0816f5111ae470a9baf2323930346c8', 'network_id': '85ca5b4f-7303-4097-aaa5-f8953db60861', 'ip_version': 4, 'cidr': '72.8.218.64/26', 'allocation_pools': [{'start': '72.8.218.66', 'end': '72.8.218.126'}], 'gateway_ip': '72.8.218.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:22.567274', 'updated_at': '2025-10-22T19:49:22.567274', 'dns_server_address': '72.8.218.66', 'tags': [], 'project_id': 'a0816f5111ae470a9baf2323930346c8'}} 2025-10-22 19:49:23,033 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d5cfd5c-f01f-4329-9bfa-e97c05ed26eb', 'name': '', 'tenant_id': 'a0816f5111ae470a9baf2323930346c8', 'network_id': '85ca5b4f-7303-4097-aaa5-f8953db60861', 'ip_version': 6, 'cidr': '31ca:f429:a361:cac:ff96:d685::/96', 'allocation_pools': [{'start': '31ca:f429:a361:cac:ff96:d685:0:2', 'end': '31ca:f429:a361:cac:ff96:d685:ffff:fffe'}], 'gateway_ip': '31ca:f429:a361:cac:ff96:d685:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-22T19:49:22.904941', 'updated_at': '2025-10-22T19:49:22.904941', 'dns_server_address': '31ca:f429:a361:cac:ff96:d685:0:2', 'tags': [], 'project_id': 'a0816f5111ae470a9baf2323930346c8'}} 2025-10-22 19:49:23,110 - INFO - Created VN ctest-vn4-84593056 2025-10-22 19:49:23,167 - DEBUG - VN ctest-vn4-84593056 UUID is 85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:23,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '85ca5b4f-7303-4097-aaa5-f8953db60861', 'name': 'ctest-vn4-84593056', 'tenant_id': 'a0816f5111ae470a9baf2323930346c8', 'project_id': 'a0816f5111ae470a9baf2323930346c8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fc05212e-acdf-4968-aa0d-cfe26eb24386', '0d5cfd5c-f01f-4329-9bfa-e97c05ed26eb'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52444208', 'ctest-vn4-84593056'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52444208', 'ctest-policy1-29337382']], 'subnet_ipam': [{'subnet_cidr': '72.8.218.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31ca:f429:a361:cac:ff96:d685::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-22T19:49:22.332708', 'updated_at': '2025-10-22T19:49:22.926516'}} 2025-10-22 19:49:23,955 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:24,330 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:24,427 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:24,492 - DEBUG - Requesting: https://10.0.0.141:8082/project/a0816f51-11ae-470a-9baf-2323930346c8 2025-10-22 19:49:24,588 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:24,658 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:24,718 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:24,776 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:24,832 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/6d9365ad-2d4d-41c1-9adc-630ba0eeac6e 2025-10-22 19:49:24,892 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:49:24,892 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:24,957 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:25,029 - INFO - Verified VN network id 11 for VN 85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:25,029 - INFO - Verifications in API Server for VN ctest-vn4-84593056 passed 2025-10-22 19:49:25,029 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:25,089 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:25,148 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:25,212 - DEBUG - Requesting: https://10.0.0.141:8082/route-target/6d9365ad-2d4d-41c1-9adc-630ba0eeac6e 2025-10-22 19:49:25,351 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52444208', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9640618349130104983', 'uuid-lslong': '12296507677474162785'}, 'enable': 'true', 'created': '2025-10-22T19:49:22', 'last-modified': '2025-10-22T19:49:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.657294'} 2025-10-22 19:49:25,411 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 19:49:25,411 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-84593056 passed 2025-10-22 19:49:25,412 - DEBUG - ====Verifying policy data for ctest-vn4-84593056 in API_Server ====== 2025-10-22 19:49:25,412 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:25,468 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:25,548 - DEBUG - Requesting: https://10.0.0.141:8082/project/a0816f51-11ae-470a-9baf-2323930346c8 2025-10-22 19:49:25,644 - DEBUG - Requesting: https://10.0.0.141:8082/virtual-network/85ca5b4f-7303-4097-aaa5-f8953db60861 2025-10-22 19:49:25,706 - DEBUG - ==>Verifying data for policy with id: dbc90a94-057e-43f6-bde9-c41ad3beae31, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52444208', 'ctest-policy1-29337382'] 2025-10-22 19:49:25,706 - INFO - VN ctest-vn4-84593056 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 19:49:25,706 - DEBUG - Verifying the vn in opserver 2025-10-22 19:49:25,706 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056 virtual network link through opserver 10.0.0.141 2025-10-22 19:49:25,706 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 19:49:26,056 - DEBUG - Requesting: https://10.0.0.141:8081/analytics/uves/virtual-networks 2025-10-22 19:49:26,195 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056', 'href': 'https://10.0.0.141:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056?flat'} 2025-10-22 19:49:26,195 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52444208:ctest-vn4-84593056 is found in opserver 2025-10-22 19:49:26,308 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 19:49:26,363 - DEBUG - VRF ids for VN ctest-vn4-84593056: {} 2025-10-22 19:49:26,364 - DEBUG - ====Verifying data for ctest-policy1-29337382 in API_Server ====== 2025-10-22 19:49:26,364 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:26,420 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:26,488 - DEBUG - Requesting: https://10.0.0.141:8082/project/a0816f51-11ae-470a-9baf-2323930346c8 2025-10-22 19:49:26,588 - DEBUG - Requesting: https://10.0.0.141:8082/network-policy/dbc90a94-057e-43f6-bde9-c41ad3beae31 2025-10-22 19:49:26,654 - INFO - Verified policy ctest-policy1-29337382 in API Server, Result: True 2025-10-22 19:49:26,654 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 19:49:26,672 - INFO - Deleting VN ctest-vn4-84593056 2025-10-22 19:49:27,060 - DEBUG - Response for deleting network () 2025-10-22 19:49:27,060 - DEBUG - Requesting: https://10.0.0.141:8082/routing-instance/76af7bfd-f7f3-41e0-a9de-2ab6235a43e4 2025-10-22 19:49:27,115 - DEBUG - Response Code: 404 2025-10-22 19:49:27,115 - DEBUG - Requesting: https://10.0.0.141:8082/domains 2025-10-22 19:49:27,171 - DEBUG - Requesting: https://10.0.0.141:8082/domain/cc7bf0c9-b3f5-4805-bbd2-f13c8e4f2bc8 2025-10-22 19:49:27,239 - DEBUG - Requesting: https://10.0.0.141:8082/project/a0816f51-11ae-470a-9baf-2323930346c8 2025-10-22 19:49:27,340 - INFO - Validated that VN ctest-vn4-84593056 is not found in API Server 2025-10-22 19:49:27,443 - DEBUG - VN ctest-vn4-84593056 is not present in Agent 10.0.0.141 2025-10-22 19:49:27,443 - INFO - Validated that VN ctest-vn4-84593056 is not in any agent 2025-10-22 19:49:27,604 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-84593056 info 2025-10-22 19:49:27,636 - INFO - Deleted policy ctest-policy1-29337382 2025-10-22 19:49:27,819 - DEBUG - policy ctest-policy1-29337382 is not found in API Server 2025-10-22 19:49:28,224 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 19:49:28,224 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-22 19:49:28,224 - INFO - -------------------------------------------------------------------------------- 2025-10-22 19:49:28,653 - DEBUG - No XMPP flaps were noticed during the test 2025-10-22 19:49:28,653 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-10-22 19:49:28,653 - INFO - -------------------------------------------------------------------------------- 2025-10-22 19:49:29,488 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52444208, ID : a0816f51-11ae-470a-9baf-2323930346c8