2025-10-09 05:51:57,735 - INFO - Domain Default found not creating 2025-10-09 05:51:57,896 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26484319 not found, creating it 2025-10-09 05:51:58,346 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26484319, ID : a179ec8e-1651-48b0-8dcc-fde3512b1f5a 2025-10-09 05:51:59,924 - INFO - ================================================================================ 2025-10-09 05:51:59,924 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 05:52:00,183 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-09 05:52:00,183 - INFO - Initial checks done. Running the testcase now 2025-10-09 05:52:00,183 - INFO - 2025-10-09 05:52:00,183 - INFO - ================================================================================ 2025-10-09 05:52:00,183 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 05:52:00,183 - 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 05:52:00,474 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-09 05:52:00,475 - INFO - Initial checks done. Running the testcase now 2025-10-09 05:52:00,475 - INFO - 2025-10-09 05:52:00,870 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342, 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-26484319:ctest-vn4-55147342, 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-26484319:ctest-vn4-55147342, 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-26484319:ctest-vn4-55147342, 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 05:52:01,413 - DEBUG - Response for create_network : {'network': {'id': '4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b', 'name': 'ctest-vn4-55147342', 'tenant_id': 'a179ec8e165148b08dccfde3512b1f5a', 'project_id': 'a179ec8e165148b08dccfde3512b1f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26484319', 'ctest-vn4-55147342'], 'port_security_enabled': True, 'description': ''}} 2025-10-09 05:52:01,644 - DEBUG - Response for create_subnet : {'subnet': {'id': '475f5f0d-ca23-441d-a786-119293d43e3c', 'name': '', 'tenant_id': 'a179ec8e165148b08dccfde3512b1f5a', 'network_id': '4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b', 'ip_version': 4, 'cidr': '85.19.0.64/26', 'allocation_pools': [{'start': '85.19.0.66', 'end': '85.19.0.126'}], 'gateway_ip': '85.19.0.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '85.19.0.66', 'tags': [], 'project_id': 'a179ec8e165148b08dccfde3512b1f5a'}} 2025-10-09 05:52:01,806 - DEBUG - Response for create_subnet : {'subnet': {'id': '586caaa1-4231-49ef-b448-e48a84a67cef', 'name': '', 'tenant_id': 'a179ec8e165148b08dccfde3512b1f5a', 'network_id': '4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b', 'ip_version': 6, 'cidr': '39b2:ecad:1776:982a:7c5f:b07::/96', 'allocation_pools': [{'start': '39b2:ecad:1776:982a:7c5f:b07:0:2', 'end': '39b2:ecad:1776:982a:7c5f:b07:ffff:fffe'}], 'gateway_ip': '39b2:ecad:1776:982a:7c5f:b07:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '39b2:ecad:1776:982a:7c5f:b07:0:2', 'tags': [], 'project_id': 'a179ec8e165148b08dccfde3512b1f5a'}} 2025-10-09 05:52:01,828 - INFO - Created VN ctest-vn4-55147342 2025-10-09 05:52:01,881 - DEBUG - VN ctest-vn4-55147342 UUID is 4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,089 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b', 'name': 'ctest-vn4-55147342', 'tenant_id': 'a179ec8e165148b08dccfde3512b1f5a', 'project_id': 'a179ec8e165148b08dccfde3512b1f5a', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['475f5f0d-ca23-441d-a786-119293d43e3c', '586caaa1-4231-49ef-b448-e48a84a67cef'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26484319', 'ctest-vn4-55147342'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26484319', 'ctest-policy1-14122942']], 'subnet_ipam': [{'subnet_cidr': '85.19.0.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '39b2:ecad:1776:982a:7c5f:b07::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-09 05:52:02,253 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 05:52:02,587 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 05:52:02,617 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3 2025-10-09 05:52:02,630 - DEBUG - Requesting: http://10.0.0.254:8082/project/a179ec8e-1651-48b0-8dcc-fde3512b1f5a 2025-10-09 05:52:02,702 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,714 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,723 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:02,731 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:02,738 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/600dec10-0af2-456e-a876-88fe4d25db09 2025-10-09 05:52:02,745 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 05:52:02,745 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,754 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:02,769 - INFO - Verified VN network id 11 for VN 4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,770 - INFO - Verifications in API Server for VN ctest-vn4-55147342 passed 2025-10-09 05:52:02,770 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,780 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:02,787 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:02,794 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/600dec10-0af2-456e-a876-88fe4d25db09 2025-10-09 05:52:02,810 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26484319', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5409370010384682836', 'uuid-lslong': '12157225621205548331'}, 'enable': 'true', 'created': '2025-10-09T05:52:01', 'last-modified': '2025-10-09T05:52:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.750901'} 2025-10-09 05:52:02,817 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 05:52:02,817 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-55147342 passed 2025-10-09 05:52:02,817 - DEBUG - ====Verifying policy data for ctest-vn4-55147342 in API_Server ====== 2025-10-09 05:52:02,817 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 05:52:02,823 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3 2025-10-09 05:52:02,835 - DEBUG - Requesting: http://10.0.0.254:8082/project/a179ec8e-1651-48b0-8dcc-fde3512b1f5a 2025-10-09 05:52:02,905 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/4b11f15d-47a1-4f54-a8b7-244a6e3bfd2b 2025-10-09 05:52:02,915 - DEBUG - ==>Verifying data for policy with id: 5df56b42-e1dc-468d-b6c3-dcc4c493cf56, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26484319', 'ctest-policy1-14122942'] 2025-10-09 05:52:02,915 - INFO - VN ctest-vn4-55147342 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 05:52:02,915 - DEBUG - Verifying the vn in opserver 2025-10-09 05:52:02,915 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342 virtual network link through opserver 10.0.0.254 2025-10-09 05:52:02,916 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-09 05:52:03,248 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-09 05:52:03,306 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342?flat'} 2025-10-09 05:52:03,306 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26484319:ctest-vn4-55147342 is found in opserver 2025-10-09 05:52:03,316 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 05:52:03,320 - DEBUG - VRF ids for VN ctest-vn4-55147342: {} 2025-10-09 05:52:03,321 - DEBUG - ====Verifying data for ctest-policy1-14122942 in API_Server ====== 2025-10-09 05:52:03,321 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 05:52:03,326 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3 2025-10-09 05:52:03,337 - DEBUG - Requesting: http://10.0.0.254:8082/project/a179ec8e-1651-48b0-8dcc-fde3512b1f5a 2025-10-09 05:52:03,409 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/5df56b42-e1dc-468d-b6c3-dcc4c493cf56 2025-10-09 05:52:03,419 - INFO - Verified policy ctest-policy1-14122942 in API Server, Result: True 2025-10-09 05:52:03,419 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 05:52:03,427 - INFO - Deleting VN ctest-vn4-55147342 2025-10-09 05:52:03,536 - DEBUG - Response for deleting network () 2025-10-09 05:52:03,536 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/2e2ce1ad-3a09-4d43-8ced-cecdb49f6299 2025-10-09 05:52:03,541 - DEBUG - Response Code: 404 2025-10-09 05:52:03,541 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-09 05:52:03,547 - DEBUG - Requesting: http://10.0.0.254:8082/domain/31bb2103-3d2c-49bd-bab1-511d5dd1d4b3 2025-10-09 05:52:03,598 - DEBUG - Requesting: http://10.0.0.254:8082/project/a179ec8e-1651-48b0-8dcc-fde3512b1f5a 2025-10-09 05:52:03,665 - INFO - Validated that VN ctest-vn4-55147342 is not found in API Server 2025-10-09 05:52:03,676 - DEBUG - VN ctest-vn4-55147342 is not present in Agent 10.0.0.254 2025-10-09 05:52:03,676 - INFO - Validated that VN ctest-vn4-55147342 is not in any agent 2025-10-09 05:52:03,690 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-55147342 info 2025-10-09 05:52:03,721 - INFO - Deleted policy ctest-policy1-14122942 2025-10-09 05:52:03,893 - DEBUG - policy ctest-policy1-14122942 is not found in API Server 2025-10-09 05:52:04,147 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 05:52:04,147 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-09 05:52:04,147 - INFO - -------------------------------------------------------------------------------- 2025-10-09 05:52:04,435 - DEBUG - No XMPP flaps were noticed during the test
2025-10-09 05:52:04,435 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-09 05:52:04,435 - INFO - -------------------------------------------------------------------------------- 2025-10-09 05:52:05,151 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26484319, ID : a179ec8e-1651-48b0-8dcc-fde3512b1f5a