2025-09-16 20:07:07,829 - INFO - Domain Default found not creating 2025-09-16 20:07:07,966 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08088514 not found, creating it 2025-09-16 20:07:08,390 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08088514, ID : 06ba4614-e257-4d9f-bd22-10a64266494b 2025-09-16 20:07:09,773 - INFO - ================================================================================ 2025-09-16 20:07:09,774 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 20:07:10,026 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-09-16 20:07:10,026 - INFO - Initial checks done. Running the testcase now 2025-09-16 20:07:10,026 - INFO - 2025-09-16 20:07:10,026 - INFO - ================================================================================ 2025-09-16 20:07:10,026 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-16 20:07:10,027 - 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-16 20:07:10,318 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2025-09-16 20:07:10,318 - INFO - Initial checks done. Running the testcase now 2025-09-16 20:07:10,318 - INFO - 2025-09-16 20:07:10,672 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878, 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-08088514:ctest-vn4-21309878, 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-08088514:ctest-vn4-21309878, 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-08088514:ctest-vn4-21309878, 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-16 20:07:11,153 - DEBUG - Response for create_network : {'network': {'id': '2c61d433-04d0-47aa-978a-400f061ddbf5', 'name': 'ctest-vn4-21309878', 'tenant_id': '06ba4614e2574d9fbd2210a64266494b', 'project_id': '06ba4614e2574d9fbd2210a64266494b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08088514', 'ctest-vn4-21309878'], 'port_security_enabled': True, 'description': ''}} 2025-09-16 20:07:11,349 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b5db7b1e-59b0-42f3-b309-dfdbd4c66bf1', 'name': '', 'tenant_id': '06ba4614e2574d9fbd2210a64266494b', 'network_id': '2c61d433-04d0-47aa-978a-400f061ddbf5', 'ip_version': 4, 'cidr': '221.54.90.64/26', 'allocation_pools': [{'start': '221.54.90.66', 'end': '221.54.90.126'}], 'gateway_ip': '221.54.90.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.54.90.66', 'tags': [], 'project_id': '06ba4614e2574d9fbd2210a64266494b'}} 2025-09-16 20:07:11,522 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fe35ef35-d50f-4734-bceb-055439045d16', 'name': '', 'tenant_id': '06ba4614e2574d9fbd2210a64266494b', 'network_id': '2c61d433-04d0-47aa-978a-400f061ddbf5', 'ip_version': 6, 'cidr': '2313:a793:7189:8d36:ab54:87e6::/96', 'allocation_pools': [{'start': '2313:a793:7189:8d36:ab54:87e6:0:2', 'end': '2313:a793:7189:8d36:ab54:87e6:ffff:fffe'}], 'gateway_ip': '2313:a793:7189:8d36:ab54:87e6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2313:a793:7189:8d36:ab54:87e6:0:2', 'tags': [], 'project_id': '06ba4614e2574d9fbd2210a64266494b'}} 2025-09-16 20:07:11,538 - INFO - Created VN ctest-vn4-21309878 2025-09-16 20:07:11,589 - DEBUG - VN ctest-vn4-21309878 UUID is 2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:11,803 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c61d433-04d0-47aa-978a-400f061ddbf5', 'name': 'ctest-vn4-21309878', 'tenant_id': '06ba4614e2574d9fbd2210a64266494b', 'project_id': '06ba4614e2574d9fbd2210a64266494b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b5db7b1e-59b0-42f3-b309-dfdbd4c66bf1', 'fe35ef35-d50f-4734-bceb-055439045d16'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08088514', 'ctest-vn4-21309878'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08088514', 'ctest-policy1-56121898']], 'subnet_ipam': [{'subnet_cidr': '221.54.90.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2313:a793:7189:8d36:ab54:87e6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-16 20:07:11,961 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-16 20:07:12,248 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-16 20:07:12,272 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f5c0d8e9-14de-4a9e-8b84-889659aa246a 2025-09-16 20:07:12,282 - DEBUG - Requesting: http://10.0.0.33:8082/project/06ba4614-e257-4d9f-bd22-10a64266494b 2025-09-16 20:07:12,351 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,361 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,369 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:12,375 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:12,380 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9e1b242a-8a14-4817-8db5-9f0b8b9aab79 2025-09-16 20:07:12,385 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 20:07:12,386 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,395 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:12,407 - INFO - Verified VN network id 12 for VN 2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,407 - INFO - Verifications in API Server for VN ctest-vn4-21309878 passed 2025-09-16 20:07:12,407 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,415 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:12,420 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:12,426 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/9e1b242a-8a14-4817-8db5-9f0b8b9aab79 2025-09-16 20:07:12,435 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08088514', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3198070525998942122', 'uuid-lslong': '10919610679784496117'}, 'enable': 'true', 'created': '2025-09-16T20:07:11', 'last-modified': '2025-09-16T20:07:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.669950'} 2025-09-16 20:07:12,441 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-16 20:07:12,441 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-21309878 passed 2025-09-16 20:07:12,441 - DEBUG - ====Verifying policy data for ctest-vn4-21309878 in API_Server ====== 2025-09-16 20:07:12,441 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-16 20:07:12,445 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f5c0d8e9-14de-4a9e-8b84-889659aa246a 2025-09-16 20:07:12,505 - DEBUG - Requesting: http://10.0.0.33:8082/project/06ba4614-e257-4d9f-bd22-10a64266494b 2025-09-16 20:07:12,572 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/2c61d433-04d0-47aa-978a-400f061ddbf5 2025-09-16 20:07:12,581 - DEBUG - ==>Verifying data for policy with id: 25a01e36-2726-48a5-ab90-a572c394224d, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08088514', 'ctest-policy1-56121898'] 2025-09-16 20:07:12,581 - INFO - VN ctest-vn4-21309878 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-16 20:07:12,581 - DEBUG - Verifying the vn in opserver 2025-09-16 20:07:12,581 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878 virtual network link through opserver 10.0.0.33 2025-09-16 20:07:12,581 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-16 20:07:12,869 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-09-16 20:07:12,919 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878?flat'} 2025-09-16 20:07:12,919 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08088514:ctest-vn4-21309878 is found in opserver 2025-09-16 20:07:12,928 - DEBUG - Do not have enough data to verify VN in agent 2025-09-16 20:07:12,933 - DEBUG - VRF ids for VN ctest-vn4-21309878: {} 2025-09-16 20:07:12,934 - DEBUG - ====Verifying data for ctest-policy1-56121898 in API_Server ====== 2025-09-16 20:07:12,934 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-16 20:07:12,939 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f5c0d8e9-14de-4a9e-8b84-889659aa246a 2025-09-16 20:07:12,947 - DEBUG - Requesting: http://10.0.0.33:8082/project/06ba4614-e257-4d9f-bd22-10a64266494b 2025-09-16 20:07:13,014 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/25a01e36-2726-48a5-ab90-a572c394224d 2025-09-16 20:07:13,023 - INFO - Verified policy ctest-policy1-56121898 in API Server, Result: True 2025-09-16 20:07:13,023 - INFO - Done with setup and verification, moving onto test .. 2025-09-16 20:07:13,030 - INFO - Deleting VN ctest-vn4-21309878 2025-09-16 20:07:13,128 - DEBUG - Response for deleting network () 2025-09-16 20:07:13,128 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/96c848dc-835c-4b32-b2e0-c2772d738743 2025-09-16 20:07:13,132 - DEBUG - Response Code: 404 2025-09-16 20:07:13,132 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2025-09-16 20:07:13,136 - DEBUG - Requesting: http://10.0.0.33:8082/domain/f5c0d8e9-14de-4a9e-8b84-889659aa246a 2025-09-16 20:07:13,185 - DEBUG - Requesting: http://10.0.0.33:8082/project/06ba4614-e257-4d9f-bd22-10a64266494b 2025-09-16 20:07:13,254 - INFO - Validated that VN ctest-vn4-21309878 is not found in API Server 2025-09-16 20:07:13,262 - DEBUG - VN ctest-vn4-21309878 is not present in Agent 10.0.0.33 2025-09-16 20:07:13,262 - INFO - Validated that VN ctest-vn4-21309878 is not in any agent 2025-09-16 20:07:13,275 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-21309878 info 2025-09-16 20:07:13,297 - INFO - Deleted policy ctest-policy1-56121898 2025-09-16 20:07:13,453 - DEBUG - policy ctest-policy1-56121898 is not found in API Server 2025-09-16 20:07:13,709 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 20:07:13,709 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03] 2025-09-16 20:07:13,709 - INFO - -------------------------------------------------------------------------------- 2025-09-16 20:07:13,997 - DEBUG - No XMPP flaps were noticed during the test 2025-09-16 20:07:13,997 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-09-16 20:07:13,997 - INFO - -------------------------------------------------------------------------------- 2025-09-16 20:07:14,671 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-08088514, ID : 06ba4614-e257-4d9f-bd22-10a64266494b