2025-10-29 11:55:55,575 - INFO - Domain Default found not creating 2025-10-29 11:55:55,753 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-57455148 not found, creating it 2025-10-29 11:55:56,365 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-57455148, ID : 70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0 2025-10-29 11:55:57,947 - INFO - ================================================================================ 2025-10-29 11:55:57,948 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 11:55:59,237 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.50': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2025-10-29 11:55:59,237 - INFO - Initial checks done. Running the testcase now 2025-10-29 11:55:59,237 - INFO - 2025-10-29 11:55:59,237 - INFO - ================================================================================ 2025-10-29 11:55:59,237 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-29 11:55:59,237 - 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-29 11:56:00,537 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0', '10.20.0.254': '0'}, '10.0.0.50': {'10.20.0.254': '0', '10.20.0.14': '0'}} with 2025-10-29 11:56:00,537 - INFO - Initial checks done. Running the testcase now 2025-10-29 11:56:00,537 - INFO - 2025-10-29 11:56:00,917 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151, 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-57455148:ctest-vn4-89823151, 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-57455148:ctest-vn4-89823151, 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-57455148:ctest-vn4-89823151, 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-29 11:56:01,643 - DEBUG - Response for create_network : {'network': {'id': 'a7e8b46e-93e6-4ac9-aecc-815d3de7d32d', 'name': 'ctest-vn4-89823151', 'tenant_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'project_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'ctest-vn4-89823151'], 'port_security_enabled': True, 'description': ''}} 2025-10-29 11:56:01,951 - DEBUG - Response for create_subnet : {'subnet': {'id': '77d6d44c-c7ea-4df8-8e50-413d7a0a671b', 'name': '', 'tenant_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'network_id': 'a7e8b46e-93e6-4ac9-aecc-815d3de7d32d', 'ip_version': 4, 'cidr': '101.56.213.64/26', 'allocation_pools': [{'start': '101.56.213.66', 'end': '101.56.213.126'}], 'gateway_ip': '101.56.213.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '101.56.213.66', 'tags': [], 'project_id': '70d2e25ffdc948f4b0b430e296bcb5b0'}} 2025-10-29 11:56:02,226 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bf23c139-54a4-4070-9f28-c7751d6100a9', 'name': '', 'tenant_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'network_id': 'a7e8b46e-93e6-4ac9-aecc-815d3de7d32d', 'ip_version': 6, 'cidr': '25a5:97b3:949:6ca0:354c:8b5d::/96', 'allocation_pools': [{'start': '25a5:97b3:949:6ca0:354c:8b5d:0:2', 'end': '25a5:97b3:949:6ca0:354c:8b5d:ffff:fffe'}], 'gateway_ip': '25a5:97b3:949:6ca0:354c:8b5d:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25a5:97b3:949:6ca0:354c:8b5d:0:2', 'tags': [], 'project_id': '70d2e25ffdc948f4b0b430e296bcb5b0'}} 2025-10-29 11:56:02,253 - INFO - Created VN ctest-vn4-89823151 2025-10-29 11:56:02,267 - DEBUG - VN ctest-vn4-89823151 UUID is a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:02,511 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a7e8b46e-93e6-4ac9-aecc-815d3de7d32d', 'name': 'ctest-vn4-89823151', 'tenant_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'project_id': '70d2e25ffdc948f4b0b430e296bcb5b0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77d6d44c-c7ea-4df8-8e50-413d7a0a671b', 'bf23c139-54a4-4070-9f28-c7751d6100a9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'ctest-vn4-89823151'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'ctest-policy1-17128952']], 'subnet_ipam': [{'subnet_cidr': '101.56.213.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25a5:97b3:949:6ca0:354c:8b5d::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-29 11:56:02,633 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 11:56:02,946 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 11:56:02,978 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 11:56:03,000 - DEBUG - Requesting: http://10.0.0.38:8082/project/70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0 2025-10-29 11:56:03,104 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,117 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,129 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:03,142 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:03,150 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/45f147d6-971c-4a0e-a9f9-10c078c7e8bc 2025-10-29 11:56:03,158 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 11:56:03,158 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,168 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:03,185 - INFO - Verified VN network id 15 for VN a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,185 - INFO - Verifications in API Server for VN ctest-vn4-89823151 passed 2025-10-29 11:56:03,185 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,199 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:03,207 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:03,216 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/45f147d6-971c-4a0e-a9f9-10c078c7e8bc 2025-10-29 11:56:03,229 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12099118785951582921', 'uuid-lslong': '12595584495318979373'}, 'enable': 'true', 'created': '2025-10-29T11:56:01', 'last-modified': '2025-10-29T11:56:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.769155'} 2025-10-29 11:56:03,235 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 11:56:03,242 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12099118785951582921', 'uuid-lslong': '12595584495318979373'}, 'enable': 'true', 'created': '2025-10-29T11:56:01', 'last-modified': '2025-10-29T11:56:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778187'} 2025-10-29 11:56:03,250 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 11:56:03,256 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12099118785951582921', 'uuid-lslong': '12595584495318979373'}, 'enable': 'true', 'created': '2025-10-29T11:56:01', 'last-modified': '2025-10-29T11:56:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.797040'} 2025-10-29 11:56:03,262 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-29 11:56:03,262 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-89823151 passed 2025-10-29 11:56:03,262 - DEBUG - ====Verifying policy data for ctest-vn4-89823151 in API_Server ====== 2025-10-29 11:56:03,262 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 11:56:03,270 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 11:56:03,283 - DEBUG - Requesting: http://10.0.0.38:8082/project/70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0 2025-10-29 11:56:03,387 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/a7e8b46e-93e6-4ac9-aecc-815d3de7d32d 2025-10-29 11:56:03,397 - DEBUG - ==>Verifying data for policy with id: afc8a392-22d1-4b5b-b6e0-6513598f36f7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-57455148', 'ctest-policy1-17128952'] 2025-10-29 11:56:03,397 - INFO - VN ctest-vn4-89823151 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-29 11:56:03,397 - DEBUG - Verifying the vn in opserver 2025-10-29 11:56:03,397 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151 virtual network link through opserver 10.0.0.38 2025-10-29 11:56:03,398 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 11:56:03,706 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-29 11:56:03,767 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151?flat'} 2025-10-29 11:56:03,767 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151 virtual network link through opserver 10.0.0.254 2025-10-29 11:56:03,767 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 11:56:04,087 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks 2025-10-29 11:56:04,179 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151?flat'} 2025-10-29 11:56:04,179 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151 virtual network link through opserver 10.0.0.48 2025-10-29 11:56:04,179 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-29 11:56:04,548 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-10-29 11:56:04,617 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151?flat'} 2025-10-29 11:56:04,618 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-57455148:ctest-vn4-89823151 is found in opserver 2025-10-29 11:56:04,641 - DEBUG - Do not have enough data to verify VN in agent 2025-10-29 11:56:04,652 - DEBUG - VRF ids for VN ctest-vn4-89823151: {} 2025-10-29 11:56:04,652 - DEBUG - ====Verifying data for ctest-policy1-17128952 in API_Server ====== 2025-10-29 11:56:04,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 11:56:04,660 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 11:56:04,674 - DEBUG - Requesting: http://10.0.0.38:8082/project/70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0 2025-10-29 11:56:04,792 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/afc8a392-22d1-4b5b-b6e0-6513598f36f7 2025-10-29 11:56:04,806 - INFO - Verified policy ctest-policy1-17128952 in API Server, Result: True 2025-10-29 11:56:04,806 - INFO - Done with setup and verification, moving onto test .. 2025-10-29 11:56:04,818 - INFO - Deleting VN ctest-vn4-89823151 2025-10-29 11:56:05,069 - DEBUG - Response for deleting network () 2025-10-29 11:56:05,069 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/5f2c03ae-50c5-4f98-80b9-1848f72f55a9 2025-10-29 11:56:05,075 - DEBUG - Response Code: 404 2025-10-29 11:56:05,075 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-29 11:56:05,089 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fd9d3a52-0780-4060-8425-e3c883ec81fc 2025-10-29 11:56:05,150 - DEBUG - Requesting: http://10.0.0.38:8082/project/70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0 2025-10-29 11:56:05,245 - INFO - Validated that VN ctest-vn4-89823151 is not found in API Server 2025-10-29 11:56:05,257 - DEBUG - VN ctest-vn4-89823151 is not present in Agent 10.0.0.49 2025-10-29 11:56:05,268 - DEBUG - VN ctest-vn4-89823151 is not present in Agent 10.0.0.50 2025-10-29 11:56:05,268 - INFO - Validated that VN ctest-vn4-89823151 is not in any agent 2025-10-29 11:56:05,314 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-89823151 info 2025-10-29 11:56:05,356 - INFO - Deleted policy ctest-policy1-17128952 2025-10-29 11:56:05,562 - DEBUG - policy ctest-policy1-17128952 is not found in API Server 2025-10-29 11:56:06,837 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 11:56:06,837 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-29 11:56:06,837 - INFO - -------------------------------------------------------------------------------- 2025-10-29 11:56:08,105 - DEBUG - No XMPP flaps were noticed during the test 2025-10-29 11:56:08,105 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:11] 2025-10-29 11:56:08,105 - INFO - -------------------------------------------------------------------------------- 2025-10-29 11:56:08,902 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-57455148, ID : 70d2e25f-fdc9-48f4-b0b4-30e296bcb5b0