2025-08-08 18:19:53,879 - INFO - Domain Default found not creating 2025-08-08 18:19:54,001 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-94695864 not found, creating it 2025-08-08 18:19:54,445 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-94695864, ID : 751651ef-bd78-4fb8-ae32-23a963f3120b 2025-08-08 18:19:55,742 - INFO - ================================================================================ 2025-08-08 18:19:55,742 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 18:19:55,997 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2025-08-08 18:19:55,997 - INFO - Initial checks done. Running the testcase now 2025-08-08 18:19:55,997 - INFO - 2025-08-08 18:19:55,997 - INFO - ================================================================================ 2025-08-08 18:19:55,997 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-08 18:19:55,997 - 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-08 18:19:56,292 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.0.0.50': '0'}} with 2025-08-08 18:19:56,292 - INFO - Initial checks done. Running the testcase now 2025-08-08 18:19:56,292 - INFO - 2025-08-08 18:19:56,905 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403, 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-94695864:ctest-vn4-07314403, 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-94695864:ctest-vn4-07314403, 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-94695864:ctest-vn4-07314403, 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-08 18:19:57,439 - DEBUG - Response for create_network : {'network': {'id': 'd22d9e01-7f3b-4fa4-a470-85ffd5e26b90', 'name': 'ctest-vn4-07314403', 'tenant_id': '751651efbd784fb8ae3223a963f3120b', 'project_id': '751651efbd784fb8ae3223a963f3120b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94695864', 'ctest-vn4-07314403'], 'port_security_enabled': True, 'description': ''}} 2025-08-08 18:19:57,592 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ae993aa2-33dc-410b-8762-847da862e253', 'name': '', 'tenant_id': '751651efbd784fb8ae3223a963f3120b', 'network_id': 'd22d9e01-7f3b-4fa4-a470-85ffd5e26b90', 'ip_version': 4, 'cidr': '198.130.200.192/26', 'allocation_pools': [{'start': '198.130.200.194', 'end': '198.130.200.254'}], 'gateway_ip': '198.130.200.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '198.130.200.194', 'tags': [], 'project_id': '751651efbd784fb8ae3223a963f3120b'}} 2025-08-08 18:19:57,803 - DEBUG - Response for create_subnet : {'subnet': {'id': '61875324-f4cd-4c0b-9bf0-668e998aed0b', 'name': '', 'tenant_id': '751651efbd784fb8ae3223a963f3120b', 'network_id': 'd22d9e01-7f3b-4fa4-a470-85ffd5e26b90', 'ip_version': 6, 'cidr': '239f:6a37:7f2:8e6e:12d1:7e4a::/96', 'allocation_pools': [{'start': '239f:6a37:7f2:8e6e:12d1:7e4a:0:2', 'end': '239f:6a37:7f2:8e6e:12d1:7e4a:ffff:fffe'}], 'gateway_ip': '239f:6a37:7f2:8e6e:12d1:7e4a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '239f:6a37:7f2:8e6e:12d1:7e4a:0:2', 'tags': [], 'project_id': '751651efbd784fb8ae3223a963f3120b'}} 2025-08-08 18:19:57,821 - INFO - Created VN ctest-vn4-07314403 2025-08-08 18:19:57,872 - DEBUG - VN ctest-vn4-07314403 UUID is d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,049 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'd22d9e01-7f3b-4fa4-a470-85ffd5e26b90', 'name': 'ctest-vn4-07314403', 'tenant_id': '751651efbd784fb8ae3223a963f3120b', 'project_id': '751651efbd784fb8ae3223a963f3120b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ae993aa2-33dc-410b-8762-847da862e253', '61875324-f4cd-4c0b-9bf0-668e998aed0b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94695864', 'ctest-vn4-07314403'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94695864', 'ctest-policy1-29303569']], 'subnet_ipam': [{'subnet_cidr': '198.130.200.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '239f:6a37:7f2:8e6e:12d1:7e4a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-08 18:19:58,196 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 18:19:58,483 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 18:19:58,506 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727 2025-08-08 18:19:58,516 - DEBUG - Requesting: http://10.0.0.50:8082/project/751651ef-bd78-4fb8-ae32-23a963f3120b 2025-08-08 18:19:58,582 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,592 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,599 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:58,604 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:58,609 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bbe9715a-7e86-4e9d-92c0-200a34515f1e 2025-08-08 18:19:58,613 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 18:19:58,613 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,620 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:58,630 - INFO - Verified VN network id 11 for VN d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,630 - INFO - Verifications in API Server for VN ctest-vn4-07314403 passed 2025-08-08 18:19:58,630 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,637 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:58,642 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:58,646 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/bbe9715a-7e86-4e9d-92c0-200a34515f1e 2025-08-08 18:19:58,656 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-94695864', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15144934851183595428', 'uuid-lslong': '11849117953463315344'}, 'enable': 'true', 'created': '2025-08-08T18:19:57', 'last-modified': '2025-08-08T18:19:58', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.640166'} 2025-08-08 18:19:58,661 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-08 18:19:58,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-07314403 passed 2025-08-08 18:19:58,661 - DEBUG - ====Verifying policy data for ctest-vn4-07314403 in API_Server ====== 2025-08-08 18:19:58,661 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 18:19:58,665 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727 2025-08-08 18:19:58,672 - DEBUG - Requesting: http://10.0.0.50:8082/project/751651ef-bd78-4fb8-ae32-23a963f3120b 2025-08-08 18:19:58,739 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/d22d9e01-7f3b-4fa4-a470-85ffd5e26b90 2025-08-08 18:19:58,747 - DEBUG - ==>Verifying data for policy with id: 05fa595d-f29f-406e-8008-3c49b656b80a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-94695864', 'ctest-policy1-29303569'] 2025-08-08 18:19:58,747 - INFO - VN ctest-vn4-07314403 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-08 18:19:58,747 - DEBUG - Verifying the vn in opserver 2025-08-08 18:19:58,747 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403 virtual network link through opserver 10.0.0.50 2025-08-08 18:19:58,747 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-08 18:19:59,034 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-08-08 18:19:59,076 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403?flat'} 2025-08-08 18:19:59,076 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-94695864:ctest-vn4-07314403 is found in opserver 2025-08-08 18:19:59,085 - DEBUG - Do not have enough data to verify VN in agent 2025-08-08 18:19:59,089 - DEBUG - VRF ids for VN ctest-vn4-07314403: {} 2025-08-08 18:19:59,089 - DEBUG - ====Verifying data for ctest-policy1-29303569 in API_Server ====== 2025-08-08 18:19:59,089 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 18:19:59,094 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727 2025-08-08 18:19:59,102 - DEBUG - Requesting: http://10.0.0.50:8082/project/751651ef-bd78-4fb8-ae32-23a963f3120b 2025-08-08 18:19:59,173 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/05fa595d-f29f-406e-8008-3c49b656b80a 2025-08-08 18:19:59,181 - INFO - Verified policy ctest-policy1-29303569 in API Server, Result: True 2025-08-08 18:19:59,181 - INFO - Done with setup and verification, moving onto test .. 2025-08-08 18:19:59,187 - INFO - Deleting VN ctest-vn4-07314403 2025-08-08 18:19:59,287 - DEBUG - Response for deleting network () 2025-08-08 18:19:59,287 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/1fb9f7d0-ad20-40cf-836a-cf7304239a0c 2025-08-08 18:19:59,291 - DEBUG - Response Code: 404 2025-08-08 18:19:59,291 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-08-08 18:19:59,295 - DEBUG - Requesting: http://10.0.0.50:8082/domain/73380d28-043b-4eea-badd-77f689732727 2025-08-08 18:19:59,348 - DEBUG - Requesting: http://10.0.0.50:8082/project/751651ef-bd78-4fb8-ae32-23a963f3120b 2025-08-08 18:19:59,411 - INFO - Validated that VN ctest-vn4-07314403 is not found in API Server 2025-08-08 18:19:59,419 - DEBUG - VN ctest-vn4-07314403 is not present in Agent 10.0.0.50 2025-08-08 18:19:59,419 - INFO - Validated that VN ctest-vn4-07314403 is not in any agent 2025-08-08 18:19:59,430 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-07314403 info 2025-08-08 18:19:59,453 - INFO - Deleted policy ctest-policy1-29303569 2025-08-08 18:19:59,620 - DEBUG - policy ctest-policy1-29303569 is not found in API Server 2025-08-08 18:19:59,877 - DEBUG - No XMPP flaps were noticed during the test 2025-08-08 18:19:59,877 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04] 2025-08-08 18:19:59,877 - INFO - -------------------------------------------------------------------------------- 2025-08-08 18:20:00,164 - DEBUG - No XMPP flaps were noticed during the test 2025-08-08 18:20:00,164 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05] 2025-08-08 18:20:00,164 - INFO - -------------------------------------------------------------------------------- 2025-08-08 18:20:00,839 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-94695864, ID : 751651ef-bd78-4fb8-ae32-23a963f3120b