2025-11-18 17:10:18,149 - INFO - Domain Default found not creating 2025-11-18 17:10:18,404 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-37267730 not found, creating it 2025-11-18 17:10:18,890 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-37267730, ID : 9ba65349-0635-462d-812b-7fbcce5c281b 2025-11-18 17:10:20,410 - INFO - ================================================================================ 2025-11-18 17:10:20,410 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 17:10:20,668 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-11-18 17:10:20,668 - INFO - Initial checks done. Running the testcase now 2025-11-18 17:10:20,668 - INFO - 2025-11-18 17:10:20,668 - INFO - ================================================================================ 2025-11-18 17:10:20,669 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-18 17:10:20,669 - 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-18 17:10:20,956 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with 2025-11-18 17:10:20,956 - INFO - Initial checks done. Running the testcase now 2025-11-18 17:10:20,956 - INFO - 2025-11-18 17:10:21,314 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768, 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-37267730:ctest-vn4-45688768, 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-37267730:ctest-vn4-45688768, 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-37267730:ctest-vn4-45688768, 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-18 17:10:21,818 - DEBUG - Response for create_network : {'network': {'id': '661192d3-59c4-436f-86eb-34386eb98751', 'name': 'ctest-vn4-45688768', 'tenant_id': '9ba653490635462d812b7fbcce5c281b', 'project_id': '9ba653490635462d812b7fbcce5c281b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37267730', 'ctest-vn4-45688768'], 'port_security_enabled': True, 'description': ''}} 2025-11-18 17:10:22,024 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ab3ae62-a30e-43d9-a33b-ea81d4779331', 'name': '', 'tenant_id': '9ba653490635462d812b7fbcce5c281b', 'network_id': '661192d3-59c4-436f-86eb-34386eb98751', 'ip_version': 4, 'cidr': '115.123.193.64/26', 'allocation_pools': [{'start': '115.123.193.66', 'end': '115.123.193.126'}], 'gateway_ip': '115.123.193.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.123.193.66', 'tags': [], 'project_id': '9ba653490635462d812b7fbcce5c281b'}} 2025-11-18 17:10:22,198 - DEBUG - Response for create_subnet : {'subnet': {'id': '19369a9d-e04d-4725-abd0-545e95be7996', 'name': '', 'tenant_id': '9ba653490635462d812b7fbcce5c281b', 'network_id': '661192d3-59c4-436f-86eb-34386eb98751', 'ip_version': 6, 'cidr': '38da:b03c:f6e9:92c:4f51:a4f7::/96', 'allocation_pools': [{'start': '38da:b03c:f6e9:92c:4f51:a4f7:0:2', 'end': '38da:b03c:f6e9:92c:4f51:a4f7:ffff:fffe'}], 'gateway_ip': '38da:b03c:f6e9:92c:4f51:a4f7:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38da:b03c:f6e9:92c:4f51:a4f7:0:2', 'tags': [], 'project_id': '9ba653490635462d812b7fbcce5c281b'}} 2025-11-18 17:10:22,219 - INFO - Created VN ctest-vn4-45688768 2025-11-18 17:10:22,271 - DEBUG - VN ctest-vn4-45688768 UUID is 661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:22,478 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '661192d3-59c4-436f-86eb-34386eb98751', 'name': 'ctest-vn4-45688768', 'tenant_id': '9ba653490635462d812b7fbcce5c281b', 'project_id': '9ba653490635462d812b7fbcce5c281b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ab3ae62-a30e-43d9-a33b-ea81d4779331', '19369a9d-e04d-4725-abd0-545e95be7996'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37267730', 'ctest-vn4-45688768'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37267730', 'ctest-policy1-14694988']], 'subnet_ipam': [{'subnet_cidr': '115.123.193.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '38da:b03c:f6e9:92c:4f51:a4f7::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-18 17:10:22,643 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 17:10:22,936 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 17:10:22,965 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774 2025-11-18 17:10:22,977 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ba65349-0635-462d-812b-7fbcce5c281b 2025-11-18 17:10:23,050 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,061 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,073 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,081 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,089 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f199bf7d-9d1b-4ecd-8ddc-adc0735c9c42 2025-11-18 17:10:23,097 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 17:10:23,097 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,109 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,127 - INFO - Verified VN network id 11 for VN 661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,128 - INFO - Verifications in API Server for VN ctest-vn4-45688768 passed 2025-11-18 17:10:23,128 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,139 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,147 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,155 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/f199bf7d-9d1b-4ecd-8ddc-adc0735c9c42 2025-11-18 17:10:23,169 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-37267730', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7354821102914519919', 'uuid-lslong': '9721921637589813073'}, 'enable': 'true', 'created': '2025-11-18T17:10:21', 'last-modified': '2025-11-18T17:10:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.713654'} 2025-11-18 17:10:23,176 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-18 17:10:23,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-45688768 passed 2025-11-18 17:10:23,177 - DEBUG - ====Verifying policy data for ctest-vn4-45688768 in API_Server ====== 2025-11-18 17:10:23,177 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 17:10:23,183 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774 2025-11-18 17:10:23,195 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ba65349-0635-462d-812b-7fbcce5c281b 2025-11-18 17:10:23,268 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/661192d3-59c4-436f-86eb-34386eb98751 2025-11-18 17:10:23,279 - DEBUG - ==>Verifying data for policy with id: 2329d6db-5053-4793-adbf-88026c25a4b4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-37267730', 'ctest-policy1-14694988'] 2025-11-18 17:10:23,279 - INFO - VN ctest-vn4-45688768 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-18 17:10:23,279 - DEBUG - Verifying the vn in opserver 2025-11-18 17:10:23,279 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768 virtual network link through opserver 10.0.0.38 2025-11-18 17:10:23,279 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-18 17:10:23,575 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-11-18 17:10:23,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768?flat'} 2025-11-18 17:10:23,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-37267730:ctest-vn4-45688768 is found in opserver 2025-11-18 17:10:23,649 - DEBUG - Do not have enough data to verify VN in agent 2025-11-18 17:10:23,654 - DEBUG - VRF ids for VN ctest-vn4-45688768: {} 2025-11-18 17:10:23,654 - DEBUG - ====Verifying data for ctest-policy1-14694988 in API_Server ====== 2025-11-18 17:10:23,654 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 17:10:23,659 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774 2025-11-18 17:10:23,671 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ba65349-0635-462d-812b-7fbcce5c281b 2025-11-18 17:10:23,743 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/2329d6db-5053-4793-adbf-88026c25a4b4 2025-11-18 17:10:23,755 - INFO - Verified policy ctest-policy1-14694988 in API Server, Result: True 2025-11-18 17:10:23,755 - INFO - Done with setup and verification, moving onto test .. 2025-11-18 17:10:23,765 - INFO - Deleting VN ctest-vn4-45688768 2025-11-18 17:10:23,869 - DEBUG - Response for deleting network () 2025-11-18 17:10:23,869 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5854bac6-90a3-459a-9ba7-48e77bdf864b 2025-11-18 17:10:23,875 - DEBUG - Response Code: 404 2025-11-18 17:10:23,875 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-11-18 17:10:23,880 - DEBUG - Requesting: http://10.0.0.38:8082/domain/58ccf629-dd8e-4acc-81f6-bd4003554774 2025-11-18 17:10:23,936 - DEBUG - Requesting: http://10.0.0.38:8082/project/9ba65349-0635-462d-812b-7fbcce5c281b 2025-11-18 17:10:24,011 - INFO - Validated that VN ctest-vn4-45688768 is not found in API Server 2025-11-18 17:10:24,022 - DEBUG - VN ctest-vn4-45688768 is not present in Agent 10.0.0.38 2025-11-18 17:10:24,022 - INFO - Validated that VN ctest-vn4-45688768 is not in any agent 2025-11-18 17:10:24,037 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-45688768 info 2025-11-18 17:10:24,062 - INFO - Deleted policy ctest-policy1-14694988 2025-11-18 17:10:24,231 - DEBUG - policy ctest-policy1-14694988 is not found in API Server 2025-11-18 17:10:24,488 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 17:10:24,488 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 17:10:24,488 - INFO - -------------------------------------------------------------------------------- 2025-11-18 17:10:24,776 - DEBUG - No XMPP flaps were noticed during the test
2025-11-18 17:10:24,776 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-18 17:10:24,777 - INFO - -------------------------------------------------------------------------------- 2025-11-18 17:10:25,455 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-37267730, ID : 9ba65349-0635-462d-812b-7fbcce5c281b