2025-07-31 02:26:43,631 - INFO - Domain Default found not creating 2025-07-31 02:26:43,819 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-04808747 not found, creating it 2025-07-31 02:26:44,343 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-04808747, ID : bce961f6-ba32-43b2-bd5e-e300ef0ca14d 2025-07-31 02:26:45,963 - INFO - ================================================================================ 2025-07-31 02:26:45,963 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:26:46,238 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-31 02:26:46,238 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:26:46,238 - INFO - 2025-07-31 02:26:46,239 - INFO - ================================================================================ 2025-07-31 02:26:46,239 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 02:26:46,239 - 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-31 02:26:46,525 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with 2025-07-31 02:26:46,525 - INFO - Initial checks done. Running the testcase now 2025-07-31 02:26:46,526 - INFO - 2025-07-31 02:26:46,908 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458, 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-04808747:ctest-vn4-95360458, 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-04808747:ctest-vn4-95360458, 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-04808747:ctest-vn4-95360458, 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-31 02:26:47,481 - DEBUG - Response for create_network : {'network': {'id': '64658600-5062-433f-8897-619a89e0be1f', 'name': 'ctest-vn4-95360458', 'tenant_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'project_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04808747', 'ctest-vn4-95360458'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:26:47,660 - DEBUG - Response for create_subnet : {'subnet': {'id': '2aa1a15a-902d-4de6-8989-f457410433b1', 'name': '', 'tenant_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'network_id': '64658600-5062-433f-8897-619a89e0be1f', 'ip_version': 4, 'cidr': '60.230.108.128/26', 'allocation_pools': [{'start': '60.230.108.130', 'end': '60.230.108.190'}], 'gateway_ip': '60.230.108.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '60.230.108.130', 'tags': [], 'project_id': 'bce961f6ba3243b2bd5ee300ef0ca14d'}} 2025-07-31 02:26:47,884 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ac63ff1c-74e0-4762-ab98-7c121d0eed41', 'name': '', 'tenant_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'network_id': '64658600-5062-433f-8897-619a89e0be1f', 'ip_version': 6, 'cidr': '2e27:d1ef:a93b:d375:b97e:6a8a::/96', 'allocation_pools': [{'start': '2e27:d1ef:a93b:d375:b97e:6a8a:0:2', 'end': '2e27:d1ef:a93b:d375:b97e:6a8a:ffff:fffe'}], 'gateway_ip': '2e27:d1ef:a93b:d375:b97e:6a8a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2e27:d1ef:a93b:d375:b97e:6a8a:0:2', 'tags': [], 'project_id': 'bce961f6ba3243b2bd5ee300ef0ca14d'}} 2025-07-31 02:26:47,909 - INFO - Created VN ctest-vn4-95360458 2025-07-31 02:26:47,966 - DEBUG - VN ctest-vn4-95360458 UUID is 64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,223 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '64658600-5062-433f-8897-619a89e0be1f', 'name': 'ctest-vn4-95360458', 'tenant_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'project_id': 'bce961f6ba3243b2bd5ee300ef0ca14d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2aa1a15a-902d-4de6-8989-f457410433b1', 'ac63ff1c-74e0-4762-ab98-7c121d0eed41'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04808747', 'ctest-vn4-95360458'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04808747', 'ctest-policy1-54432874']], 'subnet_ipam': [{'subnet_cidr': '60.230.108.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2e27:d1ef:a93b:d375:b97e:6a8a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 02:26:48,386 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 02:26:48,686 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 02:26:48,719 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa 2025-07-31 02:26:48,738 - DEBUG - Requesting: http://10.0.0.50:8082/project/bce961f6-ba32-43b2-bd5e-e300ef0ca14d 2025-07-31 02:26:48,816 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,836 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,850 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:48,861 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:48,873 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f468aeee-6edc-4ce7-84bd-12c6b3c6088f 2025-07-31 02:26:48,882 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:26:48,882 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,894 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:48,914 - INFO - Verified VN network id 11 for VN 64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,914 - INFO - Verifications in API Server for VN ctest-vn4-95360458 passed 2025-07-31 02:26:48,915 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:48,927 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:48,938 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:48,948 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/f468aeee-6edc-4ce7-84bd-12c6b3c6088f 2025-07-31 02:26:48,968 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-04808747', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7234335712347308863', 'uuid-lslong': '9842442827007573535'}, 'enable': 'true', 'created': '2025-07-31T02:26:47', 'last-modified': '2025-07-31T02:26:48', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.778095'} 2025-07-31 02:26:48,975 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 02:26:48,976 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-95360458 passed 2025-07-31 02:26:48,976 - DEBUG - ====Verifying policy data for ctest-vn4-95360458 in API_Server ====== 2025-07-31 02:26:48,976 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 02:26:48,985 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa 2025-07-31 02:26:48,999 - DEBUG - Requesting: http://10.0.0.50:8082/project/bce961f6-ba32-43b2-bd5e-e300ef0ca14d 2025-07-31 02:26:49,082 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/64658600-5062-433f-8897-619a89e0be1f 2025-07-31 02:26:49,098 - DEBUG - ==>Verifying data for policy with id: 2a3b3ee5-6434-4be9-bdf0-eec7e758577c, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-04808747', 'ctest-policy1-54432874'] 2025-07-31 02:26:49,098 - INFO - VN ctest-vn4-95360458 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 02:26:49,098 - DEBUG - Verifying the vn in opserver 2025-07-31 02:26:49,098 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458 virtual network link through opserver 10.0.0.50 2025-07-31 02:26:49,099 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-31 02:26:49,402 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks 2025-07-31 02:26:49,469 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458?flat'} 2025-07-31 02:26:49,469 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-04808747:ctest-vn4-95360458 is found in opserver 2025-07-31 02:26:49,481 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 02:26:49,488 - DEBUG - VRF ids for VN ctest-vn4-95360458: {} 2025-07-31 02:26:49,488 - DEBUG - ====Verifying data for ctest-policy1-54432874 in API_Server ====== 2025-07-31 02:26:49,488 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 02:26:49,496 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa 2025-07-31 02:26:49,510 - DEBUG - Requesting: http://10.0.0.50:8082/project/bce961f6-ba32-43b2-bd5e-e300ef0ca14d 2025-07-31 02:26:49,596 - DEBUG - Requesting: http://10.0.0.50:8082/network-policy/2a3b3ee5-6434-4be9-bdf0-eec7e758577c 2025-07-31 02:26:49,609 - INFO - Verified policy ctest-policy1-54432874 in API Server, Result: True 2025-07-31 02:26:49,609 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 02:26:49,619 - INFO - Deleting VN ctest-vn4-95360458 2025-07-31 02:26:49,757 - DEBUG - Response for deleting network () 2025-07-31 02:26:49,757 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/590672e1-db5f-476a-bdab-7c15bbe0ff3b 2025-07-31 02:26:49,764 - DEBUG - Response Code: 404 2025-07-31 02:26:49,764 - DEBUG - Requesting: http://10.0.0.50:8082/domains 2025-07-31 02:26:49,771 - DEBUG - Requesting: http://10.0.0.50:8082/domain/59cd0ab7-96a7-4f7a-b514-7f260b8ac1aa 2025-07-31 02:26:49,828 - DEBUG - Requesting: http://10.0.0.50:8082/project/bce961f6-ba32-43b2-bd5e-e300ef0ca14d 2025-07-31 02:26:49,905 - INFO - Validated that VN ctest-vn4-95360458 is not found in API Server 2025-07-31 02:26:49,919 - DEBUG - VN ctest-vn4-95360458 is not present in Agent 10.0.0.50 2025-07-31 02:26:49,919 - INFO - Validated that VN ctest-vn4-95360458 is not in any agent 2025-07-31 02:26:49,940 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-95360458 info 2025-07-31 02:26:49,973 - INFO - Deleted policy ctest-policy1-54432874 2025-07-31 02:26:50,150 - DEBUG - policy ctest-policy1-54432874 is not found in API Server 2025-07-31 02:26:50,413 - DEBUG - No XMPP flaps were noticed during the test