2026-04-20 02:35:11,507 - INFO - Domain Default found not creating 2026-04-20 02:35:11,685 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-43891815 not found, creating it 2026-04-20 02:35:12,243 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-43891815, ID : 890b60ed-9c57-43b5-88f0-3ba0c0581a6e 2026-04-20 02:35:13,840 - INFO - ================================================================================ 2026-04-20 02:35:13,840 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:35:15,156 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-04-20 02:35:15,156 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:35:15,156 - INFO - 2026-04-20 02:35:15,157 - INFO - ================================================================================ 2026-04-20 02:35:15,157 - INFO - STARTING TEST : test_remove_policy_with_ref 2026-04-20 02:35:15,157 - 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-20 02:35:16,429 - DEBUG - Nothing to compare xmpp stats {'10.0.0.240': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.65': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2026-04-20 02:35:16,429 - INFO - Initial checks done. Running the testcase now 2026-04-20 02:35:16,429 - INFO - 2026-04-20 02:35:16,786 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337, 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-43891815:ctest-vn4-12053337, 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-43891815:ctest-vn4-12053337, 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-43891815:ctest-vn4-12053337, 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-20 02:35:17,415 - DEBUG - Response for create_network : {'network': {'id': '13961f08-26e2-474a-9d3f-ab128a8f2cba', 'name': 'ctest-vn4-12053337', 'tenant_id': '890b60ed9c5743b588f03ba0c0581a6e', 'project_id': '890b60ed9c5743b588f03ba0c0581a6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'ctest-vn4-12053337'], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:35:17,731 - DEBUG - Response for create_subnet : {'subnet': {'id': '68f48a54-2f72-4626-a1b1-ee68afce0596', 'name': '', 'tenant_id': '890b60ed9c5743b588f03ba0c0581a6e', 'network_id': '13961f08-26e2-474a-9d3f-ab128a8f2cba', 'ip_version': 4, 'cidr': '17.166.201.64/26', 'allocation_pools': [{'start': '17.166.201.66', 'end': '17.166.201.126'}], 'gateway_ip': '17.166.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.166.201.66', 'tags': [], 'project_id': '890b60ed9c5743b588f03ba0c0581a6e'}} 2026-04-20 02:35:17,924 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e1b14b40-88cf-40db-ad41-bf15a905236c', 'name': '', 'tenant_id': '890b60ed9c5743b588f03ba0c0581a6e', 'network_id': '13961f08-26e2-474a-9d3f-ab128a8f2cba', 'ip_version': 6, 'cidr': '2dcb:44ab:e6a:43cf:757e:aa5f::/96', 'allocation_pools': [{'start': '2dcb:44ab:e6a:43cf:757e:aa5f:0:2', 'end': '2dcb:44ab:e6a:43cf:757e:aa5f:ffff:fffe'}], 'gateway_ip': '2dcb:44ab:e6a:43cf:757e:aa5f:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2dcb:44ab:e6a:43cf:757e:aa5f:0:2', 'tags': [], 'project_id': '890b60ed9c5743b588f03ba0c0581a6e'}} 2026-04-20 02:35:17,952 - INFO - Created VN ctest-vn4-12053337 2026-04-20 02:35:17,965 - DEBUG - VN ctest-vn4-12053337 UUID is 13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,209 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '13961f08-26e2-474a-9d3f-ab128a8f2cba', 'name': 'ctest-vn4-12053337', 'tenant_id': '890b60ed9c5743b588f03ba0c0581a6e', 'project_id': '890b60ed9c5743b588f03ba0c0581a6e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['68f48a54-2f72-4626-a1b1-ee68afce0596', 'e1b14b40-88cf-40db-ad41-bf15a905236c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'ctest-vn4-12053337'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'ctest-policy1-76213477']], 'subnet_ipam': [{'subnet_cidr': '17.166.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2dcb:44ab:e6a:43cf:757e:aa5f::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2026-04-20 02:35:18,326 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:35:18,680 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:35:18,717 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:35:18,732 - DEBUG - Requesting: http://10.0.0.38:8082/project/890b60ed-9c57-43b5-88f0-3ba0c0581a6e 2026-04-20 02:35:18,837 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,855 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,866 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:18,874 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:18,881 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/54ba97ae-6b78-4b11-b25a-fcc5b12349ec 2026-04-20 02:35:18,887 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:35:18,887 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,896 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:18,911 - INFO - Verified VN network id 15 for VN 13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,911 - INFO - Verifications in API Server for VN ctest-vn4-12053337 passed 2026-04-20 02:35:18,911 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:18,922 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:18,928 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:18,934 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/54ba97ae-6b78-4b11-b25a-fcc5b12349ec 2026-04-20 02:35:18,945 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1411349653099792202', 'uuid-lslong': '11330963283609857210'}, 'enable': 'true', 'created': '2026-04-20T02:35:17', 'last-modified': '2026-04-20T02:35:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.781775'} 2026-04-20 02:35:18,950 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:35:18,956 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1411349653099792202', 'uuid-lslong': '11330963283609857210'}, 'enable': 'true', 'created': '2026-04-20T02:35:17', 'last-modified': '2026-04-20T02:35:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.795346'} 2026-04-20 02:35:18,963 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:35:18,968 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1411349653099792202', 'uuid-lslong': '11330963283609857210'}, 'enable': 'true', 'created': '2026-04-20T02:35:17', 'last-modified': '2026-04-20T02:35:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.804666'} 2026-04-20 02:35:18,973 - DEBUG - Route Targets: ['target:64512:8000004'] 2026-04-20 02:35:18,973 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-12053337 passed 2026-04-20 02:35:18,973 - DEBUG - ====Verifying policy data for ctest-vn4-12053337 in API_Server ====== 2026-04-20 02:35:18,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:35:18,980 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:35:18,991 - DEBUG - Requesting: http://10.0.0.38:8082/project/890b60ed-9c57-43b5-88f0-3ba0c0581a6e 2026-04-20 02:35:19,076 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/13961f08-26e2-474a-9d3f-ab128a8f2cba 2026-04-20 02:35:19,088 - DEBUG - ==>Verifying data for policy with id: 4b271b23-65e9-4c0c-bea3-b1087ab5b9e3, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-43891815', 'ctest-policy1-76213477'] 2026-04-20 02:35:19,089 - INFO - VN ctest-vn4-12053337 Policy verification: verify_vn_policy_in_api_server, status: True 2026-04-20 02:35:19,089 - DEBUG - Verifying the vn in opserver 2026-04-20 02:35:19,089 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337 virtual network link through opserver 10.0.0.38 2026-04-20 02:35:19,089 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-20 02:35:19,406 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2026-04-20 02:35:19,477 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337?flat'} 2026-04-20 02:35:19,477 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337 virtual network link through opserver 10.0.0.27 2026-04-20 02:35:19,477 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-20 02:35:19,788 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2026-04-20 02:35:19,856 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337?flat'} 2026-04-20 02:35:19,856 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337 virtual network link through opserver 10.0.0.23 2026-04-20 02:35:19,857 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 02:35:20,177 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2026-04-20 02:35:20,245 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337?flat'} 2026-04-20 02:35:20,245 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-43891815:ctest-vn4-12053337 is found in opserver 2026-04-20 02:35:20,265 - DEBUG - Do not have enough data to verify VN in agent 2026-04-20 02:35:20,276 - DEBUG - VRF ids for VN ctest-vn4-12053337: {} 2026-04-20 02:35:20,276 - DEBUG - ====Verifying data for ctest-policy1-76213477 in API_Server ====== 2026-04-20 02:35:20,276 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:35:20,282 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:35:20,294 - DEBUG - Requesting: http://10.0.0.38:8082/project/890b60ed-9c57-43b5-88f0-3ba0c0581a6e 2026-04-20 02:35:20,390 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/4b271b23-65e9-4c0c-bea3-b1087ab5b9e3 2026-04-20 02:35:20,400 - INFO - Verified policy ctest-policy1-76213477 in API Server, Result: True 2026-04-20 02:35:20,400 - INFO - Done with setup and verification, moving onto test .. 2026-04-20 02:35:20,412 - INFO - Deleting VN ctest-vn4-12053337 2026-04-20 02:35:20,590 - DEBUG - Response for deleting network () 2026-04-20 02:35:20,590 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/6d73970f-8198-4860-96f2-be1709d5c456 2026-04-20 02:35:20,599 - DEBUG - Response Code: 404 2026-04-20 02:35:20,599 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2026-04-20 02:35:20,614 - DEBUG - Requesting: http://10.0.0.38:8082/domain/c2b9cdf0-ff50-48aa-bc48-322f89577022 2026-04-20 02:35:20,627 - DEBUG - Requesting: http://10.0.0.38:8082/project/890b60ed-9c57-43b5-88f0-3ba0c0581a6e 2026-04-20 02:35:20,726 - INFO - Validated that VN ctest-vn4-12053337 is not found in API Server 2026-04-20 02:35:20,737 - DEBUG - VN ctest-vn4-12053337 is not present in Agent 10.0.0.240 2026-04-20 02:35:20,749 - DEBUG - VN ctest-vn4-12053337 is not present in Agent 10.0.0.65 2026-04-20 02:35:20,749 - INFO - Validated that VN ctest-vn4-12053337 is not in any agent 2026-04-20 02:35:20,777 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-12053337 info 2026-04-20 02:35:20,824 - INFO - Deleted policy ctest-policy1-76213477 2026-04-20 02:35:21,028 - DEBUG - policy ctest-policy1-76213477 is not found in API Server 2026-04-20 02:35:22,298 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 02:35:22,298 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2026-04-20 02:35:22,298 - INFO - -------------------------------------------------------------------------------- 2026-04-20 02:35:23,569 - DEBUG - No XMPP flaps were noticed during the test
2026-04-20 02:35:23,569 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2026-04-20 02:35:23,569 - INFO - -------------------------------------------------------------------------------- 2026-04-20 02:35:24,286 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-43891815, ID : 890b60ed-9c57-43b5-88f0-3ba0c0581a6e