2025-09-09 07:04:34,474 - INFO - Domain Default found not creating 2025-09-09 07:04:34,632 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-86001381 not found, creating it 2025-09-09 07:04:35,096 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-86001381, ID : fa58f7ca-5880-463d-8eb4-3f74b6d979dd 2025-09-09 07:04:36,662 - INFO - ================================================================================ 2025-09-09 07:04:36,663 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 07:04:36,921 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-09 07:04:36,921 - INFO - Initial checks done. Running the testcase now 2025-09-09 07:04:36,921 - INFO - 2025-09-09 07:04:36,921 - INFO - ================================================================================ 2025-09-09 07:04:36,921 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-09 07:04:36,921 - 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 07:04:37,207 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-09 07:04:37,207 - INFO - Initial checks done. Running the testcase now 2025-09-09 07:04:37,207 - INFO - 2025-09-09 07:04:37,598 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708, 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-86001381:ctest-vn4-26236708, 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-86001381:ctest-vn4-26236708, 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-86001381:ctest-vn4-26236708, 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 07:04:38,147 - DEBUG - Response for create_network : {'network': {'id': '309308e0-1150-48a2-882c-339eb1ee5004', 'name': 'ctest-vn4-26236708', 'tenant_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'project_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86001381', 'ctest-vn4-26236708'], 'port_security_enabled': True, 'description': ''}} 2025-09-09 07:04:38,347 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e5a3b49e-c5d9-4b46-b62e-da93a9003f96', 'name': '', 'tenant_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'network_id': '309308e0-1150-48a2-882c-339eb1ee5004', 'ip_version': 4, 'cidr': '169.121.64.192/26', 'allocation_pools': [{'start': '169.121.64.194', 'end': '169.121.64.254'}], 'gateway_ip': '169.121.64.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.121.64.194', 'tags': [], 'project_id': 'fa58f7ca5880463d8eb43f74b6d979dd'}} 2025-09-09 07:04:38,521 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f00bff8e-d976-4164-a0a8-89d6d6e6a545', 'name': '', 'tenant_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'network_id': '309308e0-1150-48a2-882c-339eb1ee5004', 'ip_version': 6, 'cidr': '3a18:d76:92dd:e372:70b7:45b2::/96', 'allocation_pools': [{'start': '3a18:d76:92dd:e372:70b7:45b2:0:2', 'end': '3a18:d76:92dd:e372:70b7:45b2:ffff:fffe'}], 'gateway_ip': '3a18:d76:92dd:e372:70b7:45b2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3a18:d76:92dd:e372:70b7:45b2:0:2', 'tags': [], 'project_id': 'fa58f7ca5880463d8eb43f74b6d979dd'}} 2025-09-09 07:04:38,543 - INFO - Created VN ctest-vn4-26236708 2025-09-09 07:04:38,595 - DEBUG - VN ctest-vn4-26236708 UUID is 309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:38,801 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '309308e0-1150-48a2-882c-339eb1ee5004', 'name': 'ctest-vn4-26236708', 'tenant_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'project_id': 'fa58f7ca5880463d8eb43f74b6d979dd', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e5a3b49e-c5d9-4b46-b62e-da93a9003f96', 'f00bff8e-d976-4164-a0a8-89d6d6e6a545'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86001381', 'ctest-vn4-26236708'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86001381', 'ctest-policy1-48057959']], 'subnet_ipam': [{'subnet_cidr': '169.121.64.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3a18:d76:92dd:e372:70b7:45b2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-09 07:04:38,970 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 07:04:39,302 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 07:04:39,330 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343 2025-09-09 07:04:39,344 - DEBUG - Requesting: http://10.0.0.48:8082/project/fa58f7ca-5880-463d-8eb4-3f74b6d979dd 2025-09-09 07:04:39,413 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,425 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,435 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:39,444 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:39,452 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bebc47d3-0a1a-4694-96d8-6301414ac982 2025-09-09 07:04:39,459 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 07:04:39,459 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,468 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:39,483 - INFO - Verified VN network id 11 for VN 309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,483 - INFO - Verifications in API Server for VN ctest-vn4-26236708 passed 2025-09-09 07:04:39,483 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,492 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:39,499 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:39,506 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bebc47d3-0a1a-4694-96d8-6301414ac982 2025-09-09 07:04:39,517 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-86001381', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3500151093853178018', 'uuid-lslong': '9812274444816502788'}, 'enable': 'true', 'created': '2025-09-09T07:04:38', 'last-modified': '2025-09-09T07:04:38', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.744875'} 2025-09-09 07:04:39,523 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-09 07:04:39,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-26236708 passed 2025-09-09 07:04:39,523 - DEBUG - ====Verifying policy data for ctest-vn4-26236708 in API_Server ====== 2025-09-09 07:04:39,524 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 07:04:39,529 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343 2025-09-09 07:04:39,540 - DEBUG - Requesting: http://10.0.0.48:8082/project/fa58f7ca-5880-463d-8eb4-3f74b6d979dd 2025-09-09 07:04:39,606 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/309308e0-1150-48a2-882c-339eb1ee5004 2025-09-09 07:04:39,616 - DEBUG - ==>Verifying data for policy with id: 23118e3c-33a1-4608-b915-d43d3c9ef35f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-86001381', 'ctest-policy1-48057959'] 2025-09-09 07:04:39,616 - INFO - VN ctest-vn4-26236708 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-09 07:04:39,616 - DEBUG - Verifying the vn in opserver 2025-09-09 07:04:39,616 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708 virtual network link through opserver 10.0.0.48 2025-09-09 07:04:39,616 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-09 07:04:39,946 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-09 07:04:40,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708?flat'} 2025-09-09 07:04:40,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-86001381:ctest-vn4-26236708 is found in opserver 2025-09-09 07:04:40,015 - DEBUG - Do not have enough data to verify VN in agent 2025-09-09 07:04:40,021 - DEBUG - VRF ids for VN ctest-vn4-26236708: {} 2025-09-09 07:04:40,021 - DEBUG - ====Verifying data for ctest-policy1-48057959 in API_Server ====== 2025-09-09 07:04:40,021 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 07:04:40,027 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343 2025-09-09 07:04:40,038 - DEBUG - Requesting: http://10.0.0.48:8082/project/fa58f7ca-5880-463d-8eb4-3f74b6d979dd 2025-09-09 07:04:40,115 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/23118e3c-33a1-4608-b915-d43d3c9ef35f 2025-09-09 07:04:40,126 - INFO - Verified policy ctest-policy1-48057959 in API Server, Result: True 2025-09-09 07:04:40,126 - INFO - Done with setup and verification, moving onto test .. 2025-09-09 07:04:40,134 - INFO - Deleting VN ctest-vn4-26236708 2025-09-09 07:04:40,333 - DEBUG - Response for deleting network () 2025-09-09 07:04:40,333 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/d17dad87-f609-468f-af8f-07e0a99b1c32 2025-09-09 07:04:40,337 - DEBUG - Response Code: 404 2025-09-09 07:04:40,338 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-09 07:04:40,342 - DEBUG - Requesting: http://10.0.0.48:8082/domain/466173c5-d85f-4e10-a140-912a3b737343 2025-09-09 07:04:40,396 - DEBUG - Requesting: http://10.0.0.48:8082/project/fa58f7ca-5880-463d-8eb4-3f74b6d979dd 2025-09-09 07:04:40,466 - INFO - Validated that VN ctest-vn4-26236708 is not found in API Server 2025-09-09 07:04:40,475 - DEBUG - VN ctest-vn4-26236708 is not present in Agent 10.0.0.48 2025-09-09 07:04:40,475 - INFO - Validated that VN ctest-vn4-26236708 is not in any agent 2025-09-09 07:04:40,487 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-26236708 info 2025-09-09 07:04:40,526 - INFO - Deleted policy ctest-policy1-48057959 2025-09-09 07:04:40,690 - DEBUG - policy ctest-policy1-48057959 is not found in API Server 2025-09-09 07:04:40,962 - DEBUG - No XMPP flaps were noticed during the test