2025-10-30 10:32:18,017 - INFO - Domain Default found not creating 2025-10-30 10:32:18,195 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-68382687 not found, creating it 2025-10-30 10:32:18,909 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-68382687, ID : 01ab28ed-498d-4668-b852-00ba3ece7818 2025-10-30 10:32:20,452 - INFO - ================================================================================ 2025-10-30 10:32:20,452 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 10:32:21,740 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.131': '0', '10.20.0.128': '0'}, '10.0.0.27': {'10.20.0.145': '0', '10.20.0.128': '0'}} with 2025-10-30 10:32:21,740 - INFO - Initial checks done. Running the testcase now 2025-10-30 10:32:21,740 - INFO - 2025-10-30 10:32:21,740 - INFO - ================================================================================ 2025-10-30 10:32:21,740 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 10:32:21,741 - 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. 2025-10-30 10:32:23,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.41': {'10.20.0.131': '0', '10.20.0.128': '0'}, '10.0.0.27': {'10.20.0.145': '0', '10.20.0.128': '0'}} with 2025-10-30 10:32:23,066 - INFO - Initial checks done. Running the testcase now 2025-10-30 10:32:23,066 - INFO - 2025-10-30 10:32:23,448 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179, 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-68382687:ctest-vn4-28720179, 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-68382687:ctest-vn4-28720179, 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-68382687:ctest-vn4-28720179, 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] 2025-10-30 10:32:24,101 - DEBUG - Response for create_network : {'network': {'id': 'd61e3775-cc1c-495d-b086-b91b9af5b394', 'name': 'ctest-vn4-28720179', 'tenant_id': '01ab28ed498d4668b85200ba3ece7818', 'project_id': '01ab28ed498d4668b85200ba3ece7818', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'ctest-vn4-28720179'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 10:32:24,370 - DEBUG - Response for create_subnet : {'subnet': {'id': '70e8440e-0c0e-4a22-bb90-1159e90dfb5f', 'name': '', 'tenant_id': '01ab28ed498d4668b85200ba3ece7818', 'network_id': 'd61e3775-cc1c-495d-b086-b91b9af5b394', 'ip_version': 4, 'cidr': '55.127.184.128/26', 'allocation_pools': [{'start': '55.127.184.130', 'end': '55.127.184.190'}], 'gateway_ip': '55.127.184.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '55.127.184.130', 'tags': [], 'project_id': '01ab28ed498d4668b85200ba3ece7818'}} 2025-10-30 10:32:24,578 - DEBUG - Response for create_subnet : {'subnet': {'id': '3fd4a812-b00d-4af8-83f4-026e32018d88', 'name': '', 'tenant_id': '01ab28ed498d4668b85200ba3ece7818', 'network_id': 'd61e3775-cc1c-495d-b086-b91b9af5b394', 'ip_version': 6, 'cidr': '290c:f94d:a3d0:f875:bab9:2592::/96', 'allocation_pools': [{'start': '290c:f94d:a3d0:f875:bab9:2592:0:2', 'end': '290c:f94d:a3d0:f875:bab9:2592:ffff:fffe'}], 'gateway_ip': '290c:f94d:a3d0:f875:bab9:2592:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '290c:f94d:a3d0:f875:bab9:2592:0:2', 'tags': [], 'project_id': '01ab28ed498d4668b85200ba3ece7818'}} 2025-10-30 10:32:24,604 - INFO - Created VN ctest-vn4-28720179 2025-10-30 10:32:24,618 - DEBUG - VN ctest-vn4-28720179 UUID is d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:24,848 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd61e3775-cc1c-495d-b086-b91b9af5b394', 'name': 'ctest-vn4-28720179', 'tenant_id': '01ab28ed498d4668b85200ba3ece7818', 'project_id': '01ab28ed498d4668b85200ba3ece7818', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['70e8440e-0c0e-4a22-bb90-1159e90dfb5f', '3fd4a812-b00d-4af8-83f4-026e32018d88'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'ctest-vn4-28720179'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'ctest-policy1-19967049']], 'subnet_ipam': [{'subnet_cidr': '55.127.184.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '290c:f94d:a3d0:f875:bab9:2592::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 10:32:24,968 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 10:32:25,272 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 10:32:25,301 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4bebd65a-549d-4c48-a839-bfb2f679c79a 2025-10-30 10:32:25,319 - DEBUG - Requesting: http://10.0.0.249:8082/project/01ab28ed-498d-4668-b852-00ba3ece7818 2025-10-30 10:32:25,413 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,426 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,437 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:25,446 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:25,454 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/943c31e0-bbf0-4a99-81d2-66d97997643e 2025-10-30 10:32:25,462 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:32:25,463 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,474 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:25,494 - INFO - Verified VN network id 15 for VN d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,494 - INFO - Verifications in API Server for VN ctest-vn4-28720179 passed 2025-10-30 10:32:25,494 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,505 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:25,514 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:25,521 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/943c31e0-bbf0-4a99-81d2-66d97997643e 2025-10-30 10:32:25,534 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15428830352493005149', 'uuid-lslong': '12720057725769593748'}, 'enable': 'true', 'created': '2025-10-30T10:32:24', 'last-modified': '2025-10-30T10:32:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732244'} 2025-10-30 10:32:25,540 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:32:25,548 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15428830352493005149', 'uuid-lslong': '12720057725769593748'}, 'enable': 'true', 'created': '2025-10-30T10:32:24', 'last-modified': '2025-10-30T10:32:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.735780'} 2025-10-30 10:32:25,555 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:32:25,561 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15428830352493005149', 'uuid-lslong': '12720057725769593748'}, 'enable': 'true', 'created': '2025-10-30T10:32:24', 'last-modified': '2025-10-30T10:32:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.753833'} 2025-10-30 10:32:25,568 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 10:32:25,568 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28720179 passed 2025-10-30 10:32:25,568 - DEBUG - ====Verifying policy data for ctest-vn4-28720179 in API_Server ====== 2025-10-30 10:32:25,568 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 10:32:25,581 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4bebd65a-549d-4c48-a839-bfb2f679c79a 2025-10-30 10:32:25,593 - DEBUG - Requesting: http://10.0.0.249:8082/project/01ab28ed-498d-4668-b852-00ba3ece7818 2025-10-30 10:32:25,686 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/d61e3775-cc1c-495d-b086-b91b9af5b394 2025-10-30 10:32:25,698 - DEBUG - ==>Verifying data for policy with id: 26aa07c4-7775-4c9d-85ca-366e958a8505, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-68382687', 'ctest-policy1-19967049'] 2025-10-30 10:32:25,698 - INFO - VN ctest-vn4-28720179 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 10:32:25,698 - DEBUG - Verifying the vn in opserver 2025-10-30 10:32:25,698 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179 virtual network link through opserver 10.0.0.249 2025-10-30 10:32:25,698 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,011 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,082 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179?flat'} 2025-10-30 10:32:26,082 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179 virtual network link through opserver 10.0.0.33 2025-10-30 10:32:26,083 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,393 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,454 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179?flat'} 2025-10-30 10:32:26,454 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179 virtual network link through opserver 10.0.0.19 2025-10-30 10:32:26,454 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,761 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-30 10:32:26,830 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179?flat'} 2025-10-30 10:32:26,830 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-68382687:ctest-vn4-28720179 is found in opserver 2025-10-30 10:32:26,863 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 10:32:26,876 - DEBUG - VRF ids for VN ctest-vn4-28720179: {} 2025-10-30 10:32:26,877 - DEBUG - ====Verifying data for ctest-policy1-19967049 in API_Server ====== 2025-10-30 10:32:26,877 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 10:32:26,889 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4bebd65a-549d-4c48-a839-bfb2f679c79a 2025-10-30 10:32:26,906 - DEBUG - Requesting: http://10.0.0.249:8082/project/01ab28ed-498d-4668-b852-00ba3ece7818 2025-10-30 10:32:27,020 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/26aa07c4-7775-4c9d-85ca-366e958a8505 2025-10-30 10:32:27,030 - INFO - Verified policy ctest-policy1-19967049 in API Server, Result: True 2025-10-30 10:32:27,031 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 10:32:27,043 - INFO - Deleting VN ctest-vn4-28720179 2025-10-30 10:32:27,252 - DEBUG - Response for deleting network () 2025-10-30 10:32:27,253 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/c87f7290-caf6-4d62-b3c6-c13185e52a49 2025-10-30 10:32:27,263 - DEBUG - Response Code: 404 2025-10-30 10:32:27,263 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-30 10:32:27,272 - DEBUG - Requesting: http://10.0.0.249:8082/domain/4bebd65a-549d-4c48-a839-bfb2f679c79a 2025-10-30 10:32:27,331 - DEBUG - Requesting: http://10.0.0.249:8082/project/01ab28ed-498d-4668-b852-00ba3ece7818 2025-10-30 10:32:27,437 - INFO - Validated that VN ctest-vn4-28720179 is not found in API Server 2025-10-30 10:32:27,448 - DEBUG - VN ctest-vn4-28720179 is not present in Agent 10.0.0.41 2025-10-30 10:32:27,465 - DEBUG - VN ctest-vn4-28720179 is not present in Agent 10.0.0.27 2025-10-30 10:32:27,465 - INFO - Validated that VN ctest-vn4-28720179 is not in any agent 2025-10-30 10:32:27,507 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28720179 info 2025-10-30 10:32:27,555 - INFO - Deleted policy ctest-policy1-19967049 2025-10-30 10:32:27,761 - DEBUG - policy ctest-policy1-19967049 is not found in API Server 2025-10-30 10:32:29,032 - DEBUG - No XMPP flaps were noticed during the test