2025-11-07 20:13:54,047 - INFO - Domain Default found not creating 2025-11-07 20:13:54,366 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-32497431 not found, creating it 2025-11-07 20:13:54,994 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-32497431, ID : 1c065283-dd2e-43f7-a39f-8b6982dff4cb 2025-11-07 20:13:57,307 - INFO - ================================================================================ 2025-11-07 20:13:57,308 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 20:13:57,609 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with 2025-11-07 20:13:57,609 - INFO - Initial checks done. Running the testcase now 2025-11-07 20:13:57,609 - INFO - 2025-11-07 20:13:57,609 - INFO - ================================================================================ 2025-11-07 20:13:57,610 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-07 20:13:57,610 - 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-11-07 20:13:57,948 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.252': '0'}} with 2025-11-07 20:13:57,948 - INFO - Initial checks done. Running the testcase now 2025-11-07 20:13:57,949 - INFO - 2025-11-07 20:13:58,372 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188, 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-32497431:ctest-vn4-68483188, 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-32497431:ctest-vn4-68483188, 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-32497431:ctest-vn4-68483188, 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-11-07 20:13:59,106 - DEBUG - Response for create_network : {'network': {'id': 'a1d09445-5a7e-415a-bfff-0e70525e55a2', 'name': 'ctest-vn4-68483188', 'tenant_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'project_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32497431', 'ctest-vn4-68483188'], 'port_security_enabled': True, 'description': ''}} 2025-11-07 20:13:59,315 - DEBUG - Response for create_subnet : {'subnet': {'id': '3545915a-df0a-41d6-a0d9-713af1adc04e', 'name': '', 'tenant_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'network_id': 'a1d09445-5a7e-415a-bfff-0e70525e55a2', 'ip_version': 4, 'cidr': '201.146.75.192/26', 'allocation_pools': [{'start': '201.146.75.194', 'end': '201.146.75.254'}], 'gateway_ip': '201.146.75.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '201.146.75.194', 'tags': [], 'project_id': '1c065283dd2e43f7a39f8b6982dff4cb'}} 2025-11-07 20:13:59,584 - DEBUG - Response for create_subnet : {'subnet': {'id': '4ab4d46e-92c2-4e4e-8794-f2a1268f210d', 'name': '', 'tenant_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'network_id': 'a1d09445-5a7e-415a-bfff-0e70525e55a2', 'ip_version': 6, 'cidr': '3479:bf4a:ee7d:8a3:f789:51ab::/96', 'allocation_pools': [{'start': '3479:bf4a:ee7d:8a3:f789:51ab:0:2', 'end': '3479:bf4a:ee7d:8a3:f789:51ab:ffff:fffe'}], 'gateway_ip': '3479:bf4a:ee7d:8a3:f789:51ab:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3479:bf4a:ee7d:8a3:f789:51ab:0:2', 'tags': [], 'project_id': '1c065283dd2e43f7a39f8b6982dff4cb'}} 2025-11-07 20:13:59,624 - INFO - Created VN ctest-vn4-68483188 2025-11-07 20:13:59,694 - DEBUG - VN ctest-vn4-68483188 UUID is a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:00,093 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a1d09445-5a7e-415a-bfff-0e70525e55a2', 'name': 'ctest-vn4-68483188', 'tenant_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'project_id': '1c065283dd2e43f7a39f8b6982dff4cb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3545915a-df0a-41d6-a0d9-713af1adc04e', '4ab4d46e-92c2-4e4e-8794-f2a1268f210d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32497431', 'ctest-vn4-68483188'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32497431', 'ctest-policy1-76414214']], 'subnet_ipam': [{'subnet_cidr': '201.146.75.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3479:bf4a:ee7d:8a3:f789:51ab::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-07 20:14:00,299 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-11-07 20:14:00,625 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-11-07 20:14:00,690 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538 2025-11-07 20:14:00,711 - DEBUG - Requesting: http://10.0.0.241:8082/project/1c065283-dd2e-43f7-a39f-8b6982dff4cb 2025-11-07 20:14:00,829 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:00,861 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:00,886 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:00,903 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:00,921 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/ca97e46c-8a01-4dc9-a449-d6753c09dbb2 2025-11-07 20:14:00,937 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 20:14:00,937 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:00,962 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:00,997 - INFO - Verified VN network id 11 for VN a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:00,998 - INFO - Verifications in API Server for VN ctest-vn4-68483188 passed 2025-11-07 20:14:00,998 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:01,011 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:01,020 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:01,032 - DEBUG - Requesting: http://10.0.0.241:8082/route-target/ca97e46c-8a01-4dc9-a449-d6753c09dbb2 2025-11-07 20:14:01,054 - DEBUG - Control-node 10.0.0.241 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-32497431', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11659982460854092122', 'uuid-lslong': '13834792455886493090'}, 'enable': 'true', 'created': '2025-11-07T20:13:59', 'last-modified': '2025-11-07T20:14:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014281'} 2025-11-07 20:14:01,064 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-07 20:14:01,064 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-68483188 passed 2025-11-07 20:14:01,064 - DEBUG - ====Verifying policy data for ctest-vn4-68483188 in API_Server ====== 2025-11-07 20:14:01,064 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-11-07 20:14:01,072 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538 2025-11-07 20:14:01,087 - DEBUG - Requesting: http://10.0.0.241:8082/project/1c065283-dd2e-43f7-a39f-8b6982dff4cb 2025-11-07 20:14:01,192 - DEBUG - Requesting: http://10.0.0.241:8082/virtual-network/a1d09445-5a7e-415a-bfff-0e70525e55a2 2025-11-07 20:14:01,206 - DEBUG - ==>Verifying data for policy with id: f2a79f6e-18bf-47dc-88f8-2dca1cf3d451, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-32497431', 'ctest-policy1-76414214'] 2025-11-07 20:14:01,207 - INFO - VN ctest-vn4-68483188 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-07 20:14:01,207 - DEBUG - Verifying the vn in opserver 2025-11-07 20:14:01,207 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188 virtual network link through opserver 10.0.0.241 2025-11-07 20:14:01,207 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-11-07 20:14:01,502 - DEBUG - Requesting: http://10.0.0.241:8081/analytics/uves/virtual-networks 2025-11-07 20:14:01,584 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188', 'href': 'http://10.0.0.241:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188?flat'} 2025-11-07 20:14:01,584 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-32497431:ctest-vn4-68483188 is found in opserver 2025-11-07 20:14:01,607 - DEBUG - Do not have enough data to verify VN in agent 2025-11-07 20:14:01,620 - DEBUG - VRF ids for VN ctest-vn4-68483188: {} 2025-11-07 20:14:01,621 - DEBUG - ====Verifying data for ctest-policy1-76414214 in API_Server ====== 2025-11-07 20:14:01,622 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-11-07 20:14:01,632 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538 2025-11-07 20:14:01,651 - DEBUG - Requesting: http://10.0.0.241:8082/project/1c065283-dd2e-43f7-a39f-8b6982dff4cb 2025-11-07 20:14:01,763 - DEBUG - Requesting: http://10.0.0.241:8082/network-policy/f2a79f6e-18bf-47dc-88f8-2dca1cf3d451 2025-11-07 20:14:01,785 - INFO - Verified policy ctest-policy1-76414214 in API Server, Result: True 2025-11-07 20:14:01,785 - INFO - Done with setup and verification, moving onto test .. 2025-11-07 20:14:01,799 - INFO - Deleting VN ctest-vn4-68483188 2025-11-07 20:14:02,016 - DEBUG - Response for deleting network () 2025-11-07 20:14:02,017 - DEBUG - Requesting: http://10.0.0.241:8082/routing-instance/34fa45ed-b631-4e00-b640-0d54162efd4e 2025-11-07 20:14:02,025 - DEBUG - Response Code: 404 2025-11-07 20:14:02,025 - DEBUG - Requesting: http://10.0.0.241:8082/domains 2025-11-07 20:14:02,035 - DEBUG - Requesting: http://10.0.0.241:8082/domain/c2cf6498-5682-42c6-9800-de4d96a6c538 2025-11-07 20:14:02,098 - DEBUG - Requesting: http://10.0.0.241:8082/project/1c065283-dd2e-43f7-a39f-8b6982dff4cb 2025-11-07 20:14:02,185 - INFO - Validated that VN ctest-vn4-68483188 is not found in API Server 2025-11-07 20:14:02,205 - DEBUG - VN ctest-vn4-68483188 is not present in Agent 10.0.0.241 2025-11-07 20:14:02,205 - INFO - Validated that VN ctest-vn4-68483188 is not in any agent 2025-11-07 20:14:02,226 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-68483188 info 2025-11-07 20:14:02,276 - INFO - Deleted policy ctest-policy1-76414214 2025-11-07 20:14:02,458 - DEBUG - policy ctest-policy1-76414214 is not found in API Server 2025-11-07 20:14:02,776 - DEBUG - No XMPP flaps were noticed during the test