2025-10-06 15:54:58,051 - INFO - Domain Default found not creating 2025-10-06 15:54:58,182 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11190078 not found, creating it 2025-10-06 15:54:58,640 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11190078, ID : 75c0ff09-0fb3-4624-a7ef-11c9acfe2f12 2025-10-06 15:54:59,978 - INFO - ================================================================================ 2025-10-06 15:54:59,978 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 15:55:00,234 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-06 15:55:00,234 - INFO - Initial checks done. Running the testcase now 2025-10-06 15:55:00,234 - INFO - 2025-10-06 15:55:00,234 - INFO - ================================================================================ 2025-10-06 15:55:00,234 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 15:55:00,234 - 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-06 15:55:00,520 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-10-06 15:55:00,520 - INFO - Initial checks done. Running the testcase now 2025-10-06 15:55:00,520 - INFO - 2025-10-06 15:55:00,857 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630, 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-11190078:ctest-vn4-16358630, 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-11190078:ctest-vn4-16358630, 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-11190078:ctest-vn4-16358630, 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-06 15:55:01,514 - DEBUG - Response for create_network : {'network': {'id': '1c8e5cce-877e-41ad-88c2-db20c4cf34b9', 'name': 'ctest-vn4-16358630', 'tenant_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'project_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11190078', 'ctest-vn4-16358630'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 15:55:01,670 - DEBUG - Response for create_subnet : {'subnet': {'id': '9bf3a6b3-5888-477d-82cf-a8e10d748e9e', 'name': '', 'tenant_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'network_id': '1c8e5cce-877e-41ad-88c2-db20c4cf34b9', 'ip_version': 4, 'cidr': '174.212.110.192/26', 'allocation_pools': [{'start': '174.212.110.194', 'end': '174.212.110.254'}], 'gateway_ip': '174.212.110.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.212.110.194', 'tags': [], 'project_id': '75c0ff090fb34624a7ef11c9acfe2f12'}} 2025-10-06 15:55:01,840 - DEBUG - Response for create_subnet : {'subnet': {'id': '906c9ba6-cad8-46f7-b32e-d434b6262e38', 'name': '', 'tenant_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'network_id': '1c8e5cce-877e-41ad-88c2-db20c4cf34b9', 'ip_version': 6, 'cidr': '3826:3b82:38b1:5073:7460:e01c::/96', 'allocation_pools': [{'start': '3826:3b82:38b1:5073:7460:e01c:0:2', 'end': '3826:3b82:38b1:5073:7460:e01c:ffff:fffe'}], 'gateway_ip': '3826:3b82:38b1:5073:7460:e01c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3826:3b82:38b1:5073:7460:e01c:0:2', 'tags': [], 'project_id': '75c0ff090fb34624a7ef11c9acfe2f12'}} 2025-10-06 15:55:01,859 - INFO - Created VN ctest-vn4-16358630 2025-10-06 15:55:01,909 - DEBUG - VN ctest-vn4-16358630 UUID is 1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,099 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1c8e5cce-877e-41ad-88c2-db20c4cf34b9', 'name': 'ctest-vn4-16358630', 'tenant_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'project_id': '75c0ff090fb34624a7ef11c9acfe2f12', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9bf3a6b3-5888-477d-82cf-a8e10d748e9e', '906c9ba6-cad8-46f7-b32e-d434b6262e38'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11190078', 'ctest-vn4-16358630'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11190078', 'ctest-policy1-55081540']], 'subnet_ipam': [{'subnet_cidr': '174.212.110.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3826:3b82:38b1:5073:7460:e01c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 15:55:02,257 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 15:55:02,544 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 15:55:02,568 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af 2025-10-06 15:55:02,578 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c0ff09-0fb3-4624-a7ef-11c9acfe2f12 2025-10-06 15:55:02,647 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,659 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,667 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:02,673 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:02,679 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee6a7c6e-bff9-4183-bd83-cc26dc04ae88 2025-10-06 15:55:02,684 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 15:55:02,684 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,693 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:02,707 - INFO - Verified VN network id 11 for VN 1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,707 - INFO - Verifications in API Server for VN ctest-vn4-16358630 passed 2025-10-06 15:55:02,707 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,716 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:02,722 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:02,727 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/ee6a7c6e-bff9-4183-bd83-cc26dc04ae88 2025-10-06 15:55:02,738 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11190078', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2057684121861112237', 'uuid-lslong': '9854679868427416761'}, 'enable': 'true', 'created': '2025-10-06T15:55:01', 'last-modified': '2025-10-06T15:55:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.665146'} 2025-10-06 15:55:02,744 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 15:55:02,745 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-16358630 passed 2025-10-06 15:55:02,745 - DEBUG - ====Verifying policy data for ctest-vn4-16358630 in API_Server ====== 2025-10-06 15:55:02,745 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 15:55:02,749 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af 2025-10-06 15:55:02,759 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c0ff09-0fb3-4624-a7ef-11c9acfe2f12 2025-10-06 15:55:02,822 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1c8e5cce-877e-41ad-88c2-db20c4cf34b9 2025-10-06 15:55:02,830 - DEBUG - ==>Verifying data for policy with id: 6dcd845b-1218-4e35-9f69-6f186be01290, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11190078', 'ctest-policy1-55081540'] 2025-10-06 15:55:02,830 - INFO - VN ctest-vn4-16358630 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 15:55:02,830 - DEBUG - Verifying the vn in opserver 2025-10-06 15:55:02,830 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630 virtual network link through opserver 10.0.0.38 2025-10-06 15:55:02,831 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 15:55:03,122 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-06 15:55:03,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630?flat'} 2025-10-06 15:55:03,179 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11190078:ctest-vn4-16358630 is found in opserver 2025-10-06 15:55:03,188 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 15:55:03,192 - DEBUG - VRF ids for VN ctest-vn4-16358630: {} 2025-10-06 15:55:03,193 - DEBUG - ====Verifying data for ctest-policy1-55081540 in API_Server ====== 2025-10-06 15:55:03,193 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 15:55:03,197 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af 2025-10-06 15:55:03,207 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c0ff09-0fb3-4624-a7ef-11c9acfe2f12 2025-10-06 15:55:03,271 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/6dcd845b-1218-4e35-9f69-6f186be01290 2025-10-06 15:55:03,279 - INFO - Verified policy ctest-policy1-55081540 in API Server, Result: True 2025-10-06 15:55:03,279 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 15:55:03,285 - INFO - Deleting VN ctest-vn4-16358630 2025-10-06 15:55:03,389 - DEBUG - Response for deleting network () 2025-10-06 15:55:03,389 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/4d2f5b7b-d557-4c86-a7e3-48ba8e9514c0 2025-10-06 15:55:03,394 - DEBUG - Response Code: 404 2025-10-06 15:55:03,394 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-06 15:55:03,398 - DEBUG - Requesting: http://10.0.0.38:8082/domain/1207d219-508d-4593-8404-52bf7e8650af 2025-10-06 15:55:03,450 - DEBUG - Requesting: http://10.0.0.38:8082/project/75c0ff09-0fb3-4624-a7ef-11c9acfe2f12 2025-10-06 15:55:03,514 - INFO - Validated that VN ctest-vn4-16358630 is not found in API Server 2025-10-06 15:55:03,522 - DEBUG - VN ctest-vn4-16358630 is not present in Agent 10.0.0.38 2025-10-06 15:55:03,522 - INFO - Validated that VN ctest-vn4-16358630 is not in any agent 2025-10-06 15:55:03,533 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-16358630 info 2025-10-06 15:55:03,554 - INFO - Deleted policy ctest-policy1-55081540 2025-10-06 15:55:03,712 - DEBUG - policy ctest-policy1-55081540 is not found in API Server 2025-10-06 15:55:03,968 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 15:55:03,968 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-10-06 15:55:03,969 - INFO - -------------------------------------------------------------------------------- 2025-10-06 15:55:04,261 - DEBUG - No XMPP flaps were noticed during the test
2025-10-06 15:55:04,261 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-06 15:55:04,261 - INFO - -------------------------------------------------------------------------------- 2025-10-06 15:55:04,914 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11190078, ID : 75c0ff09-0fb3-4624-a7ef-11c9acfe2f12