2025-11-05 17:10:32,658 - INFO - Domain Default found not creating 2025-11-05 17:10:32,832 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-71017107 not found, creating it 2025-11-05 17:10:33,296 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-71017107, ID : b5f296fb-6bef-4e15-a8f8-e8b988bdd999 2025-11-05 17:10:34,696 - INFO - ================================================================================ 2025-11-05 17:10:34,696 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 17:10:34,949 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2025-11-05 17:10:34,949 - INFO - Initial checks done. Running the testcase now 2025-11-05 17:10:34,950 - INFO - 2025-11-05 17:10:34,950 - INFO - ================================================================================ 2025-11-05 17:10:34,950 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-11-05 17:10:34,950 - 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-11-05 17:10:35,245 - DEBUG - Nothing to compare xmpp stats {'10.0.0.242': {'10.20.0.192': '0'}} with 2025-11-05 17:10:35,245 - INFO - Initial checks done. Running the testcase now 2025-11-05 17:10:35,245 - INFO - 2025-11-05 17:10:35,587 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144, 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-71017107:ctest-vn4-09427144, 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-71017107:ctest-vn4-09427144, 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-71017107:ctest-vn4-09427144, 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-11-05 17:10:36,079 - DEBUG - Response for create_network : {'network': {'id': 'a49b0604-a3b1-434e-becc-550b4ebf92f8', 'name': 'ctest-vn4-09427144', 'tenant_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'project_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71017107', 'ctest-vn4-09427144'], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:10:36,258 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da8c0c67-e200-4874-9470-509b90cc083a', 'name': '', 'tenant_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'network_id': 'a49b0604-a3b1-434e-becc-550b4ebf92f8', 'ip_version': 4, 'cidr': '23.129.39.192/26', 'allocation_pools': [{'start': '23.129.39.194', 'end': '23.129.39.254'}], 'gateway_ip': '23.129.39.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.129.39.194', 'tags': [], 'project_id': 'b5f296fb6bef4e15a8f8e8b988bdd999'}} 2025-11-05 17:10:36,459 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f793fa8a-4052-4fb8-95ea-52eaafcc9b8d', 'name': '', 'tenant_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'network_id': 'a49b0604-a3b1-434e-becc-550b4ebf92f8', 'ip_version': 6, 'cidr': '28a3:c564:b793:d0f5:c864:64f1::/96', 'allocation_pools': [{'start': '28a3:c564:b793:d0f5:c864:64f1:0:2', 'end': '28a3:c564:b793:d0f5:c864:64f1:ffff:fffe'}], 'gateway_ip': '28a3:c564:b793:d0f5:c864:64f1:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28a3:c564:b793:d0f5:c864:64f1:0:2', 'tags': [], 'project_id': 'b5f296fb6bef4e15a8f8e8b988bdd999'}} 2025-11-05 17:10:36,479 - INFO - Created VN ctest-vn4-09427144 2025-11-05 17:10:36,532 - DEBUG - VN ctest-vn4-09427144 UUID is a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:36,726 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a49b0604-a3b1-434e-becc-550b4ebf92f8', 'name': 'ctest-vn4-09427144', 'tenant_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'project_id': 'b5f296fb6bef4e15a8f8e8b988bdd999', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da8c0c67-e200-4874-9470-509b90cc083a', 'f793fa8a-4052-4fb8-95ea-52eaafcc9b8d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71017107', 'ctest-vn4-09427144'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71017107', 'ctest-policy1-43165437']], 'subnet_ipam': [{'subnet_cidr': '23.129.39.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '28a3:c564:b793:d0f5:c864:64f1::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-11-05 17:10:36,888 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-05 17:10:37,192 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-05 17:10:37,217 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998 2025-11-05 17:10:37,229 - DEBUG - Requesting: http://10.0.0.242:8082/project/b5f296fb-6bef-4e15-a8f8-e8b988bdd999 2025-11-05 17:10:37,300 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,312 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,321 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:37,328 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:37,335 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e7b679ac-6fc3-41ee-9ae3-8decb22573a9 2025-11-05 17:10:37,341 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:10:37,341 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,349 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:37,361 - INFO - Verified VN network id 11 for VN a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,361 - INFO - Verifications in API Server for VN ctest-vn4-09427144 passed 2025-11-05 17:10:37,361 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,369 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:37,375 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:37,381 - DEBUG - Requesting: http://10.0.0.242:8082/route-target/e7b679ac-6fc3-41ee-9ae3-8decb22573a9 2025-11-05 17:10:37,391 - DEBUG - Control-node 10.0.0.242 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-71017107', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11861080660606272334', 'uuid-lslong': '13748457269509460728'}, 'enable': 'true', 'created': '2025-11-05T17:10:36', 'last-modified': '2025-11-05T17:10:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.688357'} 2025-11-05 17:10:37,398 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-11-05 17:10:37,398 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-09427144 passed 2025-11-05 17:10:37,398 - DEBUG - ====Verifying policy data for ctest-vn4-09427144 in API_Server ====== 2025-11-05 17:10:37,398 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-05 17:10:37,403 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998 2025-11-05 17:10:37,413 - DEBUG - Requesting: http://10.0.0.242:8082/project/b5f296fb-6bef-4e15-a8f8-e8b988bdd999 2025-11-05 17:10:37,479 - DEBUG - Requesting: http://10.0.0.242:8082/virtual-network/a49b0604-a3b1-434e-becc-550b4ebf92f8 2025-11-05 17:10:37,488 - DEBUG - ==>Verifying data for policy with id: 514ad04a-6e37-4510-928c-ecab3284dd3a, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-71017107', 'ctest-policy1-43165437'] 2025-11-05 17:10:37,488 - INFO - VN ctest-vn4-09427144 Policy verification: verify_vn_policy_in_api_server, status: True 2025-11-05 17:10:37,488 - DEBUG - Verifying the vn in opserver 2025-11-05 17:10:37,488 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144 virtual network link through opserver 10.0.0.242 2025-11-05 17:10:37,488 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-05 17:10:37,781 - DEBUG - Requesting: http://10.0.0.242:8081/analytics/uves/virtual-networks 2025-11-05 17:10:37,833 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144', 'href': 'http://10.0.0.242:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144?flat'} 2025-11-05 17:10:37,833 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-71017107:ctest-vn4-09427144 is found in opserver 2025-11-05 17:10:37,843 - DEBUG - Do not have enough data to verify VN in agent 2025-11-05 17:10:37,847 - DEBUG - VRF ids for VN ctest-vn4-09427144: {} 2025-11-05 17:10:37,848 - DEBUG - ====Verifying data for ctest-policy1-43165437 in API_Server ====== 2025-11-05 17:10:37,848 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-05 17:10:37,854 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998 2025-11-05 17:10:37,866 - DEBUG - Requesting: http://10.0.0.242:8082/project/b5f296fb-6bef-4e15-a8f8-e8b988bdd999 2025-11-05 17:10:37,943 - DEBUG - Requesting: http://10.0.0.242:8082/network-policy/514ad04a-6e37-4510-928c-ecab3284dd3a 2025-11-05 17:10:37,952 - INFO - Verified policy ctest-policy1-43165437 in API Server, Result: True 2025-11-05 17:10:37,952 - INFO - Done with setup and verification, moving onto test .. 2025-11-05 17:10:37,959 - INFO - Deleting VN ctest-vn4-09427144 2025-11-05 17:10:38,062 - DEBUG - Response for deleting network () 2025-11-05 17:10:38,062 - DEBUG - Requesting: http://10.0.0.242:8082/routing-instance/264cff68-853a-403b-b63c-24eaea783516 2025-11-05 17:10:38,072 - DEBUG - Response Code: 404 2025-11-05 17:10:38,072 - DEBUG - Requesting: http://10.0.0.242:8082/domains 2025-11-05 17:10:38,077 - DEBUG - Requesting: http://10.0.0.242:8082/domain/f949f6e3-268e-4fd4-a19d-51f2e7b15998 2025-11-05 17:10:38,128 - DEBUG - Requesting: http://10.0.0.242:8082/project/b5f296fb-6bef-4e15-a8f8-e8b988bdd999 2025-11-05 17:10:38,195 - INFO - Validated that VN ctest-vn4-09427144 is not found in API Server 2025-11-05 17:10:38,204 - DEBUG - VN ctest-vn4-09427144 is not present in Agent 10.0.0.242 2025-11-05 17:10:38,204 - INFO - Validated that VN ctest-vn4-09427144 is not in any agent 2025-11-05 17:10:38,218 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-09427144 info 2025-11-05 17:10:38,240 - INFO - Deleted policy ctest-policy1-43165437 2025-11-05 17:10:38,404 - DEBUG - policy ctest-policy1-43165437 is not found in API Server 2025-11-05 17:10:38,656 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 17:10:38,657 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-05 17:10:38,657 - INFO - -------------------------------------------------------------------------------- 2025-11-05 17:10:38,945 - DEBUG - No XMPP flaps were noticed during the test
2025-11-05 17:10:38,945 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-11-05 17:10:38,945 - INFO - -------------------------------------------------------------------------------- 2025-11-05 17:10:39,613 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-71017107, ID : b5f296fb-6bef-4e15-a8f8-e8b988bdd999