2025-10-23 02:06:07,124 - INFO - Domain Default found not creating 2025-10-23 02:06:07,266 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-33004849 not found, creating it 2025-10-23 02:06:07,707 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-33004849, ID : 8ebddf6e-cec5-4b59-a17c-7f197faccfd7 2025-10-23 02:06:09,229 - INFO - ================================================================================ 2025-10-23 02:06:09,229 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 02:06:09,484 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.249': '0'}} with 2025-10-23 02:06:09,484 - INFO - Initial checks done. Running the testcase now 2025-10-23 02:06:09,484 - INFO - 2025-10-23 02:06:09,484 - INFO - ================================================================================ 2025-10-23 02:06:09,484 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-23 02:06:09,484 - 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-10-23 02:06:09,771 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.249': '0'}} with 2025-10-23 02:06:09,771 - INFO - Initial checks done. Running the testcase now 2025-10-23 02:06:09,771 - INFO - 2025-10-23 02:06:10,157 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740, 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-33004849:ctest-vn4-05823740, 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-33004849:ctest-vn4-05823740, 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-33004849:ctest-vn4-05823740, 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-10-23 02:06:10,653 - DEBUG - Response for create_network : {'network': {'id': '1734cf56-3eb1-462c-b32f-279c0e0c75c4', 'name': 'ctest-vn4-05823740', 'tenant_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'project_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33004849', 'ctest-vn4-05823740'], 'port_security_enabled': True, 'description': ''}} 2025-10-23 02:06:10,868 - DEBUG - Response for create_subnet : {'subnet': {'id': 'cc832384-d9c5-4004-b767-62a4b2e516b2', 'name': '', 'tenant_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'network_id': '1734cf56-3eb1-462c-b32f-279c0e0c75c4', 'ip_version': 4, 'cidr': '195.135.60.128/26', 'allocation_pools': [{'start': '195.135.60.130', 'end': '195.135.60.190'}], 'gateway_ip': '195.135.60.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.135.60.130', 'tags': [], 'project_id': '8ebddf6ecec54b59a17c7f197faccfd7'}} 2025-10-23 02:06:11,045 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dc9e22fa-c7ad-48e5-8a7e-40b4dded93ca', 'name': '', 'tenant_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'network_id': '1734cf56-3eb1-462c-b32f-279c0e0c75c4', 'ip_version': 6, 'cidr': '2fba:ad39:aac3:8aba:ce79:a0b3::/96', 'allocation_pools': [{'start': '2fba:ad39:aac3:8aba:ce79:a0b3:0:2', 'end': '2fba:ad39:aac3:8aba:ce79:a0b3:ffff:fffe'}], 'gateway_ip': '2fba:ad39:aac3:8aba:ce79:a0b3:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fba:ad39:aac3:8aba:ce79:a0b3:0:2', 'tags': [], 'project_id': '8ebddf6ecec54b59a17c7f197faccfd7'}} 2025-10-23 02:06:11,068 - INFO - Created VN ctest-vn4-05823740 2025-10-23 02:06:11,118 - DEBUG - VN ctest-vn4-05823740 UUID is 1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:11,333 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1734cf56-3eb1-462c-b32f-279c0e0c75c4', 'name': 'ctest-vn4-05823740', 'tenant_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'project_id': '8ebddf6ecec54b59a17c7f197faccfd7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['cc832384-d9c5-4004-b767-62a4b2e516b2', 'dc9e22fa-c7ad-48e5-8a7e-40b4dded93ca'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33004849', 'ctest-vn4-05823740'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33004849', 'ctest-policy1-41897676']], 'subnet_ipam': [{'subnet_cidr': '195.135.60.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fba:ad39:aac3:8aba:ce79:a0b3::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-23 02:06:11,546 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-23 02:06:11,881 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-23 02:06:11,908 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2e283574-867c-482d-913f-5e0415a1ddc2 2025-10-23 02:06:11,919 - DEBUG - Requesting: http://10.0.0.65:8082/project/8ebddf6e-cec5-4b59-a17c-7f197faccfd7 2025-10-23 02:06:11,991 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,003 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,012 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,019 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,025 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/304b6a06-3b48-4ec4-a6b0-15478138a824 2025-10-23 02:06:12,032 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 02:06:12,032 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,041 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,058 - INFO - Verified VN network id 11 for VN 1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,058 - INFO - Verifications in API Server for VN ctest-vn4-05823740 passed 2025-10-23 02:06:12,058 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,082 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,101 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,108 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/304b6a06-3b48-4ec4-a6b0-15478138a824 2025-10-23 02:06:12,119 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-33004849', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1672189330987238956', 'uuid-lslong': '12911582207898580420'}, 'enable': 'true', 'created': '2025-10-23T02:06:10', 'last-modified': '2025-10-23T02:06:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.816692'} 2025-10-23 02:06:12,125 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-23 02:06:12,125 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-05823740 passed 2025-10-23 02:06:12,125 - DEBUG - ====Verifying policy data for ctest-vn4-05823740 in API_Server ====== 2025-10-23 02:06:12,125 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-23 02:06:12,130 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2e283574-867c-482d-913f-5e0415a1ddc2 2025-10-23 02:06:12,141 - DEBUG - Requesting: http://10.0.0.65:8082/project/8ebddf6e-cec5-4b59-a17c-7f197faccfd7 2025-10-23 02:06:12,216 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/1734cf56-3eb1-462c-b32f-279c0e0c75c4 2025-10-23 02:06:12,226 - DEBUG - ==>Verifying data for policy with id: 43e4e7aa-47a4-4b12-97f8-d2080cbf7395, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-33004849', 'ctest-policy1-41897676'] 2025-10-23 02:06:12,226 - INFO - VN ctest-vn4-05823740 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-23 02:06:12,226 - DEBUG - Verifying the vn in opserver 2025-10-23 02:06:12,226 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740 virtual network link through opserver 10.0.0.65 2025-10-23 02:06:12,226 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-23 02:06:12,559 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks 2025-10-23 02:06:12,613 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740?flat'} 2025-10-23 02:06:12,613 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-33004849:ctest-vn4-05823740 is found in opserver 2025-10-23 02:06:12,622 - DEBUG - Do not have enough data to verify VN in agent 2025-10-23 02:06:12,627 - DEBUG - VRF ids for VN ctest-vn4-05823740: {} 2025-10-23 02:06:12,627 - DEBUG - ====Verifying data for ctest-policy1-41897676 in API_Server ====== 2025-10-23 02:06:12,627 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-23 02:06:12,632 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2e283574-867c-482d-913f-5e0415a1ddc2 2025-10-23 02:06:12,643 - DEBUG - Requesting: http://10.0.0.65:8082/project/8ebddf6e-cec5-4b59-a17c-7f197faccfd7 2025-10-23 02:06:12,711 - DEBUG - Requesting: http://10.0.0.65:8082/network-policy/43e4e7aa-47a4-4b12-97f8-d2080cbf7395 2025-10-23 02:06:12,720 - INFO - Verified policy ctest-policy1-41897676 in API Server, Result: True 2025-10-23 02:06:12,720 - INFO - Done with setup and verification, moving onto test .. 2025-10-23 02:06:12,728 - INFO - Deleting VN ctest-vn4-05823740 2025-10-23 02:06:12,839 - DEBUG - Response for deleting network () 2025-10-23 02:06:12,839 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/d4ac9d57-84c2-4229-b366-5772c3a3c956 2025-10-23 02:06:12,844 - DEBUG - Response Code: 404 2025-10-23 02:06:12,844 - DEBUG - Requesting: http://10.0.0.65:8082/domains 2025-10-23 02:06:12,849 - DEBUG - Requesting: http://10.0.0.65:8082/domain/2e283574-867c-482d-913f-5e0415a1ddc2 2025-10-23 02:06:12,902 - DEBUG - Requesting: http://10.0.0.65:8082/project/8ebddf6e-cec5-4b59-a17c-7f197faccfd7 2025-10-23 02:06:12,972 - INFO - Validated that VN ctest-vn4-05823740 is not found in API Server 2025-10-23 02:06:12,980 - DEBUG - VN ctest-vn4-05823740 is not present in Agent 10.0.0.65 2025-10-23 02:06:12,980 - INFO - Validated that VN ctest-vn4-05823740 is not in any agent 2025-10-23 02:06:12,993 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-05823740 info 2025-10-23 02:06:13,015 - INFO - Deleted policy ctest-policy1-41897676 2025-10-23 02:06:13,178 - DEBUG - policy ctest-policy1-41897676 is not found in API Server 2025-10-23 02:06:13,431 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 02:06:13,431 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 02:06:13,431 - INFO - -------------------------------------------------------------------------------- 2025-10-23 02:06:13,722 - DEBUG - No XMPP flaps were noticed during the test
2025-10-23 02:06:13,722 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-23 02:06:13,722 - INFO - -------------------------------------------------------------------------------- 2025-10-23 02:06:14,428 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-33004849, ID : 8ebddf6e-cec5-4b59-a17c-7f197faccfd7