2025-10-27 05:27:11,833 - INFO - Domain Default found not creating 2025-10-27 05:27:11,997 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94264430 not found, creating it 2025-10-27 05:27:12,489 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94264430, ID : eb0b7682-cb41-463f-b4ec-1e101916e9ee 2025-10-27 05:27:14,099 - INFO - ================================================================================ 2025-10-27 05:27:14,099 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 05:27:14,366 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-27 05:27:14,366 - INFO - Initial checks done. Running the testcase now 2025-10-27 05:27:14,366 - INFO - 2025-10-27 05:27:14,367 - INFO - ================================================================================ 2025-10-27 05:27:14,367 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-27 05:27:14,367 - 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-27 05:27:14,667 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with 2025-10-27 05:27:14,667 - INFO - Initial checks done. Running the testcase now 2025-10-27 05:27:14,668 - INFO - 2025-10-27 05:27:15,067 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339, 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-94264430:ctest-vn4-88050339, 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-94264430:ctest-vn4-88050339, 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-94264430:ctest-vn4-88050339, 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-27 05:27:15,613 - DEBUG - Response for create_network : {'network': {'id': 'ee7ee73b-a68c-4a61-b053-8e300317665a', 'name': 'ctest-vn4-88050339', 'tenant_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'project_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94264430', 'ctest-vn4-88050339'], 'port_security_enabled': True, 'description': ''}} 2025-10-27 05:27:15,811 - DEBUG - Response for create_subnet : {'subnet': {'id': '8b857d56-a099-469a-9373-064e5075ccb2', 'name': '', 'tenant_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'network_id': 'ee7ee73b-a68c-4a61-b053-8e300317665a', 'ip_version': 4, 'cidr': '177.254.111.0/26', 'allocation_pools': [{'start': '177.254.111.2', 'end': '177.254.111.62'}], 'gateway_ip': '177.254.111.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '177.254.111.2', 'tags': [], 'project_id': 'eb0b7682cb41463fb4ec1e101916e9ee'}} 2025-10-27 05:27:16,028 - DEBUG - Response for create_subnet : {'subnet': {'id': 'fd06bfa1-bf6c-43dc-be65-f2297739da64', 'name': '', 'tenant_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'network_id': 'ee7ee73b-a68c-4a61-b053-8e300317665a', 'ip_version': 6, 'cidr': '3ea2:9731:f114:840a:9ad:48cb::/96', 'allocation_pools': [{'start': '3ea2:9731:f114:840a:9ad:48cb:0:2', 'end': '3ea2:9731:f114:840a:9ad:48cb:ffff:fffe'}], 'gateway_ip': '3ea2:9731:f114:840a:9ad:48cb:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3ea2:9731:f114:840a:9ad:48cb:0:2', 'tags': [], 'project_id': 'eb0b7682cb41463fb4ec1e101916e9ee'}} 2025-10-27 05:27:16,048 - INFO - Created VN ctest-vn4-88050339 2025-10-27 05:27:16,099 - DEBUG - VN ctest-vn4-88050339 UUID is ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:16,393 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ee7ee73b-a68c-4a61-b053-8e300317665a', 'name': 'ctest-vn4-88050339', 'tenant_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'project_id': 'eb0b7682cb41463fb4ec1e101916e9ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8b857d56-a099-469a-9373-064e5075ccb2', 'fd06bfa1-bf6c-43dc-be65-f2297739da64'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94264430', 'ctest-vn4-88050339'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94264430', 'ctest-policy1-21546011']], 'subnet_ipam': [{'subnet_cidr': '177.254.111.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3ea2:9731:f114:840a:9ad:48cb::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-27 05:27:16,555 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 05:27:16,894 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 05:27:16,933 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce 2025-10-27 05:27:16,952 - DEBUG - Requesting: http://10.0.0.254:8082/project/eb0b7682-cb41-463f-b4ec-1e101916e9ee 2025-10-27 05:27:17,023 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,035 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,044 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,051 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,057 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ccbb81c1-1617-4466-adeb-de9b022dde45 2025-10-27 05:27:17,063 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 05:27:17,063 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,073 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,086 - INFO - Verified VN network id 12 for VN ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,086 - INFO - Verifications in API Server for VN ctest-vn4-88050339 passed 2025-10-27 05:27:17,087 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,096 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,102 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,108 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/ccbb81c1-1617-4466-adeb-de9b022dde45 2025-10-27 05:27:17,120 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94264430', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17185427471475690081', 'uuid-lslong': '12705655310603740762'}, 'enable': 'true', 'created': '2025-10-27T05:27:15', 'last-modified': '2025-10-27T05:27:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.827629'} 2025-10-27 05:27:17,128 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-27 05:27:17,128 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-88050339 passed 2025-10-27 05:27:17,128 - DEBUG - ====Verifying policy data for ctest-vn4-88050339 in API_Server ====== 2025-10-27 05:27:17,128 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 05:27:17,134 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce 2025-10-27 05:27:17,146 - DEBUG - Requesting: http://10.0.0.254:8082/project/eb0b7682-cb41-463f-b4ec-1e101916e9ee 2025-10-27 05:27:17,220 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ee7ee73b-a68c-4a61-b053-8e300317665a 2025-10-27 05:27:17,230 - DEBUG - ==>Verifying data for policy with id: 5be25bb3-906d-4c0f-9584-4aa20f5fc1a2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94264430', 'ctest-policy1-21546011'] 2025-10-27 05:27:17,230 - INFO - VN ctest-vn4-88050339 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-27 05:27:17,230 - DEBUG - Verifying the vn in opserver 2025-10-27 05:27:17,230 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339 virtual network link through opserver 10.0.0.254 2025-10-27 05:27:17,230 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-27 05:27:17,571 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-27 05:27:17,631 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339?flat'} 2025-10-27 05:27:17,631 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94264430:ctest-vn4-88050339 is found in opserver 2025-10-27 05:27:17,643 - DEBUG - Do not have enough data to verify VN in agent 2025-10-27 05:27:17,647 - DEBUG - VRF ids for VN ctest-vn4-88050339: {} 2025-10-27 05:27:17,648 - DEBUG - ====Verifying data for ctest-policy1-21546011 in API_Server ====== 2025-10-27 05:27:17,648 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 05:27:17,654 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce 2025-10-27 05:27:17,664 - DEBUG - Requesting: http://10.0.0.254:8082/project/eb0b7682-cb41-463f-b4ec-1e101916e9ee 2025-10-27 05:27:17,734 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/5be25bb3-906d-4c0f-9584-4aa20f5fc1a2 2025-10-27 05:27:17,744 - INFO - Verified policy ctest-policy1-21546011 in API Server, Result: True 2025-10-27 05:27:17,744 - INFO - Done with setup and verification, moving onto test .. 2025-10-27 05:27:17,752 - INFO - Deleting VN ctest-vn4-88050339 2025-10-27 05:27:17,869 - DEBUG - Response for deleting network () 2025-10-27 05:27:17,869 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/743cf5bb-0f96-4d76-b304-0d95befc6120 2025-10-27 05:27:17,876 - DEBUG - Response Code: 404 2025-10-27 05:27:17,876 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-10-27 05:27:17,882 - DEBUG - Requesting: http://10.0.0.254:8082/domain/c676ccdc-ba00-411e-b212-adf45400cbce 2025-10-27 05:27:17,937 - DEBUG - Requesting: http://10.0.0.254:8082/project/eb0b7682-cb41-463f-b4ec-1e101916e9ee 2025-10-27 05:27:18,008 - INFO - Validated that VN ctest-vn4-88050339 is not found in API Server 2025-10-27 05:27:18,019 - DEBUG - VN ctest-vn4-88050339 is not present in Agent 10.0.0.254 2025-10-27 05:27:18,019 - INFO - Validated that VN ctest-vn4-88050339 is not in any agent 2025-10-27 05:27:18,034 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-88050339 info 2025-10-27 05:27:18,059 - INFO - Deleted policy ctest-policy1-21546011 2025-10-27 05:27:18,223 - DEBUG - policy ctest-policy1-21546011 is not found in API Server 2025-10-27 05:27:18,482 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 05:27:18,482 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 05:27:18,482 - INFO - -------------------------------------------------------------------------------- 2025-10-27 05:27:18,788 - DEBUG - No XMPP flaps were noticed during the test 2025-10-27 05:27:18,788 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-10-27 05:27:18,788 - INFO - -------------------------------------------------------------------------------- 2025-10-27 05:27:19,514 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94264430, ID : eb0b7682-cb41-463f-b4ec-1e101916e9ee