2025-09-03 16:10:19,010 - INFO - Domain Default found not creating 2025-09-03 16:10:19,145 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-46453886 not found, creating it 2025-09-03 16:10:19,570 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-46453886, ID : 50ef0df4-fbef-456a-bcc7-a08ea329bc07 2025-09-03 16:10:20,942 - INFO - ================================================================================ 2025-09-03 16:10:20,942 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-03 16:10:21,196 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-09-03 16:10:21,196 - INFO - Initial checks done. Running the testcase now 2025-09-03 16:10:21,197 - INFO - 2025-09-03 16:10:21,197 - INFO - ================================================================================ 2025-09-03 16:10:21,197 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-03 16:10:21,197 - 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-09-03 16:10:21,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.130': {'10.20.0.17': '0'}} with 2025-09-03 16:10:21,484 - INFO - Initial checks done. Running the testcase now 2025-09-03 16:10:21,484 - INFO - 2025-09-03 16:10:21,821 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091, 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-46453886:ctest-vn4-87022091, 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-46453886:ctest-vn4-87022091, 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-46453886:ctest-vn4-87022091, 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-09-03 16:10:22,309 - DEBUG - Response for create_network : {'network': {'id': '6f8c7b4e-67fe-4b09-b6c2-73a008026ac0', 'name': 'ctest-vn4-87022091', 'tenant_id': '50ef0df4fbef456abcc7a08ea329bc07', 'project_id': '50ef0df4fbef456abcc7a08ea329bc07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46453886', 'ctest-vn4-87022091'], 'port_security_enabled': True, 'description': ''}} 2025-09-03 16:10:22,488 - DEBUG - Response for create_subnet : {'subnet': {'id': '892fc22d-ae99-4f80-8ec4-fcba3aa15afd', 'name': '', 'tenant_id': '50ef0df4fbef456abcc7a08ea329bc07', 'network_id': '6f8c7b4e-67fe-4b09-b6c2-73a008026ac0', 'ip_version': 4, 'cidr': '78.110.138.192/26', 'allocation_pools': [{'start': '78.110.138.194', 'end': '78.110.138.254'}], 'gateway_ip': '78.110.138.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '78.110.138.194', 'tags': [], 'project_id': '50ef0df4fbef456abcc7a08ea329bc07'}} 2025-09-03 16:10:22,666 - DEBUG - Response for create_subnet : {'subnet': {'id': 'af2c8191-382e-4f98-8633-7588413010bf', 'name': '', 'tenant_id': '50ef0df4fbef456abcc7a08ea329bc07', 'network_id': '6f8c7b4e-67fe-4b09-b6c2-73a008026ac0', 'ip_version': 6, 'cidr': '28a5:a8d3:7087:25c9:b8eb:7f8a::/96', 'allocation_pools': [{'start': '28a5:a8d3:7087:25c9:b8eb:7f8a:0:2', 'end': '28a5:a8d3:7087:25c9:b8eb:7f8a:ffff:fffe'}], 'gateway_ip': '28a5:a8d3:7087:25c9:b8eb:7f8a:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28a5:a8d3:7087:25c9:b8eb:7f8a:0:2', 'tags': [], 'project_id': '50ef0df4fbef456abcc7a08ea329bc07'}} 2025-09-03 16:10:22,687 - INFO - Created VN ctest-vn4-87022091 2025-09-03 16:10:22,736 - DEBUG - VN ctest-vn4-87022091 UUID is 6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:22,942 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6f8c7b4e-67fe-4b09-b6c2-73a008026ac0', 'name': 'ctest-vn4-87022091', 'tenant_id': '50ef0df4fbef456abcc7a08ea329bc07', 'project_id': '50ef0df4fbef456abcc7a08ea329bc07', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['892fc22d-ae99-4f80-8ec4-fcba3aa15afd', 'af2c8191-382e-4f98-8633-7588413010bf'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46453886', 'ctest-vn4-87022091'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46453886', 'ctest-policy1-64822061']], 'subnet_ipam': [{'subnet_cidr': '78.110.138.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28a5:a8d3:7087:25c9:b8eb:7f8a::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-03 16:10:23,104 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-03 16:10:23,391 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-03 16:10:23,415 - DEBUG - Requesting: http://10.0.0.130:8082/domain/380b2609-74ae-49b8-a437-9d24fa756255 2025-09-03 16:10:23,426 - DEBUG - Requesting: http://10.0.0.130:8082/project/50ef0df4-fbef-456a-bcc7-a08ea329bc07 2025-09-03 16:10:23,494 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,504 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,512 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:23,517 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:23,523 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a31891f2-97bb-4dbe-b5e4-93ee2ff035bc 2025-09-03 16:10:23,527 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 16:10:23,527 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,535 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:23,545 - INFO - Verified VN network id 12 for VN 6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,545 - INFO - Verifications in API Server for VN ctest-vn4-87022091 passed 2025-09-03 16:10:23,546 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,553 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:23,558 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:23,564 - DEBUG - Requesting: http://10.0.0.130:8082/route-target/a31891f2-97bb-4dbe-b5e4-93ee2ff035bc 2025-09-03 16:10:23,573 - DEBUG - Control-node 10.0.0.130 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-46453886', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8037935011631876873', 'uuid-lslong': '13169215391551089344'}, 'enable': 'true', 'created': '2025-09-03T16:10:22', 'last-modified': '2025-09-03T16:10:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.658077'} 2025-09-03 16:10:23,578 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-03 16:10:23,578 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-87022091 passed 2025-09-03 16:10:23,578 - DEBUG - ====Verifying policy data for ctest-vn4-87022091 in API_Server ====== 2025-09-03 16:10:23,578 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-03 16:10:23,582 - DEBUG - Requesting: http://10.0.0.130:8082/domain/380b2609-74ae-49b8-a437-9d24fa756255 2025-09-03 16:10:23,591 - DEBUG - Requesting: http://10.0.0.130:8082/project/50ef0df4-fbef-456a-bcc7-a08ea329bc07 2025-09-03 16:10:23,663 - DEBUG - Requesting: http://10.0.0.130:8082/virtual-network/6f8c7b4e-67fe-4b09-b6c2-73a008026ac0 2025-09-03 16:10:23,671 - DEBUG - ==>Verifying data for policy with id: 9569ec30-6653-458d-a52f-3d634f3b08cc, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-46453886', 'ctest-policy1-64822061'] 2025-09-03 16:10:23,672 - INFO - VN ctest-vn4-87022091 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-03 16:10:23,672 - DEBUG - Verifying the vn in opserver 2025-09-03 16:10:23,672 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091 virtual network link through opserver 10.0.0.130 2025-09-03 16:10:23,672 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-09-03 16:10:23,959 - DEBUG - Requesting: http://10.0.0.130:8081/analytics/uves/virtual-networks 2025-09-03 16:10:24,006 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091', 'href': 'http://10.0.0.130:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091?flat'} 2025-09-03 16:10:24,007 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-46453886:ctest-vn4-87022091 is found in opserver 2025-09-03 16:10:24,016 - DEBUG - Do not have enough data to verify VN in agent 2025-09-03 16:10:24,020 - DEBUG - VRF ids for VN ctest-vn4-87022091: {} 2025-09-03 16:10:24,021 - DEBUG - ====Verifying data for ctest-policy1-64822061 in API_Server ====== 2025-09-03 16:10:24,021 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-03 16:10:24,026 - DEBUG - Requesting: http://10.0.0.130:8082/domain/380b2609-74ae-49b8-a437-9d24fa756255 2025-09-03 16:10:24,037 - DEBUG - Requesting: http://10.0.0.130:8082/project/50ef0df4-fbef-456a-bcc7-a08ea329bc07 2025-09-03 16:10:24,104 - DEBUG - Requesting: http://10.0.0.130:8082/network-policy/9569ec30-6653-458d-a52f-3d634f3b08cc 2025-09-03 16:10:24,114 - INFO - Verified policy ctest-policy1-64822061 in API Server, Result: True 2025-09-03 16:10:24,114 - INFO - Done with setup and verification, moving onto test .. 2025-09-03 16:10:24,121 - INFO - Deleting VN ctest-vn4-87022091 2025-09-03 16:10:24,234 - DEBUG - Response for deleting network () 2025-09-03 16:10:24,234 - DEBUG - Requesting: http://10.0.0.130:8082/routing-instance/87eaa81b-b07d-4cab-b70a-3f157bb0e8cb 2025-09-03 16:10:24,238 - DEBUG - Response Code: 404 2025-09-03 16:10:24,238 - DEBUG - Requesting: http://10.0.0.130:8082/domains 2025-09-03 16:10:24,306 - DEBUG - Requesting: http://10.0.0.130:8082/domain/380b2609-74ae-49b8-a437-9d24fa756255 2025-09-03 16:10:24,316 - DEBUG - Requesting: http://10.0.0.130:8082/project/50ef0df4-fbef-456a-bcc7-a08ea329bc07 2025-09-03 16:10:24,388 - INFO - Validated that VN ctest-vn4-87022091 is not found in API Server 2025-09-03 16:10:24,398 - DEBUG - VN ctest-vn4-87022091 is not present in Agent 10.0.0.130 2025-09-03 16:10:24,398 - INFO - Validated that VN ctest-vn4-87022091 is not in any agent 2025-09-03 16:10:24,413 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-87022091 info 2025-09-03 16:10:24,440 - INFO - Deleted policy ctest-policy1-64822061 2025-09-03 16:10:24,607 - DEBUG - policy ctest-policy1-64822061 is not found in API Server 2025-09-03 16:10:24,861 - DEBUG - No XMPP flaps were noticed during the test
2025-09-03 16:10:24,861 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-03 16:10:24,861 - INFO - -------------------------------------------------------------------------------- 2025-09-03 16:10:25,149 - DEBUG - No XMPP flaps were noticed during the test
2025-09-03 16:10:25,150 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-03 16:10:25,150 - INFO - -------------------------------------------------------------------------------- 2025-09-03 16:10:25,792 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-46453886, ID : 50ef0df4-fbef-456a-bcc7-a08ea329bc07