2025-10-28 21:30:00,634 - INFO - Domain Default found not creating 2025-10-28 21:30:00,815 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40037890 not found, creating it 2025-10-28 21:30:01,287 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40037890, ID : 59cfcd1f-c782-4f15-9699-62bde4d27982 2025-10-28 21:30:03,326 - INFO - ================================================================================ 2025-10-28 21:30:03,326 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 21:30:03,596 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-28 21:30:03,596 - INFO - Initial checks done. Running the testcase now 2025-10-28 21:30:03,596 - INFO - 2025-10-28 21:30:03,596 - INFO - ================================================================================ 2025-10-28 21:30:03,596 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-28 21:30:03,596 - 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-28 21:30:03,873 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.17': '0'}} with 2025-10-28 21:30:03,873 - INFO - Initial checks done. Running the testcase now 2025-10-28 21:30:03,873 - INFO - 2025-10-28 21:30:04,222 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368, 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-40037890:ctest-vn4-15917368, 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-40037890:ctest-vn4-15917368, 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-40037890:ctest-vn4-15917368, 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-28 21:30:04,732 - DEBUG - Response for create_network : {'network': {'id': '5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe', 'name': 'ctest-vn4-15917368', 'tenant_id': '59cfcd1fc7824f15969962bde4d27982', 'project_id': '59cfcd1fc7824f15969962bde4d27982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40037890', 'ctest-vn4-15917368'], 'port_security_enabled': True, 'description': ''}} 2025-10-28 21:30:04,925 - DEBUG - Response for create_subnet : {'subnet': {'id': '2d8fe2fd-e7ca-4fc8-b414-923f887c7228', 'name': '', 'tenant_id': '59cfcd1fc7824f15969962bde4d27982', 'network_id': '5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe', 'ip_version': 4, 'cidr': '112.206.185.64/26', 'allocation_pools': [{'start': '112.206.185.66', 'end': '112.206.185.126'}], 'gateway_ip': '112.206.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.206.185.66', 'tags': [], 'project_id': '59cfcd1fc7824f15969962bde4d27982'}} 2025-10-28 21:30:05,101 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1635936-9fae-4696-8b34-f3b403331e19', 'name': '', 'tenant_id': '59cfcd1fc7824f15969962bde4d27982', 'network_id': '5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe', 'ip_version': 6, 'cidr': '272c:e7aa:fa57:9a31:9d91:50e9::/96', 'allocation_pools': [{'start': '272c:e7aa:fa57:9a31:9d91:50e9:0:2', 'end': '272c:e7aa:fa57:9a31:9d91:50e9:ffff:fffe'}], 'gateway_ip': '272c:e7aa:fa57:9a31:9d91:50e9:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '272c:e7aa:fa57:9a31:9d91:50e9:0:2', 'tags': [], 'project_id': '59cfcd1fc7824f15969962bde4d27982'}} 2025-10-28 21:30:05,121 - INFO - Created VN ctest-vn4-15917368 2025-10-28 21:30:05,173 - DEBUG - VN ctest-vn4-15917368 UUID is 5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:05,392 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe', 'name': 'ctest-vn4-15917368', 'tenant_id': '59cfcd1fc7824f15969962bde4d27982', 'project_id': '59cfcd1fc7824f15969962bde4d27982', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2d8fe2fd-e7ca-4fc8-b414-923f887c7228', 'c1635936-9fae-4696-8b34-f3b403331e19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40037890', 'ctest-vn4-15917368'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40037890', 'ctest-policy1-18834057']], 'subnet_ipam': [{'subnet_cidr': '112.206.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '272c:e7aa:fa57:9a31:9d91:50e9::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-28 21:30:05,557 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-28 21:30:05,849 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-28 21:30:05,880 - DEBUG - Requesting: http://10.0.0.249:8082/domain/57b2b5fe-615b-47fc-ad35-334cf7ad4d26 2025-10-28 21:30:05,892 - DEBUG - Requesting: http://10.0.0.249:8082/project/59cfcd1f-c782-4f15-9699-62bde4d27982 2025-10-28 21:30:05,963 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:05,976 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:05,985 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:05,991 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:05,998 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/47fe03e9-d322-4811-8950-426fed78b4a3 2025-10-28 21:30:06,005 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 21:30:06,005 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:06,015 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:06,028 - INFO - Verified VN network id 11 for VN 5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:06,028 - INFO - Verifications in API Server for VN ctest-vn4-15917368 passed 2025-10-28 21:30:06,028 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:06,036 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:06,043 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:06,049 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/47fe03e9-d322-4811-8950-426fed78b4a3 2025-10-28 21:30:06,059 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40037890', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6756521831921438129', 'uuid-lslong': '9951391956467596542'}, 'enable': 'true', 'created': '2025-10-28T21:30:04', 'last-modified': '2025-10-28T21:30:05', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.701427'} 2025-10-28 21:30:06,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-28 21:30:06,065 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15917368 passed 2025-10-28 21:30:06,065 - DEBUG - ====Verifying policy data for ctest-vn4-15917368 in API_Server ====== 2025-10-28 21:30:06,065 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-28 21:30:06,071 - DEBUG - Requesting: http://10.0.0.249:8082/domain/57b2b5fe-615b-47fc-ad35-334cf7ad4d26 2025-10-28 21:30:06,081 - DEBUG - Requesting: http://10.0.0.249:8082/project/59cfcd1f-c782-4f15-9699-62bde4d27982 2025-10-28 21:30:06,154 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/5dc3fcce-fcd9-4db1-8a1a-724279ee3cfe 2025-10-28 21:30:06,163 - DEBUG - ==>Verifying data for policy with id: 0f78bd3f-c75e-4ebf-a13c-4c6e84f960ba, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40037890', 'ctest-policy1-18834057'] 2025-10-28 21:30:06,163 - INFO - VN ctest-vn4-15917368 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-28 21:30:06,163 - DEBUG - Verifying the vn in opserver 2025-10-28 21:30:06,163 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368 virtual network link through opserver 10.0.0.249 2025-10-28 21:30:06,163 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-28 21:30:06,458 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks 2025-10-28 21:30:06,513 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368?flat'} 2025-10-28 21:30:06,513 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40037890:ctest-vn4-15917368 is found in opserver 2025-10-28 21:30:06,526 - DEBUG - Do not have enough data to verify VN in agent 2025-10-28 21:30:06,531 - DEBUG - VRF ids for VN ctest-vn4-15917368: {} 2025-10-28 21:30:06,531 - DEBUG - ====Verifying data for ctest-policy1-18834057 in API_Server ====== 2025-10-28 21:30:06,531 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-28 21:30:06,538 - DEBUG - Requesting: http://10.0.0.249:8082/domain/57b2b5fe-615b-47fc-ad35-334cf7ad4d26 2025-10-28 21:30:06,548 - DEBUG - Requesting: http://10.0.0.249:8082/project/59cfcd1f-c782-4f15-9699-62bde4d27982 2025-10-28 21:30:06,622 - DEBUG - Requesting: http://10.0.0.249:8082/network-policy/0f78bd3f-c75e-4ebf-a13c-4c6e84f960ba 2025-10-28 21:30:06,632 - INFO - Verified policy ctest-policy1-18834057 in API Server, Result: True 2025-10-28 21:30:06,632 - INFO - Done with setup and verification, moving onto test .. 2025-10-28 21:30:06,640 - INFO - Deleting VN ctest-vn4-15917368 2025-10-28 21:30:06,769 - DEBUG - Response for deleting network () 2025-10-28 21:30:06,769 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/66239596-a712-4a8e-8d54-1c79fdbc72f5 2025-10-28 21:30:06,774 - DEBUG - Response Code: 404 2025-10-28 21:30:06,774 - DEBUG - Requesting: http://10.0.0.249:8082/domains 2025-10-28 21:30:06,779 - DEBUG - Requesting: http://10.0.0.249:8082/domain/57b2b5fe-615b-47fc-ad35-334cf7ad4d26 2025-10-28 21:30:06,829 - DEBUG - Requesting: http://10.0.0.249:8082/project/59cfcd1f-c782-4f15-9699-62bde4d27982 2025-10-28 21:30:06,900 - INFO - Validated that VN ctest-vn4-15917368 is not found in API Server 2025-10-28 21:30:06,909 - DEBUG - VN ctest-vn4-15917368 is not present in Agent 10.0.0.249 2025-10-28 21:30:06,909 - INFO - Validated that VN ctest-vn4-15917368 is not in any agent 2025-10-28 21:30:06,922 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15917368 info 2025-10-28 21:30:06,948 - INFO - Deleted policy ctest-policy1-18834057 2025-10-28 21:30:07,116 - DEBUG - policy ctest-policy1-18834057 is not found in API Server 2025-10-28 21:30:07,369 - DEBUG - No XMPP flaps were noticed during the test