2025-08-25 02:15:40,167 - INFO - Domain Default found not creating 2025-08-25 02:15:40,365 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-88081910 not found, creating it 2025-08-25 02:15:40,873 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-88081910, ID : 45ed30bd-8db9-44a1-82f6-62b23f5f8e5d 2025-08-25 02:15:42,530 - INFO - ================================================================================ 2025-08-25 02:15:42,531 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 02:15:42,786 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.18': '0'}} with 2025-08-25 02:15:42,787 - INFO - Initial checks done. Running the testcase now 2025-08-25 02:15:42,787 - INFO - 2025-08-25 02:15:42,787 - INFO - ================================================================================ 2025-08-25 02:15:42,787 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-25 02:15:42,787 - 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-25 02:15:43,083 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.18': '0'}} with 2025-08-25 02:15:43,083 - INFO - Initial checks done. Running the testcase now 2025-08-25 02:15:43,083 - INFO - 2025-08-25 02:15:43,451 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736, 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-88081910:ctest-vn4-57444736, 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-88081910:ctest-vn4-57444736, 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-88081910:ctest-vn4-57444736, 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-25 02:15:44,032 - DEBUG - Response for create_network : {'network': {'id': '9ac473c2-6028-4330-830f-6ffa045f0297', 'name': 'ctest-vn4-57444736', 'tenant_id': '45ed30bd8db944a182f662b23f5f8e5d', 'project_id': '45ed30bd8db944a182f662b23f5f8e5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88081910', 'ctest-vn4-57444736'], 'port_security_enabled': True, 'description': ''}} 2025-08-25 02:15:44,279 - DEBUG - Response for create_subnet : {'subnet': {'id': '2b8f234a-19bb-457e-ab4a-2bacf80d47a1', 'name': '', 'tenant_id': '45ed30bd8db944a182f662b23f5f8e5d', 'network_id': '9ac473c2-6028-4330-830f-6ffa045f0297', 'ip_version': 4, 'cidr': '187.52.137.0/26', 'allocation_pools': [{'start': '187.52.137.2', 'end': '187.52.137.62'}], 'gateway_ip': '187.52.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.52.137.2', 'tags': [], 'project_id': '45ed30bd8db944a182f662b23f5f8e5d'}} 2025-08-25 02:15:44,487 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3798755-5bd1-4b8a-8688-22b165e2dbf9', 'name': '', 'tenant_id': '45ed30bd8db944a182f662b23f5f8e5d', 'network_id': '9ac473c2-6028-4330-830f-6ffa045f0297', 'ip_version': 6, 'cidr': '3b86:acb9:fcf9:469e:cd1e:cc2c::/96', 'allocation_pools': [{'start': '3b86:acb9:fcf9:469e:cd1e:cc2c:0:2', 'end': '3b86:acb9:fcf9:469e:cd1e:cc2c:ffff:fffe'}], 'gateway_ip': '3b86:acb9:fcf9:469e:cd1e:cc2c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b86:acb9:fcf9:469e:cd1e:cc2c:0:2', 'tags': [], 'project_id': '45ed30bd8db944a182f662b23f5f8e5d'}} 2025-08-25 02:15:44,516 - INFO - Created VN ctest-vn4-57444736 2025-08-25 02:15:44,572 - DEBUG - VN ctest-vn4-57444736 UUID is 9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:44,845 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9ac473c2-6028-4330-830f-6ffa045f0297', 'name': 'ctest-vn4-57444736', 'tenant_id': '45ed30bd8db944a182f662b23f5f8e5d', 'project_id': '45ed30bd8db944a182f662b23f5f8e5d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2b8f234a-19bb-457e-ab4a-2bacf80d47a1', 'a3798755-5bd1-4b8a-8688-22b165e2dbf9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88081910', 'ctest-vn4-57444736'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88081910', 'ctest-policy1-84530240']], 'subnet_ipam': [{'subnet_cidr': '187.52.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b86:acb9:fcf9:469e:cd1e:cc2c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-25 02:15:45,011 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-25 02:15:45,315 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-25 02:15:45,348 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f 2025-08-25 02:15:45,365 - DEBUG - Requesting: http://10.0.0.23:8082/project/45ed30bd-8db9-44a1-82f6-62b23f5f8e5d 2025-08-25 02:15:45,454 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,476 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,490 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:45,502 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:45,512 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/29620f89-41e3-471a-8a1b-05374194a15b 2025-08-25 02:15:45,522 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 02:15:45,522 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,536 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:45,559 - INFO - Verified VN network id 11 for VN 9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,559 - INFO - Verifications in API Server for VN ctest-vn4-57444736 passed 2025-08-25 02:15:45,559 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,575 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:45,585 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:45,597 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/29620f89-41e3-471a-8a1b-05374194a15b 2025-08-25 02:15:45,617 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-88081910', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11152165855950291760', 'uuid-lslong': '9443890063225062039'}, 'enable': 'true', 'created': '2025-08-25T02:15:43', 'last-modified': '2025-08-25T02:15:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.824023'} 2025-08-25 02:15:45,626 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-25 02:15:45,626 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57444736 passed 2025-08-25 02:15:45,626 - DEBUG - ====Verifying policy data for ctest-vn4-57444736 in API_Server ====== 2025-08-25 02:15:45,626 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-25 02:15:45,635 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f 2025-08-25 02:15:45,653 - DEBUG - Requesting: http://10.0.0.23:8082/project/45ed30bd-8db9-44a1-82f6-62b23f5f8e5d 2025-08-25 02:15:45,736 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/9ac473c2-6028-4330-830f-6ffa045f0297 2025-08-25 02:15:45,752 - DEBUG - ==>Verifying data for policy with id: 6b39f726-e22c-4a4e-94d7-ace479b54b3f, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-88081910', 'ctest-policy1-84530240'] 2025-08-25 02:15:45,752 - INFO - VN ctest-vn4-57444736 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-25 02:15:45,752 - DEBUG - Verifying the vn in opserver 2025-08-25 02:15:45,752 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736 virtual network link through opserver 10.0.0.23 2025-08-25 02:15:45,753 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-25 02:15:46,058 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-08-25 02:15:46,119 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736?flat'} 2025-08-25 02:15:46,119 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-88081910:ctest-vn4-57444736 is found in opserver 2025-08-25 02:15:46,133 - DEBUG - Do not have enough data to verify VN in agent 2025-08-25 02:15:46,140 - DEBUG - VRF ids for VN ctest-vn4-57444736: {} 2025-08-25 02:15:46,140 - DEBUG - ====Verifying data for ctest-policy1-84530240 in API_Server ====== 2025-08-25 02:15:46,140 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-25 02:15:46,148 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f 2025-08-25 02:15:46,163 - DEBUG - Requesting: http://10.0.0.23:8082/project/45ed30bd-8db9-44a1-82f6-62b23f5f8e5d 2025-08-25 02:15:46,247 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/6b39f726-e22c-4a4e-94d7-ace479b54b3f 2025-08-25 02:15:46,265 - INFO - Verified policy ctest-policy1-84530240 in API Server, Result: True 2025-08-25 02:15:46,265 - INFO - Done with setup and verification, moving onto test .. 2025-08-25 02:15:46,280 - INFO - Deleting VN ctest-vn4-57444736 2025-08-25 02:15:46,441 - DEBUG - Response for deleting network () 2025-08-25 02:15:46,441 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/27060f84-d093-4c19-ba8b-468318a51333 2025-08-25 02:15:46,449 - DEBUG - Response Code: 404 2025-08-25 02:15:46,449 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-08-25 02:15:46,461 - DEBUG - Requesting: http://10.0.0.23:8082/domain/298a0a08-89c5-4aae-8978-357a462a5d5f 2025-08-25 02:15:46,522 - DEBUG - Requesting: http://10.0.0.23:8082/project/45ed30bd-8db9-44a1-82f6-62b23f5f8e5d 2025-08-25 02:15:46,606 - INFO - Validated that VN ctest-vn4-57444736 is not found in API Server 2025-08-25 02:15:46,622 - DEBUG - VN ctest-vn4-57444736 is not present in Agent 10.0.0.23 2025-08-25 02:15:46,622 - INFO - Validated that VN ctest-vn4-57444736 is not in any agent 2025-08-25 02:15:46,647 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57444736 info 2025-08-25 02:15:46,685 - INFO - Deleted policy ctest-policy1-84530240 2025-08-25 02:15:46,879 - DEBUG - policy ctest-policy1-84530240 is not found in API Server 2025-08-25 02:15:47,144 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 02:15:47,144 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-25 02:15:47,144 - INFO - -------------------------------------------------------------------------------- 2025-08-25 02:15:47,453 - DEBUG - No XMPP flaps were noticed during the test
2025-08-25 02:15:47,453 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-08-25 02:15:47,453 - INFO - -------------------------------------------------------------------------------- 2025-08-25 02:15:48,156 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-88081910, ID : 45ed30bd-8db9-44a1-82f6-62b23f5f8e5d