2025-10-22 14:05:46,567 - INFO - Domain Default found not creating 2025-10-22 14:05:46,750 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-31984748 not found, creating it 2025-10-22 14:05:47,225 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-31984748, ID : 3832cd44-a63f-4b52-9fea-f3ffa24ce537 2025-10-22 14:05:48,716 - INFO - ================================================================================ 2025-10-22 14:05:48,716 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:05:48,973 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 14:05:48,973 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:05:48,973 - INFO - 2025-10-22 14:05:48,974 - INFO - ================================================================================ 2025-10-22 14:05:48,974 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-10-22 14:05:48,974 - 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-22 14:05:49,273 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.254': '0'}} with 2025-10-22 14:05:49,273 - INFO - Initial checks done. Running the testcase now 2025-10-22 14:05:49,273 - INFO - 2025-10-22 14:05:49,627 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144, 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-31984748:ctest-vn4-69258144, 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-31984748:ctest-vn4-69258144, 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-31984748:ctest-vn4-69258144, 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-22 14:05:50,166 - DEBUG - Response for create_network : {'network': {'id': 'aed162f3-bdd1-4426-9118-866ff2fed274', 'name': 'ctest-vn4-69258144', 'tenant_id': '3832cd44a63f4b529feaf3ffa24ce537', 'project_id': '3832cd44a63f4b529feaf3ffa24ce537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31984748', 'ctest-vn4-69258144'], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:50,336 - DEBUG - Response for create_subnet : {'subnet': {'id': '2bb51dd9-227c-43e5-a070-db20948ac288', 'name': '', 'tenant_id': '3832cd44a63f4b529feaf3ffa24ce537', 'network_id': 'aed162f3-bdd1-4426-9118-866ff2fed274', 'ip_version': 4, 'cidr': '125.86.120.192/26', 'allocation_pools': [{'start': '125.86.120.194', 'end': '125.86.120.254'}], 'gateway_ip': '125.86.120.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '125.86.120.194', 'tags': [], 'project_id': '3832cd44a63f4b529feaf3ffa24ce537'}} 2025-10-22 14:05:50,532 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bc477dd9-3f6b-441c-97f7-fcb7c283adb7', 'name': '', 'tenant_id': '3832cd44a63f4b529feaf3ffa24ce537', 'network_id': 'aed162f3-bdd1-4426-9118-866ff2fed274', 'ip_version': 6, 'cidr': '2a82:e2a9:5b69:1ad9:51c3:6849::/96', 'allocation_pools': [{'start': '2a82:e2a9:5b69:1ad9:51c3:6849:0:2', 'end': '2a82:e2a9:5b69:1ad9:51c3:6849:ffff:fffe'}], 'gateway_ip': '2a82:e2a9:5b69:1ad9:51c3:6849:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2a82:e2a9:5b69:1ad9:51c3:6849:0:2', 'tags': [], 'project_id': '3832cd44a63f4b529feaf3ffa24ce537'}} 2025-10-22 14:05:50,553 - INFO - Created VN ctest-vn4-69258144 2025-10-22 14:05:50,604 - DEBUG - VN ctest-vn4-69258144 UUID is aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:50,806 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'aed162f3-bdd1-4426-9118-866ff2fed274', 'name': 'ctest-vn4-69258144', 'tenant_id': '3832cd44a63f4b529feaf3ffa24ce537', 'project_id': '3832cd44a63f4b529feaf3ffa24ce537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2bb51dd9-227c-43e5-a070-db20948ac288', 'bc477dd9-3f6b-441c-97f7-fcb7c283adb7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31984748', 'ctest-vn4-69258144'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31984748', 'ctest-policy1-67579511']], 'subnet_ipam': [{'subnet_cidr': '125.86.120.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2a82:e2a9:5b69:1ad9:51c3:6849::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-10-22 14:05:50,973 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:51,265 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:51,293 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:51,306 - DEBUG - Requesting: http://10.0.0.38:8082/project/3832cd44-a63f-4b52-9fea-f3ffa24ce537 2025-10-22 14:05:51,382 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,393 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,403 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:51,409 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:51,416 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/72858422-133b-4e32-b2c3-de6875397a2f 2025-10-22 14:05:51,423 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:05:51,423 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,434 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:51,448 - INFO - Verified VN network id 11 for VN aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,448 - INFO - Verifications in API Server for VN ctest-vn4-69258144 passed 2025-10-22 14:05:51,448 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,458 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:51,465 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:51,472 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/72858422-133b-4e32-b2c3-de6875397a2f 2025-10-22 14:05:51,484 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-31984748', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12596958431733171238', 'uuid-lslong': '10455254350316884596'}, 'enable': 'true', 'created': '2025-10-22T14:05:50', 'last-modified': '2025-10-22T14:05:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.706179'} 2025-10-22 14:05:51,491 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-10-22 14:05:51,491 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-69258144 passed 2025-10-22 14:05:51,491 - DEBUG - ====Verifying policy data for ctest-vn4-69258144 in API_Server ====== 2025-10-22 14:05:51,491 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:51,497 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:51,510 - DEBUG - Requesting: http://10.0.0.38:8082/project/3832cd44-a63f-4b52-9fea-f3ffa24ce537 2025-10-22 14:05:51,582 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/aed162f3-bdd1-4426-9118-866ff2fed274 2025-10-22 14:05:51,591 - DEBUG - ==>Verifying data for policy with id: 1071f52d-0719-44bc-89f3-ebb300bb6ad7, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-31984748', 'ctest-policy1-67579511'] 2025-10-22 14:05:51,592 - INFO - VN ctest-vn4-69258144 Policy verification: verify_vn_policy_in_api_server, status: True 2025-10-22 14:05:51,592 - DEBUG - Verifying the vn in opserver 2025-10-22 14:05:51,592 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144 virtual network link through opserver 10.0.0.38 2025-10-22 14:05:51,592 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 14:05:51,893 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-10-22 14:05:51,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144?flat'} 2025-10-22 14:05:51,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-31984748:ctest-vn4-69258144 is found in opserver 2025-10-22 14:05:51,966 - DEBUG - Do not have enough data to verify VN in agent 2025-10-22 14:05:51,971 - DEBUG - VRF ids for VN ctest-vn4-69258144: {} 2025-10-22 14:05:51,972 - DEBUG - ====Verifying data for ctest-policy1-67579511 in API_Server ====== 2025-10-22 14:05:51,972 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:51,978 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:51,988 - DEBUG - Requesting: http://10.0.0.38:8082/project/3832cd44-a63f-4b52-9fea-f3ffa24ce537 2025-10-22 14:05:52,058 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/1071f52d-0719-44bc-89f3-ebb300bb6ad7 2025-10-22 14:05:52,068 - INFO - Verified policy ctest-policy1-67579511 in API Server, Result: True 2025-10-22 14:05:52,069 - INFO - Done with setup and verification, moving onto test .. 2025-10-22 14:05:52,077 - INFO - Deleting VN ctest-vn4-69258144 2025-10-22 14:05:52,210 - DEBUG - Response for deleting network () 2025-10-22 14:05:52,211 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/677cecf5-6c88-44bd-ac6b-9a3e47ff55a9 2025-10-22 14:05:52,216 - DEBUG - Response Code: 404 2025-10-22 14:05:52,216 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-10-22 14:05:52,224 - DEBUG - Requesting: http://10.0.0.38:8082/domain/3fe3e401-c3ee-433b-9150-57e565506592 2025-10-22 14:05:52,277 - DEBUG - Requesting: http://10.0.0.38:8082/project/3832cd44-a63f-4b52-9fea-f3ffa24ce537 2025-10-22 14:05:52,343 - INFO - Validated that VN ctest-vn4-69258144 is not found in API Server 2025-10-22 14:05:52,356 - DEBUG - VN ctest-vn4-69258144 is not present in Agent 10.0.0.38 2025-10-22 14:05:52,356 - INFO - Validated that VN ctest-vn4-69258144 is not in any agent 2025-10-22 14:05:52,372 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-69258144 info 2025-10-22 14:05:52,401 - INFO - Deleted policy ctest-policy1-67579511 2025-10-22 14:05:52,564 - DEBUG - policy ctest-policy1-67579511 is not found in API Server 2025-10-22 14:05:52,818 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 14:05:52,818 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-10-22 14:05:52,818 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:05:53,110 - DEBUG - No XMPP flaps were noticed during the test
2025-10-22 14:05:53,110 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-10-22 14:05:53,111 - INFO - -------------------------------------------------------------------------------- 2025-10-22 14:05:53,846 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-31984748, ID : 3832cd44-a63f-4b52-9fea-f3ffa24ce537