2025-10-27 17:33:38,349 - INFO - Domain Default found not creating 2025-10-27 17:33:38,516 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-58336257 not found, creating it 2025-10-27 17:33:38,987 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-58336257, ID : 71a80bfc-43b8-483d-bbd2-c121dc74e43e 2025-10-27 17:33:40,423 - INFO - ================================================================================ 2025-10-27 17:33:40,423 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 17:33:40,680 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 17:33:40,680 - INFO - Initial checks done. Running the testcase now 2025-10-27 17:33:40,680 - INFO - 2025-10-27 17:33:40,680 - INFO - ================================================================================ 2025-10-27 17:33:40,680 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 17:33:40,680 - 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 17:33:40,972 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.17': '0'}} with 2025-10-27 17:33:40,972 - INFO - Initial checks done. Running the testcase now 2025-10-27 17:33:40,972 - INFO - 2025-10-27 17:33:41,325 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632, 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-58336257:ctest-vn4-04991632, 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-58336257:ctest-vn4-04991632, 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-58336257:ctest-vn4-04991632, 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 17:33:41,842 - DEBUG - Response for create_network : {'network': {'id': '97a84d1f-afe2-483d-89c5-e3f48c8db465', 'name': 'ctest-vn4-04991632', 'tenant_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'project_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58336257', 'ctest-vn4-04991632'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 17:33:42,052 - DEBUG - Response for create_subnet : {'subnet': {'id': '3056eb5a-c46f-4990-80e6-715a92fa9382', 'name': '', 'tenant_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'network_id': '97a84d1f-afe2-483d-89c5-e3f48c8db465', 'ip_version': 4, 'cidr': '84.188.71.0/26', 'allocation_pools': [{'start': '84.188.71.2', 'end': '84.188.71.62'}], 'gateway_ip': '84.188.71.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '84.188.71.2', 'tags': [], 'project_id': '71a80bfc43b8483dbbd2c121dc74e43e'}} 2025-10-27 17:33:42,224 - DEBUG - Response for create_subnet : {'subnet': {'id': '04da5309-41f2-47de-b7cc-2f9417b8b642', 'name': '', 'tenant_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'network_id': '97a84d1f-afe2-483d-89c5-e3f48c8db465', 'ip_version': 6, 'cidr': '393e:a6ab:5af5:69d9:7d29:a71a::/96', 'allocation_pools': [{'start': '393e:a6ab:5af5:69d9:7d29:a71a:0:2', 'end': '393e:a6ab:5af5:69d9:7d29:a71a:ffff:fffe'}], 'gateway_ip': '393e:a6ab:5af5:69d9:7d29:a71a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '393e:a6ab:5af5:69d9:7d29:a71a:0:2', 'tags': [], 'project_id': '71a80bfc43b8483dbbd2c121dc74e43e'}} 2025-10-27 17:33:42,250 - INFO - Created VN ctest-vn4-04991632 2025-10-27 17:33:42,301 - DEBUG - VN ctest-vn4-04991632 UUID is 97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:42,517 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '97a84d1f-afe2-483d-89c5-e3f48c8db465', 'name': 'ctest-vn4-04991632', 'tenant_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'project_id': '71a80bfc43b8483dbbd2c121dc74e43e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3056eb5a-c46f-4990-80e6-715a92fa9382', '04da5309-41f2-47de-b7cc-2f9417b8b642'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58336257', 'ctest-vn4-04991632'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58336257', 'ctest-policy1-72185927']], 'subnet_ipam': [{'subnet_cidr': '84.188.71.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '393e:a6ab:5af5:69d9:7d29:a71a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 17:33:42,689 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 17:33:42,980 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 17:33:43,009 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002 2025-10-27 17:33:43,022 - DEBUG - Requesting: http://10.0.0.242:8082/project/71a80bfc-43b8-483d-bbd2-c121dc74e43e 2025-10-27 17:33:43,099 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,109 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,118 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,124 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,130 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c1ccf23f-c663-4d0f-9f81-4a576921a279 2025-10-27 17:33:43,135 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 17:33:43,135 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,143 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,156 - INFO - Verified VN network id 11 for VN 97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,156 - INFO - Verifications in API Server for VN ctest-vn4-04991632 passed 2025-10-27 17:33:43,156 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,165 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,171 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,177 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/c1ccf23f-c663-4d0f-9f81-4a576921a279 2025-10-27 17:33:43,188 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-58336257', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10928069294304675901', 'uuid-lslong': '9927591593077748837'}, 'enable': 'true', 'created': '2025-10-27T17:33:41', 'last-modified': '2025-10-27T17:33:42', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708700'} 2025-10-27 17:33:43,195 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 17:33:43,195 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-04991632 passed 2025-10-27 17:33:43,195 - DEBUG - ====Verifying policy data for ctest-vn4-04991632 in API_Server ====== 2025-10-27 17:33:43,195 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 17:33:43,207 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002 2025-10-27 17:33:43,219 - DEBUG - Requesting: http://10.0.0.242:8082/project/71a80bfc-43b8-483d-bbd2-c121dc74e43e 2025-10-27 17:33:43,296 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/97a84d1f-afe2-483d-89c5-e3f48c8db465 2025-10-27 17:33:43,308 - DEBUG - ==>Verifying data for policy with id: 33d83bfe-ac33-4a12-a0b8-9cef4750a240, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-58336257', 'ctest-policy1-72185927'] 2025-10-27 17:33:43,308 - INFO - VN ctest-vn4-04991632 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 17:33:43,308 - DEBUG - Verifying the vn in opserver 2025-10-27 17:33:43,308 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632 virtual network link through opserver 10.0.0.242 2025-10-27 17:33:43,308 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 17:33:43,602 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-10-27 17:33:43,656 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632?flat'} 2025-10-27 17:33:43,656 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-58336257:ctest-vn4-04991632 is found in opserver 2025-10-27 17:33:43,666 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 17:33:43,671 - DEBUG - VRF ids for VN ctest-vn4-04991632: {} 2025-10-27 17:33:43,671 - DEBUG - ====Verifying data for ctest-policy1-72185927 in API_Server ====== 2025-10-27 17:33:43,671 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 17:33:43,677 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002 2025-10-27 17:33:43,687 - DEBUG - Requesting: http://10.0.0.242:8082/project/71a80bfc-43b8-483d-bbd2-c121dc74e43e 2025-10-27 17:33:43,763 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/33d83bfe-ac33-4a12-a0b8-9cef4750a240 2025-10-27 17:33:43,773 - INFO - Verified policy ctest-policy1-72185927 in API Server, Result: True 2025-10-27 17:33:43,774 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 17:33:43,782 - INFO - Deleting VN ctest-vn4-04991632 2025-10-27 17:33:43,900 - DEBUG - Response for deleting network () 2025-10-27 17:33:43,900 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/4ce673d2-3f9f-4519-a0d1-baa153e622ef 2025-10-27 17:33:43,905 - DEBUG - Response Code: 404 2025-10-27 17:33:43,906 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-10-27 17:33:43,911 - DEBUG - Requesting: http://10.0.0.242:8082/domain/167d275d-3df2-4c7f-a0a2-56eb1d84e002 2025-10-27 17:33:43,966 - DEBUG - Requesting: http://10.0.0.242:8082/project/71a80bfc-43b8-483d-bbd2-c121dc74e43e 2025-10-27 17:33:44,036 - INFO - Validated that VN ctest-vn4-04991632 is not found in API Server 2025-10-27 17:33:44,046 - DEBUG - VN ctest-vn4-04991632 is not present in Agent 10.0.0.242 2025-10-27 17:33:44,046 - INFO - Validated that VN ctest-vn4-04991632 is not in any agent 2025-10-27 17:33:44,059 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-04991632 info 2025-10-27 17:33:44,085 - INFO - Deleted policy ctest-policy1-72185927 2025-10-27 17:33:44,249 - DEBUG - policy ctest-policy1-72185927 is not found in API Server 2025-10-27 17:33:44,507 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 17:33:44,507 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 17:33:44,507 - INFO - -------------------------------------------------------------------------------- 2025-10-27 17:33:44,799 - DEBUG - No XMPP flaps were noticed during the test
2025-10-27 17:33:44,799 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-27 17:33:44,799 - INFO - -------------------------------------------------------------------------------- 2025-10-27 17:33:45,489 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-58336257, ID : 71a80bfc-43b8-483d-bbd2-c121dc74e43e