2025-10-30 09:12:28,546 - INFO - Domain Default found not creating 2025-10-30 09:12:28,686 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-80679012 not found, creating it 2025-10-30 09:12:29,111 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-80679012, ID : b00df95a-b712-4597-b7fc-b535f633ed7f 2025-10-30 09:12:30,457 - INFO - ================================================================================ 2025-10-30 09:12:30,457 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 09:12:30,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-30 09:12:30,712 - INFO - Initial checks done. Running the testcase now 2025-10-30 09:12:30,712 - INFO - 2025-10-30 09:12:30,712 - INFO - ================================================================================ 2025-10-30 09:12:30,712 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-30 09:12:30,712 - 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 09:12:31,004 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-30 09:12:31,004 - INFO - Initial checks done. Running the testcase now 2025-10-30 09:12:31,004 - INFO - 2025-10-30 09:12:31,352 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927, 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-80679012:ctest-vn4-57552927, 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-80679012:ctest-vn4-57552927, 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-80679012:ctest-vn4-57552927, 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 09:12:31,834 - DEBUG - Response for create_network : {'network': {'id': 'cd00a544-25a6-427a-93d0-8ac420abc3ce', 'name': 'ctest-vn4-57552927', 'tenant_id': 'b00df95ab7124597b7fcb535f633ed7f', 'project_id': 'b00df95ab7124597b7fcb535f633ed7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80679012', 'ctest-vn4-57552927'], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:12:32,022 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ef7a8267-c798-497a-82b4-a972bd65060c', 'name': '', 'tenant_id': 'b00df95ab7124597b7fcb535f633ed7f', 'network_id': 'cd00a544-25a6-427a-93d0-8ac420abc3ce', 'ip_version': 4, 'cidr': '171.89.38.64/26', 'allocation_pools': [{'start': '171.89.38.66', 'end': '171.89.38.126'}], 'gateway_ip': '171.89.38.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.89.38.66', 'tags': [], 'project_id': 'b00df95ab7124597b7fcb535f633ed7f'}} 2025-10-30 09:12:32,188 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b10ac48-6caa-40ac-9fed-5cbe08a448c5', 'name': '', 'tenant_id': 'b00df95ab7124597b7fcb535f633ed7f', 'network_id': 'cd00a544-25a6-427a-93d0-8ac420abc3ce', 'ip_version': 6, 'cidr': '3043:cc40:5925:8925:38ff:fc24::/96', 'allocation_pools': [{'start': '3043:cc40:5925:8925:38ff:fc24:0:2', 'end': '3043:cc40:5925:8925:38ff:fc24:ffff:fffe'}], 'gateway_ip': '3043:cc40:5925:8925:38ff:fc24:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3043:cc40:5925:8925:38ff:fc24:0:2', 'tags': [], 'project_id': 'b00df95ab7124597b7fcb535f633ed7f'}} 2025-10-30 09:12:32,206 - INFO - Created VN ctest-vn4-57552927 2025-10-30 09:12:32,255 - DEBUG - VN ctest-vn4-57552927 UUID is cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:32,431 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cd00a544-25a6-427a-93d0-8ac420abc3ce', 'name': 'ctest-vn4-57552927', 'tenant_id': 'b00df95ab7124597b7fcb535f633ed7f', 'project_id': 'b00df95ab7124597b7fcb535f633ed7f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ef7a8267-c798-497a-82b4-a972bd65060c', '6b10ac48-6caa-40ac-9fed-5cbe08a448c5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80679012', 'ctest-vn4-57552927'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80679012', 'ctest-policy1-47239184']], 'subnet_ipam': [{'subnet_cidr': '171.89.38.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3043:cc40:5925:8925:38ff:fc24::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-30 09:12:32,599 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:12:32,887 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:12:32,913 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3ad196e3-e9ed-448e-b324-761caacf56f0 2025-10-30 09:12:32,925 - DEBUG - Requesting: http://10.0.0.38:8082/project/b00df95a-b712-4597-b7fc-b535f633ed7f 2025-10-30 09:12:32,994 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,004 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,013 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,018 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,024 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4c7ec3bc-ebf7-4bb5-83d2-0cbfb9a0e81f 2025-10-30 09:12:33,029 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 09:12:33,029 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,036 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,046 - INFO - Verified VN network id 12 for VN cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,046 - INFO - Verifications in API Server for VN ctest-vn4-57552927 passed 2025-10-30 09:12:33,046 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,053 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,057 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,062 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/4c7ec3bc-ebf7-4bb5-83d2-0cbfb9a0e81f 2025-10-30 09:12:33,071 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-80679012', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14771988489883239034', 'uuid-lslong': '10651165693697573838'}, 'enable': 'true', 'created': '2025-10-30T09:12:31', 'last-modified': '2025-10-30T09:12:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.662961'} 2025-10-30 09:12:33,076 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-30 09:12:33,076 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-57552927 passed 2025-10-30 09:12:33,076 - DEBUG - ====Verifying policy data for ctest-vn4-57552927 in API_Server ====== 2025-10-30 09:12:33,076 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:12:33,080 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3ad196e3-e9ed-448e-b324-761caacf56f0 2025-10-30 09:12:33,091 - DEBUG - Requesting: http://10.0.0.38:8082/project/b00df95a-b712-4597-b7fc-b535f633ed7f 2025-10-30 09:12:33,160 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/cd00a544-25a6-427a-93d0-8ac420abc3ce 2025-10-30 09:12:33,168 - DEBUG - ==>Verifying data for policy with id: c7ffc538-7acc-4405-aaf8-a154bba08e5c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-80679012', 'ctest-policy1-47239184'] 2025-10-30 09:12:33,168 - INFO - VN ctest-vn4-57552927 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-30 09:12:33,168 - DEBUG - Verifying the vn in opserver 2025-10-30 09:12:33,168 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927 virtual network link through opserver 10.0.0.38 2025-10-30 09:12:33,169 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 09:12:33,456 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-30 09:12:33,503 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927?flat'} 2025-10-30 09:12:33,503 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-80679012:ctest-vn4-57552927 is found in opserver 2025-10-30 09:12:33,511 - DEBUG - Do not have enough data to verify VN in agent 2025-10-30 09:12:33,515 - DEBUG - VRF ids for VN ctest-vn4-57552927: {} 2025-10-30 09:12:33,515 - DEBUG - ====Verifying data for ctest-policy1-47239184 in API_Server ====== 2025-10-30 09:12:33,515 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:12:33,520 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3ad196e3-e9ed-448e-b324-761caacf56f0 2025-10-30 09:12:33,528 - DEBUG - Requesting: http://10.0.0.38:8082/project/b00df95a-b712-4597-b7fc-b535f633ed7f 2025-10-30 09:12:33,597 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/c7ffc538-7acc-4405-aaf8-a154bba08e5c 2025-10-30 09:12:33,607 - INFO - Verified policy ctest-policy1-47239184 in API Server, Result: True 2025-10-30 09:12:33,607 - INFO - Done with setup and verification, moving onto test .. 2025-10-30 09:12:33,614 - INFO - Deleting VN ctest-vn4-57552927 2025-10-30 09:12:33,722 - DEBUG - Response for deleting network () 2025-10-30 09:12:33,723 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cf4d7f38-2cda-447d-923b-a302c47a04b6 2025-10-30 09:12:33,727 - DEBUG - Response Code: 404 2025-10-30 09:12:33,727 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-30 09:12:33,732 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3ad196e3-e9ed-448e-b324-761caacf56f0 2025-10-30 09:12:33,788 - DEBUG - Requesting: http://10.0.0.38:8082/project/b00df95a-b712-4597-b7fc-b535f633ed7f 2025-10-30 09:12:33,855 - INFO - Validated that VN ctest-vn4-57552927 is not found in API Server 2025-10-30 09:12:33,863 - DEBUG - VN ctest-vn4-57552927 is not present in Agent 10.0.0.38 2025-10-30 09:12:33,864 - INFO - Validated that VN ctest-vn4-57552927 is not in any agent 2025-10-30 09:12:33,875 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-57552927 info 2025-10-30 09:12:33,896 - INFO - Deleted policy ctest-policy1-47239184 2025-10-30 09:12:34,063 - DEBUG - policy ctest-policy1-47239184 is not found in API Server 2025-10-30 09:12:34,317 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 09:12:34,317 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 09:12:34,317 - INFO - -------------------------------------------------------------------------------- 2025-10-30 09:12:34,604 - DEBUG - No XMPP flaps were noticed during the test
2025-10-30 09:12:34,604 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-30 09:12:34,604 - INFO - -------------------------------------------------------------------------------- 2025-10-30 09:12:35,245 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-80679012, ID : b00df95a-b712-4597-b7fc-b535f633ed7f