2026-02-02 02:31:12,449 - INFO - Domain Default found not creating 2026-02-02 02:31:12,633 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32688621 not found, creating it 2026-02-02 02:31:13,187 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32688621, ID : 263cd366-5c0c-4692-b93c-f894965f82e1 2026-02-02 02:31:14,723 - INFO - ================================================================================ 2026-02-02 02:31:14,724 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:31:16,008 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-02-02 02:31:16,008 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:31:16,008 - INFO - 2026-02-02 02:31:16,008 - INFO - ================================================================================ 2026-02-02 02:31:16,008 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-02-02 02:31:16,008 - 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. 2026-02-02 02:31:17,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0', '10.20.0.193': '0'}, '10.0.0.65': {'10.20.0.193': '0', '10.20.0.129': '0'}} with 2026-02-02 02:31:17,299 - INFO - Initial checks done. Running the testcase now 2026-02-02 02:31:17,299 - INFO - 2026-02-02 02:31:17,667 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238, 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-32688621:ctest-vn4-64709238, 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-32688621:ctest-vn4-64709238, 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-32688621:ctest-vn4-64709238, 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] 2026-02-02 02:31:18,238 - DEBUG - Response for create_network : {'network': {'id': '3a619241-3c27-495b-b08c-f59f425da325', 'name': 'ctest-vn4-64709238', 'tenant_id': '263cd3665c0c4692b93cf894965f82e1', 'project_id': '263cd3665c0c4692b93cf894965f82e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'ctest-vn4-64709238'], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:31:18,589 - DEBUG - Response for create_subnet : {'subnet': {'id': '9a935608-720f-4455-9c07-5bf50f577446', 'name': '', 'tenant_id': '263cd3665c0c4692b93cf894965f82e1', 'network_id': '3a619241-3c27-495b-b08c-f59f425da325', 'ip_version': 4, 'cidr': '4.53.54.64/26', 'allocation_pools': [{'start': '4.53.54.66', 'end': '4.53.54.126'}], 'gateway_ip': '4.53.54.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.53.54.66', 'tags': [], 'project_id': '263cd3665c0c4692b93cf894965f82e1'}} 2026-02-02 02:31:18,847 - DEBUG - Response for create_subnet : {'subnet': {'id': '1da758fd-b278-4764-9f9e-40ab0b1817b4', 'name': '', 'tenant_id': '263cd3665c0c4692b93cf894965f82e1', 'network_id': '3a619241-3c27-495b-b08c-f59f425da325', 'ip_version': 6, 'cidr': '208f:9a0e:46b:1abb:8a20:e3d6::/96', 'allocation_pools': [{'start': '208f:9a0e:46b:1abb:8a20:e3d6:0:2', 'end': '208f:9a0e:46b:1abb:8a20:e3d6:ffff:fffe'}], 'gateway_ip': '208f:9a0e:46b:1abb:8a20:e3d6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '208f:9a0e:46b:1abb:8a20:e3d6:0:2', 'tags': [], 'project_id': '263cd3665c0c4692b93cf894965f82e1'}} 2026-02-02 02:31:18,870 - INFO - Created VN ctest-vn4-64709238 2026-02-02 02:31:18,881 - DEBUG - VN ctest-vn4-64709238 UUID is 3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,087 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3a619241-3c27-495b-b08c-f59f425da325', 'name': 'ctest-vn4-64709238', 'tenant_id': '263cd3665c0c4692b93cf894965f82e1', 'project_id': '263cd3665c0c4692b93cf894965f82e1', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9a935608-720f-4455-9c07-5bf50f577446', '1da758fd-b278-4764-9f9e-40ab0b1817b4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'ctest-vn4-64709238'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'ctest-policy1-07345960']], 'subnet_ipam': [{'subnet_cidr': '4.53.54.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '208f:9a0e:46b:1abb:8a20:e3d6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-02-02 02:31:19,176 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:31:19,478 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:31:19,511 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:31:19,530 - DEBUG - Requesting: http://10.0.0.141:8082/project/263cd366-5c0c-4692-b93c-f894965f82e1 2026-02-02 02:31:19,620 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,633 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,642 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:19,649 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:19,656 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/feae0008-2a4f-4814-b74b-506a399d5cc9 2026-02-02 02:31:19,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:31:19,663 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,673 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:19,688 - INFO - Verified VN network id 10 for VN 3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,688 - INFO - Verifications in API Server for VN ctest-vn4-64709238 passed 2026-02-02 02:31:19,689 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,701 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:19,709 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:19,716 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/feae0008-2a4f-4814-b74b-506a399d5cc9 2026-02-02 02:31:19,727 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4206804335820491099', 'uuid-lslong': '12721813111776846629'}, 'enable': 'true', 'created': '2026-02-02T02:31:18', 'last-modified': '2026-02-02T02:31:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.677883'} 2026-02-02 02:31:19,733 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:31:19,738 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4206804335820491099', 'uuid-lslong': '12721813111776846629'}, 'enable': 'true', 'created': '2026-02-02T02:31:18', 'last-modified': '2026-02-02T02:31:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.675937'} 2026-02-02 02:31:19,743 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:31:19,748 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4206804335820491099', 'uuid-lslong': '12721813111776846629'}, 'enable': 'true', 'created': '2026-02-02T02:31:18', 'last-modified': '2026-02-02T02:31:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686938'} 2026-02-02 02:31:19,753 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-02-02 02:31:19,753 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-64709238 passed 2026-02-02 02:31:19,753 - DEBUG - ====Verifying policy data for ctest-vn4-64709238 in API_Server ====== 2026-02-02 02:31:19,753 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:31:19,759 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:31:19,771 - DEBUG - Requesting: http://10.0.0.141:8082/project/263cd366-5c0c-4692-b93c-f894965f82e1 2026-02-02 02:31:19,863 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/3a619241-3c27-495b-b08c-f59f425da325 2026-02-02 02:31:19,876 - DEBUG - ==>Verifying data for policy with id: 3a6cf53f-81ee-4557-be7d-7c64e89492f8, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32688621', 'ctest-policy1-07345960'] 2026-02-02 02:31:19,876 - INFO - VN ctest-vn4-64709238 Policy verification: verify_vn_policy_in_api_server, status: True 2026-02-02 02:31:19,876 - DEBUG - Verifying the vn in opserver 2026-02-02 02:31:19,876 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238 virtual network link through opserver 10.0.0.141 2026-02-02 02:31:19,876 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,175 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,243 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238?flat'} 2026-02-02 02:31:20,243 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238 virtual network link through opserver 10.0.0.22 2026-02-02 02:31:20,243 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,543 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,618 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238?flat'} 2026-02-02 02:31:20,618 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238 virtual network link through opserver 10.0.0.23 2026-02-02 02:31:20,619 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,913 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-02-02 02:31:20,969 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238?flat'} 2026-02-02 02:31:20,969 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32688621:ctest-vn4-64709238 is found in opserver 2026-02-02 02:31:20,989 - DEBUG - Do not have enough data to verify VN in agent 2026-02-02 02:31:20,998 - DEBUG - VRF ids for VN ctest-vn4-64709238: {} 2026-02-02 02:31:20,998 - DEBUG - ====Verifying data for ctest-policy1-07345960 in API_Server ====== 2026-02-02 02:31:20,998 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:31:21,004 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:31:21,016 - DEBUG - Requesting: http://10.0.0.141:8082/project/263cd366-5c0c-4692-b93c-f894965f82e1 2026-02-02 02:31:21,108 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/3a6cf53f-81ee-4557-be7d-7c64e89492f8 2026-02-02 02:31:21,119 - INFO - Verified policy ctest-policy1-07345960 in API Server, Result: True 2026-02-02 02:31:21,119 - INFO - Done with setup and verification, moving onto test .. 2026-02-02 02:31:21,131 - INFO - Deleting VN ctest-vn4-64709238 2026-02-02 02:31:21,326 - DEBUG - Response for deleting network () 2026-02-02 02:31:21,326 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/980db56e-55fe-4d06-b6bb-7f8fd94b08bd 2026-02-02 02:31:21,338 - DEBUG - Response Code: 404 2026-02-02 02:31:21,338 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2026-02-02 02:31:21,345 - DEBUG - Requesting: http://10.0.0.141:8082/domain/4480bafd-5776-4d34-b387-df5887123349 2026-02-02 02:31:21,357 - DEBUG - Requesting: http://10.0.0.141:8082/project/263cd366-5c0c-4692-b93c-f894965f82e1 2026-02-02 02:31:21,447 - INFO - Validated that VN ctest-vn4-64709238 is not found in API Server 2026-02-02 02:31:21,458 - DEBUG - VN ctest-vn4-64709238 is not present in Agent 10.0.0.50 2026-02-02 02:31:21,472 - DEBUG - VN ctest-vn4-64709238 is not present in Agent 10.0.0.65 2026-02-02 02:31:21,472 - INFO - Validated that VN ctest-vn4-64709238 is not in any agent 2026-02-02 02:31:21,500 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-64709238 info 2026-02-02 02:31:21,557 - INFO - Deleted policy ctest-policy1-07345960 2026-02-02 02:31:21,737 - DEBUG - policy ctest-policy1-07345960 is not found in API Server 2026-02-02 02:31:23,023 - DEBUG - No XMPP flaps were noticed during the test
2026-02-02 02:31:23,023 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-02-02 02:31:23,023 - INFO - -------------------------------------------------------------------------------- 2026-02-02 02:31:24,317 - DEBUG - No XMPP flaps were noticed during the test
2026-02-02 02:31:24,317 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-02-02 02:31:24,317 - INFO - -------------------------------------------------------------------------------- 2026-02-02 02:31:25,027 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-32688621, ID : 263cd366-5c0c-4692-b93c-f894965f82e1