2025-10-09 02:28:18,018 - INFO - Domain Default found not creating 2025-10-09 02:28:18,162 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-83355787 not found, creating it 2025-10-09 02:28:18,695 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-83355787, ID : 317a9e58-ebfd-4ff8-a701-d53830a0bfbb 2025-10-09 02:28:20,118 - INFO - ================================================================================ 2025-10-09 02:28:20,118 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 02:28:21,381 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-10-09 02:28:21,382 - INFO - Initial checks done. Running the testcase now 2025-10-09 02:28:21,382 - INFO - 2025-10-09 02:28:21,382 - INFO - ================================================================================ 2025-10-09 02:28:21,382 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 02:28:21,382 - 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-09 02:28:22,658 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.25': '0', '10.20.0.14': '0'}, '10.0.0.27': {'10.20.0.25': '0', '10.20.0.14': '0'}} with 2025-10-09 02:28:22,658 - INFO - Initial checks done. Running the testcase now 2025-10-09 02:28:22,658 - INFO - 2025-10-09 02:28:23,015 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968, 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-83355787:ctest-vn4-43369968, 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-83355787:ctest-vn4-43369968, 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-83355787:ctest-vn4-43369968, 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-09 02:28:23,616 - DEBUG - Response for create_network : {'network': {'id': '945828d7-8eee-4ce5-a332-2887508c31e5', 'name': 'ctest-vn4-43369968', 'tenant_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'project_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'ctest-vn4-43369968'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:28:23,911 - DEBUG - Response for create_subnet : {'subnet': {'id': '3cd343d7-1353-4d01-a003-7b539c5f957b', 'name': '', 'tenant_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'network_id': '945828d7-8eee-4ce5-a332-2887508c31e5', 'ip_version': 4, 'cidr': '86.237.216.128/26', 'allocation_pools': [{'start': '86.237.216.130', 'end': '86.237.216.190'}], 'gateway_ip': '86.237.216.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '86.237.216.130', 'tags': [], 'project_id': '317a9e58ebfd4ff8a701d53830a0bfbb'}} 2025-10-09 02:28:24,125 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd3fe49dc-acfa-45a5-be2d-190dd48eaa74', 'name': '', 'tenant_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'network_id': '945828d7-8eee-4ce5-a332-2887508c31e5', 'ip_version': 6, 'cidr': '3257:b44c:d14c:43ed:503f:4219::/96', 'allocation_pools': [{'start': '3257:b44c:d14c:43ed:503f:4219:0:2', 'end': '3257:b44c:d14c:43ed:503f:4219:ffff:fffe'}], 'gateway_ip': '3257:b44c:d14c:43ed:503f:4219:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3257:b44c:d14c:43ed:503f:4219:0:2', 'tags': [], 'project_id': '317a9e58ebfd4ff8a701d53830a0bfbb'}} 2025-10-09 02:28:24,153 - INFO - Created VN ctest-vn4-43369968 2025-10-09 02:28:24,167 - DEBUG - VN ctest-vn4-43369968 UUID is 945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:24,398 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '945828d7-8eee-4ce5-a332-2887508c31e5', 'name': 'ctest-vn4-43369968', 'tenant_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'project_id': '317a9e58ebfd4ff8a701d53830a0bfbb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3cd343d7-1353-4d01-a003-7b539c5f957b', 'd3fe49dc-acfa-45a5-be2d-190dd48eaa74'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'ctest-vn4-43369968'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'ctest-policy1-82126011']], 'subnet_ipam': [{'subnet_cidr': '86.237.216.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3257:b44c:d14c:43ed:503f:4219::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 02:28:24,505 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:28:24,799 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:28:24,825 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:28:24,843 - DEBUG - Requesting: http://10.0.0.56:8082/project/317a9e58-ebfd-4ff8-a701-d53830a0bfbb 2025-10-09 02:28:24,938 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:24,956 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:24,966 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:24,974 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:24,980 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a418c849-9907-4914-81e8-6af71183b9fd 2025-10-09 02:28:24,986 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:28:24,986 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:24,995 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:25,012 - INFO - Verified VN network id 14 for VN 945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:25,013 - INFO - Verifications in API Server for VN ctest-vn4-43369968 passed 2025-10-09 02:28:25,013 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:25,024 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:25,030 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:25,037 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/a418c849-9907-4914-81e8-6af71183b9fd 2025-10-09 02:28:25,049 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10689338621844933861', 'uuid-lslong': '11759506138654847461'}, 'enable': 'true', 'created': '2025-10-09T02:28:23', 'last-modified': '2025-10-09T02:28:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688867'} 2025-10-09 02:28:25,054 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:28:25,060 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10689338621844933861', 'uuid-lslong': '11759506138654847461'}, 'enable': 'true', 'created': '2025-10-09T02:28:23', 'last-modified': '2025-10-09T02:28:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712747'} 2025-10-09 02:28:25,066 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:28:25,071 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10689338621844933861', 'uuid-lslong': '11759506138654847461'}, 'enable': 'true', 'created': '2025-10-09T02:28:23', 'last-modified': '2025-10-09T02:28:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.716670'} 2025-10-09 02:28:25,077 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 02:28:25,077 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-43369968 passed 2025-10-09 02:28:25,077 - DEBUG - ====Verifying policy data for ctest-vn4-43369968 in API_Server ====== 2025-10-09 02:28:25,077 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:28:25,083 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:28:25,095 - DEBUG - Requesting: http://10.0.0.56:8082/project/317a9e58-ebfd-4ff8-a701-d53830a0bfbb 2025-10-09 02:28:25,193 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/945828d7-8eee-4ce5-a332-2887508c31e5 2025-10-09 02:28:25,203 - DEBUG - ==>Verifying data for policy with id: 25017921-3e08-4d6c-9713-5103d82a4b06, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-83355787', 'ctest-policy1-82126011'] 2025-10-09 02:28:25,204 - INFO - VN ctest-vn4-43369968 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 02:28:25,204 - DEBUG - Verifying the vn in opserver 2025-10-09 02:28:25,204 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968 virtual network link through opserver 10.0.0.56 2025-10-09 02:28:25,204 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-09 02:28:25,506 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-10-09 02:28:25,561 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968?flat'} 2025-10-09 02:28:25,561 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968 virtual network link through opserver 10.0.0.19 2025-10-09 02:28:25,561 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 02:28:25,868 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-10-09 02:28:25,931 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968?flat'} 2025-10-09 02:28:25,931 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968 virtual network link through opserver 10.0.0.41 2025-10-09 02:28:25,931 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 02:28:26,239 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-10-09 02:28:26,298 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968?flat'} 2025-10-09 02:28:26,298 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-83355787:ctest-vn4-43369968 is found in opserver 2025-10-09 02:28:26,318 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 02:28:26,327 - DEBUG - VRF ids for VN ctest-vn4-43369968: {} 2025-10-09 02:28:26,327 - DEBUG - ====Verifying data for ctest-policy1-82126011 in API_Server ====== 2025-10-09 02:28:26,327 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:28:26,333 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:28:26,344 - DEBUG - Requesting: http://10.0.0.56:8082/project/317a9e58-ebfd-4ff8-a701-d53830a0bfbb 2025-10-09 02:28:26,434 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/25017921-3e08-4d6c-9713-5103d82a4b06 2025-10-09 02:28:26,444 - INFO - Verified policy ctest-policy1-82126011 in API Server, Result: True 2025-10-09 02:28:26,444 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 02:28:26,456 - INFO - Deleting VN ctest-vn4-43369968 2025-10-09 02:28:26,685 - DEBUG - Response for deleting network () 2025-10-09 02:28:26,686 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/b938c38d-1ef6-42ec-a879-70dc1deb9ec7 2025-10-09 02:28:26,692 - DEBUG - Response Code: 404 2025-10-09 02:28:26,692 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-10-09 02:28:26,697 - DEBUG - Requesting: http://10.0.0.56:8082/domain/7ed77c0b-e642-4c13-a404-7756503cf17d 2025-10-09 02:28:26,708 - DEBUG - Requesting: http://10.0.0.56:8082/project/317a9e58-ebfd-4ff8-a701-d53830a0bfbb 2025-10-09 02:28:26,799 - INFO - Validated that VN ctest-vn4-43369968 is not found in API Server 2025-10-09 02:28:26,809 - DEBUG - VN ctest-vn4-43369968 is not present in Agent 10.0.0.22 2025-10-09 02:28:26,819 - DEBUG - VN ctest-vn4-43369968 is not present in Agent 10.0.0.27 2025-10-09 02:28:26,819 - INFO - Validated that VN ctest-vn4-43369968 is not in any agent 2025-10-09 02:28:26,850 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-43369968 info 2025-10-09 02:28:26,902 - INFO - Deleted policy ctest-policy1-82126011 2025-10-09 02:28:27,117 - DEBUG - policy ctest-policy1-82126011 is not found in API Server 2025-10-09 02:28:28,393 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 02:28:28,393 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-09 02:28:28,393 - INFO - -------------------------------------------------------------------------------- 2025-10-09 02:28:29,668 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 02:28:29,668 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:09] 2025-10-09 02:28:29,668 - INFO - -------------------------------------------------------------------------------- 2025-10-09 02:28:30,377 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-83355787, ID : 317a9e58-ebfd-4ff8-a701-d53830a0bfbb