2025-08-26 08:01:44,909 - INFO - Domain Default found not creating 2025-08-26 08:01:45,095 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-64125322 not found, creating it 2025-08-26 08:01:45,568 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-64125322, ID : 2b696df1-d8f7-4748-93a4-1f8dc73a6f17 2025-08-26 08:01:47,279 - INFO - ================================================================================ 2025-08-26 08:01:47,279 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 08:01:47,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-26 08:01:47,537 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:01:47,537 - INFO - 2025-08-26 08:01:47,537 - INFO - ================================================================================ 2025-08-26 08:01:47,537 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-26 08:01:47,538 - 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-08-26 08:01:47,832 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-26 08:01:47,832 - INFO - Initial checks done. Running the testcase now 2025-08-26 08:01:47,832 - INFO - 2025-08-26 08:01:48,230 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465, 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-64125322:ctest-vn4-58289465, 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-64125322:ctest-vn4-58289465, 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-64125322:ctest-vn4-58289465, 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-08-26 08:01:48,791 - DEBUG - Response for create_network : {'network': {'id': 'd802c3e7-539c-4eef-9919-a8ae84561926', 'name': 'ctest-vn4-58289465', 'tenant_id': '2b696df1d8f7474893a41f8dc73a6f17', 'project_id': '2b696df1d8f7474893a41f8dc73a6f17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64125322', 'ctest-vn4-58289465'], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:48,989 - DEBUG - Response for create_subnet : {'subnet': {'id': '9cca8be2-e220-4bfa-9c13-66b918bab427', 'name': '', 'tenant_id': '2b696df1d8f7474893a41f8dc73a6f17', 'network_id': 'd802c3e7-539c-4eef-9919-a8ae84561926', 'ip_version': 4, 'cidr': '87.215.192.0/26', 'allocation_pools': [{'start': '87.215.192.2', 'end': '87.215.192.62'}], 'gateway_ip': '87.215.192.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '87.215.192.2', 'tags': [], 'project_id': '2b696df1d8f7474893a41f8dc73a6f17'}} 2025-08-26 08:01:49,232 - DEBUG - Response for create_subnet : {'subnet': {'id': '3ce2021a-041f-40f1-84d2-72e61de4cba5', 'name': '', 'tenant_id': '2b696df1d8f7474893a41f8dc73a6f17', 'network_id': 'd802c3e7-539c-4eef-9919-a8ae84561926', 'ip_version': 6, 'cidr': '3d47:b45b:51a0:1b67:1bc8:ee85::/96', 'allocation_pools': [{'start': '3d47:b45b:51a0:1b67:1bc8:ee85:0:2', 'end': '3d47:b45b:51a0:1b67:1bc8:ee85:ffff:fffe'}], 'gateway_ip': '3d47:b45b:51a0:1b67:1bc8:ee85:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3d47:b45b:51a0:1b67:1bc8:ee85:0:2', 'tags': [], 'project_id': '2b696df1d8f7474893a41f8dc73a6f17'}} 2025-08-26 08:01:49,255 - INFO - Created VN ctest-vn4-58289465 2025-08-26 08:01:49,311 - DEBUG - VN ctest-vn4-58289465 UUID is d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:49,586 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd802c3e7-539c-4eef-9919-a8ae84561926', 'name': 'ctest-vn4-58289465', 'tenant_id': '2b696df1d8f7474893a41f8dc73a6f17', 'project_id': '2b696df1d8f7474893a41f8dc73a6f17', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9cca8be2-e220-4bfa-9c13-66b918bab427', '3ce2021a-041f-40f1-84d2-72e61de4cba5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64125322', 'ctest-vn4-58289465'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64125322', 'ctest-policy1-66747754']], 'subnet_ipam': [{'subnet_cidr': '87.215.192.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3d47:b45b:51a0:1b67:1bc8:ee85::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-26 08:01:49,763 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:50,102 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:50,132 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:50,148 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b696df1-d8f7-4748-93a4-1f8dc73a6f17 2025-08-26 08:01:50,236 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,257 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,270 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:50,284 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:50,302 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57aee612-dbbc-4228-8a37-dc88e083d9ac 2025-08-26 08:01:50,312 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:01:50,312 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,327 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:50,346 - INFO - Verified VN network id 9 for VN d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,346 - INFO - Verifications in API Server for VN ctest-vn4-58289465 passed 2025-08-26 08:01:50,346 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,358 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:50,365 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:50,372 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/57aee612-dbbc-4228-8a37-dc88e083d9ac 2025-08-26 08:01:50,386 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-64125322', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15565218660453469935', 'uuid-lslong': '11032034229718751526'}, 'enable': 'true', 'created': '2025-08-26T08:01:48', 'last-modified': '2025-08-26T08:01:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.868598'} 2025-08-26 08:01:50,393 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-26 08:01:50,393 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58289465 passed 2025-08-26 08:01:50,394 - DEBUG - ====Verifying policy data for ctest-vn4-58289465 in API_Server ====== 2025-08-26 08:01:50,394 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:50,399 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:50,410 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b696df1-d8f7-4748-93a4-1f8dc73a6f17 2025-08-26 08:01:50,486 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/d802c3e7-539c-4eef-9919-a8ae84561926 2025-08-26 08:01:50,497 - DEBUG - ==>Verifying data for policy with id: 6afad5ff-c679-4a65-bdb0-cf74c0846e08, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-64125322', 'ctest-policy1-66747754'] 2025-08-26 08:01:50,498 - INFO - VN ctest-vn4-58289465 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-26 08:01:50,498 - DEBUG - Verifying the vn in opserver 2025-08-26 08:01:50,498 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465 virtual network link through opserver 10.0.0.38 2025-08-26 08:01:50,498 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-26 08:01:50,836 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-26 08:01:50,895 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465?flat'} 2025-08-26 08:01:50,895 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-64125322:ctest-vn4-58289465 is found in opserver 2025-08-26 08:01:50,906 - DEBUG - Do not have enough data to verify VN in agent 2025-08-26 08:01:50,912 - DEBUG - VRF ids for VN ctest-vn4-58289465: {} 2025-08-26 08:01:50,912 - DEBUG - ====Verifying data for ctest-policy1-66747754 in API_Server ====== 2025-08-26 08:01:50,912 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:50,918 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:50,930 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b696df1-d8f7-4748-93a4-1f8dc73a6f17 2025-08-26 08:01:51,018 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/6afad5ff-c679-4a65-bdb0-cf74c0846e08 2025-08-26 08:01:51,038 - INFO - Verified policy ctest-policy1-66747754 in API Server, Result: True 2025-08-26 08:01:51,039 - INFO - Done with setup and verification, moving onto test .. 2025-08-26 08:01:51,052 - INFO - Deleting VN ctest-vn4-58289465 2025-08-26 08:01:51,220 - DEBUG - Response for deleting network () 2025-08-26 08:01:51,220 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/b3ad8830-51c9-41ae-a287-45b47d0aeffc 2025-08-26 08:01:51,227 - DEBUG - Response Code: 404 2025-08-26 08:01:51,227 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-26 08:01:51,235 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3a7cda2e-9013-41ae-ba31-bd08c5752cb6 2025-08-26 08:01:51,293 - DEBUG - Requesting: http://10.0.0.38:8082/project/2b696df1-d8f7-4748-93a4-1f8dc73a6f17 2025-08-26 08:01:51,372 - INFO - Validated that VN ctest-vn4-58289465 is not found in API Server 2025-08-26 08:01:51,385 - DEBUG - VN ctest-vn4-58289465 is not present in Agent 10.0.0.38 2025-08-26 08:01:51,385 - INFO - Validated that VN ctest-vn4-58289465 is not in any agent 2025-08-26 08:01:51,416 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58289465 info 2025-08-26 08:01:51,450 - INFO - Deleted policy ctest-policy1-66747754 2025-08-26 08:01:51,626 - DEBUG - policy ctest-policy1-66747754 is not found in API Server 2025-08-26 08:01:51,892 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 08:01:51,892 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-26 08:01:51,893 - INFO - -------------------------------------------------------------------------------- 2025-08-26 08:01:52,187 - DEBUG - No XMPP flaps were noticed during the test
2025-08-26 08:01:52,187 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-26 08:01:52,188 - INFO - -------------------------------------------------------------------------------- 2025-08-26 08:01:53,625 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-64125322, ID : 2b696df1-d8f7-4748-93a4-1f8dc73a6f17