2025-10-06 01:54:05,922 - INFO - Domain Default found not creating 2025-10-06 01:54:06,078 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-03647155 not found, creating it 2025-10-06 01:54:06,599 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-03647155, ID : 2347f039-9f07-4e59-8f05-4391528a3710 2025-10-06 01:54:08,147 - INFO - ================================================================================ 2025-10-06 01:54:08,147 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 01:54:08,405 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.129': '0'}} with 2025-10-06 01:54:08,405 - INFO - Initial checks done. Running the testcase now 2025-10-06 01:54:08,405 - INFO - 2025-10-06 01:54:08,405 - INFO - ================================================================================ 2025-10-06 01:54:08,405 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-06 01:54:08,405 - 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-06 01:54:08,696 - DEBUG - Nothing to compare xmpp stats {'10.0.0.131': {'10.20.0.129': '0'}} with 2025-10-06 01:54:08,697 - INFO - Initial checks done. Running the testcase now 2025-10-06 01:54:08,697 - INFO - 2025-10-06 01:54:09,081 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077, 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-03647155:ctest-vn4-06786077, 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-03647155:ctest-vn4-06786077, 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-03647155:ctest-vn4-06786077, 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-06 01:54:09,585 - DEBUG - Response for create_network : {'network': {'id': '2a00a685-b90f-4553-9da5-5ca9baf87ede', 'name': 'ctest-vn4-06786077', 'tenant_id': '2347f0399f074e598f054391528a3710', 'project_id': '2347f0399f074e598f054391528a3710', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03647155', 'ctest-vn4-06786077'], 'port_security_enabled': True, 'description': ''}} 2025-10-06 01:54:09,745 - DEBUG - Response for create_subnet : {'subnet': {'id': '38e34c78-d427-4dc2-8199-c8e1dab94482', 'name': '', 'tenant_id': '2347f0399f074e598f054391528a3710', 'network_id': '2a00a685-b90f-4553-9da5-5ca9baf87ede', 'ip_version': 4, 'cidr': '187.124.254.128/26', 'allocation_pools': [{'start': '187.124.254.130', 'end': '187.124.254.190'}], 'gateway_ip': '187.124.254.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.124.254.130', 'tags': [], 'project_id': '2347f0399f074e598f054391528a3710'}} 2025-10-06 01:54:09,954 - DEBUG - Response for create_subnet : {'subnet': {'id': '262fb911-f4d1-4488-a8a9-26bff2bc13a0', 'name': '', 'tenant_id': '2347f0399f074e598f054391528a3710', 'network_id': '2a00a685-b90f-4553-9da5-5ca9baf87ede', 'ip_version': 6, 'cidr': '3584:5eb:89b4:66:268f:85e::/96', 'allocation_pools': [{'start': '3584:5eb:89b4:66:268f:85e:0:2', 'end': '3584:5eb:89b4:66:268f:85e:ffff:fffe'}], 'gateway_ip': '3584:5eb:89b4:66:268f:85e:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3584:5eb:89b4:66:268f:85e:0:2', 'tags': [], 'project_id': '2347f0399f074e598f054391528a3710'}} 2025-10-06 01:54:10,039 - INFO - Created VN ctest-vn4-06786077 2025-10-06 01:54:10,091 - DEBUG - VN ctest-vn4-06786077 UUID is 2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,292 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2a00a685-b90f-4553-9da5-5ca9baf87ede', 'name': 'ctest-vn4-06786077', 'tenant_id': '2347f0399f074e598f054391528a3710', 'project_id': '2347f0399f074e598f054391528a3710', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['38e34c78-d427-4dc2-8199-c8e1dab94482', '262fb911-f4d1-4488-a8a9-26bff2bc13a0'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03647155', 'ctest-vn4-06786077'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03647155', 'ctest-policy1-28731843']], 'subnet_ipam': [{'subnet_cidr': '187.124.254.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3584:5eb:89b4:66:268f:85e::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-06 01:54:10,464 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-06 01:54:10,794 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-06 01:54:10,822 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7c3b9b2b-2ec0-46c4-abbf-98b85921cdc7 2025-10-06 01:54:10,834 - DEBUG - Requesting: http://10.0.0.131:8082/project/2347f039-9f07-4e59-8f05-4391528a3710 2025-10-06 01:54:10,907 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,919 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,927 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:10,933 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:10,938 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8075c055-01a1-4d88-90af-7f27ea51bb4e 2025-10-06 01:54:10,944 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 01:54:10,944 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,952 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:10,964 - INFO - Verified VN network id 11 for VN 2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,964 - INFO - Verifications in API Server for VN ctest-vn4-06786077 passed 2025-10-06 01:54:10,964 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:10,973 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:10,979 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:10,985 - DEBUG - Requesting: http://10.0.0.131:8082/route-target/8075c055-01a1-4d88-90af-7f27ea51bb4e 2025-10-06 01:54:10,997 - DEBUG - Control-node 10.0.0.131 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-03647155', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3026602042858620243', 'uuid-lslong': '11359587519168020190'}, 'enable': 'true', 'created': '2025-10-06T01:54:09', 'last-modified': '2025-10-06T01:54:10', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.726778'} 2025-10-06 01:54:11,007 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-06 01:54:11,007 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-06786077 passed 2025-10-06 01:54:11,007 - DEBUG - ====Verifying policy data for ctest-vn4-06786077 in API_Server ====== 2025-10-06 01:54:11,007 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-06 01:54:11,015 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7c3b9b2b-2ec0-46c4-abbf-98b85921cdc7 2025-10-06 01:54:11,028 - DEBUG - Requesting: http://10.0.0.131:8082/project/2347f039-9f07-4e59-8f05-4391528a3710 2025-10-06 01:54:11,105 - DEBUG - Requesting: http://10.0.0.131:8082/virtual-network/2a00a685-b90f-4553-9da5-5ca9baf87ede 2025-10-06 01:54:11,114 - DEBUG - ==>Verifying data for policy with id: 735fd665-1a6b-4d37-a6c2-5d1e9dc2ae08, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-03647155', 'ctest-policy1-28731843'] 2025-10-06 01:54:11,114 - INFO - VN ctest-vn4-06786077 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-06 01:54:11,114 - DEBUG - Verifying the vn in opserver 2025-10-06 01:54:11,114 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077 virtual network link through opserver 10.0.0.131 2025-10-06 01:54:11,114 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-06 01:54:11,445 - DEBUG - Requesting: http://10.0.0.131:8081/analytics/uves/virtual-networks 2025-10-06 01:54:11,504 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077', 'href': 'http://10.0.0.131:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077?flat'} 2025-10-06 01:54:11,504 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-03647155:ctest-vn4-06786077 is found in opserver 2025-10-06 01:54:11,513 - DEBUG - Do not have enough data to verify VN in agent 2025-10-06 01:54:11,517 - DEBUG - VRF ids for VN ctest-vn4-06786077: {} 2025-10-06 01:54:11,518 - DEBUG - ====Verifying data for ctest-policy1-28731843 in API_Server ====== 2025-10-06 01:54:11,518 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-06 01:54:11,524 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7c3b9b2b-2ec0-46c4-abbf-98b85921cdc7 2025-10-06 01:54:11,534 - DEBUG - Requesting: http://10.0.0.131:8082/project/2347f039-9f07-4e59-8f05-4391528a3710 2025-10-06 01:54:11,611 - DEBUG - Requesting: http://10.0.0.131:8082/network-policy/735fd665-1a6b-4d37-a6c2-5d1e9dc2ae08 2025-10-06 01:54:11,621 - INFO - Verified policy ctest-policy1-28731843 in API Server, Result: True 2025-10-06 01:54:11,621 - INFO - Done with setup and verification, moving onto test .. 2025-10-06 01:54:11,629 - INFO - Deleting VN ctest-vn4-06786077 2025-10-06 01:54:11,741 - DEBUG - Response for deleting network () 2025-10-06 01:54:11,742 - DEBUG - Requesting: http://10.0.0.131:8082/routing-instance/faf19bc5-70fd-41d5-91f1-7314b89fdfa1 2025-10-06 01:54:11,747 - DEBUG - Response Code: 404 2025-10-06 01:54:11,747 - DEBUG - Requesting: http://10.0.0.131:8082/domains 2025-10-06 01:54:11,752 - DEBUG - Requesting: http://10.0.0.131:8082/domain/7c3b9b2b-2ec0-46c4-abbf-98b85921cdc7 2025-10-06 01:54:11,805 - DEBUG - Requesting: http://10.0.0.131:8082/project/2347f039-9f07-4e59-8f05-4391528a3710 2025-10-06 01:54:11,877 - INFO - Validated that VN ctest-vn4-06786077 is not found in API Server 2025-10-06 01:54:11,888 - DEBUG - VN ctest-vn4-06786077 is not present in Agent 10.0.0.131 2025-10-06 01:54:11,888 - INFO - Validated that VN ctest-vn4-06786077 is not in any agent 2025-10-06 01:54:11,904 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-06786077 info 2025-10-06 01:54:11,930 - INFO - Deleted policy ctest-policy1-28731843 2025-10-06 01:54:12,099 - DEBUG - policy ctest-policy1-28731843 is not found in API Server 2025-10-06 01:54:12,364 - DEBUG - No XMPP flaps were noticed during the test 2025-10-06 01:54:12,364 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-06 01:54:12,364 - INFO - -------------------------------------------------------------------------------- 2025-10-06 01:54:12,644 - DEBUG - No XMPP flaps were noticed during the test 2025-10-06 01:54:12,644 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-06 01:54:12,644 - INFO - -------------------------------------------------------------------------------- 2025-10-06 01:54:13,351 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-03647155, ID : 2347f039-9f07-4e59-8f05-4391528a3710