2025-07-23 06:24:29,424 - INFO - Domain Default found not creating 2025-07-23 06:24:29,570 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-44020213 not found, creating it 2025-07-23 06:24:30,057 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-44020213, ID : 278d3a7e-4dc5-46e9-8008-78e42fc3be2d 2025-07-23 06:24:31,550 - INFO - ================================================================================ 2025-07-23 06:24:31,550 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 06:24:31,814 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-07-23 06:24:31,815 - INFO - Initial checks done. Running the testcase now 2025-07-23 06:24:31,815 - INFO - 2025-07-23 06:24:31,815 - INFO - ================================================================================ 2025-07-23 06:24:31,815 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 06:24:31,815 - 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-07-23 06:24:32,126 - DEBUG - Nothing to compare xmpp stats {'10.0.0.141': {'10.20.0.17': '0'}} with 2025-07-23 06:24:32,126 - INFO - Initial checks done. Running the testcase now 2025-07-23 06:24:32,127 - INFO - 2025-07-23 06:24:32,473 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835, 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-44020213:ctest-vn4-83048835, 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-44020213:ctest-vn4-83048835, 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-44020213:ctest-vn4-83048835, 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-07-23 06:24:33,012 - DEBUG - Response for create_network : {'network': {'id': '09c2b652-854d-4c48-b7d7-67e6df49b47f', 'name': 'ctest-vn4-83048835', 'tenant_id': '278d3a7e4dc546e9800878e42fc3be2d', 'project_id': '278d3a7e4dc546e9800878e42fc3be2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44020213', 'ctest-vn4-83048835'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 06:24:33,337 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ad5f038f-6dec-4610-a861-40eaebb0b4d3', 'name': '', 'tenant_id': '278d3a7e4dc546e9800878e42fc3be2d', 'network_id': '09c2b652-854d-4c48-b7d7-67e6df49b47f', 'ip_version': 4, 'cidr': '56.163.63.64/26', 'allocation_pools': [{'start': '56.163.63.66', 'end': '56.163.63.126'}], 'gateway_ip': '56.163.63.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '56.163.63.66', 'tags': [], 'project_id': '278d3a7e4dc546e9800878e42fc3be2d'}} 2025-07-23 06:24:33,495 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af5cfcce-d194-4ff3-905f-8f447a9343b1', 'name': '', 'tenant_id': '278d3a7e4dc546e9800878e42fc3be2d', 'network_id': '09c2b652-854d-4c48-b7d7-67e6df49b47f', 'ip_version': 6, 'cidr': '2890:8c9b:4602:d009:97e:2f77::/96', 'allocation_pools': [{'start': '2890:8c9b:4602:d009:97e:2f77:0:2', 'end': '2890:8c9b:4602:d009:97e:2f77:ffff:fffe'}], 'gateway_ip': '2890:8c9b:4602:d009:97e:2f77:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2890:8c9b:4602:d009:97e:2f77:0:2', 'tags': [], 'project_id': '278d3a7e4dc546e9800878e42fc3be2d'}} 2025-07-23 06:24:33,515 - INFO - Created VN ctest-vn4-83048835 2025-07-23 06:24:33,569 - DEBUG - VN ctest-vn4-83048835 UUID is 09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:33,795 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '09c2b652-854d-4c48-b7d7-67e6df49b47f', 'name': 'ctest-vn4-83048835', 'tenant_id': '278d3a7e4dc546e9800878e42fc3be2d', 'project_id': '278d3a7e4dc546e9800878e42fc3be2d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ad5f038f-6dec-4610-a861-40eaebb0b4d3', 'af5cfcce-d194-4ff3-905f-8f447a9343b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44020213', 'ctest-vn4-83048835'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44020213', 'ctest-policy1-19895551']], 'subnet_ipam': [{'subnet_cidr': '56.163.63.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2890:8c9b:4602:d009:97e:2f77::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 06:24:33,961 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-07-23 06:24:34,252 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-07-23 06:24:34,279 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10 2025-07-23 06:24:34,293 - DEBUG - Requesting: http://10.0.0.141:8082/project/278d3a7e-4dc5-46e9-8008-78e42fc3be2d 2025-07-23 06:24:34,373 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,390 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,405 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:34,414 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:34,421 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ed98c682-da56-47d0-a72b-5ab59bcac9af 2025-07-23 06:24:34,427 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 06:24:34,427 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,438 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:34,453 - INFO - Verified VN network id 9 for VN 09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,453 - INFO - Verifications in API Server for VN ctest-vn4-83048835 passed 2025-07-23 06:24:34,453 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,464 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:34,471 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:34,479 - DEBUG - Requesting: http://10.0.0.141:8082/route-target/ed98c682-da56-47d0-a72b-5ab59bcac9af 2025-07-23 06:24:34,492 - DEBUG - Control-node 10.0.0.141 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-44020213', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '703324957363227720', 'uuid-lslong': '13247171070219891839'}, 'enable': 'true', 'created': '2025-07-23T06:24:32', 'last-modified': '2025-07-23T06:24:33', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732852'} 2025-07-23 06:24:34,501 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 06:24:34,501 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-83048835 passed 2025-07-23 06:24:34,501 - DEBUG - ====Verifying policy data for ctest-vn4-83048835 in API_Server ====== 2025-07-23 06:24:34,501 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-07-23 06:24:34,507 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10 2025-07-23 06:24:34,520 - DEBUG - Requesting: http://10.0.0.141:8082/project/278d3a7e-4dc5-46e9-8008-78e42fc3be2d 2025-07-23 06:24:34,596 - DEBUG - Requesting: http://10.0.0.141:8082/virtual-network/09c2b652-854d-4c48-b7d7-67e6df49b47f 2025-07-23 06:24:34,607 - DEBUG - ==>Verifying data for policy with id: eb356a2c-476b-45d4-991e-35b0f33e3842, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-44020213', 'ctest-policy1-19895551'] 2025-07-23 06:24:34,607 - INFO - VN ctest-vn4-83048835 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 06:24:34,607 - DEBUG - Verifying the vn in opserver 2025-07-23 06:24:34,607 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835 virtual network link through opserver 10.0.0.141 2025-07-23 06:24:34,607 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-07-23 06:24:34,899 - DEBUG - Requesting: http://10.0.0.141:8081/analytics/uves/virtual-networks 2025-07-23 06:24:34,954 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835', 'href': 'http://10.0.0.141:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835?flat'} 2025-07-23 06:24:34,954 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-44020213:ctest-vn4-83048835 is found in opserver 2025-07-23 06:24:34,965 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 06:24:34,970 - DEBUG - VRF ids for VN ctest-vn4-83048835: {} 2025-07-23 06:24:34,971 - DEBUG - ====Verifying data for ctest-policy1-19895551 in API_Server ====== 2025-07-23 06:24:34,971 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-07-23 06:24:34,977 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10 2025-07-23 06:24:34,989 - DEBUG - Requesting: http://10.0.0.141:8082/project/278d3a7e-4dc5-46e9-8008-78e42fc3be2d 2025-07-23 06:24:35,065 - DEBUG - Requesting: http://10.0.0.141:8082/network-policy/eb356a2c-476b-45d4-991e-35b0f33e3842 2025-07-23 06:24:35,077 - INFO - Verified policy ctest-policy1-19895551 in API Server, Result: True 2025-07-23 06:24:35,077 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 06:24:35,088 - INFO - Deleting VN ctest-vn4-83048835 2025-07-23 06:24:35,242 - DEBUG - Response for deleting network () 2025-07-23 06:24:35,242 - DEBUG - Requesting: http://10.0.0.141:8082/routing-instance/666ba929-83a9-4024-a879-4408c6ff8415 2025-07-23 06:24:35,248 - DEBUG - Response Code: 404 2025-07-23 06:24:35,249 - DEBUG - Requesting: http://10.0.0.141:8082/domains 2025-07-23 06:24:35,255 - DEBUG - Requesting: http://10.0.0.141:8082/domain/644e7c77-5632-4339-b359-95639eedac10 2025-07-23 06:24:35,310 - DEBUG - Requesting: http://10.0.0.141:8082/project/278d3a7e-4dc5-46e9-8008-78e42fc3be2d 2025-07-23 06:24:35,394 - INFO - Validated that VN ctest-vn4-83048835 is not found in API Server 2025-07-23 06:24:35,404 - DEBUG - VN ctest-vn4-83048835 is not present in Agent 10.0.0.141 2025-07-23 06:24:35,404 - INFO - Validated that VN ctest-vn4-83048835 is not in any agent 2025-07-23 06:24:35,421 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-83048835 info 2025-07-23 06:24:35,447 - INFO - Deleted policy ctest-policy1-19895551 2025-07-23 06:24:35,620 - DEBUG - policy ctest-policy1-19895551 is not found in API Server 2025-07-23 06:24:35,878 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 06:24:35,878 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-07-23 06:24:35,878 - INFO - -------------------------------------------------------------------------------- 2025-07-23 06:24:36,167 - DEBUG - No XMPP flaps were noticed during the test 2025-07-23 06:24:36,167 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-07-23 06:24:36,167 - INFO - -------------------------------------------------------------------------------- 2025-07-23 06:24:36,840 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-44020213, ID : 278d3a7e-4dc5-46e9-8008-78e42fc3be2d