2025-11-19 17:24:14,748 - INFO - Domain Default found not creating 2025-11-19 17:24:14,941 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-14144055 not found, creating it 2025-11-19 17:24:15,449 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-14144055, ID : da086b0c-5e53-455e-b86d-8bfea8bc16a5 2025-11-19 17:24:17,034 - INFO - ================================================================================ 2025-11-19 17:24:17,034 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 17:24:17,298 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2025-11-19 17:24:17,298 - INFO - Initial checks done. Running the testcase now 2025-11-19 17:24:17,298 - INFO - 2025-11-19 17:24:17,298 - INFO - ================================================================================ 2025-11-19 17:24:17,298 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-19 17:24:17,298 - 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-19 17:24:17,584 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2025-11-19 17:24:17,584 - INFO - Initial checks done. Running the testcase now 2025-11-19 17:24:17,584 - INFO - 2025-11-19 17:24:17,963 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778, 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-14144055:ctest-vn4-87863778, 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-14144055:ctest-vn4-87863778, 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-14144055:ctest-vn4-87863778, 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-19 17:24:18,498 - DEBUG - Response for create_network : {'network': {'id': '080205cf-f2bf-4cfc-a661-5a08ae96e36b', 'name': 'ctest-vn4-87863778', 'tenant_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'project_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14144055', 'ctest-vn4-87863778'], 'port_security_enabled': True, 'description': ''}} 2025-11-19 17:24:18,661 - DEBUG - Response for create_subnet : {'subnet': {'id': '6d31adf6-df9a-4bdb-932e-0b84d1385383', 'name': '', 'tenant_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'network_id': '080205cf-f2bf-4cfc-a661-5a08ae96e36b', 'ip_version': 4, 'cidr': '223.196.194.192/26', 'allocation_pools': [{'start': '223.196.194.194', 'end': '223.196.194.254'}], 'gateway_ip': '223.196.194.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.196.194.194', 'tags': [], 'project_id': 'da086b0c5e53455eb86d8bfea8bc16a5'}} 2025-11-19 17:24:18,865 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b2ec2007-0f01-4566-9719-366839239de5', 'name': '', 'tenant_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'network_id': '080205cf-f2bf-4cfc-a661-5a08ae96e36b', 'ip_version': 6, 'cidr': '2045:e1bc:c45e:1b26:ea3:8bbd::/96', 'allocation_pools': [{'start': '2045:e1bc:c45e:1b26:ea3:8bbd:0:2', 'end': '2045:e1bc:c45e:1b26:ea3:8bbd:ffff:fffe'}], 'gateway_ip': '2045:e1bc:c45e:1b26:ea3:8bbd:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2045:e1bc:c45e:1b26:ea3:8bbd:0:2', 'tags': [], 'project_id': 'da086b0c5e53455eb86d8bfea8bc16a5'}} 2025-11-19 17:24:18,890 - INFO - Created VN ctest-vn4-87863778 2025-11-19 17:24:18,948 - DEBUG - VN ctest-vn4-87863778 UUID is 080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,173 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '080205cf-f2bf-4cfc-a661-5a08ae96e36b', 'name': 'ctest-vn4-87863778', 'tenant_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'project_id': 'da086b0c5e53455eb86d8bfea8bc16a5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6d31adf6-df9a-4bdb-932e-0b84d1385383', 'b2ec2007-0f01-4566-9719-366839239de5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14144055', 'ctest-vn4-87863778'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14144055', 'ctest-policy1-43393249']], 'subnet_ipam': [{'subnet_cidr': '223.196.194.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2045:e1bc:c45e:1b26:ea3:8bbd::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-19 17:24:19,352 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-19 17:24:19,662 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-19 17:24:19,700 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24 2025-11-19 17:24:19,714 - DEBUG - Requesting: http://10.0.0.242:8082/project/da086b0c-5e53-455e-b86d-8bfea8bc16a5 2025-11-19 17:24:19,788 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,802 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,815 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:19,823 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:19,830 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5768be56-427a-4424-9e18-42102973fe96 2025-11-19 17:24:19,837 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 17:24:19,837 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,848 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:19,865 - INFO - Verified VN network id 11 for VN 080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,865 - INFO - Verifications in API Server for VN ctest-vn4-87863778 passed 2025-11-19 17:24:19,865 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:19,875 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:19,882 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:19,889 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/5768be56-427a-4424-9e18-42102973fe96 2025-11-19 17:24:19,902 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-14144055', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '577030092945837308', 'uuid-lslong': '11988962676372333419'}, 'enable': 'true', 'created': '2025-11-19T17:24:18', 'last-modified': '2025-11-19T17:24:19', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.756468'} 2025-11-19 17:24:19,909 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-19 17:24:19,909 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87863778 passed 2025-11-19 17:24:19,910 - DEBUG - ====Verifying policy data for ctest-vn4-87863778 in API_Server ====== 2025-11-19 17:24:19,910 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-19 17:24:19,917 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24 2025-11-19 17:24:19,930 - DEBUG - Requesting: http://10.0.0.242:8082/project/da086b0c-5e53-455e-b86d-8bfea8bc16a5 2025-11-19 17:24:20,005 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/080205cf-f2bf-4cfc-a661-5a08ae96e36b 2025-11-19 17:24:20,017 - DEBUG - ==>Verifying data for policy with id: 7c4dc643-210e-477f-9a3e-b77fe3df0418, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-14144055', 'ctest-policy1-43393249'] 2025-11-19 17:24:20,018 - INFO - VN ctest-vn4-87863778 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-19 17:24:20,018 - DEBUG - Verifying the vn in opserver 2025-11-19 17:24:20,018 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778 virtual network link through opserver 10.0.0.242 2025-11-19 17:24:20,018 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-19 17:24:20,321 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-19 17:24:20,388 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778?flat'} 2025-11-19 17:24:20,388 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-14144055:ctest-vn4-87863778 is found in opserver 2025-11-19 17:24:20,400 - DEBUG - Do not have enough data to verify VN in agent 2025-11-19 17:24:20,405 - DEBUG - VRF ids for VN ctest-vn4-87863778: {} 2025-11-19 17:24:20,405 - DEBUG - ====Verifying data for ctest-policy1-43393249 in API_Server ====== 2025-11-19 17:24:20,405 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-19 17:24:20,410 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24 2025-11-19 17:24:20,422 - DEBUG - Requesting: http://10.0.0.242:8082/project/da086b0c-5e53-455e-b86d-8bfea8bc16a5 2025-11-19 17:24:20,496 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/7c4dc643-210e-477f-9a3e-b77fe3df0418 2025-11-19 17:24:20,510 - INFO - Verified policy ctest-policy1-43393249 in API Server, Result: True 2025-11-19 17:24:20,510 - INFO - Done with setup and verification, moving onto test .. 2025-11-19 17:24:20,520 - INFO - Deleting VN ctest-vn4-87863778 2025-11-19 17:24:20,673 - DEBUG - Response for deleting network () 2025-11-19 17:24:20,673 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/a053315a-dbf1-460b-b0da-f0efe74c486c 2025-11-19 17:24:20,679 - DEBUG - Response Code: 404 2025-11-19 17:24:20,679 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-19 17:24:20,686 - DEBUG - Requesting: http://10.0.0.242:8082/domain/171f3d90-aab9-4b75-a03c-4744789cbb24 2025-11-19 17:24:20,741 - DEBUG - Requesting: http://10.0.0.242:8082/project/da086b0c-5e53-455e-b86d-8bfea8bc16a5 2025-11-19 17:24:20,816 - INFO - Validated that VN ctest-vn4-87863778 is not found in API Server 2025-11-19 17:24:20,826 - DEBUG - VN ctest-vn4-87863778 is not present in Agent 10.0.0.242 2025-11-19 17:24:20,826 - INFO - Validated that VN ctest-vn4-87863778 is not in any agent 2025-11-19 17:24:20,842 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87863778 info 2025-11-19 17:24:20,870 - INFO - Deleted policy ctest-policy1-43393249 2025-11-19 17:24:21,035 - DEBUG - policy ctest-policy1-43393249 is not found in API Server 2025-11-19 17:24:21,289 - DEBUG - No XMPP flaps were noticed during the test
2025-11-19 17:24:21,289 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-19 17:24:21,289 - INFO - -------------------------------------------------------------------------------- 2025-11-19 17:24:21,578 - DEBUG - No XMPP flaps were noticed during the test
2025-11-19 17:24:21,579 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-19 17:24:21,579 - INFO - -------------------------------------------------------------------------------- 2025-11-19 17:24:22,279 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-14144055, ID : da086b0c-5e53-455e-b86d-8bfea8bc16a5