2026-09-01 14:22:51,515 - INFO - Domain Default found not creating 2026-09-01 14:22:51,691 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-10228293 not found, creating it 2026-09-01 14:22:52,220 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-10228293, ID : 019e4883-2e7d-4c04-ba42-3bf79c7cdf32 2026-09-01 14:22:53,933 - INFO - ================================================================================ 2026-09-01 14:22:53,933 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 14:22:54,207 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-01 14:22:54,207 - INFO - Initial checks done. Running the testcase now 2026-09-01 14:22:54,207 - INFO - 2026-09-01 14:22:54,207 - INFO - ================================================================================ 2026-09-01 14:22:54,207 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-09-01 14:22:54,207 - 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-09-01 14:22:54,507 - DEBUG - Nothing to compare xmpp stats {'10.0.0.190': {'10.20.0.25': '0'}} with 2026-09-01 14:22:54,507 - INFO - Initial checks done. Running the testcase now 2026-09-01 14:22:54,507 - INFO - 2026-09-01 14:22:54,938 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559, 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-10228293:ctest-vn4-83716559, 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-10228293:ctest-vn4-83716559, 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-10228293:ctest-vn4-83716559, 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-09-01 14:22:55,498 - DEBUG - Response for create_network : {'network': {'id': 'a5d8133e-d9fd-44b6-af2f-ed88a0e6c906', 'name': 'ctest-vn4-83716559', 'tenant_id': '019e48832e7d4c04ba423bf79c7cdf32', 'project_id': '019e48832e7d4c04ba423bf79c7cdf32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10228293', 'ctest-vn4-83716559'], 'port_security_enabled': True, 'description': ''}} 2026-09-01 14:22:55,686 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b07effd0-3d84-4b0d-8501-3cf2650b69cd', 'name': '', 'tenant_id': '019e48832e7d4c04ba423bf79c7cdf32', 'network_id': 'a5d8133e-d9fd-44b6-af2f-ed88a0e6c906', 'ip_version': 4, 'cidr': '141.209.195.64/26', 'allocation_pools': [{'start': '141.209.195.66', 'end': '141.209.195.126'}], 'gateway_ip': '141.209.195.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '141.209.195.66', 'tags': [], 'project_id': '019e48832e7d4c04ba423bf79c7cdf32'}} 2026-09-01 14:22:55,860 - DEBUG - Response for create_subnet : {'subnet': {'id': '963648f2-aaf8-4920-a8d2-dfd0b3dec133', 'name': '', 'tenant_id': '019e48832e7d4c04ba423bf79c7cdf32', 'network_id': 'a5d8133e-d9fd-44b6-af2f-ed88a0e6c906', 'ip_version': 6, 'cidr': '212c:6cbc:39e0:7b04:aa37:a7ca::/96', 'allocation_pools': [{'start': '212c:6cbc:39e0:7b04:aa37:a7ca:0:2', 'end': '212c:6cbc:39e0:7b04:aa37:a7ca:ffff:fffe'}], 'gateway_ip': '212c:6cbc:39e0:7b04:aa37:a7ca:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212c:6cbc:39e0:7b04:aa37:a7ca:0:2', 'tags': [], 'project_id': '019e48832e7d4c04ba423bf79c7cdf32'}} 2026-09-01 14:22:55,883 - INFO - Created VN ctest-vn4-83716559 2026-09-01 14:22:55,938 - DEBUG - VN ctest-vn4-83716559 UUID is a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,165 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a5d8133e-d9fd-44b6-af2f-ed88a0e6c906', 'name': 'ctest-vn4-83716559', 'tenant_id': '019e48832e7d4c04ba423bf79c7cdf32', 'project_id': '019e48832e7d4c04ba423bf79c7cdf32', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'tags': [], 'subnets': ['b07effd0-3d84-4b0d-8501-3cf2650b69cd', '963648f2-aaf8-4920-a8d2-dfd0b3dec133'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10228293', 'ctest-vn4-83716559'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10228293', 'ctest-policy1-47917233']], 'subnet_ipam': [{'subnet_cidr': '141.209.195.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '212c:6cbc:39e0:7b04:aa37:a7ca::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-09-01 14:22:56,342 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-01 14:22:56,705 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-01 14:22:56,733 - DEBUG - Requesting: http://10.0.0.190:8082/domain/4455561a-3135-4ce1-835f-4caa6b6744ae 2026-09-01 14:22:56,748 - DEBUG - Requesting: http://10.0.0.190:8082/project/019e4883-2e7d-4c04-ba42-3bf79c7cdf32 2026-09-01 14:22:56,834 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,850 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,861 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:56,870 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:56,878 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/91379e1c-acc8-42ae-8577-ebba6c358e71 2026-09-01 14:22:56,885 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 14:22:56,885 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,898 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:56,917 - INFO - Verified VN network id 12 for VN a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,917 - INFO - Verifications in API Server for VN ctest-vn4-83716559 passed 2026-09-01 14:22:56,917 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:56,928 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:56,936 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:56,944 - DEBUG - Requesting: http://10.0.0.190:8082/route-target/91379e1c-acc8-42ae-8577-ebba6c358e71 2026-09-01 14:22:56,959 - DEBUG - Control-node 10.0.0.190 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-10228293', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11950322771893765302', 'uuid-lslong': '12623569451613604102'}, 'enable': 'true', 'created': '2026-09-01T14:22:55', 'last-modified': '2026-09-01T14:22:56', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.825316'} 2026-09-01 14:22:56,967 - DEBUG - Route Targets: ['target:64512:8000005'] 2026-09-01 14:22:56,967 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83716559 passed 2026-09-01 14:22:56,967 - DEBUG - ====Verifying policy data for ctest-vn4-83716559 in API_Server ====== 2026-09-01 14:22:56,967 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-01 14:22:56,974 - DEBUG - Requesting: http://10.0.0.190:8082/domain/4455561a-3135-4ce1-835f-4caa6b6744ae 2026-09-01 14:22:56,987 - DEBUG - Requesting: http://10.0.0.190:8082/project/019e4883-2e7d-4c04-ba42-3bf79c7cdf32 2026-09-01 14:22:57,068 - DEBUG - Requesting: http://10.0.0.190:8082/virtual-network/a5d8133e-d9fd-44b6-af2f-ed88a0e6c906 2026-09-01 14:22:57,080 - DEBUG - ==>Verifying data for policy with id: bbd14ed5-f938-4098-bdc0-017233c53c63, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-10228293', 'ctest-policy1-47917233'] 2026-09-01 14:22:57,080 - INFO - VN ctest-vn4-83716559 Policy verification: verify_vn_policy_in_api_server, status: True 2026-09-01 14:22:57,080 - DEBUG - Verifying the vn in opserver 2026-09-01 14:22:57,081 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559 virtual network link through opserver 10.0.0.190 2026-09-01 14:22:57,081 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-01 14:22:57,446 - DEBUG - Requesting: http://10.0.0.190:8081/analytics/uves/virtual-networks 2026-09-01 14:22:57,506 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559', 'href': 'http://10.0.0.190:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559?flat'} 2026-09-01 14:22:57,506 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-10228293:ctest-vn4-83716559 is found in opserver 2026-09-01 14:22:57,518 - DEBUG - Do not have enough data to verify VN in agent 2026-09-01 14:22:57,524 - DEBUG - VRF ids for VN ctest-vn4-83716559: {} 2026-09-01 14:22:57,524 - DEBUG - ====Verifying data for ctest-policy1-47917233 in API_Server ====== 2026-09-01 14:22:57,524 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-01 14:22:57,530 - DEBUG - Requesting: http://10.0.0.190:8082/domain/4455561a-3135-4ce1-835f-4caa6b6744ae 2026-09-01 14:22:57,543 - DEBUG - Requesting: http://10.0.0.190:8082/project/019e4883-2e7d-4c04-ba42-3bf79c7cdf32 2026-09-01 14:22:57,624 - DEBUG - Requesting: http://10.0.0.190:8082/network-policy/bbd14ed5-f938-4098-bdc0-017233c53c63 2026-09-01 14:22:57,636 - INFO - Verified policy ctest-policy1-47917233 in API Server, Result: True 2026-09-01 14:22:57,636 - INFO - Done with setup and verification, moving onto test .. 2026-09-01 14:22:57,646 - INFO - Deleting VN ctest-vn4-83716559 2026-09-01 14:22:57,802 - DEBUG - Response for deleting network () 2026-09-01 14:22:57,802 - DEBUG - Requesting: http://10.0.0.190:8082/routing-instance/e51ced73-4acb-426a-92ad-d23785a0d9d5 2026-09-01 14:22:57,809 - DEBUG - Response Code: 404 2026-09-01 14:22:57,809 - DEBUG - Requesting: http://10.0.0.190:8082/domains 2026-09-01 14:22:57,815 - DEBUG - Requesting: http://10.0.0.190:8082/domain/4455561a-3135-4ce1-835f-4caa6b6744ae 2026-09-01 14:22:57,871 - DEBUG - Requesting: http://10.0.0.190:8082/project/019e4883-2e7d-4c04-ba42-3bf79c7cdf32 2026-09-01 14:22:57,946 - INFO - Validated that VN ctest-vn4-83716559 is not found in API Server 2026-09-01 14:22:57,960 - DEBUG - VN ctest-vn4-83716559 is not present in Agent 10.0.0.190 2026-09-01 14:22:57,960 - INFO - Validated that VN ctest-vn4-83716559 is not in any agent 2026-09-01 14:22:57,978 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83716559 info 2026-09-01 14:22:58,008 - INFO - Deleted policy ctest-policy1-47917233 2026-09-01 14:22:58,185 - DEBUG - policy ctest-policy1-47917233 is not found in API Server 2026-09-01 14:22:58,451 - DEBUG - No XMPP flaps were noticed during the test 2026-09-01 14:22:58,451 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2026-09-01 14:22:58,451 - INFO - -------------------------------------------------------------------------------- 2026-09-01 14:22:58,736 - DEBUG - No XMPP flaps were noticed during the test 2026-09-01 14:22:58,736 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2026-09-01 14:22:58,736 - INFO - -------------------------------------------------------------------------------- 2026-09-01 14:22:59,504 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-10228293, ID : 019e4883-2e7d-4c04-ba42-3bf79c7cdf32