2025-10-30 18:45:30,683 - INFO - Domain Default found not creating 2025-10-30 18:45:31,044 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20493964 not found, creating it 2025-10-30 18:45:31,850 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20493964, ID : e484afdb-6825-4f9b-b9f1-9d9a9e6d4f0a 2025-10-30 18:45:33,764 - INFO - ================================================================================ 2025-10-30 18:45:33,765 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 18:45:34,101 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.241': '0'}} with 2025-10-30 18:45:34,101 - INFO - Initial checks done. Running the testcase now 2025-10-30 18:45:34,101 - INFO - 2025-10-30 18:45:34,101 - INFO - ================================================================================ 2025-10-30 18:45:34,102 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 18:45:34,102 - 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-30 18:45:34,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.241': '0'}} with 2025-10-30 18:45:34,440 - INFO - Initial checks done. Running the testcase now 2025-10-30 18:45:34,440 - INFO - 2025-10-30 18:45:34,915 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141, 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-20493964:ctest-vn4-03566141, 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-20493964:ctest-vn4-03566141, 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-20493964:ctest-vn4-03566141, 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-30 18:45:35,555 - DEBUG - Response for create_network : {'network': {'id': 'da1bf8b5-1f42-498c-9292-2fdfd508dbc9', 'name': 'ctest-vn4-03566141', 'tenant_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'project_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20493964', 'ctest-vn4-03566141'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 18:45:35,760 - DEBUG - Response for create_subnet : {'subnet': {'id': '5eb545b1-1b76-468f-832a-7e72b55a1dae', 'name': '', 'tenant_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'network_id': 'da1bf8b5-1f42-498c-9292-2fdfd508dbc9', 'ip_version': 4, 'cidr': '8.41.245.128/26', 'allocation_pools': [{'start': '8.41.245.130', 'end': '8.41.245.190'}], 'gateway_ip': '8.41.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '8.41.245.130', 'tags': [], 'project_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a'}} 2025-10-30 18:45:35,955 - DEBUG - Response for create_subnet : {'subnet': {'id': '760fcb46-8825-4106-9efe-efac2b3a8fb7', 'name': '', 'tenant_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'network_id': 'da1bf8b5-1f42-498c-9292-2fdfd508dbc9', 'ip_version': 6, 'cidr': '3451:2700:d9f8:b86e:8908:3df3::/96', 'allocation_pools': [{'start': '3451:2700:d9f8:b86e:8908:3df3:0:2', 'end': '3451:2700:d9f8:b86e:8908:3df3:ffff:fffe'}], 'gateway_ip': '3451:2700:d9f8:b86e:8908:3df3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3451:2700:d9f8:b86e:8908:3df3:0:2', 'tags': [], 'project_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a'}} 2025-10-30 18:45:35,980 - INFO - Created VN ctest-vn4-03566141 2025-10-30 18:45:36,035 - DEBUG - VN ctest-vn4-03566141 UUID is da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:36,373 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'da1bf8b5-1f42-498c-9292-2fdfd508dbc9', 'name': 'ctest-vn4-03566141', 'tenant_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'project_id': 'e484afdb68254f9bb9f19d9a9e6d4f0a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5eb545b1-1b76-468f-832a-7e72b55a1dae', '760fcb46-8825-4106-9efe-efac2b3a8fb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20493964', 'ctest-vn4-03566141'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20493964', 'ctest-policy1-37932213']], 'subnet_ipam': [{'subnet_cidr': '8.41.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3451:2700:d9f8:b86e:8908:3df3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 18:45:36,542 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 18:45:36,857 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 18:45:36,894 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b 2025-10-30 18:45:36,923 - DEBUG - Requesting: http://10.0.0.38:8082/project/e484afdb-6825-4f9b-b9f1-9d9a9e6d4f0a 2025-10-30 18:45:37,041 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:37,089 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:37,101 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07ddf177-4c5d-46b8-97e8-4f7074538aab 2025-10-30 18:45:37,110 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 18:45:37,110 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,133 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:37,164 - INFO - Verified VN network id 11 for VN da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,164 - INFO - Verifications in API Server for VN ctest-vn4-03566141 passed 2025-10-30 18:45:37,164 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,188 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:37,195 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:37,203 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/07ddf177-4c5d-46b8-97e8-4f7074538aab 2025-10-30 18:45:37,218 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20493964', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15716428781436684684', 'uuid-lslong': '10561556714535574473'}, 'enable': 'true', 'created': '2025-10-30T18:45:35', 'last-modified': '2025-10-30T18:45:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.904519'} 2025-10-30 18:45:37,226 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 18:45:37,226 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-03566141 passed 2025-10-30 18:45:37,226 - DEBUG - ====Verifying policy data for ctest-vn4-03566141 in API_Server ====== 2025-10-30 18:45:37,227 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 18:45:37,232 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b 2025-10-30 18:45:37,243 - DEBUG - Requesting: http://10.0.0.38:8082/project/e484afdb-6825-4f9b-b9f1-9d9a9e6d4f0a 2025-10-30 18:45:37,328 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/da1bf8b5-1f42-498c-9292-2fdfd508dbc9 2025-10-30 18:45:37,340 - DEBUG - ==>Verifying data for policy with id: 13e37ec4-4e48-411a-a61e-9bd9ec9eaac7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20493964', 'ctest-policy1-37932213'] 2025-10-30 18:45:37,341 - INFO - VN ctest-vn4-03566141 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 18:45:37,341 - DEBUG - Verifying the vn in opserver 2025-10-30 18:45:37,341 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141 virtual network link through opserver 10.0.0.38 2025-10-30 18:45:37,341 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 18:45:37,639 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 18:45:37,765 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141?flat'} 2025-10-30 18:45:37,765 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20493964:ctest-vn4-03566141 is found in opserver 2025-10-30 18:45:37,796 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 18:45:37,811 - DEBUG - VRF ids for VN ctest-vn4-03566141: {} 2025-10-30 18:45:37,812 - DEBUG - ====Verifying data for ctest-policy1-37932213 in API_Server ====== 2025-10-30 18:45:37,812 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 18:45:37,827 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b 2025-10-30 18:45:37,856 - DEBUG - Requesting: http://10.0.0.38:8082/project/e484afdb-6825-4f9b-b9f1-9d9a9e6d4f0a 2025-10-30 18:45:37,986 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/13e37ec4-4e48-411a-a61e-9bd9ec9eaac7 2025-10-30 18:45:38,014 - INFO - Verified policy ctest-policy1-37932213 in API Server, Result: True 2025-10-30 18:45:38,014 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 18:45:38,035 - INFO - Deleting VN ctest-vn4-03566141 2025-10-30 18:45:38,309 - DEBUG - Response for deleting network () 2025-10-30 18:45:38,309 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/c2e3c8b0-dcf2-4893-81f6-edb7378afecf 2025-10-30 18:45:38,316 - DEBUG - Response Code: 404 2025-10-30 18:45:38,316 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 18:45:38,322 - DEBUG - Requesting: http://10.0.0.38:8082/domain/8b04f434-8ca8-42af-a1bc-adb00be83f0b 2025-10-30 18:45:38,385 - DEBUG - Requesting: http://10.0.0.38:8082/project/e484afdb-6825-4f9b-b9f1-9d9a9e6d4f0a 2025-10-30 18:45:38,498 - INFO - Validated that VN ctest-vn4-03566141 is not found in API Server 2025-10-30 18:45:38,514 - DEBUG - VN ctest-vn4-03566141 is not present in Agent 10.0.0.38 2025-10-30 18:45:38,514 - INFO - Validated that VN ctest-vn4-03566141 is not in any agent 2025-10-30 18:45:38,543 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-03566141 info 2025-10-30 18:45:38,605 - INFO - Deleted policy ctest-policy1-37932213 2025-10-30 18:45:38,802 - DEBUG - policy ctest-policy1-37932213 is not found in API Server 2025-10-30 18:45:39,120 - DEBUG - No XMPP flaps were noticed during the test