2025-09-09 15:22:27,075 - INFO - Domain Default found not creating 2025-09-09 15:22:27,198 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26805003 not found, creating it 2025-09-09 15:22:27,612 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26805003, ID : e1560285-add8-4f0a-be46-4dac1a6ded5a 2025-09-09 15:22:28,949 - INFO - ================================================================================ 2025-09-09 15:22:28,949 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 15:22:29,206 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-09 15:22:29,206 - INFO - Initial checks done. Running the testcase now 2025-09-09 15:22:29,206 - INFO - 2025-09-09 15:22:29,206 - INFO - ================================================================================ 2025-09-09 15:22:29,206 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 15:22:29,207 - 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-09-09 15:22:29,493 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.254': '0'}} with 2025-09-09 15:22:29,493 - INFO - Initial checks done. Running the testcase now 2025-09-09 15:22:29,493 - INFO - 2025-09-09 15:22:29,829 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236, 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-26805003:ctest-vn4-01683236, 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-26805003:ctest-vn4-01683236, 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-26805003:ctest-vn4-01683236, 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-09-09 15:22:30,315 - DEBUG - Response for create_network : {'network': {'id': 'f7515563-28ee-4e2f-bcaa-25963cbf0b34', 'name': 'ctest-vn4-01683236', 'tenant_id': 'e1560285add84f0abe464dac1a6ded5a', 'project_id': 'e1560285add84f0abe464dac1a6ded5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26805003', 'ctest-vn4-01683236'], 'port_security_enabled': True, 'description': ''}} 2025-09-09 15:22:30,473 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ecdf69e8-5c0f-49d2-bbcc-da82abb4eb02', 'name': '', 'tenant_id': 'e1560285add84f0abe464dac1a6ded5a', 'network_id': 'f7515563-28ee-4e2f-bcaa-25963cbf0b34', 'ip_version': 4, 'cidr': '68.84.34.128/26', 'allocation_pools': [{'start': '68.84.34.130', 'end': '68.84.34.190'}], 'gateway_ip': '68.84.34.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.84.34.130', 'tags': [], 'project_id': 'e1560285add84f0abe464dac1a6ded5a'}} 2025-09-09 15:22:30,658 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ec1dd05-0bea-4ae4-8397-2e8eaa8ed41b', 'name': '', 'tenant_id': 'e1560285add84f0abe464dac1a6ded5a', 'network_id': 'f7515563-28ee-4e2f-bcaa-25963cbf0b34', 'ip_version': 6, 'cidr': '379a:a3d8:9a3e:92d5:7040:2ad::/96', 'allocation_pools': [{'start': '379a:a3d8:9a3e:92d5:7040:2ad:0:2', 'end': '379a:a3d8:9a3e:92d5:7040:2ad:ffff:fffe'}], 'gateway_ip': '379a:a3d8:9a3e:92d5:7040:2ad:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '379a:a3d8:9a3e:92d5:7040:2ad:0:2', 'tags': [], 'project_id': 'e1560285add84f0abe464dac1a6ded5a'}} 2025-09-09 15:22:30,676 - INFO - Created VN ctest-vn4-01683236 2025-09-09 15:22:30,724 - DEBUG - VN ctest-vn4-01683236 UUID is f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:30,900 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f7515563-28ee-4e2f-bcaa-25963cbf0b34', 'name': 'ctest-vn4-01683236', 'tenant_id': 'e1560285add84f0abe464dac1a6ded5a', 'project_id': 'e1560285add84f0abe464dac1a6ded5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ecdf69e8-5c0f-49d2-bbcc-da82abb4eb02', '4ec1dd05-0bea-4ae4-8397-2e8eaa8ed41b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26805003', 'ctest-vn4-01683236'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26805003', 'ctest-policy1-10102794']], 'subnet_ipam': [{'subnet_cidr': '68.84.34.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '379a:a3d8:9a3e:92d5:7040:2ad::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-09 15:22:31,060 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 15:22:31,349 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 15:22:31,376 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5 2025-09-09 15:22:31,388 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1560285-add8-4f0a-be46-4dac1a6ded5a 2025-09-09 15:22:31,471 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,482 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,491 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:31,498 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:31,507 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9447d166-85c2-41d9-8403-c0c5c7231d1c 2025-09-09 15:22:31,513 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 15:22:31,513 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,521 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:31,592 - INFO - Verified VN network id 12 for VN f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,592 - INFO - Verifications in API Server for VN ctest-vn4-01683236 passed 2025-09-09 15:22:31,592 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,601 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:31,607 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:31,614 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9447d166-85c2-41d9-8403-c0c5c7231d1c 2025-09-09 15:22:31,625 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26805003', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17821119084858592815', 'uuid-lslong': '13594719752365738804'}, 'enable': 'true', 'created': '2025-09-09T15:22:30', 'last-modified': '2025-09-09T15:22:30', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.747751'} 2025-09-09 15:22:31,631 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 15:22:31,631 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-01683236 passed 2025-09-09 15:22:31,631 - DEBUG - ====Verifying policy data for ctest-vn4-01683236 in API_Server ====== 2025-09-09 15:22:31,631 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 15:22:31,637 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5 2025-09-09 15:22:31,647 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1560285-add8-4f0a-be46-4dac1a6ded5a 2025-09-09 15:22:31,717 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/f7515563-28ee-4e2f-bcaa-25963cbf0b34 2025-09-09 15:22:31,725 - DEBUG - ==>Verifying data for policy with id: 89ab15ab-6b0f-407e-b18b-6a976285d720, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26805003', 'ctest-policy1-10102794'] 2025-09-09 15:22:31,725 - INFO - VN ctest-vn4-01683236 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-09 15:22:31,725 - DEBUG - Verifying the vn in opserver 2025-09-09 15:22:31,725 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236 virtual network link through opserver 10.0.0.22 2025-09-09 15:22:31,725 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-09 15:22:32,013 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-09 15:22:32,069 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236?flat'} 2025-09-09 15:22:32,069 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26805003:ctest-vn4-01683236 is found in opserver 2025-09-09 15:22:32,080 - DEBUG - Do not have enough data to verify VN in agent 2025-09-09 15:22:32,084 - DEBUG - VRF ids for VN ctest-vn4-01683236: {} 2025-09-09 15:22:32,085 - DEBUG - ====Verifying data for ctest-policy1-10102794 in API_Server ====== 2025-09-09 15:22:32,085 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 15:22:32,090 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5 2025-09-09 15:22:32,099 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1560285-add8-4f0a-be46-4dac1a6ded5a 2025-09-09 15:22:32,169 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/89ab15ab-6b0f-407e-b18b-6a976285d720 2025-09-09 15:22:32,180 - INFO - Verified policy ctest-policy1-10102794 in API Server, Result: True 2025-09-09 15:22:32,180 - INFO - Done with setup and verification, moving onto test .. 2025-09-09 15:22:32,188 - INFO - Deleting VN ctest-vn4-01683236 2025-09-09 15:22:32,302 - DEBUG - Response for deleting network () 2025-09-09 15:22:32,302 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/bf0920ed-0532-4d4f-a160-72de21200a48 2025-09-09 15:22:32,307 - DEBUG - Response Code: 404 2025-09-09 15:22:32,307 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-09 15:22:32,311 - DEBUG - Requesting: http://10.0.0.22:8082/domain/f5af58f8-1851-4fbb-a315-4406264c79a5 2025-09-09 15:22:32,361 - DEBUG - Requesting: http://10.0.0.22:8082/project/e1560285-add8-4f0a-be46-4dac1a6ded5a 2025-09-09 15:22:32,430 - INFO - Validated that VN ctest-vn4-01683236 is not found in API Server 2025-09-09 15:22:32,439 - DEBUG - VN ctest-vn4-01683236 is not present in Agent 10.0.0.22 2025-09-09 15:22:32,439 - INFO - Validated that VN ctest-vn4-01683236 is not in any agent 2025-09-09 15:22:32,451 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-01683236 info 2025-09-09 15:22:32,470 - INFO - Deleted policy ctest-policy1-10102794 2025-09-09 15:22:32,636 - DEBUG - policy ctest-policy1-10102794 is not found in API Server 2025-09-09 15:22:32,895 - DEBUG - No XMPP flaps were noticed during the test 2025-09-09 15:22:32,895 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-09 15:22:32,895 - INFO - -------------------------------------------------------------------------------- 2025-09-09 15:22:33,177 - DEBUG - No XMPP flaps were noticed during the test 2025-09-09 15:22:33,177 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-09-09 15:22:33,177 - INFO - -------------------------------------------------------------------------------- 2025-09-09 15:22:33,834 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26805003, ID : e1560285-add8-4f0a-be46-4dac1a6ded5a