2025-10-30 21:58:06,874 - INFO - Domain Default found not creating 2025-10-30 21:58:07,060 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-67746496 not found, creating it 2025-10-30 21:58:07,628 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-67746496, ID : 9b0a5677-2355-4925-a1bd-e8a0eb0cf155 2025-10-30 21:58:09,748 - INFO - ================================================================================ 2025-10-30 21:58:09,748 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:58:10,064 - DEBUG - Nothing to compare xmpp stats {'10.0.0.245': {'10.20.0.14': '0'}} with 2025-10-30 21:58:10,065 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:58:10,065 - INFO - 2025-10-30 21:58:10,065 - INFO - ================================================================================ 2025-10-30 21:58:10,065 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 21:58:10,066 - 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-30 21:58:10,421 - DEBUG - Nothing to compare xmpp stats {'10.0.0.245': {'10.20.0.14': '0'}} with 2025-10-30 21:58:10,422 - INFO - Initial checks done. Running the testcase now 2025-10-30 21:58:10,422 - INFO - 2025-10-30 21:58:10,816 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002, 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-67746496:ctest-vn4-18098002, 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-67746496:ctest-vn4-18098002, 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-67746496:ctest-vn4-18098002, 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-30 21:58:11,603 - DEBUG - Response for create_network : {'network': {'id': 'e938618b-d341-46fb-b42b-8a97f2294d6b', 'name': 'ctest-vn4-18098002', 'tenant_id': '9b0a567723554925a1bde8a0eb0cf155', 'project_id': '9b0a567723554925a1bde8a0eb0cf155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67746496', 'ctest-vn4-18098002'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:58:11,887 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f771ef9c-8852-4936-9a39-dd2a9925a1df', 'name': '', 'tenant_id': '9b0a567723554925a1bde8a0eb0cf155', 'network_id': 'e938618b-d341-46fb-b42b-8a97f2294d6b', 'ip_version': 4, 'cidr': '194.176.137.0/26', 'allocation_pools': [{'start': '194.176.137.2', 'end': '194.176.137.62'}], 'gateway_ip': '194.176.137.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.176.137.2', 'tags': [], 'project_id': '9b0a567723554925a1bde8a0eb0cf155'}} 2025-10-30 21:58:12,171 - DEBUG - Response for create_subnet : {'subnet': {'id': '7779ea57-a835-4d60-8904-165430a06eff', 'name': '', 'tenant_id': '9b0a567723554925a1bde8a0eb0cf155', 'network_id': 'e938618b-d341-46fb-b42b-8a97f2294d6b', 'ip_version': 6, 'cidr': '31df:e59a:9aa3:e42:adb0:cbff::/96', 'allocation_pools': [{'start': '31df:e59a:9aa3:e42:adb0:cbff:0:2', 'end': '31df:e59a:9aa3:e42:adb0:cbff:ffff:fffe'}], 'gateway_ip': '31df:e59a:9aa3:e42:adb0:cbff:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31df:e59a:9aa3:e42:adb0:cbff:0:2', 'tags': [], 'project_id': '9b0a567723554925a1bde8a0eb0cf155'}} 2025-10-30 21:58:12,218 - INFO - Created VN ctest-vn4-18098002 2025-10-30 21:58:12,287 - DEBUG - VN ctest-vn4-18098002 UUID is e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:12,692 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e938618b-d341-46fb-b42b-8a97f2294d6b', 'name': 'ctest-vn4-18098002', 'tenant_id': '9b0a567723554925a1bde8a0eb0cf155', 'project_id': '9b0a567723554925a1bde8a0eb0cf155', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f771ef9c-8852-4936-9a39-dd2a9925a1df', '7779ea57-a835-4d60-8904-165430a06eff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67746496', 'ctest-vn4-18098002'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67746496', 'ctest-policy1-41388170']], 'subnet_ipam': [{'subnet_cidr': '194.176.137.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '31df:e59a:9aa3:e42:adb0:cbff::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 21:58:12,878 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-30 21:58:13,243 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-30 21:58:13,305 - DEBUG - Requesting: http://10.0.0.245:8082/domain/df520927-2e60-4ba9-b1b3-d71e44524b00 2025-10-30 21:58:13,327 - DEBUG - Requesting: http://10.0.0.245:8082/project/9b0a5677-2355-4925-a1bd-e8a0eb0cf155 2025-10-30 21:58:13,435 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,459 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,485 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:13,499 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:13,513 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/72f1711f-2acf-4846-9302-c7f8a4c4dcf5 2025-10-30 21:58:13,524 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:58:13,525 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,538 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:13,564 - INFO - Verified VN network id 11 for VN e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,565 - INFO - Verifications in API Server for VN ctest-vn4-18098002 passed 2025-10-30 21:58:13,565 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,585 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:13,598 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:13,612 - DEBUG - Requesting: http://10.0.0.245:8082/route-target/72f1711f-2acf-4846-9302-c7f8a4c4dcf5 2025-10-30 21:58:13,636 - DEBUG - Control-node 10.0.0.245 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-67746496', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16805289262705624827', 'uuid-lslong': '12982622736033074539'}, 'enable': 'true', 'created': '2025-10-30T21:58:11', 'last-modified': '2025-10-30T21:58:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.007563'} 2025-10-30 21:58:13,645 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 21:58:13,645 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-18098002 passed 2025-10-30 21:58:13,645 - DEBUG - ====Verifying policy data for ctest-vn4-18098002 in API_Server ====== 2025-10-30 21:58:13,645 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-30 21:58:13,653 - DEBUG - Requesting: http://10.0.0.245:8082/domain/df520927-2e60-4ba9-b1b3-d71e44524b00 2025-10-30 21:58:13,669 - DEBUG - Requesting: http://10.0.0.245:8082/project/9b0a5677-2355-4925-a1bd-e8a0eb0cf155 2025-10-30 21:58:13,783 - DEBUG - Requesting: http://10.0.0.245:8082/virtual-network/e938618b-d341-46fb-b42b-8a97f2294d6b 2025-10-30 21:58:13,803 - DEBUG - ==>Verifying data for policy with id: 121cf25a-1b82-44d7-9f81-33a2933324ad, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-67746496', 'ctest-policy1-41388170'] 2025-10-30 21:58:13,803 - INFO - VN ctest-vn4-18098002 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 21:58:13,804 - DEBUG - Verifying the vn in opserver 2025-10-30 21:58:13,804 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002 virtual network link through opserver 10.0.0.245 2025-10-30 21:58:13,804 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks 2025-10-30 21:58:14,163 - DEBUG - Requesting: http://10.0.0.245:8081/analytics/uves/virtual-networks 2025-10-30 21:58:14,317 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002', 'href': 'http://10.0.0.245:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002?flat'} 2025-10-30 21:58:14,317 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-67746496:ctest-vn4-18098002 is found in opserver 2025-10-30 21:58:14,351 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 21:58:14,368 - DEBUG - VRF ids for VN ctest-vn4-18098002: {} 2025-10-30 21:58:14,369 - DEBUG - ====Verifying data for ctest-policy1-41388170 in API_Server ====== 2025-10-30 21:58:14,370 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-30 21:58:14,384 - DEBUG - Requesting: http://10.0.0.245:8082/domain/df520927-2e60-4ba9-b1b3-d71e44524b00 2025-10-30 21:58:14,408 - DEBUG - Requesting: http://10.0.0.245:8082/project/9b0a5677-2355-4925-a1bd-e8a0eb0cf155 2025-10-30 21:58:14,517 - DEBUG - Requesting: http://10.0.0.245:8082/network-policy/121cf25a-1b82-44d7-9f81-33a2933324ad 2025-10-30 21:58:14,534 - INFO - Verified policy ctest-policy1-41388170 in API Server, Result: True 2025-10-30 21:58:14,534 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 21:58:14,550 - INFO - Deleting VN ctest-vn4-18098002 2025-10-30 21:58:14,762 - DEBUG - Response for deleting network () 2025-10-30 21:58:14,762 - DEBUG - Requesting: http://10.0.0.245:8082/routing-instance/0a5efcf8-1c67-458a-b302-cbe85b061d36 2025-10-30 21:58:14,768 - DEBUG - Response Code: 404 2025-10-30 21:58:14,768 - DEBUG - Requesting: http://10.0.0.245:8082/domains 2025-10-30 21:58:14,776 - DEBUG - Requesting: http://10.0.0.245:8082/domain/df520927-2e60-4ba9-b1b3-d71e44524b00 2025-10-30 21:58:14,832 - DEBUG - Requesting: http://10.0.0.245:8082/project/9b0a5677-2355-4925-a1bd-e8a0eb0cf155 2025-10-30 21:58:14,922 - INFO - Validated that VN ctest-vn4-18098002 is not found in API Server 2025-10-30 21:58:14,946 - DEBUG - VN ctest-vn4-18098002 is not present in Agent 10.0.0.245 2025-10-30 21:58:14,946 - INFO - Validated that VN ctest-vn4-18098002 is not in any agent 2025-10-30 21:58:14,974 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-18098002 info 2025-10-30 21:58:15,016 - INFO - Deleted policy ctest-policy1-41388170 2025-10-30 21:58:15,230 - DEBUG - policy ctest-policy1-41388170 is not found in API Server 2025-10-30 21:58:15,558 - DEBUG - No XMPP flaps were noticed during the test