2026-03-30 03:45:55,080 - INFO - Domain Default found not creating 2026-03-30 03:45:55,282 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-02025020 not found, creating it 2026-03-30 03:45:55,781 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-02025020, ID : 478abc67-0e1f-45b5-a0e6-2083226ffe3d 2026-03-30 03:45:57,444 - INFO - ================================================================================ 2026-03-30 03:45:57,444 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:45:57,709 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.129': '0'}} with 2026-03-30 03:45:57,709 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:45:57,709 - INFO - 2026-03-30 03:45:57,709 - INFO - ================================================================================ 2026-03-30 03:45:57,709 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-03-30 03:45:57,709 - 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-03-30 03:45:57,995 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.129': '0'}} with 2026-03-30 03:45:57,996 - INFO - Initial checks done. Running the testcase now 2026-03-30 03:45:57,996 - INFO - 2026-03-30 03:45:58,410 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823, 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-02025020:ctest-vn4-25550823, 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-02025020:ctest-vn4-25550823, 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-02025020:ctest-vn4-25550823, 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-03-30 03:45:58,924 - DEBUG - Response for create_network : {'network': {'id': '23fd7fc9-a392-492b-9d2a-22e3937649c5', 'name': 'ctest-vn4-25550823', 'tenant_id': '478abc670e1f45b5a0e62083226ffe3d', 'project_id': '478abc670e1f45b5a0e62083226ffe3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02025020', 'ctest-vn4-25550823'], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:45:59,124 - DEBUG - Response for create_subnet : {'subnet': {'id': '87511ef5-6fc1-4259-a7ac-635d98c3b926', 'name': '', 'tenant_id': '478abc670e1f45b5a0e62083226ffe3d', 'network_id': '23fd7fc9-a392-492b-9d2a-22e3937649c5', 'ip_version': 4, 'cidr': '146.187.25.64/26', 'allocation_pools': [{'start': '146.187.25.66', 'end': '146.187.25.126'}], 'gateway_ip': '146.187.25.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '146.187.25.66', 'tags': [], 'project_id': '478abc670e1f45b5a0e62083226ffe3d'}} 2026-03-30 03:45:59,294 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fc428173-d027-4bec-a9e6-b9b0001b8098', 'name': '', 'tenant_id': '478abc670e1f45b5a0e62083226ffe3d', 'network_id': '23fd7fc9-a392-492b-9d2a-22e3937649c5', 'ip_version': 6, 'cidr': '2579:6910:92f9:81c6:664a:ef48::/96', 'allocation_pools': [{'start': '2579:6910:92f9:81c6:664a:ef48:0:2', 'end': '2579:6910:92f9:81c6:664a:ef48:ffff:fffe'}], 'gateway_ip': '2579:6910:92f9:81c6:664a:ef48:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2579:6910:92f9:81c6:664a:ef48:0:2', 'tags': [], 'project_id': '478abc670e1f45b5a0e62083226ffe3d'}} 2026-03-30 03:45:59,316 - INFO - Created VN ctest-vn4-25550823 2026-03-30 03:45:59,370 - DEBUG - VN ctest-vn4-25550823 UUID is 23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:45:59,581 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '23fd7fc9-a392-492b-9d2a-22e3937649c5', 'name': 'ctest-vn4-25550823', 'tenant_id': '478abc670e1f45b5a0e62083226ffe3d', 'project_id': '478abc670e1f45b5a0e62083226ffe3d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['87511ef5-6fc1-4259-a7ac-635d98c3b926', 'fc428173-d027-4bec-a9e6-b9b0001b8098'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02025020', 'ctest-vn4-25550823'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02025020', 'ctest-policy1-96452382']], 'subnet_ipam': [{'subnet_cidr': '146.187.25.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2579:6910:92f9:81c6:664a:ef48::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-03-30 03:45:59,762 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 03:46:00,098 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 03:46:00,137 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8 2026-03-30 03:46:00,150 - DEBUG - Requesting: http://10.0.0.41:8082/project/478abc67-0e1f-45b5-a0e6-2083226ffe3d 2026-03-30 03:46:00,222 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,237 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,248 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:00,257 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:00,265 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/18e48cff-5d24-43a5-9d62-d754eac0bc9f 2026-03-30 03:46:00,272 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:46:00,272 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,282 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:00,295 - INFO - Verified VN network id 12 for VN 23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,295 - INFO - Verifications in API Server for VN ctest-vn4-25550823 passed 2026-03-30 03:46:00,295 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,305 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:00,314 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:00,321 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/18e48cff-5d24-43a5-9d62-d754eac0bc9f 2026-03-30 03:46:00,332 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-02025020', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2593369464444700971', 'uuid-lslong': '11324902573803456965'}, 'enable': 'true', 'created': '2026-03-30T03:45:58', 'last-modified': '2026-03-30T03:45:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.780457'} 2026-03-30 03:46:00,338 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-03-30 03:46:00,338 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-25550823 passed 2026-03-30 03:46:00,339 - DEBUG - ====Verifying policy data for ctest-vn4-25550823 in API_Server ====== 2026-03-30 03:46:00,339 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 03:46:00,344 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8 2026-03-30 03:46:00,357 - DEBUG - Requesting: http://10.0.0.41:8082/project/478abc67-0e1f-45b5-a0e6-2083226ffe3d 2026-03-30 03:46:00,434 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/23fd7fc9-a392-492b-9d2a-22e3937649c5 2026-03-30 03:46:00,445 - DEBUG - ==>Verifying data for policy with id: 40f66b44-f4fc-451e-938a-cb9daa24e76a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-02025020', 'ctest-policy1-96452382'] 2026-03-30 03:46:00,445 - INFO - VN ctest-vn4-25550823 Policy verification: verify_vn_policy_in_api_server, status: True 2026-03-30 03:46:00,445 - DEBUG - Verifying the vn in opserver 2026-03-30 03:46:00,445 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823 virtual network link through opserver 10.0.0.41 2026-03-30 03:46:00,446 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-30 03:46:00,784 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2026-03-30 03:46:00,862 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823?flat'} 2026-03-30 03:46:00,863 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-02025020:ctest-vn4-25550823 is found in opserver 2026-03-30 03:46:00,875 - DEBUG - Do not have enough data to verify VN in agent 2026-03-30 03:46:00,880 - DEBUG - VRF ids for VN ctest-vn4-25550823: {} 2026-03-30 03:46:00,881 - DEBUG - ====Verifying data for ctest-policy1-96452382 in API_Server ====== 2026-03-30 03:46:00,881 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 03:46:00,887 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8 2026-03-30 03:46:00,899 - DEBUG - Requesting: http://10.0.0.41:8082/project/478abc67-0e1f-45b5-a0e6-2083226ffe3d 2026-03-30 03:46:00,983 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/40f66b44-f4fc-451e-938a-cb9daa24e76a 2026-03-30 03:46:00,998 - INFO - Verified policy ctest-policy1-96452382 in API Server, Result: True 2026-03-30 03:46:00,998 - INFO - Done with setup and verification, moving onto test .. 2026-03-30 03:46:01,009 - INFO - Deleting VN ctest-vn4-25550823 2026-03-30 03:46:01,158 - DEBUG - Response for deleting network () 2026-03-30 03:46:01,158 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/e8119275-8458-488e-866f-614e2de911a7 2026-03-30 03:46:01,164 - DEBUG - Response Code: 404 2026-03-30 03:46:01,165 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2026-03-30 03:46:01,171 - DEBUG - Requesting: http://10.0.0.41:8082/domain/c99256f1-436c-4481-8567-949d809916a8 2026-03-30 03:46:01,229 - DEBUG - Requesting: http://10.0.0.41:8082/project/478abc67-0e1f-45b5-a0e6-2083226ffe3d 2026-03-30 03:46:01,310 - INFO - Validated that VN ctest-vn4-25550823 is not found in API Server 2026-03-30 03:46:01,322 - DEBUG - VN ctest-vn4-25550823 is not present in Agent 10.0.0.41 2026-03-30 03:46:01,322 - INFO - Validated that VN ctest-vn4-25550823 is not in any agent 2026-03-30 03:46:01,339 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-25550823 info 2026-03-30 03:46:01,364 - INFO - Deleted policy ctest-policy1-96452382 2026-03-30 03:46:01,534 - DEBUG - policy ctest-policy1-96452382 is not found in API Server 2026-03-30 03:46:01,792 - DEBUG - No XMPP flaps were noticed during the test
2026-03-30 03:46:01,792 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2026-03-30 03:46:01,792 - INFO - -------------------------------------------------------------------------------- 2026-03-30 03:46:02,098 - DEBUG - No XMPP flaps were noticed during the test
2026-03-30 03:46:02,098 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2026-03-30 03:46:02,098 - INFO - -------------------------------------------------------------------------------- 2026-03-30 03:46:02,824 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-02025020, ID : 478abc67-0e1f-45b5-a0e6-2083226ffe3d