2025-08-18 02:30:26,540 - INFO - Domain Default found not creating 2025-08-18 02:30:26,677 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-26305253 not found, creating it 2025-08-18 02:30:27,155 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-26305253, ID : ac29e4c3-0cb3-4969-af02-608220ac3c1d 2025-08-18 02:30:28,526 - INFO - ================================================================================ 2025-08-18 02:30:28,526 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:30:29,794 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-18 02:30:29,794 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:30:29,794 - INFO - 2025-08-18 02:30:29,794 - INFO - ================================================================================ 2025-08-18 02:30:29,794 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-08-18 02:30:29,794 - 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-08-18 02:30:31,066 - DEBUG - Nothing to compare xmpp stats {'10.0.0.241': {'10.20.0.129': '0', '10.20.0.25': '0'}, '10.0.0.41': {'10.20.0.129': '0', '10.20.0.25': '0'}} with 2025-08-18 02:30:31,066 - INFO - Initial checks done. Running the testcase now 2025-08-18 02:30:31,066 - INFO - 2025-08-18 02:30:31,415 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496, 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-26305253:ctest-vn4-48617496, 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-26305253:ctest-vn4-48617496, 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-26305253:ctest-vn4-48617496, 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-08-18 02:30:32,062 - DEBUG - Response for create_network : {'network': {'id': 'e182ccd9-0cac-4a4e-af85-0814dfeb3cf4', 'name': 'ctest-vn4-48617496', 'tenant_id': 'ac29e4c30cb34969af02608220ac3c1d', 'project_id': 'ac29e4c30cb34969af02608220ac3c1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'ctest-vn4-48617496'], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:30:32,340 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aaabd8ad-74a9-468e-b6eb-f74dbb89dd78', 'name': '', 'tenant_id': 'ac29e4c30cb34969af02608220ac3c1d', 'network_id': 'e182ccd9-0cac-4a4e-af85-0814dfeb3cf4', 'ip_version': 4, 'cidr': '70.69.75.128/26', 'allocation_pools': [{'start': '70.69.75.130', 'end': '70.69.75.190'}], 'gateway_ip': '70.69.75.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '70.69.75.130', 'tags': [], 'project_id': 'ac29e4c30cb34969af02608220ac3c1d'}} 2025-08-18 02:30:32,601 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8375574-0873-40b3-8501-cb25693e1480', 'name': '', 'tenant_id': 'ac29e4c30cb34969af02608220ac3c1d', 'network_id': 'e182ccd9-0cac-4a4e-af85-0814dfeb3cf4', 'ip_version': 6, 'cidr': '3665:1a1a:edc2:ca14:8c44:b101::/96', 'allocation_pools': [{'start': '3665:1a1a:edc2:ca14:8c44:b101:0:2', 'end': '3665:1a1a:edc2:ca14:8c44:b101:ffff:fffe'}], 'gateway_ip': '3665:1a1a:edc2:ca14:8c44:b101:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3665:1a1a:edc2:ca14:8c44:b101:0:2', 'tags': [], 'project_id': 'ac29e4c30cb34969af02608220ac3c1d'}} 2025-08-18 02:30:32,624 - INFO - Created VN ctest-vn4-48617496 2025-08-18 02:30:32,638 - DEBUG - VN ctest-vn4-48617496 UUID is e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:32,846 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e182ccd9-0cac-4a4e-af85-0814dfeb3cf4', 'name': 'ctest-vn4-48617496', 'tenant_id': 'ac29e4c30cb34969af02608220ac3c1d', 'project_id': 'ac29e4c30cb34969af02608220ac3c1d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aaabd8ad-74a9-468e-b6eb-f74dbb89dd78', 'd8375574-0873-40b3-8501-cb25693e1480'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'ctest-vn4-48617496'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'ctest-policy1-83909188']], 'subnet_ipam': [{'subnet_cidr': '70.69.75.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3665:1a1a:edc2:ca14:8c44:b101::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-08-18 02:30:32,948 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:30:33,249 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:30:33,273 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:30:33,287 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac29e4c3-0cb3-4969-af02-608220ac3c1d 2025-08-18 02:30:33,381 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,396 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,407 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:33,414 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:33,423 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/61e98cba-babd-421f-8600-2e53f1a60477 2025-08-18 02:30:33,431 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:30:33,431 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,441 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:33,462 - INFO - Verified VN network id 13 for VN e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,462 - INFO - Verifications in API Server for VN ctest-vn4-48617496 passed 2025-08-18 02:30:33,462 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,476 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:33,484 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:33,491 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/61e98cba-babd-421f-8600-2e53f1a60477 2025-08-18 02:30:33,504 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249775638098758222', 'uuid-lslong': '12647524014289009908'}, 'enable': 'true', 'created': '2025-08-18T02:30:32', 'last-modified': '2025-08-18T02:30:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.712929'} 2025-08-18 02:30:33,510 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:30:33,517 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249775638098758222', 'uuid-lslong': '12647524014289009908'}, 'enable': 'true', 'created': '2025-08-18T02:30:32', 'last-modified': '2025-08-18T02:30:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.724856'} 2025-08-18 02:30:33,524 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:30:33,530 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16249775638098758222', 'uuid-lslong': '12647524014289009908'}, 'enable': 'true', 'created': '2025-08-18T02:30:32', 'last-modified': '2025-08-18T02:30:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.745274'} 2025-08-18 02:30:33,536 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-08-18 02:30:33,537 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-48617496 passed 2025-08-18 02:30:33,537 - DEBUG - ====Verifying policy data for ctest-vn4-48617496 in API_Server ====== 2025-08-18 02:30:33,537 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:30:33,545 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:30:33,558 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac29e4c3-0cb3-4969-af02-608220ac3c1d 2025-08-18 02:30:33,652 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/e182ccd9-0cac-4a4e-af85-0814dfeb3cf4 2025-08-18 02:30:33,663 - DEBUG - ==>Verifying data for policy with id: 3108093c-8630-49a3-80d7-cd4e1b835474, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-26305253', 'ctest-policy1-83909188'] 2025-08-18 02:30:33,663 - INFO - VN ctest-vn4-48617496 Policy verification: verify_vn_policy_in_api_server, status: True 2025-08-18 02:30:33,663 - DEBUG - Verifying the vn in opserver 2025-08-18 02:30:33,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496 virtual network link through opserver 10.0.0.27 2025-08-18 02:30:33,664 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-18 02:30:33,952 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-08-18 02:30:34,003 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496?flat'} 2025-08-18 02:30:34,004 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496 virtual network link through opserver 10.0.0.38 2025-08-18 02:30:34,004 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-18 02:30:34,290 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-08-18 02:30:34,343 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496?flat'} 2025-08-18 02:30:34,343 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496 virtual network link through opserver 10.0.0.19 2025-08-18 02:30:34,343 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-18 02:30:34,635 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks 2025-08-18 02:30:34,688 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496?flat'} 2025-08-18 02:30:34,688 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-26305253:ctest-vn4-48617496 is found in opserver 2025-08-18 02:30:34,712 - DEBUG - Do not have enough data to verify VN in agent 2025-08-18 02:30:34,721 - DEBUG - VRF ids for VN ctest-vn4-48617496: {} 2025-08-18 02:30:34,722 - DEBUG - ====Verifying data for ctest-policy1-83909188 in API_Server ====== 2025-08-18 02:30:34,722 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:30:34,727 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:30:34,739 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac29e4c3-0cb3-4969-af02-608220ac3c1d 2025-08-18 02:30:34,829 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/3108093c-8630-49a3-80d7-cd4e1b835474 2025-08-18 02:30:34,845 - INFO - Verified policy ctest-policy1-83909188 in API Server, Result: True 2025-08-18 02:30:34,845 - INFO - Done with setup and verification, moving onto test .. 2025-08-18 02:30:34,858 - INFO - Deleting VN ctest-vn4-48617496 2025-08-18 02:30:35,046 - DEBUG - Response for deleting network () 2025-08-18 02:30:35,046 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/5c91b459-ef78-4a14-92b4-5c0be4eed019 2025-08-18 02:30:35,064 - DEBUG - Response Code: 404 2025-08-18 02:30:35,064 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-08-18 02:30:35,077 - DEBUG - Requesting: http://10.0.0.27:8082/domain/edf943fc-0622-4564-8821-4de9bd04e8a3 2025-08-18 02:30:35,101 - DEBUG - Requesting: http://10.0.0.27:8082/project/ac29e4c3-0cb3-4969-af02-608220ac3c1d 2025-08-18 02:30:35,200 - INFO - Validated that VN ctest-vn4-48617496 is not found in API Server 2025-08-18 02:30:35,210 - DEBUG - VN ctest-vn4-48617496 is not present in Agent 10.0.0.241 2025-08-18 02:30:35,221 - DEBUG - VN ctest-vn4-48617496 is not present in Agent 10.0.0.41 2025-08-18 02:30:35,221 - INFO - Validated that VN ctest-vn4-48617496 is not in any agent 2025-08-18 02:30:35,257 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-48617496 info 2025-08-18 02:30:35,305 - INFO - Deleted policy ctest-policy1-83909188 2025-08-18 02:30:35,510 - DEBUG - policy ctest-policy1-83909188 is not found in API Server 2025-08-18 02:30:36,775 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 02:30:36,775 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:07]
2025-08-18 02:30:36,775 - INFO - -------------------------------------------------------------------------------- 2025-08-18 02:30:38,053 - DEBUG - No XMPP flaps were noticed during the test
2025-08-18 02:30:38,053 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-08-18 02:30:38,054 - INFO - -------------------------------------------------------------------------------- 2025-08-18 02:30:38,767 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-26305253, ID : ac29e4c3-0cb3-4969-af02-608220ac3c1d