2025-08-13 17:03:08,778 - INFO - Domain Default found not creating 2025-08-13 17:03:08,906 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-95649358 not found, creating it 2025-08-13 17:03:09,353 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-95649358, ID : 88f29ee7-0603-4784-a24c-d9aba290520e 2025-08-13 17:03:10,651 - INFO - ================================================================================ 2025-08-13 17:03:10,652 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 17:03:10,904 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-13 17:03:10,904 - INFO - Initial checks done. Running the testcase now 2025-08-13 17:03:10,904 - INFO - 2025-08-13 17:03:10,904 - INFO - ================================================================================ 2025-08-13 17:03:10,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-13 17:03:10,904 - 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-08-13 17:03:11,193 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.254': '0'}} with 2025-08-13 17:03:11,193 - INFO - Initial checks done. Running the testcase now 2025-08-13 17:03:11,193 - INFO - 2025-08-13 17:03:11,531 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549, 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-95649358:ctest-vn4-98895549, 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-95649358:ctest-vn4-98895549, 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-95649358:ctest-vn4-98895549, 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-08-13 17:03:12,044 - DEBUG - Response for create_network : {'network': {'id': 'a62d8fef-43ec-40b9-9b20-37655bb9c3db', 'name': 'ctest-vn4-98895549', 'tenant_id': '88f29ee706034784a24cd9aba290520e', 'project_id': '88f29ee706034784a24cd9aba290520e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95649358', 'ctest-vn4-98895549'], 'port_security_enabled': True, 'description': ''}} 2025-08-13 17:03:12,204 - DEBUG - Response for create_subnet : {'subnet': {'id': '79915d5a-d3c2-452d-b132-47aff147ce21', 'name': '', 'tenant_id': '88f29ee706034784a24cd9aba290520e', 'network_id': 'a62d8fef-43ec-40b9-9b20-37655bb9c3db', 'ip_version': 4, 'cidr': '209.96.146.192/26', 'allocation_pools': [{'start': '209.96.146.194', 'end': '209.96.146.254'}], 'gateway_ip': '209.96.146.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '209.96.146.194', 'tags': [], 'project_id': '88f29ee706034784a24cd9aba290520e'}} 2025-08-13 17:03:12,410 - DEBUG - Response for create_subnet : {'subnet': {'id': '622c3f98-9676-47b0-9126-5f41b01d61ec', 'name': '', 'tenant_id': '88f29ee706034784a24cd9aba290520e', 'network_id': 'a62d8fef-43ec-40b9-9b20-37655bb9c3db', 'ip_version': 6, 'cidr': '3921:c6ad:8479:809e:c4ea:ae21::/96', 'allocation_pools': [{'start': '3921:c6ad:8479:809e:c4ea:ae21:0:2', 'end': '3921:c6ad:8479:809e:c4ea:ae21:ffff:fffe'}], 'gateway_ip': '3921:c6ad:8479:809e:c4ea:ae21:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3921:c6ad:8479:809e:c4ea:ae21:0:2', 'tags': [], 'project_id': '88f29ee706034784a24cd9aba290520e'}} 2025-08-13 17:03:12,429 - INFO - Created VN ctest-vn4-98895549 2025-08-13 17:03:12,484 - DEBUG - VN ctest-vn4-98895549 UUID is a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:12,682 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a62d8fef-43ec-40b9-9b20-37655bb9c3db', 'name': 'ctest-vn4-98895549', 'tenant_id': '88f29ee706034784a24cd9aba290520e', 'project_id': '88f29ee706034784a24cd9aba290520e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['79915d5a-d3c2-452d-b132-47aff147ce21', '622c3f98-9676-47b0-9126-5f41b01d61ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95649358', 'ctest-vn4-98895549'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95649358', 'ctest-policy1-71273983']], 'subnet_ipam': [{'subnet_cidr': '209.96.146.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3921:c6ad:8479:809e:c4ea:ae21::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-13 17:03:12,848 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-13 17:03:13,137 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-13 17:03:13,162 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd 2025-08-13 17:03:13,175 - DEBUG - Requesting: http://10.0.0.254:8082/project/88f29ee7-0603-4784-a24c-d9aba290520e 2025-08-13 17:03:13,247 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,258 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,268 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:13,274 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:13,280 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/781c9f1c-4989-4f97-a06f-a638c5723c7f 2025-08-13 17:03:13,286 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 17:03:13,286 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,294 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:13,309 - INFO - Verified VN network id 11 for VN a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,309 - INFO - Verifications in API Server for VN ctest-vn4-98895549 passed 2025-08-13 17:03:13,309 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,318 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:13,324 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:13,330 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/781c9f1c-4989-4f97-a06f-a638c5723c7f 2025-08-13 17:03:13,341 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-95649358', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11974385242047529145', 'uuid-lslong': '11177995183603696603'}, 'enable': 'true', 'created': '2025-08-13T17:03:12', 'last-modified': '2025-08-13T17:03:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.686515'} 2025-08-13 17:03:13,348 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-13 17:03:13,349 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-98895549 passed 2025-08-13 17:03:13,349 - DEBUG - ====Verifying policy data for ctest-vn4-98895549 in API_Server ====== 2025-08-13 17:03:13,349 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-13 17:03:13,355 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd 2025-08-13 17:03:13,365 - DEBUG - Requesting: http://10.0.0.254:8082/project/88f29ee7-0603-4784-a24c-d9aba290520e 2025-08-13 17:03:13,437 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/a62d8fef-43ec-40b9-9b20-37655bb9c3db 2025-08-13 17:03:13,447 - DEBUG - ==>Verifying data for policy with id: f1b56757-0083-41c7-871c-8e82fa3ed1e4, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-95649358', 'ctest-policy1-71273983'] 2025-08-13 17:03:13,447 - INFO - VN ctest-vn4-98895549 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-13 17:03:13,448 - DEBUG - Verifying the vn in opserver 2025-08-13 17:03:13,448 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549 virtual network link through opserver 10.0.0.254 2025-08-13 17:03:13,448 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-13 17:03:13,736 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-08-13 17:03:13,786 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549?flat'} 2025-08-13 17:03:13,787 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-95649358:ctest-vn4-98895549 is found in opserver 2025-08-13 17:03:13,796 - DEBUG - Do not have enough data to verify VN in agent 2025-08-13 17:03:13,800 - DEBUG - VRF ids for VN ctest-vn4-98895549: {} 2025-08-13 17:03:13,801 - DEBUG - ====Verifying data for ctest-policy1-71273983 in API_Server ====== 2025-08-13 17:03:13,801 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-13 17:03:13,806 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd 2025-08-13 17:03:13,818 - DEBUG - Requesting: http://10.0.0.254:8082/project/88f29ee7-0603-4784-a24c-d9aba290520e 2025-08-13 17:03:13,886 - DEBUG - Requesting: http://10.0.0.254:8082/network-policy/f1b56757-0083-41c7-871c-8e82fa3ed1e4 2025-08-13 17:03:13,896 - INFO - Verified policy ctest-policy1-71273983 in API Server, Result: True 2025-08-13 17:03:13,896 - INFO - Done with setup and verification, moving onto test .. 2025-08-13 17:03:13,903 - INFO - Deleting VN ctest-vn4-98895549 2025-08-13 17:03:14,019 - DEBUG - Response for deleting network () 2025-08-13 17:03:14,019 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/5471b8db-08c5-4345-957e-5c57be396069 2025-08-13 17:03:14,025 - DEBUG - Response Code: 404 2025-08-13 17:03:14,025 - DEBUG - Requesting: http://10.0.0.254:8082/domains 2025-08-13 17:03:14,030 - DEBUG - Requesting: http://10.0.0.254:8082/domain/7924a9f0-fc1e-4053-b166-d1cb1c326ffd 2025-08-13 17:03:14,081 - DEBUG - Requesting: http://10.0.0.254:8082/project/88f29ee7-0603-4784-a24c-d9aba290520e 2025-08-13 17:03:14,150 - INFO - Validated that VN ctest-vn4-98895549 is not found in API Server 2025-08-13 17:03:14,162 - DEBUG - VN ctest-vn4-98895549 is not present in Agent 10.0.0.254 2025-08-13 17:03:14,162 - INFO - Validated that VN ctest-vn4-98895549 is not in any agent 2025-08-13 17:03:14,175 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-98895549 info 2025-08-13 17:03:14,200 - INFO - Deleted policy ctest-policy1-71273983 2025-08-13 17:03:14,363 - DEBUG - policy ctest-policy1-71273983 is not found in API Server 2025-08-13 17:03:14,612 - DEBUG - No XMPP flaps were noticed during the test