2025-10-13 02:24:33,889 - INFO - Domain Default found not creating 2025-10-13 02:24:34,044 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-16014174 not found, creating it 2025-10-13 02:24:34,687 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-16014174, ID : eb1cc60b-4280-4a31-a9e0-6c4fcf055f41 2025-10-13 02:24:36,152 - INFO - ================================================================================ 2025-10-13 02:24:36,152 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 02:24:37,422 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2025-10-13 02:24:37,422 - INFO - Initial checks done. Running the testcase now 2025-10-13 02:24:37,422 - INFO - 2025-10-13 02:24:37,422 - INFO - ================================================================================ 2025-10-13 02:24:37,422 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-13 02:24:37,423 - 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-13 02:24:38,690 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.18': '0', '10.20.0.129': '0'}, '10.0.0.27': {'10.20.0.18': '0', '10.20.0.129': '0'}} with 2025-10-13 02:24:38,690 - INFO - Initial checks done. Running the testcase now 2025-10-13 02:24:38,690 - INFO - 2025-10-13 02:24:39,045 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561, 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-16014174:ctest-vn4-38654561, 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-16014174:ctest-vn4-38654561, 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-16014174:ctest-vn4-38654561, 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-13 02:24:39,656 - DEBUG - Response for create_network : {'network': {'id': '42dcaebe-4dcc-449d-8971-f21a61f5dace', 'name': 'ctest-vn4-38654561', 'tenant_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'project_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'ctest-vn4-38654561'], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:24:39,927 - DEBUG - Response for create_subnet : {'subnet': {'id': '82ccdf7c-12a5-4af4-bc5a-39d1020f72e5', 'name': '', 'tenant_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'network_id': '42dcaebe-4dcc-449d-8971-f21a61f5dace', 'ip_version': 4, 'cidr': '69.14.24.192/26', 'allocation_pools': [{'start': '69.14.24.194', 'end': '69.14.24.254'}], 'gateway_ip': '69.14.24.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '69.14.24.194', 'tags': [], 'project_id': 'eb1cc60b42804a31a9e06c4fcf055f41'}} 2025-10-13 02:24:40,135 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ef7a65e-f3ee-4d35-abb1-970cd47cc52f', 'name': '', 'tenant_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'network_id': '42dcaebe-4dcc-449d-8971-f21a61f5dace', 'ip_version': 6, 'cidr': '3beb:4c98:b897:75ff:2e6f:5490::/96', 'allocation_pools': [{'start': '3beb:4c98:b897:75ff:2e6f:5490:0:2', 'end': '3beb:4c98:b897:75ff:2e6f:5490:ffff:fffe'}], 'gateway_ip': '3beb:4c98:b897:75ff:2e6f:5490:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3beb:4c98:b897:75ff:2e6f:5490:0:2', 'tags': [], 'project_id': 'eb1cc60b42804a31a9e06c4fcf055f41'}} 2025-10-13 02:24:40,156 - INFO - Created VN ctest-vn4-38654561 2025-10-13 02:24:40,169 - DEBUG - VN ctest-vn4-38654561 UUID is 42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,380 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '42dcaebe-4dcc-449d-8971-f21a61f5dace', 'name': 'ctest-vn4-38654561', 'tenant_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'project_id': 'eb1cc60b42804a31a9e06c4fcf055f41', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['82ccdf7c-12a5-4af4-bc5a-39d1020f72e5', '9ef7a65e-f3ee-4d35-abb1-970cd47cc52f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'ctest-vn4-38654561'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'ctest-policy1-63083362']], 'subnet_ipam': [{'subnet_cidr': '69.14.24.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3beb:4c98:b897:75ff:2e6f:5490::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-13 02:24:40,487 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:24:40,781 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:24:40,807 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:24:40,821 - DEBUG - Requesting: http://10.0.0.22:8082/project/eb1cc60b-4280-4a31-a9e0-6c4fcf055f41 2025-10-13 02:24:40,907 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,919 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,930 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:40,938 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:40,944 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/82ad2a64-73d8-4a8e-af3b-dd207962caf7 2025-10-13 02:24:40,949 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:24:40,950 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,958 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:40,973 - INFO - Verified VN network id 13 for VN 42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,973 - INFO - Verifications in API Server for VN ctest-vn4-38654561 passed 2025-10-13 02:24:40,973 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:40,985 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:40,991 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:40,997 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/82ad2a64-73d8-4a8e-af3b-dd207962caf7 2025-10-13 02:24:41,008 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817917833751839901', 'uuid-lslong': '9903963250691005134'}, 'enable': 'true', 'created': '2025-10-13T02:24:39', 'last-modified': '2025-10-13T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.684917'} 2025-10-13 02:24:41,013 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:24:41,019 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817917833751839901', 'uuid-lslong': '9903963250691005134'}, 'enable': 'true', 'created': '2025-10-13T02:24:39', 'last-modified': '2025-10-13T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.697710'} 2025-10-13 02:24:41,025 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:24:41,030 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4817917833751839901', 'uuid-lslong': '9903963250691005134'}, 'enable': 'true', 'created': '2025-10-13T02:24:39', 'last-modified': '2025-10-13T02:24:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.708745'} 2025-10-13 02:24:41,035 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-13 02:24:41,035 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-38654561 passed 2025-10-13 02:24:41,035 - DEBUG - ====Verifying policy data for ctest-vn4-38654561 in API_Server ====== 2025-10-13 02:24:41,035 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:24:41,041 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:24:41,051 - DEBUG - Requesting: http://10.0.0.22:8082/project/eb1cc60b-4280-4a31-a9e0-6c4fcf055f41 2025-10-13 02:24:41,138 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/42dcaebe-4dcc-449d-8971-f21a61f5dace 2025-10-13 02:24:41,153 - DEBUG - ==>Verifying data for policy with id: 93faa11a-b7cf-44ed-9c86-120c3a124382, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-16014174', 'ctest-policy1-63083362'] 2025-10-13 02:24:41,153 - INFO - VN ctest-vn4-38654561 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-13 02:24:41,153 - DEBUG - Verifying the vn in opserver 2025-10-13 02:24:41,154 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561 virtual network link through opserver 10.0.0.22 2025-10-13 02:24:41,154 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-13 02:24:41,458 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-10-13 02:24:41,512 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561?flat'} 2025-10-13 02:24:41,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561 virtual network link through opserver 10.0.0.19 2025-10-13 02:24:41,512 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-13 02:24:41,818 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-13 02:24:41,873 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561?flat'} 2025-10-13 02:24:41,873 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561 virtual network link through opserver 10.0.0.41 2025-10-13 02:24:41,873 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-13 02:24:42,163 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-13 02:24:42,214 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561?flat'} 2025-10-13 02:24:42,214 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-16014174:ctest-vn4-38654561 is found in opserver 2025-10-13 02:24:42,232 - DEBUG - Do not have enough data to verify VN in agent 2025-10-13 02:24:42,241 - DEBUG - VRF ids for VN ctest-vn4-38654561: {} 2025-10-13 02:24:42,241 - DEBUG - ====Verifying data for ctest-policy1-63083362 in API_Server ====== 2025-10-13 02:24:42,241 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:24:42,247 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:24:42,257 - DEBUG - Requesting: http://10.0.0.22:8082/project/eb1cc60b-4280-4a31-a9e0-6c4fcf055f41 2025-10-13 02:24:42,356 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/93faa11a-b7cf-44ed-9c86-120c3a124382 2025-10-13 02:24:42,366 - INFO - Verified policy ctest-policy1-63083362 in API Server, Result: True 2025-10-13 02:24:42,366 - INFO - Done with setup and verification, moving onto test .. 2025-10-13 02:24:42,378 - INFO - Deleting VN ctest-vn4-38654561 2025-10-13 02:24:42,563 - DEBUG - Response for deleting network () 2025-10-13 02:24:42,563 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/48610b49-c1c0-4814-a253-c1c71dd68d8d 2025-10-13 02:24:42,576 - DEBUG - Response Code: 404 2025-10-13 02:24:42,576 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-10-13 02:24:42,582 - DEBUG - Requesting: http://10.0.0.22:8082/domain/3f9f083c-1111-458a-a630-ac922d5b730c 2025-10-13 02:24:42,638 - DEBUG - Requesting: http://10.0.0.22:8082/project/eb1cc60b-4280-4a31-a9e0-6c4fcf055f41 2025-10-13 02:24:42,721 - INFO - Validated that VN ctest-vn4-38654561 is not found in API Server 2025-10-13 02:24:42,731 - DEBUG - VN ctest-vn4-38654561 is not present in Agent 10.0.0.249 2025-10-13 02:24:42,740 - DEBUG - VN ctest-vn4-38654561 is not present in Agent 10.0.0.27 2025-10-13 02:24:42,740 - INFO - Validated that VN ctest-vn4-38654561 is not in any agent 2025-10-13 02:24:42,766 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-38654561 info 2025-10-13 02:24:42,807 - INFO - Deleted policy ctest-policy1-63083362 2025-10-13 02:24:43,008 - DEBUG - policy ctest-policy1-63083362 is not found in API Server 2025-10-13 02:24:44,263 - DEBUG - No XMPP flaps were noticed during the test
2025-10-13 02:24:44,263 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-10-13 02:24:44,263 - INFO - -------------------------------------------------------------------------------- 2025-10-13 02:24:45,531 - DEBUG - No XMPP flaps were noticed during the test
2025-10-13 02:24:45,531 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09]
2025-10-13 02:24:45,531 - INFO - -------------------------------------------------------------------------------- 2025-10-13 02:24:46,190 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-16014174, ID : eb1cc60b-4280-4a31-a9e0-6c4fcf055f41