2025-11-06 06:31:53,411 - INFO - Domain Default found not creating 2025-11-06 06:31:53,568 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-99099088 not found, creating it 2025-11-06 06:31:54,057 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-99099088, ID : 4256db53-054a-4d57-9c6a-6e29edf3d3b8 2025-11-06 06:31:55,412 - INFO - ================================================================================ 2025-11-06 06:31:55,413 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 06:31:55,669 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-06 06:31:55,669 - INFO - Initial checks done. Running the testcase now 2025-11-06 06:31:55,669 - INFO - 2025-11-06 06:31:55,669 - INFO - ================================================================================ 2025-11-06 06:31:55,670 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-06 06:31:55,670 - 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-11-06 06:31:55,962 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.18': '0'}} with 2025-11-06 06:31:55,962 - INFO - Initial checks done. Running the testcase now 2025-11-06 06:31:55,962 - INFO - 2025-11-06 06:31:56,318 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326, 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-99099088:ctest-vn4-78576326, 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-99099088:ctest-vn4-78576326, 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-99099088:ctest-vn4-78576326, 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-11-06 06:31:56,816 - DEBUG - Response for create_network : {'network': {'id': '7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51', 'name': 'ctest-vn4-78576326', 'tenant_id': '4256db53054a4d579c6a6e29edf3d3b8', 'project_id': '4256db53054a4d579c6a6e29edf3d3b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99099088', 'ctest-vn4-78576326'], 'port_security_enabled': True, 'description': ''}} 2025-11-06 06:31:56,995 - DEBUG - Response for create_subnet : {'subnet': {'id': '5cf7c77b-01a8-4497-a129-ef3b403285a1', 'name': '', 'tenant_id': '4256db53054a4d579c6a6e29edf3d3b8', 'network_id': '7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51', 'ip_version': 4, 'cidr': '6.61.28.128/26', 'allocation_pools': [{'start': '6.61.28.130', 'end': '6.61.28.190'}], 'gateway_ip': '6.61.28.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '6.61.28.130', 'tags': [], 'project_id': '4256db53054a4d579c6a6e29edf3d3b8'}} 2025-11-06 06:31:57,138 - DEBUG - Response for create_subnet : {'subnet': {'id': '17b2971e-ac0b-44d0-a137-07b5472f5c66', 'name': '', 'tenant_id': '4256db53054a4d579c6a6e29edf3d3b8', 'network_id': '7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51', 'ip_version': 6, 'cidr': '328b:b064:1dbe:88ef:3409:f4b9::/96', 'allocation_pools': [{'start': '328b:b064:1dbe:88ef:3409:f4b9:0:2', 'end': '328b:b064:1dbe:88ef:3409:f4b9:ffff:fffe'}], 'gateway_ip': '328b:b064:1dbe:88ef:3409:f4b9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '328b:b064:1dbe:88ef:3409:f4b9:0:2', 'tags': [], 'project_id': '4256db53054a4d579c6a6e29edf3d3b8'}} 2025-11-06 06:31:57,155 - INFO - Created VN ctest-vn4-78576326 2025-11-06 06:31:57,206 - DEBUG - VN ctest-vn4-78576326 UUID is 7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:57,380 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51', 'name': 'ctest-vn4-78576326', 'tenant_id': '4256db53054a4d579c6a6e29edf3d3b8', 'project_id': '4256db53054a4d579c6a6e29edf3d3b8', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5cf7c77b-01a8-4497-a129-ef3b403285a1', '17b2971e-ac0b-44d0-a137-07b5472f5c66'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99099088', 'ctest-vn4-78576326'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99099088', 'ctest-policy1-83176531']], 'subnet_ipam': [{'subnet_cidr': '6.61.28.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '328b:b064:1dbe:88ef:3409:f4b9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-06 06:31:57,555 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-06 06:31:57,845 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-06 06:31:57,872 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd 2025-11-06 06:31:57,884 - DEBUG - Requesting: http://10.0.0.38:8082/project/4256db53-054a-4d57-9c6a-6e29edf3d3b8 2025-11-06 06:31:57,954 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:57,965 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:57,973 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:57,979 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:57,984 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c0aa675-5aa1-4bae-a3d4-ede6b9a9ed63 2025-11-06 06:31:57,990 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 06:31:57,990 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:57,997 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:58,008 - INFO - Verified VN network id 12 for VN 7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:58,008 - INFO - Verifications in API Server for VN ctest-vn4-78576326 passed 2025-11-06 06:31:58,008 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:58,016 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:58,023 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:58,029 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7c0aa675-5aa1-4bae-a3d4-ede6b9a9ed63 2025-11-06 06:31:58,039 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-99099088', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9163872838901059005', 'uuid-lslong': '10254598185488641617'}, 'enable': 'true', 'created': '2025-11-06T06:31:56', 'last-modified': '2025-11-06T06:31:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.680796'} 2025-11-06 06:31:58,044 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-06 06:31:58,044 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-78576326 passed 2025-11-06 06:31:58,045 - DEBUG - ====Verifying policy data for ctest-vn4-78576326 in API_Server ====== 2025-11-06 06:31:58,045 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-06 06:31:58,050 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd 2025-11-06 06:31:58,060 - DEBUG - Requesting: http://10.0.0.38:8082/project/4256db53-054a-4d57-9c6a-6e29edf3d3b8 2025-11-06 06:31:58,126 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/7f2c9dcb-718c-4dbd-8e4f-a6b7f06a6e51 2025-11-06 06:31:58,135 - DEBUG - ==>Verifying data for policy with id: 10ad71ee-5df6-472b-ba9d-a5b4798c2212, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-99099088', 'ctest-policy1-83176531'] 2025-11-06 06:31:58,135 - INFO - VN ctest-vn4-78576326 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-06 06:31:58,135 - DEBUG - Verifying the vn in opserver 2025-11-06 06:31:58,135 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326 virtual network link through opserver 10.0.0.38 2025-11-06 06:31:58,135 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 06:31:58,426 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-06 06:31:58,479 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326?flat'} 2025-11-06 06:31:58,479 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-99099088:ctest-vn4-78576326 is found in opserver 2025-11-06 06:31:58,488 - DEBUG - Do not have enough data to verify VN in agent 2025-11-06 06:31:58,497 - DEBUG - VRF ids for VN ctest-vn4-78576326: {} 2025-11-06 06:31:58,498 - DEBUG - ====Verifying data for ctest-policy1-83176531 in API_Server ====== 2025-11-06 06:31:58,498 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-06 06:31:58,509 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd 2025-11-06 06:31:58,518 - DEBUG - Requesting: http://10.0.0.38:8082/project/4256db53-054a-4d57-9c6a-6e29edf3d3b8 2025-11-06 06:31:58,596 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/10ad71ee-5df6-472b-ba9d-a5b4798c2212 2025-11-06 06:31:58,605 - INFO - Verified policy ctest-policy1-83176531 in API Server, Result: True 2025-11-06 06:31:58,606 - INFO - Done with setup and verification, moving onto test .. 2025-11-06 06:31:58,613 - INFO - Deleting VN ctest-vn4-78576326 2025-11-06 06:31:58,713 - DEBUG - Response for deleting network () 2025-11-06 06:31:58,713 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f1fa6c44-7180-4b8e-b329-bf8f47049872 2025-11-06 06:31:58,718 - DEBUG - Response Code: 404 2025-11-06 06:31:58,718 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-06 06:31:58,722 - DEBUG - Requesting: http://10.0.0.38:8082/domain/702902a0-bfb0-4bd4-bacd-afce93f345bd 2025-11-06 06:31:58,774 - DEBUG - Requesting: http://10.0.0.38:8082/project/4256db53-054a-4d57-9c6a-6e29edf3d3b8 2025-11-06 06:31:58,846 - INFO - Validated that VN ctest-vn4-78576326 is not found in API Server 2025-11-06 06:31:58,855 - DEBUG - VN ctest-vn4-78576326 is not present in Agent 10.0.0.38 2025-11-06 06:31:58,855 - INFO - Validated that VN ctest-vn4-78576326 is not in any agent 2025-11-06 06:31:58,868 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-78576326 info 2025-11-06 06:31:58,889 - INFO - Deleted policy ctest-policy1-83176531 2025-11-06 06:31:59,046 - DEBUG - policy ctest-policy1-83176531 is not found in API Server 2025-11-06 06:31:59,303 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 06:31:59,304 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-06 06:31:59,304 - INFO - -------------------------------------------------------------------------------- 2025-11-06 06:31:59,592 - DEBUG - No XMPP flaps were noticed during the test
2025-11-06 06:31:59,592 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-06 06:31:59,592 - INFO - -------------------------------------------------------------------------------- 2025-11-06 06:32:00,242 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-99099088, ID : 4256db53-054a-4d57-9c6a-6e29edf3d3b8