2025-07-24 03:34:39,764 - INFO - Domain Default found not creating 2025-07-24 03:34:39,937 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-62778645 not found, creating it 2025-07-24 03:34:40,510 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-62778645, ID : cab51264-51b1-4b68-96ac-793ce614be11 2025-07-24 03:34:42,155 - INFO - ================================================================================ 2025-07-24 03:34:42,155 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-24 03:34:43,439 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-07-24 03:34:43,439 - INFO - Initial checks done. Running the testcase now 2025-07-24 03:34:43,439 - INFO - 2025-07-24 03:34:43,439 - INFO - ================================================================================ 2025-07-24 03:34:43,439 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-24 03:34:43,439 - 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-24 03:34:44,741 - DEBUG - Nothing to compare xmpp stats {'10.0.0.57': {'10.20.0.17': '0', '10.20.0.129': '0'}, '10.0.0.23': {'10.20.0.129': '0', '10.20.0.17': '0'}} with 2025-07-24 03:34:44,742 - INFO - Initial checks done. Running the testcase now 2025-07-24 03:34:44,742 - INFO - 2025-07-24 03:34:45,108 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857, 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-62778645:ctest-vn4-15773857, 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-62778645:ctest-vn4-15773857, 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-62778645:ctest-vn4-15773857, 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-24 03:34:45,798 - DEBUG - Response for create_network : {'network': {'id': '4a3a2f2b-48b1-4f73-b37d-65e0edcd5655', 'name': 'ctest-vn4-15773857', 'tenant_id': 'cab5126451b14b6896ac793ce614be11', 'project_id': 'cab5126451b14b6896ac793ce614be11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'ctest-vn4-15773857'], 'port_security_enabled': True, 'description': ''}} 2025-07-24 03:34:46,075 - DEBUG - Response for create_subnet : {'subnet': {'id': '063ccb0e-93d7-43b0-ad81-99d09549de17', 'name': '', 'tenant_id': 'cab5126451b14b6896ac793ce614be11', 'network_id': '4a3a2f2b-48b1-4f73-b37d-65e0edcd5655', 'ip_version': 4, 'cidr': '149.162.245.128/26', 'allocation_pools': [{'start': '149.162.245.130', 'end': '149.162.245.190'}], 'gateway_ip': '149.162.245.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '149.162.245.130', 'tags': [], 'project_id': 'cab5126451b14b6896ac793ce614be11'}} 2025-07-24 03:34:46,298 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc8b831a-4752-4292-a7ec-8f13f207307b', 'name': '', 'tenant_id': 'cab5126451b14b6896ac793ce614be11', 'network_id': '4a3a2f2b-48b1-4f73-b37d-65e0edcd5655', 'ip_version': 6, 'cidr': '3b5c:fed9:fa3b:33f4:2626:fbf2::/96', 'allocation_pools': [{'start': '3b5c:fed9:fa3b:33f4:2626:fbf2:0:2', 'end': '3b5c:fed9:fa3b:33f4:2626:fbf2:ffff:fffe'}], 'gateway_ip': '3b5c:fed9:fa3b:33f4:2626:fbf2:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3b5c:fed9:fa3b:33f4:2626:fbf2:0:2', 'tags': [], 'project_id': 'cab5126451b14b6896ac793ce614be11'}} 2025-07-24 03:34:46,325 - INFO - Created VN ctest-vn4-15773857 2025-07-24 03:34:46,341 - DEBUG - VN ctest-vn4-15773857 UUID is 4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:46,575 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4a3a2f2b-48b1-4f73-b37d-65e0edcd5655', 'name': 'ctest-vn4-15773857', 'tenant_id': 'cab5126451b14b6896ac793ce614be11', 'project_id': 'cab5126451b14b6896ac793ce614be11', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['063ccb0e-93d7-43b0-ad81-99d09549de17', 'bc8b831a-4752-4292-a7ec-8f13f207307b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'ctest-vn4-15773857'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'ctest-policy1-20161483']], 'subnet_ipam': [{'subnet_cidr': '149.162.245.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3b5c:fed9:fa3b:33f4:2626:fbf2::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-24 03:34:46,709 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 03:34:47,016 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 03:34:47,050 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 03:34:47,069 - DEBUG - Requesting: http://10.0.0.19:8082/project/cab51264-51b1-4b68-96ac-793ce614be11 2025-07-24 03:34:47,178 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,192 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,206 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:47,215 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:47,224 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ea9ce9ca-da18-47e2-8d99-c1cd8d2bdc59 2025-07-24 03:34:47,232 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 03:34:47,232 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,246 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:47,266 - INFO - Verified VN network id 11 for VN 4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,266 - INFO - Verifications in API Server for VN ctest-vn4-15773857 passed 2025-07-24 03:34:47,266 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,281 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:47,292 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:47,302 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/ea9ce9ca-da18-47e2-8d99-c1cd8d2bdc59 2025-07-24 03:34:47,320 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5348639370405564275', 'uuid-lslong': '12933605721614669397'}, 'enable': 'true', 'created': '2025-07-24T03:34:45', 'last-modified': '2025-07-24T03:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.800605'} 2025-07-24 03:34:47,329 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 03:34:47,336 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5348639370405564275', 'uuid-lslong': '12933605721614669397'}, 'enable': 'true', 'created': '2025-07-24T03:34:45', 'last-modified': '2025-07-24T03:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.812212'} 2025-07-24 03:34:47,344 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 03:34:47,351 - DEBUG - Control-node 10.0.0.41 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5348639370405564275', 'uuid-lslong': '12933605721614669397'}, 'enable': 'true', 'created': '2025-07-24T03:34:45', 'last-modified': '2025-07-24T03:34:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.832747'} 2025-07-24 03:34:47,360 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-24 03:34:47,360 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-15773857 passed 2025-07-24 03:34:47,361 - DEBUG - ====Verifying policy data for ctest-vn4-15773857 in API_Server ====== 2025-07-24 03:34:47,361 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 03:34:47,369 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 03:34:47,383 - DEBUG - Requesting: http://10.0.0.19:8082/project/cab51264-51b1-4b68-96ac-793ce614be11 2025-07-24 03:34:47,500 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/4a3a2f2b-48b1-4f73-b37d-65e0edcd5655 2025-07-24 03:34:47,512 - DEBUG - ==>Verifying data for policy with id: 637ed315-872d-44f3-b532-78ad73101154, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-62778645', 'ctest-policy1-20161483'] 2025-07-24 03:34:47,512 - INFO - VN ctest-vn4-15773857 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-24 03:34:47,512 - DEBUG - Verifying the vn in opserver 2025-07-24 03:34:47,512 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857 virtual network link through opserver 10.0.0.19 2025-07-24 03:34:47,512 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-24 03:34:47,811 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-07-24 03:34:47,886 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857?flat'} 2025-07-24 03:34:47,886 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857 virtual network link through opserver 10.0.0.38 2025-07-24 03:34:47,886 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-24 03:34:48,201 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-24 03:34:48,284 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857?flat'} 2025-07-24 03:34:48,284 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857 virtual network link through opserver 10.0.0.41 2025-07-24 03:34:48,284 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-24 03:34:48,604 - DEBUG - Requesting: http://10.0.0.41:8081/analytics/uves/virtual-networks 2025-07-24 03:34:48,673 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857', 'href': 'http://10.0.0.41:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857?flat'} 2025-07-24 03:34:48,673 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-62778645:ctest-vn4-15773857 is found in opserver 2025-07-24 03:34:48,702 - DEBUG - Do not have enough data to verify VN in agent 2025-07-24 03:34:48,717 - DEBUG - VRF ids for VN ctest-vn4-15773857: {} 2025-07-24 03:34:48,718 - DEBUG - ====Verifying data for ctest-policy1-20161483 in API_Server ====== 2025-07-24 03:34:48,718 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 03:34:48,725 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 03:34:48,739 - DEBUG - Requesting: http://10.0.0.19:8082/project/cab51264-51b1-4b68-96ac-793ce614be11 2025-07-24 03:34:48,832 - DEBUG - Requesting: http://10.0.0.19:8082/network-policy/637ed315-872d-44f3-b532-78ad73101154 2025-07-24 03:34:48,858 - INFO - Verified policy ctest-policy1-20161483 in API Server, Result: True 2025-07-24 03:34:48,858 - INFO - Done with setup and verification, moving onto test .. 2025-07-24 03:34:48,877 - INFO - Deleting VN ctest-vn4-15773857 2025-07-24 03:34:49,131 - DEBUG - Response for deleting network () 2025-07-24 03:34:49,131 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/8986cbda-76d0-4259-82e5-7c669072c912 2025-07-24 03:34:49,148 - DEBUG - Response Code: 404 2025-07-24 03:34:49,148 - DEBUG - Requesting: http://10.0.0.19:8082/domains 2025-07-24 03:34:49,158 - DEBUG - Requesting: http://10.0.0.19:8082/domain/ef05d1d9-2fbc-48d4-8924-0cbd930e68f2 2025-07-24 03:34:49,179 - DEBUG - Requesting: http://10.0.0.19:8082/project/cab51264-51b1-4b68-96ac-793ce614be11 2025-07-24 03:34:49,278 - INFO - Validated that VN ctest-vn4-15773857 is not found in API Server 2025-07-24 03:34:49,294 - DEBUG - VN ctest-vn4-15773857 is not present in Agent 10.0.0.57 2025-07-24 03:34:49,310 - DEBUG - VN ctest-vn4-15773857 is not present in Agent 10.0.0.23 2025-07-24 03:34:49,310 - INFO - Validated that VN ctest-vn4-15773857 is not in any agent 2025-07-24 03:34:49,356 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-15773857 info 2025-07-24 03:34:49,412 - INFO - Deleted policy ctest-policy1-20161483 2025-07-24 03:34:49,612 - DEBUG - policy ctest-policy1-20161483 is not found in API Server 2025-07-24 03:34:50,920 - DEBUG - No XMPP flaps were noticed during the test 2025-07-24 03:34:50,920 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07] 2025-07-24 03:34:50,921 - INFO - -------------------------------------------------------------------------------- 2025-07-24 03:34:52,230 - DEBUG - No XMPP flaps were noticed during the test 2025-07-24 03:34:52,230 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10] 2025-07-24 03:34:52,231 - INFO - -------------------------------------------------------------------------------- 2025-07-24 03:34:53,017 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-62778645, ID : cab51264-51b1-4b68-96ac-793ce614be11