2025-08-25 02:16:05,953 - INFO - Domain Default found not creating 2025-08-25 02:16:06,080 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-74918942 not found, creating it 2025-08-25 02:16:06,539 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-74918942, ID : 5411791d-8df0-4a7a-abe7-97e504081f47 2025-08-25 02:16:07,878 - INFO - ================================================================================ 2025-08-25 02:16:07,878 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 02:16:08,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-08-25 02:16:08,140 - INFO - Initial checks done. Running the testcase now 2025-08-25 02:16:08,140 - INFO - 2025-08-25 02:16:08,140 - INFO - ================================================================================ 2025-08-25 02:16:08,140 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 02:16:08,140 - 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-25 02:16:08,427 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-08-25 02:16:08,427 - INFO - Initial checks done. Running the testcase now 2025-08-25 02:16:08,427 - INFO - 2025-08-25 02:16:08,762 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287, 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-74918942:ctest-vn4-94402287, 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-74918942:ctest-vn4-94402287, 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-74918942:ctest-vn4-94402287, 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-25 02:16:09,282 - DEBUG - Response for create_network : {'network': {'id': 'f232356a-4f35-450a-be73-27a3067f24b9', 'name': 'ctest-vn4-94402287', 'tenant_id': '5411791d8df04a7aabe797e504081f47', 'project_id': '5411791d8df04a7aabe797e504081f47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74918942', 'ctest-vn4-94402287'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 02:16:09,525 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fcdd221e-041e-43ce-8063-0e028ab39d28', 'name': '', 'tenant_id': '5411791d8df04a7aabe797e504081f47', 'network_id': 'f232356a-4f35-450a-be73-27a3067f24b9', 'ip_version': 4, 'cidr': '159.125.154.64/26', 'allocation_pools': [{'start': '159.125.154.66', 'end': '159.125.154.126'}], 'gateway_ip': '159.125.154.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '159.125.154.66', 'tags': [], 'project_id': '5411791d8df04a7aabe797e504081f47'}} 2025-08-25 02:16:09,719 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b585146a-01da-410e-9e06-c78b70cf3e06', 'name': '', 'tenant_id': '5411791d8df04a7aabe797e504081f47', 'network_id': 'f232356a-4f35-450a-be73-27a3067f24b9', 'ip_version': 6, 'cidr': '3475:5172:2e4:e6da:b054:3dab::/96', 'allocation_pools': [{'start': '3475:5172:2e4:e6da:b054:3dab:0:2', 'end': '3475:5172:2e4:e6da:b054:3dab:ffff:fffe'}], 'gateway_ip': '3475:5172:2e4:e6da:b054:3dab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3475:5172:2e4:e6da:b054:3dab:0:2', 'tags': [], 'project_id': '5411791d8df04a7aabe797e504081f47'}} 2025-08-25 02:16:09,740 - INFO - Created VN ctest-vn4-94402287 2025-08-25 02:16:09,794 - DEBUG - VN ctest-vn4-94402287 UUID is f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:09,996 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f232356a-4f35-450a-be73-27a3067f24b9', 'name': 'ctest-vn4-94402287', 'tenant_id': '5411791d8df04a7aabe797e504081f47', 'project_id': '5411791d8df04a7aabe797e504081f47', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['fcdd221e-041e-43ce-8063-0e028ab39d28', 'b585146a-01da-410e-9e06-c78b70cf3e06'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74918942', 'ctest-vn4-94402287'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74918942', 'ctest-policy1-53983753']], 'subnet_ipam': [{'subnet_cidr': '159.125.154.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3475:5172:2e4:e6da:b054:3dab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 02:16:10,166 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-25 02:16:10,453 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-25 02:16:10,480 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004 2025-08-25 02:16:10,492 - DEBUG - Requesting: http://10.0.0.50:8082/project/5411791d-8df0-4a7a-abe7-97e504081f47 2025-08-25 02:16:10,580 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,596 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,606 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:10,613 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:10,624 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/05036a1e-9793-4dea-813b-7c263b4d8627 2025-08-25 02:16:10,630 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 02:16:10,630 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,639 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:10,656 - INFO - Verified VN network id 11 for VN f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,657 - INFO - Verifications in API Server for VN ctest-vn4-94402287 passed 2025-08-25 02:16:10,657 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,670 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:10,677 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:10,685 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/05036a1e-9793-4dea-813b-7c263b4d8627 2025-08-25 02:16:10,698 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-74918942', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17452070236725789962', 'uuid-lslong': '13723356070670181561'}, 'enable': 'true', 'created': '2025-08-25T02:16:09', 'last-modified': '2025-08-25T02:16:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.733219'} 2025-08-25 02:16:10,704 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 02:16:10,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-94402287 passed 2025-08-25 02:16:10,705 - DEBUG - ====Verifying policy data for ctest-vn4-94402287 in API_Server ====== 2025-08-25 02:16:10,705 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-25 02:16:10,714 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004 2025-08-25 02:16:10,726 - DEBUG - Requesting: http://10.0.0.50:8082/project/5411791d-8df0-4a7a-abe7-97e504081f47 2025-08-25 02:16:10,805 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f232356a-4f35-450a-be73-27a3067f24b9 2025-08-25 02:16:10,815 - DEBUG - ==>Verifying data for policy with id: 7cc1d816-4251-4bf9-bd00-46319d0c5876, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-74918942', 'ctest-policy1-53983753'] 2025-08-25 02:16:10,815 - INFO - VN ctest-vn4-94402287 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 02:16:10,815 - DEBUG - Verifying the vn in opserver 2025-08-25 02:16:10,815 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287 virtual network link through opserver 10.0.0.50 2025-08-25 02:16:10,815 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-25 02:16:11,101 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-25 02:16:11,151 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287?flat'} 2025-08-25 02:16:11,151 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-74918942:ctest-vn4-94402287 is found in opserver 2025-08-25 02:16:11,163 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 02:16:11,167 - DEBUG - VRF ids for VN ctest-vn4-94402287: {} 2025-08-25 02:16:11,168 - DEBUG - ====Verifying data for ctest-policy1-53983753 in API_Server ====== 2025-08-25 02:16:11,168 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-25 02:16:11,173 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004 2025-08-25 02:16:11,184 - DEBUG - Requesting: http://10.0.0.50:8082/project/5411791d-8df0-4a7a-abe7-97e504081f47 2025-08-25 02:16:11,255 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/7cc1d816-4251-4bf9-bd00-46319d0c5876 2025-08-25 02:16:11,264 - INFO - Verified policy ctest-policy1-53983753 in API Server, Result: True 2025-08-25 02:16:11,265 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 02:16:11,272 - INFO - Deleting VN ctest-vn4-94402287 2025-08-25 02:16:11,386 - DEBUG - Response for deleting network () 2025-08-25 02:16:11,386 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/0162b56d-f79d-4218-b0bf-a24dc131b294 2025-08-25 02:16:11,391 - DEBUG - Response Code: 404 2025-08-25 02:16:11,391 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-25 02:16:11,396 - DEBUG - Requesting: http://10.0.0.50:8082/domain/7c1c5fd1-2917-4961-9f07-b2c8c0eec004 2025-08-25 02:16:11,451 - DEBUG - Requesting: http://10.0.0.50:8082/project/5411791d-8df0-4a7a-abe7-97e504081f47 2025-08-25 02:16:11,517 - INFO - Validated that VN ctest-vn4-94402287 is not found in API Server 2025-08-25 02:16:11,527 - DEBUG - VN ctest-vn4-94402287 is not present in Agent 10.0.0.50 2025-08-25 02:16:11,527 - INFO - Validated that VN ctest-vn4-94402287 is not in any agent 2025-08-25 02:16:11,542 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-94402287 info 2025-08-25 02:16:11,570 - INFO - Deleted policy ctest-policy1-53983753 2025-08-25 02:16:11,738 - DEBUG - policy ctest-policy1-53983753 is not found in API Server 2025-08-25 02:16:12,000 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 02:16:12,000 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-08-25 02:16:12,000 - INFO - -------------------------------------------------------------------------------- 2025-08-25 02:16:12,303 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 02:16:12,303 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-25 02:16:12,303 - INFO - -------------------------------------------------------------------------------- 2025-08-25 02:16:12,968 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-74918942, ID : 5411791d-8df0-4a7a-abe7-97e504081f47