2025-12-25 02:49:40,419 - INFO - Domain Default found not creating 2025-12-25 02:49:40,611 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-20494114 not found, creating it 2025-12-25 02:49:41,285 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-20494114, ID : c9728f7a-59e8-46b1-be81-27a96073107e 2025-12-25 02:49:43,182 - INFO - ================================================================================ 2025-12-25 02:49:43,182 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:49:44,465 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.130': {'10.20.0.14': '0', '10.20.0.209': '0'}} with 2025-12-25 02:49:44,465 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:49:44,465 - INFO - 2025-12-25 02:49:44,465 - INFO - ================================================================================ 2025-12-25 02:49:44,465 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-12-25 02:49:44,466 - 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-12-25 02:49:45,765 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.18': '0', '10.20.0.14': '0'}, '10.0.0.130': {'10.20.0.14': '0', '10.20.0.209': '0'}} with 2025-12-25 02:49:45,765 - INFO - Initial checks done. Running the testcase now 2025-12-25 02:49:45,766 - INFO - 2025-12-25 02:49:46,210 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306, 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-20494114:ctest-vn4-77987306, 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-20494114:ctest-vn4-77987306, 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-20494114:ctest-vn4-77987306, 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-12-25 02:49:46,884 - DEBUG - Response for create_network : {'network': {'id': 'a125a9e6-27e4-4155-ad9a-da46e532d6bf', 'name': 'ctest-vn4-77987306', 'tenant_id': 'c9728f7a59e846b1be8127a96073107e', 'project_id': 'c9728f7a59e846b1be8127a96073107e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'ctest-vn4-77987306'], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:49:47,184 - DEBUG - Response for create_subnet : {'subnet': {'id': '9d22a795-22ec-4e8d-9f1c-f28aaf526536', 'name': '', 'tenant_id': 'c9728f7a59e846b1be8127a96073107e', 'network_id': 'a125a9e6-27e4-4155-ad9a-da46e532d6bf', 'ip_version': 4, 'cidr': '23.221.229.192/26', 'allocation_pools': [{'start': '23.221.229.194', 'end': '23.221.229.254'}], 'gateway_ip': '23.221.229.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '23.221.229.194', 'tags': [], 'project_id': 'c9728f7a59e846b1be8127a96073107e'}} 2025-12-25 02:49:47,409 - DEBUG - Response for create_subnet : {'subnet': {'id': '537f65c2-6f6e-497e-9dce-4b28a45f69b2', 'name': '', 'tenant_id': 'c9728f7a59e846b1be8127a96073107e', 'network_id': 'a125a9e6-27e4-4155-ad9a-da46e532d6bf', 'ip_version': 6, 'cidr': '2fe7:f54e:7415:695c:28be:da6::/96', 'allocation_pools': [{'start': '2fe7:f54e:7415:695c:28be:da6:0:2', 'end': '2fe7:f54e:7415:695c:28be:da6:ffff:fffe'}], 'gateway_ip': '2fe7:f54e:7415:695c:28be:da6:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2fe7:f54e:7415:695c:28be:da6:0:2', 'tags': [], 'project_id': 'c9728f7a59e846b1be8127a96073107e'}} 2025-12-25 02:49:47,442 - INFO - Created VN ctest-vn4-77987306 2025-12-25 02:49:47,457 - DEBUG - VN ctest-vn4-77987306 UUID is a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:47,689 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a125a9e6-27e4-4155-ad9a-da46e532d6bf', 'name': 'ctest-vn4-77987306', 'tenant_id': 'c9728f7a59e846b1be8127a96073107e', 'project_id': 'c9728f7a59e846b1be8127a96073107e', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9d22a795-22ec-4e8d-9f1c-f28aaf526536', '537f65c2-6f6e-497e-9dce-4b28a45f69b2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'ctest-vn4-77987306'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'ctest-policy1-31177821']], 'subnet_ipam': [{'subnet_cidr': '23.221.229.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2fe7:f54e:7415:695c:28be:da6::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-12-25 02:49:47,812 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:49:48,156 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:49:48,194 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:49:48,219 - DEBUG - Requesting: http://10.0.0.27:8082/project/c9728f7a-59e8-46b1-be81-27a96073107e 2025-12-25 02:49:48,317 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,339 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,354 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:48,364 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:48,378 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ca125710-b78b-423e-bb33-948f6b6c9e5e 2025-12-25 02:49:48,388 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:49:48,388 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,403 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:48,421 - INFO - Verified VN network id 15 for VN a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,421 - INFO - Verifications in API Server for VN ctest-vn4-77987306 passed 2025-12-25 02:49:48,421 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,434 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:48,443 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:48,452 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ca125710-b78b-423e-bb33-948f6b6c9e5e 2025-12-25 02:49:48,466 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11611874020221534549', 'uuid-lslong': '12509550913002854079'}, 'enable': 'true', 'created': '2025-12-25T02:49:46', 'last-modified': '2025-12-25T02:49:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.821480'} 2025-12-25 02:49:48,477 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:49:48,484 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11611874020221534549', 'uuid-lslong': '12509550913002854079'}, 'enable': 'true', 'created': '2025-12-25T02:49:46', 'last-modified': '2025-12-25T02:49:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.838552'} 2025-12-25 02:49:48,490 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:49:48,498 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11611874020221534549', 'uuid-lslong': '12509550913002854079'}, 'enable': 'true', 'created': '2025-12-25T02:49:46', 'last-modified': '2025-12-25T02:49:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.853055'} 2025-12-25 02:49:48,507 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-12-25 02:49:48,507 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-77987306 passed 2025-12-25 02:49:48,508 - DEBUG - ====Verifying policy data for ctest-vn4-77987306 in API_Server ====== 2025-12-25 02:49:48,508 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:49:48,516 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:49:48,530 - DEBUG - Requesting: http://10.0.0.27:8082/project/c9728f7a-59e8-46b1-be81-27a96073107e 2025-12-25 02:49:48,649 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a125a9e6-27e4-4155-ad9a-da46e532d6bf 2025-12-25 02:49:48,662 - DEBUG - ==>Verifying data for policy with id: d275dae5-1bf6-4120-9f92-c6f31f6ba5e9, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-20494114', 'ctest-policy1-31177821'] 2025-12-25 02:49:48,662 - INFO - VN ctest-vn4-77987306 Policy verification: verify_vn_policy_in_api_server, status: True 2025-12-25 02:49:48,662 - DEBUG - Verifying the vn in opserver 2025-12-25 02:49:48,663 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306 virtual network link through opserver 10.0.0.27 2025-12-25 02:49:48,663 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-25 02:49:49,017 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks 2025-12-25 02:49:49,100 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306?flat'} 2025-12-25 02:49:49,100 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306 virtual network link through opserver 10.0.0.33 2025-12-25 02:49:49,100 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-25 02:49:49,484 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks 2025-12-25 02:49:49,566 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306?flat'} 2025-12-25 02:49:49,566 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306 virtual network link through opserver 10.0.0.23 2025-12-25 02:49:49,566 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-25 02:49:49,922 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-12-25 02:49:50,002 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306?flat'} 2025-12-25 02:49:50,002 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-20494114:ctest-vn4-77987306 is found in opserver 2025-12-25 02:49:50,027 - DEBUG - Do not have enough data to verify VN in agent 2025-12-25 02:49:50,040 - DEBUG - VRF ids for VN ctest-vn4-77987306: {} 2025-12-25 02:49:50,040 - DEBUG - ====Verifying data for ctest-policy1-31177821 in API_Server ====== 2025-12-25 02:49:50,040 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:49:50,047 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:49:50,107 - DEBUG - Requesting: http://10.0.0.27:8082/project/c9728f7a-59e8-46b1-be81-27a96073107e 2025-12-25 02:49:50,209 - DEBUG - Requesting: http://10.0.0.27:8082/network-policy/d275dae5-1bf6-4120-9f92-c6f31f6ba5e9 2025-12-25 02:49:50,220 - INFO - Verified policy ctest-policy1-31177821 in API Server, Result: True 2025-12-25 02:49:50,220 - INFO - Done with setup and verification, moving onto test .. 2025-12-25 02:49:50,232 - INFO - Deleting VN ctest-vn4-77987306 2025-12-25 02:49:50,411 - DEBUG - Response for deleting network () 2025-12-25 02:49:50,412 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aea73316-9576-426e-b61e-ab54b90731c7 2025-12-25 02:49:50,421 - DEBUG - Response Code: 404 2025-12-25 02:49:50,421 - DEBUG - Requesting: http://10.0.0.27:8082/domains 2025-12-25 02:49:50,429 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d4f5d7ea-1779-482f-9e93-03873d431e99 2025-12-25 02:49:50,456 - DEBUG - Requesting: http://10.0.0.27:8082/project/c9728f7a-59e8-46b1-be81-27a96073107e 2025-12-25 02:49:50,572 - INFO - Validated that VN ctest-vn4-77987306 is not found in API Server 2025-12-25 02:49:50,584 - DEBUG - VN ctest-vn4-77987306 is not present in Agent 10.0.0.19 2025-12-25 02:49:50,594 - DEBUG - VN ctest-vn4-77987306 is not present in Agent 10.0.0.130 2025-12-25 02:49:50,595 - INFO - Validated that VN ctest-vn4-77987306 is not in any agent 2025-12-25 02:49:50,632 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-77987306 info 2025-12-25 02:49:50,675 - INFO - Deleted policy ctest-policy1-31177821 2025-12-25 02:49:50,872 - DEBUG - policy ctest-policy1-31177821 is not found in API Server 2025-12-25 02:49:52,160 - DEBUG - No XMPP flaps were noticed during the test
2025-12-25 02:49:52,160 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:08]
2025-12-25 02:49:52,160 - INFO - -------------------------------------------------------------------------------- 2025-12-25 02:49:53,439 - DEBUG - No XMPP flaps were noticed during the test
2025-12-25 02:49:53,439 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:10]
2025-12-25 02:49:53,440 - INFO - -------------------------------------------------------------------------------- 2025-12-25 02:49:54,351 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-20494114, ID : c9728f7a-59e8-46b1-be81-27a96073107e