2025-10-27 02:09:29,972 - INFO - Domain Default found not creating 2025-10-27 02:09:30,139 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33851321 not found, creating it 2025-10-27 02:09:30,624 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33851321, ID : 5bcba53b-2b02-4e87-b563-f7e78fea1a64 2025-10-27 02:09:32,278 - INFO - ================================================================================ 2025-10-27 02:09:32,278 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:09:32,533 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-27 02:09:32,533 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:09:32,533 - INFO - 2025-10-27 02:09:32,534 - INFO - ================================================================================ 2025-10-27 02:09:32,534 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 02:09:32,534 - 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-27 02:09:32,820 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.254': '0'}} with 2025-10-27 02:09:32,820 - INFO - Initial checks done. Running the testcase now 2025-10-27 02:09:32,820 - INFO - 2025-10-27 02:09:33,212 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824, 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-33851321:ctest-vn4-12410824, 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-33851321:ctest-vn4-12410824, 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-33851321:ctest-vn4-12410824, 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-27 02:09:33,744 - DEBUG - Response for create_network : {'network': {'id': '1501d771-9038-47a6-b7e3-053c9cdf388a', 'name': 'ctest-vn4-12410824', 'tenant_id': '5bcba53b2b024e87b563f7e78fea1a64', 'project_id': '5bcba53b2b024e87b563f7e78fea1a64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33851321', 'ctest-vn4-12410824'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:09:33,929 - DEBUG - Response for create_subnet : {'subnet': {'id': '477ed476-7d04-4c31-a3e1-8e06600e4ef9', 'name': '', 'tenant_id': '5bcba53b2b024e87b563f7e78fea1a64', 'network_id': '1501d771-9038-47a6-b7e3-053c9cdf388a', 'ip_version': 4, 'cidr': '149.148.69.0/26', 'allocation_pools': [{'start': '149.148.69.2', 'end': '149.148.69.62'}], 'gateway_ip': '149.148.69.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.148.69.2', 'tags': [], 'project_id': '5bcba53b2b024e87b563f7e78fea1a64'}} 2025-10-27 02:09:34,080 - DEBUG - Response for create_subnet : {'subnet': {'id': '8c8bd706-4efb-4568-af5e-dc7448571299', 'name': '', 'tenant_id': '5bcba53b2b024e87b563f7e78fea1a64', 'network_id': '1501d771-9038-47a6-b7e3-053c9cdf388a', 'ip_version': 6, 'cidr': '3b7d:4bd7:85ca:3899:9a2c:5f71::/96', 'allocation_pools': [{'start': '3b7d:4bd7:85ca:3899:9a2c:5f71:0:2', 'end': '3b7d:4bd7:85ca:3899:9a2c:5f71:ffff:fffe'}], 'gateway_ip': '3b7d:4bd7:85ca:3899:9a2c:5f71:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b7d:4bd7:85ca:3899:9a2c:5f71:0:2', 'tags': [], 'project_id': '5bcba53b2b024e87b563f7e78fea1a64'}} 2025-10-27 02:09:34,103 - INFO - Created VN ctest-vn4-12410824 2025-10-27 02:09:34,155 - DEBUG - VN ctest-vn4-12410824 UUID is 1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:34,381 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1501d771-9038-47a6-b7e3-053c9cdf388a', 'name': 'ctest-vn4-12410824', 'tenant_id': '5bcba53b2b024e87b563f7e78fea1a64', 'project_id': '5bcba53b2b024e87b563f7e78fea1a64', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['477ed476-7d04-4c31-a3e1-8e06600e4ef9', '8c8bd706-4efb-4568-af5e-dc7448571299'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33851321', 'ctest-vn4-12410824'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33851321', 'ctest-policy1-79980409']], 'subnet_ipam': [{'subnet_cidr': '149.148.69.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b7d:4bd7:85ca:3899:9a2c:5f71::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 02:09:34,543 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 02:09:34,885 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 02:09:34,915 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167 2025-10-27 02:09:34,927 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bcba53b-2b02-4e87-b563-f7e78fea1a64 2025-10-27 02:09:35,004 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,018 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,029 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,036 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,044 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e38a3a4a-65ab-4714-a052-2992e9e17560 2025-10-27 02:09:35,050 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:09:35,050 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,060 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,076 - INFO - Verified VN network id 11 for VN 1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,076 - INFO - Verifications in API Server for VN ctest-vn4-12410824 passed 2025-10-27 02:09:35,076 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,088 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,095 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,102 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e38a3a4a-65ab-4714-a052-2992e9e17560 2025-10-27 02:09:35,114 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33851321', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1513727832524081062', 'uuid-lslong': '13250440286542182538'}, 'enable': 'true', 'created': '2025-10-27T02:09:33', 'last-modified': '2025-10-27T02:09:34', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.759524'} 2025-10-27 02:09:35,119 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 02:09:35,120 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12410824 passed 2025-10-27 02:09:35,120 - DEBUG - ====Verifying policy data for ctest-vn4-12410824 in API_Server ====== 2025-10-27 02:09:35,120 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 02:09:35,125 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167 2025-10-27 02:09:35,135 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bcba53b-2b02-4e87-b563-f7e78fea1a64 2025-10-27 02:09:35,210 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/1501d771-9038-47a6-b7e3-053c9cdf388a 2025-10-27 02:09:35,220 - DEBUG - ==>Verifying data for policy with id: cd09d7cb-3ead-4a80-a06a-bc4b8d632836, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33851321', 'ctest-policy1-79980409'] 2025-10-27 02:09:35,220 - INFO - VN ctest-vn4-12410824 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 02:09:35,220 - DEBUG - Verifying the vn in opserver 2025-10-27 02:09:35,220 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824 virtual network link through opserver 10.0.0.242 2025-10-27 02:09:35,220 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 02:09:35,565 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 02:09:35,627 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824?flat'} 2025-10-27 02:09:35,627 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33851321:ctest-vn4-12410824 is found in opserver 2025-10-27 02:09:35,638 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 02:09:35,645 - DEBUG - VRF ids for VN ctest-vn4-12410824: {} 2025-10-27 02:09:35,646 - DEBUG - ====Verifying data for ctest-policy1-79980409 in API_Server ====== 2025-10-27 02:09:35,646 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 02:09:35,651 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167 2025-10-27 02:09:35,662 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bcba53b-2b02-4e87-b563-f7e78fea1a64 2025-10-27 02:09:35,732 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/cd09d7cb-3ead-4a80-a06a-bc4b8d632836 2025-10-27 02:09:35,742 - INFO - Verified policy ctest-policy1-79980409 in API Server, Result: True 2025-10-27 02:09:35,742 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 02:09:35,750 - INFO - Deleting VN ctest-vn4-12410824 2025-10-27 02:09:35,872 - DEBUG - Response for deleting network () 2025-10-27 02:09:35,872 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/955dabe9-611e-40df-8f54-81f98886a2a0 2025-10-27 02:09:35,877 - DEBUG - Response Code: 404 2025-10-27 02:09:35,878 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 02:09:35,883 - DEBUG - Requesting: http://10.0.0.242:8082/domain/0eb0c76a-21b1-4cbc-8823-c3d297938167 2025-10-27 02:09:35,936 - DEBUG - Requesting: http://10.0.0.242:8082/project/5bcba53b-2b02-4e87-b563-f7e78fea1a64 2025-10-27 02:09:36,011 - INFO - Validated that VN ctest-vn4-12410824 is not found in API Server 2025-10-27 02:09:36,021 - DEBUG - VN ctest-vn4-12410824 is not present in Agent 10.0.0.242 2025-10-27 02:09:36,021 - INFO - Validated that VN ctest-vn4-12410824 is not in any agent 2025-10-27 02:09:36,036 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12410824 info 2025-10-27 02:09:36,060 - INFO - Deleted policy ctest-policy1-79980409 2025-10-27 02:09:36,226 - DEBUG - policy ctest-policy1-79980409 is not found in API Server 2025-10-27 02:09:36,495 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 02:09:36,495 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 02:09:36,495 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:09:36,777 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 02:09:36,777 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 02:09:36,777 - INFO - -------------------------------------------------------------------------------- 2025-10-27 02:09:37,512 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33851321, ID : 5bcba53b-2b02-4e87-b563-f7e78fea1a64