2025-12-01 02:33:13,276 - INFO - Domain Default found not creating 2025-12-01 02:33:13,476 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-11234802 not found, creating it 2025-12-01 02:33:14,096 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-11234802, ID : 5674e72e-0933-4294-87cc-46ee5558dba2 2025-12-01 02:33:16,149 - INFO - ================================================================================ 2025-12-01 02:33:16,149 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:33:17,433 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0', '10.20.0.192': '0'}, '10.0.0.241': {'10.20.0.209': '0', '10.20.0.192': '0'}} with 2025-12-01 02:33:17,433 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:33:17,433 - INFO - 2025-12-01 02:33:17,433 - INFO - ================================================================================ 2025-12-01 02:33:17,433 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-01 02:33:17,433 - 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-12-01 02:33:18,712 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.209': '0', '10.20.0.192': '0'}, '10.0.0.241': {'10.20.0.209': '0', '10.20.0.192': '0'}} with 2025-12-01 02:33:18,712 - INFO - Initial checks done. Running the testcase now 2025-12-01 02:33:18,712 - INFO - 2025-12-01 02:33:19,090 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577, 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-11234802:ctest-vn4-62003577, 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-11234802:ctest-vn4-62003577, 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-11234802:ctest-vn4-62003577, 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-12-01 02:33:19,795 - DEBUG - Response for create_network : {'network': {'id': '37a32137-2e22-416f-99ed-cbcaa14dbd5a', 'name': 'ctest-vn4-62003577', 'tenant_id': '5674e72e0933429487cc46ee5558dba2', 'project_id': '5674e72e0933429487cc46ee5558dba2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'ctest-vn4-62003577'], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:33:20,158 - DEBUG - Response for create_subnet : {'subnet': {'id': 'a3190f47-bb0b-49a5-8f90-7e8eb83ad2eb', 'name': '', 'tenant_id': '5674e72e0933429487cc46ee5558dba2', 'network_id': '37a32137-2e22-416f-99ed-cbcaa14dbd5a', 'ip_version': 4, 'cidr': '221.122.72.64/26', 'allocation_pools': [{'start': '221.122.72.66', 'end': '221.122.72.126'}], 'gateway_ip': '221.122.72.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '221.122.72.66', 'tags': [], 'project_id': '5674e72e0933429487cc46ee5558dba2'}} 2025-12-01 02:33:20,415 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b925de3d-e32a-4350-a57c-7f93fac4fd19', 'name': '', 'tenant_id': '5674e72e0933429487cc46ee5558dba2', 'network_id': '37a32137-2e22-416f-99ed-cbcaa14dbd5a', 'ip_version': 6, 'cidr': '2a25:bca1:622:bb48:a5d4:6e1b::/96', 'allocation_pools': [{'start': '2a25:bca1:622:bb48:a5d4:6e1b:0:2', 'end': '2a25:bca1:622:bb48:a5d4:6e1b:ffff:fffe'}], 'gateway_ip': '2a25:bca1:622:bb48:a5d4:6e1b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a25:bca1:622:bb48:a5d4:6e1b:0:2', 'tags': [], 'project_id': '5674e72e0933429487cc46ee5558dba2'}} 2025-12-01 02:33:20,443 - INFO - Created VN ctest-vn4-62003577 2025-12-01 02:33:20,455 - DEBUG - VN ctest-vn4-62003577 UUID is 37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:20,719 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37a32137-2e22-416f-99ed-cbcaa14dbd5a', 'name': 'ctest-vn4-62003577', 'tenant_id': '5674e72e0933429487cc46ee5558dba2', 'project_id': '5674e72e0933429487cc46ee5558dba2', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['a3190f47-bb0b-49a5-8f90-7e8eb83ad2eb', 'b925de3d-e32a-4350-a57c-7f93fac4fd19'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'ctest-vn4-62003577'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'ctest-policy1-27862560']], 'subnet_ipam': [{'subnet_cidr': '221.122.72.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a25:bca1:622:bb48:a5d4:6e1b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-01 02:33:20,829 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:33:21,176 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:33:21,208 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:33:21,222 - DEBUG - Requesting: http://10.0.0.27:8082/project/5674e72e-0933-4294-87cc-46ee5558dba2 2025-12-01 02:33:21,321 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,335 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,346 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:21,355 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:21,363 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d8f3e97-0745-4de1-8f11-39a2b7869023 2025-12-01 02:33:21,371 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:33:21,371 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,384 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:21,406 - INFO - Verified VN network id 13 for VN 37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,406 - INFO - Verifications in API Server for VN ctest-vn4-62003577 passed 2025-12-01 02:33:21,406 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,419 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:21,427 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:21,436 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/1d8f3e97-0745-4de1-8f11-39a2b7869023 2025-12-01 02:33:21,449 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4009084614170788207', 'uuid-lslong': '11091745528433458522'}, 'enable': 'true', 'created': '2025-12-01T02:33:19', 'last-modified': '2025-12-01T02:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.813229'} 2025-12-01 02:33:21,455 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:33:21,461 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4009084614170788207', 'uuid-lslong': '11091745528433458522'}, 'enable': 'true', 'created': '2025-12-01T02:33:19', 'last-modified': '2025-12-01T02:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.806084'} 2025-12-01 02:33:21,467 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:33:21,473 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4009084614170788207', 'uuid-lslong': '11091745528433458522'}, 'enable': 'true', 'created': '2025-12-01T02:33:19', 'last-modified': '2025-12-01T02:33:20', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.820721'} 2025-12-01 02:33:21,479 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-01 02:33:21,479 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62003577 passed 2025-12-01 02:33:21,480 - DEBUG - ====Verifying policy data for ctest-vn4-62003577 in API_Server ====== 2025-12-01 02:33:21,480 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:33:21,487 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:33:21,499 - DEBUG - Requesting: http://10.0.0.27:8082/project/5674e72e-0933-4294-87cc-46ee5558dba2 2025-12-01 02:33:21,601 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/37a32137-2e22-416f-99ed-cbcaa14dbd5a 2025-12-01 02:33:21,614 - DEBUG - ==>Verifying data for policy with id: 8ee56097-aeba-482b-8dab-048f06957b93, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-11234802', 'ctest-policy1-27862560'] 2025-12-01 02:33:21,614 - INFO - VN ctest-vn4-62003577 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-01 02:33:21,614 - DEBUG - Verifying the vn in opserver 2025-12-01 02:33:21,614 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577 virtual network link through opserver 10.0.0.27 2025-12-01 02:33:21,614 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-01 02:33:21,958 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-01 02:33:22,029 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577?flat'} 2025-12-01 02:33:22,029 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577 virtual network link through opserver 10.0.0.33 2025-12-01 02:33:22,030 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-01 02:33:22,385 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-01 02:33:22,462 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577?flat'} 2025-12-01 02:33:22,462 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577 virtual network link through opserver 10.0.0.23 2025-12-01 02:33:22,462 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-01 02:33:22,821 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-01 02:33:22,892 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577?flat'} 2025-12-01 02:33:22,892 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-11234802:ctest-vn4-62003577 is found in opserver 2025-12-01 02:33:22,915 - DEBUG - Do not have enough data to verify VN in agent 2025-12-01 02:33:22,925 - DEBUG - VRF ids for VN ctest-vn4-62003577: {} 2025-12-01 02:33:22,925 - DEBUG - ====Verifying data for ctest-policy1-27862560 in API_Server ====== 2025-12-01 02:33:22,925 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:33:22,931 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:33:22,945 - DEBUG - Requesting: http://10.0.0.27:8082/project/5674e72e-0933-4294-87cc-46ee5558dba2 2025-12-01 02:33:23,045 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/8ee56097-aeba-482b-8dab-048f06957b93 2025-12-01 02:33:23,056 - INFO - Verified policy ctest-policy1-27862560 in API Server, Result: True 2025-12-01 02:33:23,057 - INFO - Done with setup and verification, moving onto test .. 2025-12-01 02:33:23,071 - INFO - Deleting VN ctest-vn4-62003577 2025-12-01 02:33:23,328 - DEBUG - Response for deleting network () 2025-12-01 02:33:23,328 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/ee5b1858-1f1b-420b-9d78-9492b9767980 2025-12-01 02:33:23,336 - DEBUG - Response Code: 404 2025-12-01 02:33:23,337 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-01 02:33:23,343 - DEBUG - Requesting: http://10.0.0.27:8082/domain/a276f104-9d2c-4383-87cf-b8e3164113c5 2025-12-01 02:33:23,405 - DEBUG - Requesting: http://10.0.0.27:8082/project/5674e72e-0933-4294-87cc-46ee5558dba2 2025-12-01 02:33:23,512 - INFO - Validated that VN ctest-vn4-62003577 is not found in API Server 2025-12-01 02:33:23,524 - DEBUG - VN ctest-vn4-62003577 is not present in Agent 10.0.0.22 2025-12-01 02:33:23,536 - DEBUG - VN ctest-vn4-62003577 is not present in Agent 10.0.0.241 2025-12-01 02:33:23,536 - INFO - Validated that VN ctest-vn4-62003577 is not in any agent 2025-12-01 02:33:23,574 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62003577 info 2025-12-01 02:33:23,623 - INFO - Deleted policy ctest-policy1-27862560 2025-12-01 02:33:23,817 - DEBUG - policy ctest-policy1-27862560 is not found in API Server 2025-12-01 02:33:25,083 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 02:33:25,084 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08] 2025-12-01 02:33:25,084 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:33:26,389 - DEBUG - No XMPP flaps were noticed during the test 2025-12-01 02:33:26,389 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-12-01 02:33:26,389 - INFO - -------------------------------------------------------------------------------- 2025-12-01 02:33:27,192 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-11234802, ID : 5674e72e-0933-4294-87cc-46ee5558dba2