2026-04-28 13:06:47,795 - INFO - Domain Default found not creating 2026-04-28 13:06:47,967 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-81354758 not found, creating it 2026-04-28 13:06:48,433 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-81354758, ID : 75343a66-a179-4b04-8069-482fbc2399d0 2026-04-28 13:06:50,004 - INFO - ================================================================================ 2026-04-28 13:06:50,004 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 13:06:50,260 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.14': '0'}} with 2026-04-28 13:06:50,260 - INFO - Initial checks done. Running the testcase now 2026-04-28 13:06:50,260 - INFO - 2026-04-28 13:06:50,260 - INFO - ================================================================================ 2026-04-28 13:06:50,260 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-28 13:06:50,260 - 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-04-28 13:06:50,552 - DEBUG - Nothing to compare xmpp stats {'10.0.0.56': {'10.20.0.14': '0'}} with 2026-04-28 13:06:50,552 - INFO - Initial checks done. Running the testcase now 2026-04-28 13:06:50,552 - INFO - 2026-04-28 13:06:50,920 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976, 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-81354758:ctest-vn4-24865976, 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-81354758:ctest-vn4-24865976, 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-81354758:ctest-vn4-24865976, 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-04-28 13:06:51,438 - DEBUG - Response for create_network : {'network': {'id': 'a3e861bc-0a26-4ff7-8961-4e7723ad5eae', 'name': 'ctest-vn4-24865976', 'tenant_id': '75343a66a1794b048069482fbc2399d0', 'project_id': '75343a66a1794b048069482fbc2399d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81354758', 'ctest-vn4-24865976'], 'port_security_enabled': True, 'description': ''}} 2026-04-28 13:06:51,649 - DEBUG - Response for create_subnet : {'subnet': {'id': '35aa6c75-cb5b-49ba-97e5-8458b177b1b4', 'name': '', 'tenant_id': '75343a66a1794b048069482fbc2399d0', 'network_id': 'a3e861bc-0a26-4ff7-8961-4e7723ad5eae', 'ip_version': 4, 'cidr': '173.94.102.0/26', 'allocation_pools': [{'start': '173.94.102.2', 'end': '173.94.102.62'}], 'gateway_ip': '173.94.102.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.94.102.2', 'tags': [], 'project_id': '75343a66a1794b048069482fbc2399d0'}} 2026-04-28 13:06:51,786 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f523077d-f8d3-4ea2-b537-19f11e7f7f6c', 'name': '', 'tenant_id': '75343a66a1794b048069482fbc2399d0', 'network_id': 'a3e861bc-0a26-4ff7-8961-4e7723ad5eae', 'ip_version': 6, 'cidr': '3ce2:34e7:6d82:bf14:3403:4171::/96', 'allocation_pools': [{'start': '3ce2:34e7:6d82:bf14:3403:4171:0:2', 'end': '3ce2:34e7:6d82:bf14:3403:4171:ffff:fffe'}], 'gateway_ip': '3ce2:34e7:6d82:bf14:3403:4171:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ce2:34e7:6d82:bf14:3403:4171:0:2', 'tags': [], 'project_id': '75343a66a1794b048069482fbc2399d0'}} 2026-04-28 13:06:51,806 - INFO - Created VN ctest-vn4-24865976 2026-04-28 13:06:51,859 - DEBUG - VN ctest-vn4-24865976 UUID is a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a3e861bc-0a26-4ff7-8961-4e7723ad5eae', 'name': 'ctest-vn4-24865976', 'tenant_id': '75343a66a1794b048069482fbc2399d0', 'project_id': '75343a66a1794b048069482fbc2399d0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['35aa6c75-cb5b-49ba-97e5-8458b177b1b4', 'f523077d-f8d3-4ea2-b537-19f11e7f7f6c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81354758', 'ctest-vn4-24865976'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81354758', 'ctest-policy1-89430876']], 'subnet_ipam': [{'subnet_cidr': '173.94.102.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ce2:34e7:6d82:bf14:3403:4171::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-28 13:06:52,203 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-04-28 13:06:52,494 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-04-28 13:06:52,527 - DEBUG - Requesting: http://10.0.0.56:8082/domain/4dcd574d-66f5-4efb-9a00-c91eacb99857 2026-04-28 13:06:52,541 - DEBUG - Requesting: http://10.0.0.56:8082/project/75343a66-a179-4b04-8069-482fbc2399d0 2026-04-28 13:06:52,620 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,633 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,643 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:52,650 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:52,656 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ab30af0b-0a17-4b45-bbb1-edb2586f41cf 2026-04-28 13:06:52,663 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 13:06:52,663 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,673 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:52,686 - INFO - Verified VN network id 12 for VN a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,686 - INFO - Verifications in API Server for VN ctest-vn4-24865976 passed 2026-04-28 13:06:52,686 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,695 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:52,702 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:52,710 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/ab30af0b-0a17-4b45-bbb1-edb2586f41cf 2026-04-28 13:06:52,722 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-81354758', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11810797483031154679', 'uuid-lslong': '9899279729543700142'}, 'enable': 'true', 'created': '2026-04-28T13:06:51', 'last-modified': '2026-04-28T13:06:52', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.694202'} 2026-04-28 13:06:52,728 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-28 13:06:52,728 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-24865976 passed 2026-04-28 13:06:52,728 - DEBUG - ====Verifying policy data for ctest-vn4-24865976 in API_Server ====== 2026-04-28 13:06:52,728 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-04-28 13:06:52,734 - DEBUG - Requesting: http://10.0.0.56:8082/domain/4dcd574d-66f5-4efb-9a00-c91eacb99857 2026-04-28 13:06:52,745 - DEBUG - Requesting: http://10.0.0.56:8082/project/75343a66-a179-4b04-8069-482fbc2399d0 2026-04-28 13:06:52,815 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a3e861bc-0a26-4ff7-8961-4e7723ad5eae 2026-04-28 13:06:52,824 - DEBUG - ==>Verifying data for policy with id: 2b31e7a9-1f98-46e8-9a4f-9c8f6f297398, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-81354758', 'ctest-policy1-89430876'] 2026-04-28 13:06:52,824 - INFO - VN ctest-vn4-24865976 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-28 13:06:52,824 - DEBUG - Verifying the vn in opserver 2026-04-28 13:06:52,825 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976 virtual network link through opserver 10.0.0.56 2026-04-28 13:06:52,825 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-04-28 13:06:53,124 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2026-04-28 13:06:53,198 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976?flat'} 2026-04-28 13:06:53,198 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-81354758:ctest-vn4-24865976 is found in opserver 2026-04-28 13:06:53,209 - DEBUG - Do not have enough data to verify VN in agent 2026-04-28 13:06:53,213 - DEBUG - VRF ids for VN ctest-vn4-24865976: {} 2026-04-28 13:06:53,214 - DEBUG - ====Verifying data for ctest-policy1-89430876 in API_Server ====== 2026-04-28 13:06:53,214 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-04-28 13:06:53,219 - DEBUG - Requesting: http://10.0.0.56:8082/domain/4dcd574d-66f5-4efb-9a00-c91eacb99857 2026-04-28 13:06:53,230 - DEBUG - Requesting: http://10.0.0.56:8082/project/75343a66-a179-4b04-8069-482fbc2399d0 2026-04-28 13:06:53,298 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/2b31e7a9-1f98-46e8-9a4f-9c8f6f297398 2026-04-28 13:06:53,308 - INFO - Verified policy ctest-policy1-89430876 in API Server, Result: True 2026-04-28 13:06:53,308 - INFO - Done with setup and verification, moving onto test .. 2026-04-28 13:06:53,316 - INFO - Deleting VN ctest-vn4-24865976 2026-04-28 13:06:53,428 - DEBUG - Response for deleting network () 2026-04-28 13:06:53,428 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/04c19945-7096-4d28-85e8-0e3216029766 2026-04-28 13:06:53,432 - DEBUG - Response Code: 404 2026-04-28 13:06:53,433 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2026-04-28 13:06:53,443 - DEBUG - Requesting: http://10.0.0.56:8082/domain/4dcd574d-66f5-4efb-9a00-c91eacb99857 2026-04-28 13:06:53,495 - DEBUG - Requesting: http://10.0.0.56:8082/project/75343a66-a179-4b04-8069-482fbc2399d0 2026-04-28 13:06:53,566 - INFO - Validated that VN ctest-vn4-24865976 is not found in API Server 2026-04-28 13:06:53,576 - DEBUG - VN ctest-vn4-24865976 is not present in Agent 10.0.0.56 2026-04-28 13:06:53,576 - INFO - Validated that VN ctest-vn4-24865976 is not in any agent 2026-04-28 13:06:53,589 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-24865976 info 2026-04-28 13:06:53,613 - INFO - Deleted policy ctest-policy1-89430876 2026-04-28 13:06:53,778 - DEBUG - policy ctest-policy1-89430876 is not found in API Server 2026-04-28 13:06:54,037 - DEBUG - No XMPP flaps were noticed during the test