2025-08-11 11:10:43,413 - INFO - Domain Default found not creating 2025-08-11 11:10:43,540 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-87283315 not found, creating it 2025-08-11 11:10:44,074 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-87283315, ID : 313fe3ec-f8b5-42d5-bd0c-aaca0956628f 2025-08-11 11:10:45,446 - INFO - ================================================================================ 2025-08-11 11:10:45,446 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 11:10:46,705 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-11 11:10:46,705 - INFO - Initial checks done. Running the testcase now 2025-08-11 11:10:46,706 - INFO - 2025-08-11 11:10:46,706 - INFO - ================================================================================ 2025-08-11 11:10:46,706 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-11 11:10:46,706 - 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-11 11:10:47,976 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.254': '0', '10.20.0.25': '0'}} with 2025-08-11 11:10:47,976 - INFO - Initial checks done. Running the testcase now 2025-08-11 11:10:47,976 - INFO - 2025-08-11 11:10:48,411 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940, 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-87283315:ctest-vn4-46516940, 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-87283315:ctest-vn4-46516940, 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-87283315:ctest-vn4-46516940, 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-11 11:10:49,013 - DEBUG - Response for create_network : {'network': {'id': 'a0ac4f9e-722e-4b9b-87cb-df9e2c73296c', 'name': 'ctest-vn4-46516940', 'tenant_id': '313fe3ecf8b542d5bd0caaca0956628f', 'project_id': '313fe3ecf8b542d5bd0caaca0956628f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'ctest-vn4-46516940'], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:10:49,318 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c0d187e7-acb6-420b-a7f8-231411b5ef41', 'name': '', 'tenant_id': '313fe3ecf8b542d5bd0caaca0956628f', 'network_id': 'a0ac4f9e-722e-4b9b-87cb-df9e2c73296c', 'ip_version': 4, 'cidr': '90.58.148.0/26', 'allocation_pools': [{'start': '90.58.148.2', 'end': '90.58.148.62'}], 'gateway_ip': '90.58.148.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '90.58.148.2', 'tags': [], 'project_id': '313fe3ecf8b542d5bd0caaca0956628f'}} 2025-08-11 11:10:49,516 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ab0821bc-4a57-42e9-8e11-1b5ef2a0489e', 'name': '', 'tenant_id': '313fe3ecf8b542d5bd0caaca0956628f', 'network_id': 'a0ac4f9e-722e-4b9b-87cb-df9e2c73296c', 'ip_version': 6, 'cidr': '2425:ed35:2a72:bd44:7081:934::/96', 'allocation_pools': [{'start': '2425:ed35:2a72:bd44:7081:934:0:2', 'end': '2425:ed35:2a72:bd44:7081:934:ffff:fffe'}], 'gateway_ip': '2425:ed35:2a72:bd44:7081:934:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2425:ed35:2a72:bd44:7081:934:0:2', 'tags': [], 'project_id': '313fe3ecf8b542d5bd0caaca0956628f'}} 2025-08-11 11:10:49,538 - INFO - Created VN ctest-vn4-46516940 2025-08-11 11:10:49,548 - DEBUG - VN ctest-vn4-46516940 UUID is a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:49,737 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a0ac4f9e-722e-4b9b-87cb-df9e2c73296c', 'name': 'ctest-vn4-46516940', 'tenant_id': '313fe3ecf8b542d5bd0caaca0956628f', 'project_id': '313fe3ecf8b542d5bd0caaca0956628f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c0d187e7-acb6-420b-a7f8-231411b5ef41', 'ab0821bc-4a57-42e9-8e11-1b5ef2a0489e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'ctest-vn4-46516940'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'ctest-policy1-43078606']], 'subnet_ipam': [{'subnet_cidr': '90.58.148.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2425:ed35:2a72:bd44:7081:934::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-11 11:10:49,859 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:10:50,150 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:10:50,179 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:10:50,195 - DEBUG - Requesting: http://10.0.0.56:8082/project/313fe3ec-f8b5-42d5-bd0c-aaca0956628f 2025-08-11 11:10:50,298 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,310 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,322 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:50,329 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:50,337 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/c2466a07-f608-4cdf-9e22-3f6dfcc11525 2025-08-11 11:10:50,343 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:10:50,343 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,353 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:50,368 - INFO - Verified VN network id 11 for VN a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,368 - INFO - Verifications in API Server for VN ctest-vn4-46516940 passed 2025-08-11 11:10:50,368 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,379 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:50,386 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:50,394 - DEBUG - Requesting: http://10.0.0.56:8082/route-target/c2466a07-f608-4cdf-9e22-3f6dfcc11525 2025-08-11 11:10:50,406 - DEBUG - Control-node 10.0.0.56 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11577716284001766299', 'uuid-lslong': '9785160485836106092'}, 'enable': 'true', 'created': '2025-08-11T11:10:48', 'last-modified': '2025-08-11T11:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713727'} 2025-08-11 11:10:50,414 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:10:50,420 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11577716284001766299', 'uuid-lslong': '9785160485836106092'}, 'enable': 'true', 'created': '2025-08-11T11:10:48', 'last-modified': '2025-08-11T11:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.727580'} 2025-08-11 11:10:50,426 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:10:50,432 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11577716284001766299', 'uuid-lslong': '9785160485836106092'}, 'enable': 'true', 'created': '2025-08-11T11:10:48', 'last-modified': '2025-08-11T11:10:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.736960'} 2025-08-11 11:10:50,438 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-11 11:10:50,438 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-46516940 passed 2025-08-11 11:10:50,438 - DEBUG - ====Verifying policy data for ctest-vn4-46516940 in API_Server ====== 2025-08-11 11:10:50,438 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:10:50,445 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:10:50,457 - DEBUG - Requesting: http://10.0.0.56:8082/project/313fe3ec-f8b5-42d5-bd0c-aaca0956628f 2025-08-11 11:10:50,555 - DEBUG - Requesting: http://10.0.0.56:8082/virtual-network/a0ac4f9e-722e-4b9b-87cb-df9e2c73296c 2025-08-11 11:10:50,576 - DEBUG - ==>Verifying data for policy with id: c81b7c80-68ae-47c0-9faa-6d6bd2a5d171, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-87283315', 'ctest-policy1-43078606'] 2025-08-11 11:10:50,576 - INFO - VN ctest-vn4-46516940 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-11 11:10:50,576 - DEBUG - Verifying the vn in opserver 2025-08-11 11:10:50,576 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940 virtual network link through opserver 10.0.0.56 2025-08-11 11:10:50,577 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-11 11:10:50,869 - DEBUG - Requesting: http://10.0.0.56:8081/analytics/uves/virtual-networks 2025-08-11 11:10:50,921 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'href': 'http://10.0.0.56:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940?flat'} 2025-08-11 11:10:50,921 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940 virtual network link through opserver 10.0.0.38 2025-08-11 11:10:50,921 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 11:10:51,218 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-11 11:10:51,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940?flat'} 2025-08-11 11:10:51,271 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940 virtual network link through opserver 10.0.0.22 2025-08-11 11:10:51,271 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 11:10:51,560 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-08-11 11:10:51,628 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940?flat'} 2025-08-11 11:10:51,628 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-87283315:ctest-vn4-46516940 is found in opserver 2025-08-11 11:10:51,660 - DEBUG - Do not have enough data to verify VN in agent 2025-08-11 11:10:51,670 - DEBUG - VRF ids for VN ctest-vn4-46516940: {} 2025-08-11 11:10:51,670 - DEBUG - ====Verifying data for ctest-policy1-43078606 in API_Server ====== 2025-08-11 11:10:51,670 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:10:51,692 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:10:51,713 - DEBUG - Requesting: http://10.0.0.56:8082/project/313fe3ec-f8b5-42d5-bd0c-aaca0956628f 2025-08-11 11:10:51,827 - DEBUG - Requesting: http://10.0.0.56:8082/network-policy/c81b7c80-68ae-47c0-9faa-6d6bd2a5d171 2025-08-11 11:10:51,857 - INFO - Verified policy ctest-policy1-43078606 in API Server, Result: True 2025-08-11 11:10:51,858 - INFO - Done with setup and verification, moving onto test .. 2025-08-11 11:10:51,877 - INFO - Deleting VN ctest-vn4-46516940 2025-08-11 11:10:52,070 - DEBUG - Response for deleting network () 2025-08-11 11:10:52,071 - DEBUG - Requesting: http://10.0.0.56:8082/routing-instance/080dc613-1a79-4be8-803d-edba53b2f290 2025-08-11 11:10:52,102 - DEBUG - Response Code: 404 2025-08-11 11:10:52,102 - DEBUG - Requesting: http://10.0.0.56:8082/domains 2025-08-11 11:10:52,116 - DEBUG - Requesting: http://10.0.0.56:8082/domain/b5486b30-eba1-4fa6-8a8f-46cb32823c52 2025-08-11 11:10:52,144 - DEBUG - Requesting: http://10.0.0.56:8082/project/313fe3ec-f8b5-42d5-bd0c-aaca0956628f 2025-08-11 11:10:52,230 - INFO - Validated that VN ctest-vn4-46516940 is not found in API Server 2025-08-11 11:10:52,244 - DEBUG - VN ctest-vn4-46516940 is not present in Agent 10.0.0.19 2025-08-11 11:10:52,255 - DEBUG - VN ctest-vn4-46516940 is not present in Agent 10.0.0.41 2025-08-11 11:10:52,255 - INFO - Validated that VN ctest-vn4-46516940 is not in any agent 2025-08-11 11:10:52,285 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-46516940 info 2025-08-11 11:10:52,325 - INFO - Deleted policy ctest-policy1-43078606 2025-08-11 11:10:52,504 - DEBUG - policy ctest-policy1-43078606 is not found in API Server 2025-08-11 11:10:53,756 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 11:10:53,757 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-11 11:10:53,757 - INFO - -------------------------------------------------------------------------------- 2025-08-11 11:10:55,004 - DEBUG - No XMPP flaps were noticed during the test
2025-08-11 11:10:55,004 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-08-11 11:10:55,005 - INFO - -------------------------------------------------------------------------------- 2025-08-11 11:10:55,710 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-87283315, ID : 313fe3ec-f8b5-42d5-bd0c-aaca0956628f