2026-01-30 23:53:13,964 - INFO - Domain Default found not creating 2026-01-30 23:53:14,142 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-93690003 not found, creating it 2026-01-30 23:53:14,611 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-93690003, ID : 74cff7cf-2c84-4cb8-bbaf-81fa80546ad4 2026-01-30 23:53:16,101 - INFO - ================================================================================ 2026-01-30 23:53:16,101 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 23:53:16,357 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-30 23:53:16,357 - INFO - Initial checks done. Running the testcase now 2026-01-30 23:53:16,357 - INFO - 2026-01-30 23:53:16,357 - INFO - ================================================================================ 2026-01-30 23:53:16,357 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-01-30 23:53:16,357 - 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-01-30 23:53:16,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.17': '0'}} with 2026-01-30 23:53:16,658 - INFO - Initial checks done. Running the testcase now 2026-01-30 23:53:16,658 - INFO - 2026-01-30 23:53:17,018 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890, 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-93690003:ctest-vn4-47404890, 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-93690003:ctest-vn4-47404890, 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-93690003:ctest-vn4-47404890, 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-01-30 23:53:17,544 - DEBUG - Response for create_network : {'network': {'id': '9ec8d105-9cd2-4bfd-968a-02957c87e85f', 'name': 'ctest-vn4-47404890', 'tenant_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'project_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93690003', 'ctest-vn4-47404890'], 'port_security_enabled': True, 'description': ''}} 2026-01-30 23:53:17,752 - DEBUG - Response for create_subnet : {'subnet': {'id': '30174d0a-9124-4dde-ad80-34ed2cd4332a', 'name': '', 'tenant_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'network_id': '9ec8d105-9cd2-4bfd-968a-02957c87e85f', 'ip_version': 4, 'cidr': '75.232.94.64/26', 'allocation_pools': [{'start': '75.232.94.66', 'end': '75.232.94.126'}], 'gateway_ip': '75.232.94.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.232.94.66', 'tags': [], 'project_id': '74cff7cf2c844cb8bbaf81fa80546ad4'}} 2026-01-30 23:53:17,963 - DEBUG - Response for create_subnet : {'subnet': {'id': '4855af7c-bd1f-4f12-a92f-f33148f8610c', 'name': '', 'tenant_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'network_id': '9ec8d105-9cd2-4bfd-968a-02957c87e85f', 'ip_version': 6, 'cidr': '310f:9b4f:a545:2d0f:67aa:8433::/96', 'allocation_pools': [{'start': '310f:9b4f:a545:2d0f:67aa:8433:0:2', 'end': '310f:9b4f:a545:2d0f:67aa:8433:ffff:fffe'}], 'gateway_ip': '310f:9b4f:a545:2d0f:67aa:8433:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '310f:9b4f:a545:2d0f:67aa:8433:0:2', 'tags': [], 'project_id': '74cff7cf2c844cb8bbaf81fa80546ad4'}} 2026-01-30 23:53:17,983 - INFO - Created VN ctest-vn4-47404890 2026-01-30 23:53:18,035 - DEBUG - VN ctest-vn4-47404890 UUID is 9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,226 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ec8d105-9cd2-4bfd-968a-02957c87e85f', 'name': 'ctest-vn4-47404890', 'tenant_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'project_id': '74cff7cf2c844cb8bbaf81fa80546ad4', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['30174d0a-9124-4dde-ad80-34ed2cd4332a', '4855af7c-bd1f-4f12-a92f-f33148f8610c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93690003', 'ctest-vn4-47404890'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93690003', 'ctest-policy1-41552715']], 'subnet_ipam': [{'subnet_cidr': '75.232.94.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '310f:9b4f:a545:2d0f:67aa:8433::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-01-30 23:53:18,387 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-30 23:53:18,707 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-30 23:53:18,737 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551 2026-01-30 23:53:18,748 - DEBUG - Requesting: http://10.0.0.33:8082/project/74cff7cf-2c84-4cb8-bbaf-81fa80546ad4 2026-01-30 23:53:18,817 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,829 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,838 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:18,844 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:18,850 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/12e2b779-7797-45a4-afb7-f085e15d07c4 2026-01-30 23:53:18,856 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 23:53:18,856 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,864 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:18,876 - INFO - Verified VN network id 12 for VN 9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,876 - INFO - Verifications in API Server for VN ctest-vn4-47404890 passed 2026-01-30 23:53:18,877 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:18,884 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:18,890 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:18,895 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/12e2b779-7797-45a4-afb7-f085e15d07c4 2026-01-30 23:53:18,906 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-93690003', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11441624675370814461', 'uuid-lslong': '10847485493537925215'}, 'enable': 'true', 'created': '2026-01-30T23:53:17', 'last-modified': '2026-01-30T23:53:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.700212'} 2026-01-30 23:53:18,912 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-01-30 23:53:18,912 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-47404890 passed 2026-01-30 23:53:18,912 - DEBUG - ====Verifying policy data for ctest-vn4-47404890 in API_Server ====== 2026-01-30 23:53:18,914 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-30 23:53:18,919 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551 2026-01-30 23:53:18,929 - DEBUG - Requesting: http://10.0.0.33:8082/project/74cff7cf-2c84-4cb8-bbaf-81fa80546ad4 2026-01-30 23:53:18,997 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/9ec8d105-9cd2-4bfd-968a-02957c87e85f 2026-01-30 23:53:19,006 - DEBUG - ==>Verifying data for policy with id: c661ba27-d625-47d2-a3a6-47d5fcb83457, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-93690003', 'ctest-policy1-41552715'] 2026-01-30 23:53:19,006 - INFO - VN ctest-vn4-47404890 Policy verification: verify_vn_policy_in_api_server, status: True 2026-01-30 23:53:19,006 - DEBUG - Verifying the vn in opserver 2026-01-30 23:53:19,006 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890 virtual network link through opserver 10.0.0.33 2026-01-30 23:53:19,006 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-30 23:53:19,312 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-01-30 23:53:19,371 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890?flat'} 2026-01-30 23:53:19,371 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-93690003:ctest-vn4-47404890 is found in opserver 2026-01-30 23:53:19,379 - DEBUG - Do not have enough data to verify VN in agent 2026-01-30 23:53:19,384 - DEBUG - VRF ids for VN ctest-vn4-47404890: {} 2026-01-30 23:53:19,385 - DEBUG - ====Verifying data for ctest-policy1-41552715 in API_Server ====== 2026-01-30 23:53:19,385 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-30 23:53:19,390 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551 2026-01-30 23:53:19,401 - DEBUG - Requesting: http://10.0.0.33:8082/project/74cff7cf-2c84-4cb8-bbaf-81fa80546ad4 2026-01-30 23:53:19,468 - DEBUG - Requesting: http://10.0.0.33:8082/network-policy/c661ba27-d625-47d2-a3a6-47d5fcb83457 2026-01-30 23:53:19,480 - INFO - Verified policy ctest-policy1-41552715 in API Server, Result: True 2026-01-30 23:53:19,480 - INFO - Done with setup and verification, moving onto test .. 2026-01-30 23:53:19,490 - INFO - Deleting VN ctest-vn4-47404890 2026-01-30 23:53:19,618 - DEBUG - Response for deleting network () 2026-01-30 23:53:19,618 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/252cff94-1fe7-42f6-adf1-84b28723e1d8 2026-01-30 23:53:19,624 - DEBUG - Response Code: 404 2026-01-30 23:53:19,624 - DEBUG - Requesting: http://10.0.0.33:8082/domains 2026-01-30 23:53:19,630 - DEBUG - Requesting: http://10.0.0.33:8082/domain/c0ccf4e6-a155-4ae1-816f-cca8ae38a551 2026-01-30 23:53:19,686 - DEBUG - Requesting: http://10.0.0.33:8082/project/74cff7cf-2c84-4cb8-bbaf-81fa80546ad4 2026-01-30 23:53:19,757 - INFO - Validated that VN ctest-vn4-47404890 is not found in API Server 2026-01-30 23:53:19,766 - DEBUG - VN ctest-vn4-47404890 is not present in Agent 10.0.0.33 2026-01-30 23:53:19,766 - INFO - Validated that VN ctest-vn4-47404890 is not in any agent 2026-01-30 23:53:19,779 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-47404890 info 2026-01-30 23:53:19,802 - INFO - Deleted policy ctest-policy1-41552715 2026-01-30 23:53:19,975 - DEBUG - policy ctest-policy1-41552715 is not found in API Server 2026-01-30 23:53:20,228 - DEBUG - No XMPP flaps were noticed during the test