2026-04-30 03:00:02,344 - INFO - Domain Default found not creating 2026-04-30 03:00:02,521 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95365233 not found, creating it 2026-04-30 03:00:03,103 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95365233, ID : 093ba1a5-aa78-462a-932e-517b432e9430 2026-04-30 03:00:04,613 - INFO - ================================================================================ 2026-04-30 03:00:04,613 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 03:00:05,942 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0', '10.20.0.18': '0'}, '10.0.0.241': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2026-04-30 03:00:05,942 - INFO - Initial checks done. Running the testcase now 2026-04-30 03:00:05,943 - INFO - 2026-04-30 03:00:05,943 - INFO - ================================================================================ 2026-04-30 03:00:05,943 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-30 03:00:05,943 - 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-30 03:00:07,246 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.193': '0', '10.20.0.18': '0'}, '10.0.0.241': {'10.20.0.193': '0', '10.20.0.18': '0'}} with 2026-04-30 03:00:07,246 - INFO - Initial checks done. Running the testcase now 2026-04-30 03:00:07,246 - INFO - 2026-04-30 03:00:07,572 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768, 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-95365233:ctest-vn4-50243768, 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-95365233:ctest-vn4-50243768, 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-95365233:ctest-vn4-50243768, 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-30 03:00:08,281 - DEBUG - Response for create_network : {'network': {'id': '2dfef835-1d4c-4317-94c8-5e5e823ecae9', 'name': 'ctest-vn4-50243768', 'tenant_id': '093ba1a5aa78462a932e517b432e9430', 'project_id': '093ba1a5aa78462a932e517b432e9430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'ctest-vn4-50243768'], 'port_security_enabled': True, 'description': ''}} 2026-04-30 03:00:08,579 - DEBUG - Response for create_subnet : {'subnet': {'id': '747b3ac6-8ab6-4bc7-a1f3-3435d6a3b320', 'name': '', 'tenant_id': '093ba1a5aa78462a932e517b432e9430', 'network_id': '2dfef835-1d4c-4317-94c8-5e5e823ecae9', 'ip_version': 4, 'cidr': '58.2.65.0/26', 'allocation_pools': [{'start': '58.2.65.2', 'end': '58.2.65.62'}], 'gateway_ip': '58.2.65.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.2.65.2', 'tags': [], 'project_id': '093ba1a5aa78462a932e517b432e9430'}} 2026-04-30 03:00:08,800 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ca1c715-0e8c-4df4-9945-e64c9438e99f', 'name': '', 'tenant_id': '093ba1a5aa78462a932e517b432e9430', 'network_id': '2dfef835-1d4c-4317-94c8-5e5e823ecae9', 'ip_version': 6, 'cidr': '3e27:e809:95c7:99c2:3a82:37a9::/96', 'allocation_pools': [{'start': '3e27:e809:95c7:99c2:3a82:37a9:0:2', 'end': '3e27:e809:95c7:99c2:3a82:37a9:ffff:fffe'}], 'gateway_ip': '3e27:e809:95c7:99c2:3a82:37a9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3e27:e809:95c7:99c2:3a82:37a9:0:2', 'tags': [], 'project_id': '093ba1a5aa78462a932e517b432e9430'}} 2026-04-30 03:00:08,838 - INFO - Created VN ctest-vn4-50243768 2026-04-30 03:00:08,851 - DEBUG - VN ctest-vn4-50243768 UUID is 2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,099 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2dfef835-1d4c-4317-94c8-5e5e823ecae9', 'name': 'ctest-vn4-50243768', 'tenant_id': '093ba1a5aa78462a932e517b432e9430', 'project_id': '093ba1a5aa78462a932e517b432e9430', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['747b3ac6-8ab6-4bc7-a1f3-3435d6a3b320', '0ca1c715-0e8c-4df4-9945-e64c9438e99f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'ctest-vn4-50243768'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'ctest-policy1-69330821']], 'subnet_ipam': [{'subnet_cidr': '58.2.65.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3e27:e809:95c7:99c2:3a82:37a9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-30 03:00:09,189 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-30 03:00:09,484 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-30 03:00:09,513 - DEBUG - Requesting: http://10.0.0.73:8082/domain/f8fddec0-a757-47f7-9dc4-33479425fadb 2026-04-30 03:00:09,528 - DEBUG - Requesting: http://10.0.0.73:8082/project/093ba1a5-aa78-462a-932e-517b432e9430 2026-04-30 03:00:09,619 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,632 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,642 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:09,649 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:09,655 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/a3a8bf7d-94dc-4678-abc4-fc31c405df4d 2026-04-30 03:00:09,661 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 03:00:09,661 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,669 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:09,683 - INFO - Verified VN network id 15 for VN 2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,683 - INFO - Verifications in API Server for VN ctest-vn4-50243768 passed 2026-04-30 03:00:09,683 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,693 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:09,699 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:09,706 - DEBUG - Requesting: http://10.0.0.73:8082/route-target/a3a8bf7d-94dc-4678-abc4-fc31c405df4d 2026-04-30 03:00:09,717 - DEBUG - Control-node 10.0.0.73 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3314359282799756055', 'uuid-lslong': '10720922672960555753'}, 'enable': 'true', 'created': '2026-04-30T03:00:08', 'last-modified': '2026-04-30T03:00:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.663901'} 2026-04-30 03:00:09,722 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 03:00:09,728 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3314359282799756055', 'uuid-lslong': '10720922672960555753'}, 'enable': 'true', 'created': '2026-04-30T03:00:08', 'last-modified': '2026-04-30T03:00:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.682553'} 2026-04-30 03:00:09,736 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 03:00:09,741 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3314359282799756055', 'uuid-lslong': '10720922672960555753'}, 'enable': 'true', 'created': '2026-04-30T03:00:08', 'last-modified': '2026-04-30T03:00:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701329'} 2026-04-30 03:00:09,748 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-30 03:00:09,748 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-50243768 passed 2026-04-30 03:00:09,749 - DEBUG - ====Verifying policy data for ctest-vn4-50243768 in API_Server ====== 2026-04-30 03:00:09,749 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-30 03:00:09,755 - DEBUG - Requesting: http://10.0.0.73:8082/domain/f8fddec0-a757-47f7-9dc4-33479425fadb 2026-04-30 03:00:09,767 - DEBUG - Requesting: http://10.0.0.73:8082/project/093ba1a5-aa78-462a-932e-517b432e9430 2026-04-30 03:00:09,867 - DEBUG - Requesting: http://10.0.0.73:8082/virtual-network/2dfef835-1d4c-4317-94c8-5e5e823ecae9 2026-04-30 03:00:09,879 - DEBUG - ==>Verifying data for policy with id: a9ef3e59-570d-4888-802c-e692bba2828a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95365233', 'ctest-policy1-69330821'] 2026-04-30 03:00:09,880 - INFO - VN ctest-vn4-50243768 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-30 03:00:09,880 - DEBUG - Verifying the vn in opserver 2026-04-30 03:00:09,880 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768 virtual network link through opserver 10.0.0.73 2026-04-30 03:00:09,880 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-04-30 03:00:10,188 - DEBUG - Requesting: http://10.0.0.73:8081/analytics/uves/virtual-networks 2026-04-30 03:00:10,254 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'href': 'http://10.0.0.73:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768?flat'} 2026-04-30 03:00:10,254 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768 virtual network link through opserver 10.0.0.141 2026-04-30 03:00:10,254 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-30 03:00:10,554 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2026-04-30 03:00:10,621 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768?flat'} 2026-04-30 03:00:10,622 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768 virtual network link through opserver 10.0.0.33 2026-04-30 03:00:10,622 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-30 03:00:10,934 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2026-04-30 03:00:11,004 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768?flat'} 2026-04-30 03:00:11,004 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95365233:ctest-vn4-50243768 is found in opserver 2026-04-30 03:00:11,029 - DEBUG - Do not have enough data to verify VN in agent 2026-04-30 03:00:11,039 - DEBUG - VRF ids for VN ctest-vn4-50243768: {} 2026-04-30 03:00:11,039 - DEBUG - ====Verifying data for ctest-policy1-69330821 in API_Server ====== 2026-04-30 03:00:11,039 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-30 03:00:11,046 - DEBUG - Requesting: http://10.0.0.73:8082/domain/f8fddec0-a757-47f7-9dc4-33479425fadb 2026-04-30 03:00:11,057 - DEBUG - Requesting: http://10.0.0.73:8082/project/093ba1a5-aa78-462a-932e-517b432e9430 2026-04-30 03:00:11,158 - DEBUG - Requesting: http://10.0.0.73:8082/network-policy/a9ef3e59-570d-4888-802c-e692bba2828a 2026-04-30 03:00:11,175 - INFO - Verified policy ctest-policy1-69330821 in API Server, Result: True 2026-04-30 03:00:11,175 - INFO - Done with setup and verification, moving onto test .. 2026-04-30 03:00:11,189 - INFO - Deleting VN ctest-vn4-50243768 2026-04-30 03:00:11,416 - DEBUG - Response for deleting network () 2026-04-30 03:00:11,416 - DEBUG - Requesting: http://10.0.0.73:8082/routing-instance/f88ba1b0-417c-4ffb-b4ac-7351ea1ac21f 2026-04-30 03:00:11,437 - DEBUG - Response Code: 404 2026-04-30 03:00:11,438 - DEBUG - Requesting: http://10.0.0.73:8082/domains 2026-04-30 03:00:11,444 - DEBUG - Requesting: http://10.0.0.73:8082/domain/f8fddec0-a757-47f7-9dc4-33479425fadb 2026-04-30 03:00:11,455 - DEBUG - Requesting: http://10.0.0.73:8082/project/093ba1a5-aa78-462a-932e-517b432e9430 2026-04-30 03:00:11,552 - INFO - Validated that VN ctest-vn4-50243768 is not found in API Server 2026-04-30 03:00:11,564 - DEBUG - VN ctest-vn4-50243768 is not present in Agent 10.0.0.19 2026-04-30 03:00:11,576 - DEBUG - VN ctest-vn4-50243768 is not present in Agent 10.0.0.241 2026-04-30 03:00:11,576 - INFO - Validated that VN ctest-vn4-50243768 is not in any agent 2026-04-30 03:00:11,612 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-50243768 info 2026-04-30 03:00:11,654 - INFO - Deleted policy ctest-policy1-69330821 2026-04-30 03:00:11,850 - DEBUG - policy ctest-policy1-69330821 is not found in API Server 2026-04-30 03:00:13,140 - DEBUG - No XMPP flaps were noticed during the test