2025-10-09 10:33:19,093 - INFO - Reading existing Domain with UUID dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:19,137 - INFO - Using existing domain ['admin_domain'](dfa458d1-aaf5-4c71-9ede-e49be62ab991) 2025-10-09 10:33:19,415 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-52261713 not found, creating it 2025-10-09 10:33:20,020 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-52261713, ID : f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d 2025-10-09 10:33:21,735 - INFO - ================================================================================ 2025-10-09 10:33:21,735 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 10:33:22,116 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-10-09 10:33:22,116 - INFO - Initial checks done. Running the testcase now 2025-10-09 10:33:22,116 - INFO - 2025-10-09 10:33:22,116 - INFO - ================================================================================ 2025-10-09 10:33:22,116 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-09 10:33:22,117 - 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-09 10:33:22,508 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.0.0.33': '0'}} with 2025-10-09 10:33:22,508 - INFO - Initial checks done. Running the testcase now 2025-10-09 10:33:22,508 - INFO - 2025-10-09 10:33:22,927 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792, 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 = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792, 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-09 10:33:23,627 - DEBUG - Response for create_network : {'network': {'id': '66f4eca7-4afe-4a60-bfea-02e2c3355ca2', 'name': 'ctest-vn4-00830792', 'tenant_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'project_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52261713', 'ctest-vn4-00830792'], 'port_security_enabled': True, 'description': '', 'created_at': None, 'updated_at': None}} 2025-10-09 10:33:23,844 - DEBUG - Response for create_subnet : {'subnet': {'id': '49f0505c-8eed-4390-9f2e-96595d95edc2', 'name': '', 'tenant_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'network_id': '66f4eca7-4afe-4a60-bfea-02e2c3355ca2', 'ip_version': 4, 'cidr': '60.168.24.128/26', 'allocation_pools': [{'start': '60.168.24.130', 'end': '60.168.24.190'}], 'gateway_ip': '60.168.24.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:23.731681', 'updated_at': '2025-10-09T10:33:23.731681', 'dns_server_address': '60.168.24.130', 'tags': [], 'project_id': 'f552d8a5e9f44fcda4685b3fd5e9852d'}} 2025-10-09 10:33:24,132 - DEBUG - Response for create_subnet : {'subnet': {'id': '0a6eb149-361c-45bb-a393-fa2ce17e2500', 'name': '', 'tenant_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'network_id': '66f4eca7-4afe-4a60-bfea-02e2c3355ca2', 'ip_version': 6, 'cidr': '2cd3:4582:520a:d4a1:901e:c00c::/96', 'allocation_pools': [{'start': '2cd3:4582:520a:d4a1:901e:c00c:0:2', 'end': '2cd3:4582:520a:d4a1:901e:c00c:ffff:fffe'}], 'gateway_ip': '2cd3:4582:520a:d4a1:901e:c00c:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'created_at': '2025-10-09T10:33:24.017057', 'updated_at': '2025-10-09T10:33:24.017057', 'dns_server_address': '2cd3:4582:520a:d4a1:901e:c00c:0:2', 'tags': [], 'project_id': 'f552d8a5e9f44fcda4685b3fd5e9852d'}} 2025-10-09 10:33:24,202 - INFO - Created VN ctest-vn4-00830792 2025-10-09 10:33:24,256 - DEBUG - VN ctest-vn4-00830792 UUID is 66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:24,727 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '66f4eca7-4afe-4a60-bfea-02e2c3355ca2', 'name': 'ctest-vn4-00830792', 'tenant_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'project_id': 'f552d8a5e9f44fcda4685b3fd5e9852d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['49f0505c-8eed-4390-9f2e-96595d95edc2', '0a6eb149-361c-45bb-a393-fa2ce17e2500'], 'fq_name': ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52261713', 'ctest-vn4-00830792'], 'policys': [['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52261713', 'ctest-policy1-36395315']], 'subnet_ipam': [{'subnet_cidr': '60.168.24.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2cd3:4582:520a:d4a1:901e:c00c::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': '', 'created_at': '2025-10-09T10:33:23.551043', 'updated_at': '2025-10-09T10:33:24.039267'}} 2025-10-09 10:33:24,915 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:25,267 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:25,347 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:25,408 - DEBUG - Requesting: https://10.0.0.33:8082/project/f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d 2025-10-09 10:33:25,488 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:25,547 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:25,605 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:25,663 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:25,720 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/581c2c3d-200a-4a2d-8db7-9d5816996b3d 2025-10-09 10:33:25,771 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 10:33:25,771 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:25,830 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:25,897 - INFO - Verified VN network id 11 for VN 66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:25,897 - INFO - Verifications in API Server for VN ctest-vn4-00830792 passed 2025-10-09 10:33:25,897 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:25,957 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:26,012 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:26,064 - DEBUG - Requesting: https://10.0.0.33:8082/route-target/581c2c3d-200a-4a2d-8db7-9d5816996b3d 2025-10-09 10:33:26,164 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-52261713', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7418814689447922272', 'uuid-lslong': '13828868778755447970'}, 'enable': 'true', 'created': '2025-10-09T10:33:23', 'last-modified': '2025-10-09T10:33:24', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.464968'} 2025-10-09 10:33:26,217 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-09 10:33:26,217 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-00830792 passed 2025-10-09 10:33:26,217 - DEBUG - ====Verifying policy data for ctest-vn4-00830792 in API_Server ====== 2025-10-09 10:33:26,217 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:26,272 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:26,332 - DEBUG - Requesting: https://10.0.0.33:8082/project/f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d 2025-10-09 10:33:26,408 - DEBUG - Requesting: https://10.0.0.33:8082/virtual-network/66f4eca7-4afe-4a60-bfea-02e2c3355ca2 2025-10-09 10:33:26,465 - DEBUG - ==>Verifying data for policy with id: 67ff4431-d9fb-4ef6-bdfc-95582420eab2, fqn: ['admin_domain', 'ctest-TestBasicPolicyNegativeIpv4v6-52261713', 'ctest-policy1-36395315'] 2025-10-09 10:33:26,465 - INFO - VN ctest-vn4-00830792 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-09 10:33:26,466 - DEBUG - Verifying the vn in opserver 2025-10-09 10:33:26,466 - DEBUG - Verifying the admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792 virtual network link through opserver 10.0.0.33 2025-10-09 10:33:26,466 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 10:33:26,814 - DEBUG - Requesting: https://10.0.0.33:8081/analytics/uves/virtual-networks 2025-10-09 10:33:26,940 - DEBUG - vn link and name as {'name': 'admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792', 'href': 'https://10.0.0.33:8081/analytics/uves/virtual-network/admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792?flat'} 2025-10-09 10:33:26,940 - INFO - Validated that VN admin_domain:ctest-TestBasicPolicyNegativeIpv4v6-52261713:ctest-vn4-00830792 is found in opserver 2025-10-09 10:33:27,039 - DEBUG - Do not have enough data to verify VN in agent 2025-10-09 10:33:27,088 - DEBUG - VRF ids for VN ctest-vn4-00830792: {} 2025-10-09 10:33:27,088 - DEBUG - ====Verifying data for ctest-policy1-36395315 in API_Server ====== 2025-10-09 10:33:27,088 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:27,143 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:27,200 - DEBUG - Requesting: https://10.0.0.33:8082/project/f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d 2025-10-09 10:33:27,272 - DEBUG - Requesting: https://10.0.0.33:8082/network-policy/67ff4431-d9fb-4ef6-bdfc-95582420eab2 2025-10-09 10:33:27,333 - INFO - Verified policy ctest-policy1-36395315 in API Server, Result: True 2025-10-09 10:33:27,333 - INFO - Done with setup and verification, moving onto test .. 2025-10-09 10:33:27,343 - INFO - Deleting VN ctest-vn4-00830792 2025-10-09 10:33:27,527 - DEBUG - Response for deleting network () 2025-10-09 10:33:27,527 - DEBUG - Requesting: https://10.0.0.33:8082/routing-instance/ea113a56-a34d-42c0-8f5d-37698d7f93fc 2025-10-09 10:33:27,579 - DEBUG - Response Code: 404 2025-10-09 10:33:27,579 - DEBUG - Requesting: https://10.0.0.33:8082/domains 2025-10-09 10:33:27,631 - DEBUG - Requesting: https://10.0.0.33:8082/domain/dfa458d1-aaf5-4c71-9ede-e49be62ab991 2025-10-09 10:33:27,688 - DEBUG - Requesting: https://10.0.0.33:8082/project/f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d 2025-10-09 10:33:27,768 - INFO - Validated that VN ctest-vn4-00830792 is not found in API Server 2025-10-09 10:33:27,871 - DEBUG - VN ctest-vn4-00830792 is not present in Agent 10.0.0.33 2025-10-09 10:33:27,871 - INFO - Validated that VN ctest-vn4-00830792 is not in any agent 2025-10-09 10:33:28,019 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-00830792 info 2025-10-09 10:33:28,048 - INFO - Deleted policy ctest-policy1-36395315 2025-10-09 10:33:28,227 - DEBUG - policy ctest-policy1-36395315 is not found in API Server 2025-10-09 10:33:28,608 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 10:33:28,608 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:06] 2025-10-09 10:33:28,608 - INFO - -------------------------------------------------------------------------------- 2025-10-09 10:33:28,992 - DEBUG - No XMPP flaps were noticed during the test 2025-10-09 10:33:28,992 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-10-09 10:33:28,992 - INFO - -------------------------------------------------------------------------------- 2025-10-09 10:33:29,738 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-52261713, ID : f552d8a5-e9f4-4fcd-a468-5b3fd5e9852d