2025-09-08 02:41:28,313 - INFO - Domain Default found not creating 2025-09-08 02:41:28,464 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-96060112 not found, creating it 2025-09-08 02:41:29,007 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-96060112, ID : 2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9 2025-09-08 02:41:30,617 - INFO - ================================================================================ 2025-09-08 02:41:30,617 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 02:41:32,003 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2025-09-08 02:41:32,003 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:41:32,003 - INFO - 2025-09-08 02:41:32,003 - INFO - ================================================================================ 2025-09-08 02:41:32,003 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 02:41:32,003 - 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-09-08 02:41:33,418 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.14': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.25': '0', '10.20.0.129': '0'}} with 2025-09-08 02:41:33,418 - INFO - Initial checks done. Running the testcase now 2025-09-08 02:41:33,418 - INFO - 2025-09-08 02:41:33,820 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629, 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-96060112:ctest-vn4-28253629, 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-96060112:ctest-vn4-28253629, 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-96060112:ctest-vn4-28253629, 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-09-08 02:41:34,479 - DEBUG - Response for create_network : {'network': {'id': 'f52efafa-e649-4f5e-b403-3566779f8f2d', 'name': 'ctest-vn4-28253629', 'tenant_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'project_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'ctest-vn4-28253629'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:41:34,724 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd25c4edf-e2b3-4bf4-82ca-07ca1476eec5', 'name': '', 'tenant_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'network_id': 'f52efafa-e649-4f5e-b403-3566779f8f2d', 'ip_version': 4, 'cidr': '19.172.94.128/26', 'allocation_pools': [{'start': '19.172.94.130', 'end': '19.172.94.190'}], 'gateway_ip': '19.172.94.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.172.94.130', 'tags': [], 'project_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9'}} 2025-09-08 02:41:34,964 - DEBUG - Response for create_subnet : {'subnet': {'id': '98c21faf-3b78-467e-b7d1-e48f22ed995a', 'name': '', 'tenant_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'network_id': 'f52efafa-e649-4f5e-b403-3566779f8f2d', 'ip_version': 6, 'cidr': '28df:c724:296d:9601:1f0f:45ba::/96', 'allocation_pools': [{'start': '28df:c724:296d:9601:1f0f:45ba:0:2', 'end': '28df:c724:296d:9601:1f0f:45ba:ffff:fffe'}], 'gateway_ip': '28df:c724:296d:9601:1f0f:45ba:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28df:c724:296d:9601:1f0f:45ba:0:2', 'tags': [], 'project_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9'}} 2025-09-08 02:41:34,993 - INFO - Created VN ctest-vn4-28253629 2025-09-08 02:41:35,007 - DEBUG - VN ctest-vn4-28253629 UUID is f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,249 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f52efafa-e649-4f5e-b403-3566779f8f2d', 'name': 'ctest-vn4-28253629', 'tenant_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'project_id': '2dcbc7ea0f674a1ab9875184fb9dfbb9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d25c4edf-e2b3-4bf4-82ca-07ca1476eec5', '98c21faf-3b78-467e-b7d1-e48f22ed995a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'ctest-vn4-28253629'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'ctest-policy1-36141020']], 'subnet_ipam': [{'subnet_cidr': '19.172.94.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28df:c724:296d:9601:1f0f:45ba::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 02:41:35,387 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:41:35,729 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:41:35,760 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:41:35,776 - DEBUG - Requesting: http://10.0.0.41:8082/project/2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9 2025-09-08 02:41:35,876 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,891 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,901 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:35,909 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:35,917 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d9145de7-a1c7-46e1-9df4-b12dcaa7e9bf 2025-09-08 02:41:35,926 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:41:35,926 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,937 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:35,955 - INFO - Verified VN network id 14 for VN f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,956 - INFO - Verifications in API Server for VN ctest-vn4-28253629 passed 2025-09-08 02:41:35,956 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:35,970 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:35,978 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:35,987 - DEBUG - Requesting: http://10.0.0.41:8082/route-target/d9145de7-a1c7-46e1-9df4-b12dcaa7e9bf 2025-09-08 02:41:36,002 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17667334343733366622', 'uuid-lslong': '12971270065967042349'}, 'enable': 'true', 'created': '2025-09-08T02:41:34', 'last-modified': '2025-09-08T02:41:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812368'} 2025-09-08 02:41:36,007 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:41:36,013 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17667334343733366622', 'uuid-lslong': '12971270065967042349'}, 'enable': 'true', 'created': '2025-09-08T02:41:34', 'last-modified': '2025-09-08T02:41:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.806952'} 2025-09-08 02:41:36,019 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:41:36,025 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17667334343733366622', 'uuid-lslong': '12971270065967042349'}, 'enable': 'true', 'created': '2025-09-08T02:41:34', 'last-modified': '2025-09-08T02:41:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.844274'} 2025-09-08 02:41:36,032 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 02:41:36,033 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-28253629 passed 2025-09-08 02:41:36,033 - DEBUG - ====Verifying policy data for ctest-vn4-28253629 in API_Server ====== 2025-09-08 02:41:36,033 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:41:36,041 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:41:36,054 - DEBUG - Requesting: http://10.0.0.41:8082/project/2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9 2025-09-08 02:41:36,158 - DEBUG - Requesting: http://10.0.0.41:8082/virtual-network/f52efafa-e649-4f5e-b403-3566779f8f2d 2025-09-08 02:41:36,172 - DEBUG - ==>Verifying data for policy with id: 299b1819-cff1-4343-b64e-9ea2138da3dd, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-96060112', 'ctest-policy1-36141020'] 2025-09-08 02:41:36,172 - INFO - VN ctest-vn4-28253629 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 02:41:36,172 - DEBUG - Verifying the vn in opserver 2025-09-08 02:41:36,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629 virtual network link through opserver 10.0.0.41 2025-09-08 02:41:36,172 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-08 02:41:36,512 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-09-08 02:41:36,580 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629?flat'} 2025-09-08 02:41:36,580 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629 virtual network link through opserver 10.0.0.27 2025-09-08 02:41:36,580 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-08 02:41:36,920 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-09-08 02:41:36,987 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629?flat'} 2025-09-08 02:41:36,987 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629 virtual network link through opserver 10.0.0.38 2025-09-08 02:41:36,987 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-08 02:41:37,334 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-09-08 02:41:37,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629?flat'} 2025-09-08 02:41:37,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-96060112:ctest-vn4-28253629 is found in opserver 2025-09-08 02:41:37,445 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 02:41:37,465 - DEBUG - VRF ids for VN ctest-vn4-28253629: {} 2025-09-08 02:41:37,465 - DEBUG - ====Verifying data for ctest-policy1-36141020 in API_Server ====== 2025-09-08 02:41:37,465 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:41:37,471 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:41:37,481 - DEBUG - Requesting: http://10.0.0.41:8082/project/2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9 2025-09-08 02:41:37,581 - DEBUG - Requesting: http://10.0.0.41:8082/network-policy/299b1819-cff1-4343-b64e-9ea2138da3dd 2025-09-08 02:41:37,599 - INFO - Verified policy ctest-policy1-36141020 in API Server, Result: True 2025-09-08 02:41:37,599 - INFO - Done with setup and verification, moving onto test .. 2025-09-08 02:41:37,610 - INFO - Deleting VN ctest-vn4-28253629 2025-09-08 02:41:37,835 - DEBUG - Response for deleting network () 2025-09-08 02:41:37,835 - DEBUG - Requesting: http://10.0.0.41:8082/routing-instance/28dbe76d-1980-4a7d-bc9c-cb8fd4850db7 2025-09-08 02:41:37,850 - DEBUG - Response Code: 404 2025-09-08 02:41:37,850 - DEBUG - Requesting: http://10.0.0.41:8082/domains 2025-09-08 02:41:37,857 - DEBUG - Requesting: http://10.0.0.41:8082/domain/729830a9-0e71-496c-9bfd-570f28a4effe 2025-09-08 02:41:37,913 - DEBUG - Requesting: http://10.0.0.41:8082/project/2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9 2025-09-08 02:41:38,009 - INFO - Validated that VN ctest-vn4-28253629 is not found in API Server 2025-09-08 02:41:38,033 - DEBUG - VN ctest-vn4-28253629 is not present in Agent 10.0.0.65 2025-09-08 02:41:38,044 - DEBUG - VN ctest-vn4-28253629 is not present in Agent 10.0.0.23 2025-09-08 02:41:38,044 - INFO - Validated that VN ctest-vn4-28253629 is not in any agent 2025-09-08 02:41:38,084 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-28253629 info 2025-09-08 02:41:38,133 - INFO - Deleted policy ctest-policy1-36141020 2025-09-08 02:41:38,335 - DEBUG - policy ctest-policy1-36141020 is not found in API Server 2025-09-08 02:41:39,713 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 02:41:39,713 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-09-08 02:41:39,713 - INFO - -------------------------------------------------------------------------------- 2025-09-08 02:41:41,123 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 02:41:41,123 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11]
2025-09-08 02:41:41,124 - INFO - -------------------------------------------------------------------------------- 2025-09-08 02:41:41,968 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-96060112, ID : 2dcbc7ea-0f67-4a1a-b987-5184fb9dfbb9