2025-08-12 16:49:11,515 - INFO - Domain Default found not creating 2025-08-12 16:49:11,651 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03562415 not found, creating it 2025-08-12 16:49:12,089 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03562415, ID : 02b069cf-b3e9-4384-942f-4ece034d48e9 2025-08-12 16:49:13,469 - INFO - ================================================================================ 2025-08-12 16:49:13,469 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 16:49:13,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-12 16:49:13,741 - INFO - Initial checks done. Running the testcase now 2025-08-12 16:49:13,741 - INFO - 2025-08-12 16:49:13,741 - INFO - ================================================================================ 2025-08-12 16:49:13,741 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-12 16:49:13,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-08-12 16:49:14,029 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-08-12 16:49:14,029 - INFO - Initial checks done. Running the testcase now 2025-08-12 16:49:14,029 - INFO - 2025-08-12 16:49:14,366 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165, 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-03562415:ctest-vn4-66237165, 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-03562415:ctest-vn4-66237165, 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-03562415:ctest-vn4-66237165, 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-08-12 16:49:14,866 - DEBUG - Response for create_network : {'network': {'id': '4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea', 'name': 'ctest-vn4-66237165', 'tenant_id': '02b069cfb3e94384942f4ece034d48e9', 'project_id': '02b069cfb3e94384942f4ece034d48e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03562415', 'ctest-vn4-66237165'], 'port_security_enabled': True, 'description': ''}} 2025-08-12 16:49:15,070 - DEBUG - Response for create_subnet : {'subnet': {'id': '28be7baa-64db-4578-bcb7-85e035ce58aa', 'name': '', 'tenant_id': '02b069cfb3e94384942f4ece034d48e9', 'network_id': '4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea', 'ip_version': 4, 'cidr': '71.102.212.64/26', 'allocation_pools': [{'start': '71.102.212.66', 'end': '71.102.212.126'}], 'gateway_ip': '71.102.212.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '71.102.212.66', 'tags': [], 'project_id': '02b069cfb3e94384942f4ece034d48e9'}} 2025-08-12 16:49:15,206 - DEBUG - Response for create_subnet : {'subnet': {'id': '8f528961-7e47-4822-ae84-ebcc0350e3d4', 'name': '', 'tenant_id': '02b069cfb3e94384942f4ece034d48e9', 'network_id': '4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea', 'ip_version': 6, 'cidr': '3077:3504:8375:b101:b7ff:22e4::/96', 'allocation_pools': [{'start': '3077:3504:8375:b101:b7ff:22e4:0:2', 'end': '3077:3504:8375:b101:b7ff:22e4:ffff:fffe'}], 'gateway_ip': '3077:3504:8375:b101:b7ff:22e4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3077:3504:8375:b101:b7ff:22e4:0:2', 'tags': [], 'project_id': '02b069cfb3e94384942f4ece034d48e9'}} 2025-08-12 16:49:15,223 - INFO - Created VN ctest-vn4-66237165 2025-08-12 16:49:15,272 - DEBUG - VN ctest-vn4-66237165 UUID is 4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:15,450 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea', 'name': 'ctest-vn4-66237165', 'tenant_id': '02b069cfb3e94384942f4ece034d48e9', 'project_id': '02b069cfb3e94384942f4ece034d48e9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['28be7baa-64db-4578-bcb7-85e035ce58aa', '8f528961-7e47-4822-ae84-ebcc0350e3d4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03562415', 'ctest-vn4-66237165'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03562415', 'ctest-policy1-38406400']], 'subnet_ipam': [{'subnet_cidr': '71.102.212.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3077:3504:8375:b101:b7ff:22e4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-12 16:49:15,616 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 16:49:15,903 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 16:49:15,927 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472 2025-08-12 16:49:15,938 - DEBUG - Requesting: http://10.0.0.38:8082/project/02b069cf-b3e9-4384-942f-4ece034d48e9 2025-08-12 16:49:16,011 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,023 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,032 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,038 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,043 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df616369-a8a4-4ed1-a223-a6032fca6a08 2025-08-12 16:49:16,049 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 16:49:16,049 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,070 - INFO - Verified VN network id 11 for VN 4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,070 - INFO - Verifications in API Server for VN ctest-vn4-66237165 passed 2025-08-12 16:49:16,070 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,079 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,085 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,090 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/df616369-a8a4-4ed1-a223-a6032fca6a08 2025-08-12 16:49:16,109 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03562415', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5345656464849915008', 'uuid-lslong': '12726905910794635754'}, 'enable': 'true', 'created': '2025-08-12T16:49:14', 'last-modified': '2025-08-12T16:49:15', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.687531'} 2025-08-12 16:49:16,116 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-12 16:49:16,116 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-66237165 passed 2025-08-12 16:49:16,117 - DEBUG - ====Verifying policy data for ctest-vn4-66237165 in API_Server ====== 2025-08-12 16:49:16,117 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 16:49:16,121 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472 2025-08-12 16:49:16,131 - DEBUG - Requesting: http://10.0.0.38:8082/project/02b069cf-b3e9-4384-942f-4ece034d48e9 2025-08-12 16:49:16,201 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/4a2f963b-76a6-4c80-b09f-0d7eeebbc9ea 2025-08-12 16:49:16,210 - DEBUG - ==>Verifying data for policy with id: 2819cf19-81d0-483a-8d0b-67e222c8aded, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03562415', 'ctest-policy1-38406400'] 2025-08-12 16:49:16,211 - INFO - VN ctest-vn4-66237165 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-12 16:49:16,211 - DEBUG - Verifying the vn in opserver 2025-08-12 16:49:16,211 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165 virtual network link through opserver 10.0.0.38 2025-08-12 16:49:16,211 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-12 16:49:16,498 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-12 16:49:16,545 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165?flat'} 2025-08-12 16:49:16,545 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03562415:ctest-vn4-66237165 is found in opserver 2025-08-12 16:49:16,555 - DEBUG - Do not have enough data to verify VN in agent 2025-08-12 16:49:16,559 - DEBUG - VRF ids for VN ctest-vn4-66237165: {} 2025-08-12 16:49:16,560 - DEBUG - ====Verifying data for ctest-policy1-38406400 in API_Server ====== 2025-08-12 16:49:16,560 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 16:49:16,565 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472 2025-08-12 16:49:16,575 - DEBUG - Requesting: http://10.0.0.38:8082/project/02b069cf-b3e9-4384-942f-4ece034d48e9 2025-08-12 16:49:16,643 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2819cf19-81d0-483a-8d0b-67e222c8aded 2025-08-12 16:49:16,653 - INFO - Verified policy ctest-policy1-38406400 in API Server, Result: True 2025-08-12 16:49:16,653 - INFO - Done with setup and verification, moving onto test .. 2025-08-12 16:49:16,660 - INFO - Deleting VN ctest-vn4-66237165 2025-08-12 16:49:16,768 - DEBUG - Response for deleting network () 2025-08-12 16:49:16,768 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f522c05e-ea35-4c26-91aa-c743b4901f1b 2025-08-12 16:49:16,773 - DEBUG - Response Code: 404 2025-08-12 16:49:16,773 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-08-12 16:49:16,777 - DEBUG - Requesting: http://10.0.0.38:8082/domain/dfb8dc5c-fc68-42a3-bc49-3a4248932472 2025-08-12 16:49:16,828 - DEBUG - Requesting: http://10.0.0.38:8082/project/02b069cf-b3e9-4384-942f-4ece034d48e9 2025-08-12 16:49:16,900 - INFO - Validated that VN ctest-vn4-66237165 is not found in API Server 2025-08-12 16:49:16,909 - DEBUG - VN ctest-vn4-66237165 is not present in Agent 10.0.0.38 2025-08-12 16:49:16,910 - INFO - Validated that VN ctest-vn4-66237165 is not in any agent 2025-08-12 16:49:16,924 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-66237165 info 2025-08-12 16:49:16,946 - INFO - Deleted policy ctest-policy1-38406400 2025-08-12 16:49:17,107 - DEBUG - policy ctest-policy1-38406400 is not found in API Server 2025-08-12 16:49:17,365 - DEBUG - No XMPP flaps were noticed during the test 2025-08-12 16:49:17,365 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-12 16:49:17,365 - INFO - -------------------------------------------------------------------------------- 2025-08-12 16:49:17,653 - DEBUG - No XMPP flaps were noticed during the test 2025-08-12 16:49:17,653 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-12 16:49:17,653 - INFO - -------------------------------------------------------------------------------- 2025-08-12 16:49:18,295 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03562415, ID : 02b069cf-b3e9-4384-942f-4ece034d48e9