2026-06-05 11:41:18,455 - INFO - Domain Default found not creating 2026-06-05 11:41:18,696 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-08076093 not found, creating it 2026-06-05 11:41:19,241 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-08076093, ID : efeb9bd3-02a3-47c3-a5ee-3d3816a741fc 2026-06-05 11:41:21,095 - INFO - ================================================================================ 2026-06-05 11:41:21,095 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 11:41:21,369 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with 2026-06-05 11:41:21,369 - INFO - Initial checks done. Running the testcase now 2026-06-05 11:41:21,369 - INFO - 2026-06-05 11:41:21,370 - INFO - ================================================================================ 2026-06-05 11:41:21,370 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-06-05 11:41:21,370 - 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-06-05 11:41:21,653 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.18': '0'}} with 2026-06-05 11:41:21,653 - INFO - Initial checks done. Running the testcase now 2026-06-05 11:41:21,653 - INFO - 2026-06-05 11:41:22,069 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094, 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-08076093:ctest-vn4-90638094, 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-08076093:ctest-vn4-90638094, 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-08076093:ctest-vn4-90638094, 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-06-05 11:41:22,659 - DEBUG - Response for create_network : {'network': {'id': '77182f1a-c787-4b51-b198-8b9df46c8bdd', 'name': 'ctest-vn4-90638094', 'tenant_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'project_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076093', 'ctest-vn4-90638094'], 'port_security_enabled': True, 'description': ''}} 2026-06-05 11:41:22,876 - DEBUG - Response for create_subnet : {'subnet': {'id': '0248850c-2e63-4483-8482-a0a8102e9b95', 'name': '', 'tenant_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'network_id': '77182f1a-c787-4b51-b198-8b9df46c8bdd', 'ip_version': 4, 'cidr': '133.81.83.192/26', 'allocation_pools': [{'start': '133.81.83.194', 'end': '133.81.83.254'}], 'gateway_ip': '133.81.83.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '133.81.83.194', 'tags': [], 'project_id': 'efeb9bd302a347c3a5ee3d3816a741fc'}} 2026-06-05 11:41:23,075 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cce58211-2aa9-40fe-9c5a-72f2d17fec37', 'name': '', 'tenant_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'network_id': '77182f1a-c787-4b51-b198-8b9df46c8bdd', 'ip_version': 6, 'cidr': '3ea8:8fc7:9519:16cd:7b4d:e39b::/96', 'allocation_pools': [{'start': '3ea8:8fc7:9519:16cd:7b4d:e39b:0:2', 'end': '3ea8:8fc7:9519:16cd:7b4d:e39b:ffff:fffe'}], 'gateway_ip': '3ea8:8fc7:9519:16cd:7b4d:e39b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea8:8fc7:9519:16cd:7b4d:e39b:0:2', 'tags': [], 'project_id': 'efeb9bd302a347c3a5ee3d3816a741fc'}} 2026-06-05 11:41:23,105 - INFO - Created VN ctest-vn4-90638094 2026-06-05 11:41:23,163 - DEBUG - VN ctest-vn4-90638094 UUID is 77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:23,418 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77182f1a-c787-4b51-b198-8b9df46c8bdd', 'name': 'ctest-vn4-90638094', 'tenant_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'project_id': 'efeb9bd302a347c3a5ee3d3816a741fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0248850c-2e63-4483-8482-a0a8102e9b95', 'cce58211-2aa9-40fe-9c5a-72f2d17fec37'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076093', 'ctest-vn4-90638094'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076093', 'ctest-policy1-96177227']], 'subnet_ipam': [{'subnet_cidr': '133.81.83.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea8:8fc7:9519:16cd:7b4d:e39b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-06-05 11:41:23,591 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-05 11:41:23,903 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-05 11:41:23,958 - DEBUG - Requesting: http://10.0.0.241:8082/domain/011161ab-46f2-4fc2-bbbf-1e57d7f10ac4 2026-06-05 11:41:23,976 - DEBUG - Requesting: http://10.0.0.241:8082/project/efeb9bd3-02a3-47c3-a5ee-3d3816a741fc 2026-06-05 11:41:24,057 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,071 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,085 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:24,096 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:24,107 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7687e9b9-e588-4be3-ad8c-158b2a27b02a 2026-06-05 11:41:24,117 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 11:41:24,118 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,132 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:24,153 - INFO - Verified VN network id 11 for VN 77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,154 - INFO - Verifications in API Server for VN ctest-vn4-90638094 passed 2026-06-05 11:41:24,154 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,170 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:24,180 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:24,190 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/7687e9b9-e588-4be3-ad8c-158b2a27b02a 2026-06-05 11:41:24,208 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-08076093', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8581660882017667921', 'uuid-lslong': '12797131851700145117'}, 'enable': 'true', 'created': '2026-06-05T11:41:22', 'last-modified': '2026-06-05T11:41:23', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.823632'} 2026-06-05 11:41:24,215 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-06-05 11:41:24,215 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90638094 passed 2026-06-05 11:41:24,216 - DEBUG - ====Verifying policy data for ctest-vn4-90638094 in API_Server ====== 2026-06-05 11:41:24,216 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-05 11:41:24,225 - DEBUG - Requesting: http://10.0.0.241:8082/domain/011161ab-46f2-4fc2-bbbf-1e57d7f10ac4 2026-06-05 11:41:24,238 - DEBUG - Requesting: http://10.0.0.241:8082/project/efeb9bd3-02a3-47c3-a5ee-3d3816a741fc 2026-06-05 11:41:24,319 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/77182f1a-c787-4b51-b198-8b9df46c8bdd 2026-06-05 11:41:24,331 - DEBUG - ==>Verifying data for policy with id: 2e42cccb-0ee2-488f-bdc0-c8297765b733, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-08076093', 'ctest-policy1-96177227'] 2026-06-05 11:41:24,331 - INFO - VN ctest-vn4-90638094 Policy verification: verify_vn_policy_in_api_server, status: True 2026-06-05 11:41:24,331 - DEBUG - Verifying the vn in opserver 2026-06-05 11:41:24,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094 virtual network link through opserver 10.0.0.241 2026-06-05 11:41:24,331 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-05 11:41:24,638 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2026-06-05 11:41:24,776 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094?flat'} 2026-06-05 11:41:24,777 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-08076093:ctest-vn4-90638094 is found in opserver 2026-06-05 11:41:24,789 - DEBUG - Do not have enough data to verify VN in agent 2026-06-05 11:41:24,796 - DEBUG - VRF ids for VN ctest-vn4-90638094: {} 2026-06-05 11:41:24,796 - DEBUG - ====Verifying data for ctest-policy1-96177227 in API_Server ====== 2026-06-05 11:41:24,796 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-05 11:41:24,808 - DEBUG - Requesting: http://10.0.0.241:8082/domain/011161ab-46f2-4fc2-bbbf-1e57d7f10ac4 2026-06-05 11:41:24,829 - DEBUG - Requesting: http://10.0.0.241:8082/project/efeb9bd3-02a3-47c3-a5ee-3d3816a741fc 2026-06-05 11:41:24,936 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/2e42cccb-0ee2-488f-bdc0-c8297765b733 2026-06-05 11:41:24,981 - INFO - Verified policy ctest-policy1-96177227 in API Server, Result: True 2026-06-05 11:41:24,981 - INFO - Done with setup and verification, moving onto test .. 2026-06-05 11:41:25,002 - INFO - Deleting VN ctest-vn4-90638094 2026-06-05 11:41:25,388 - DEBUG - Response for deleting network () 2026-06-05 11:41:25,388 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/dbc6132e-9b7e-43a4-aae7-dc664ede4f2a 2026-06-05 11:41:25,398 - DEBUG - Response Code: 404 2026-06-05 11:41:25,398 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2026-06-05 11:41:25,409 - DEBUG - Requesting: http://10.0.0.241:8082/domain/011161ab-46f2-4fc2-bbbf-1e57d7f10ac4 2026-06-05 11:41:25,445 - DEBUG - Requesting: http://10.0.0.241:8082/project/efeb9bd3-02a3-47c3-a5ee-3d3816a741fc 2026-06-05 11:41:25,536 - INFO - Validated that VN ctest-vn4-90638094 is not found in API Server 2026-06-05 11:41:25,556 - DEBUG - VN ctest-vn4-90638094 is not present in Agent 10.0.0.241 2026-06-05 11:41:25,556 - INFO - Validated that VN ctest-vn4-90638094 is not in any agent 2026-06-05 11:41:25,582 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90638094 info 2026-06-05 11:41:25,635 - INFO - Deleted policy ctest-policy1-96177227 2026-06-05 11:41:25,822 - DEBUG - policy ctest-policy1-96177227 is not found in API Server 2026-06-05 11:41:26,093 - DEBUG - No XMPP flaps were noticed during the test