2025-09-02 22:36:57,988 - INFO - Domain Default found not creating 2025-09-02 22:36:58,121 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-61836824 not found, creating it 2025-09-02 22:36:58,546 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-61836824, ID : 2eb3ff52-f286-44dc-a35a-6b944ea2c10f 2025-09-02 22:36:59,904 - INFO - ================================================================================ 2025-09-02 22:36:59,904 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-02 22:37:00,160 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-02 22:37:00,160 - INFO - Initial checks done. Running the testcase now 2025-09-02 22:37:00,160 - INFO - 2025-09-02 22:37:00,160 - INFO - ================================================================================ 2025-09-02 22:37:00,161 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-02 22:37:00,161 - 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-09-02 22:37:00,448 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with 2025-09-02 22:37:00,448 - INFO - Initial checks done. Running the testcase now 2025-09-02 22:37:00,448 - INFO - 2025-09-02 22:37:00,792 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280, 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-61836824:ctest-vn4-90948280, 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-61836824:ctest-vn4-90948280, 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-61836824:ctest-vn4-90948280, 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-09-02 22:37:01,300 - DEBUG - Response for create_network : {'network': {'id': '434ee3d2-a141-425a-878e-ac300bfcc5c9', 'name': 'ctest-vn4-90948280', 'tenant_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'project_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61836824', 'ctest-vn4-90948280'], 'port_security_enabled': True, 'description': ''}} 2025-09-02 22:37:01,524 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aebafa20-220b-4c28-84ab-b3432b9ad562', 'name': '', 'tenant_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'network_id': '434ee3d2-a141-425a-878e-ac300bfcc5c9', 'ip_version': 4, 'cidr': '38.122.41.192/26', 'allocation_pools': [{'start': '38.122.41.194', 'end': '38.122.41.254'}], 'gateway_ip': '38.122.41.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '38.122.41.194', 'tags': [], 'project_id': '2eb3ff52f28644dca35a6b944ea2c10f'}} 2025-09-02 22:37:01,714 - DEBUG - Response for create_subnet : {'subnet': {'id': '5b5b11e8-c0aa-491c-816f-7577bdcfa6e5', 'name': '', 'tenant_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'network_id': '434ee3d2-a141-425a-878e-ac300bfcc5c9', 'ip_version': 6, 'cidr': '3069:97dd:22e4:55e5:b22:6516::/96', 'allocation_pools': [{'start': '3069:97dd:22e4:55e5:b22:6516:0:2', 'end': '3069:97dd:22e4:55e5:b22:6516:ffff:fffe'}], 'gateway_ip': '3069:97dd:22e4:55e5:b22:6516:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '3069:97dd:22e4:55e5:b22:6516:0:2', 'tags': [], 'project_id': '2eb3ff52f28644dca35a6b944ea2c10f'}} 2025-09-02 22:37:01,730 - INFO - Created VN ctest-vn4-90948280 2025-09-02 22:37:01,779 - DEBUG - VN ctest-vn4-90948280 UUID is 434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:01,968 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '434ee3d2-a141-425a-878e-ac300bfcc5c9', 'name': 'ctest-vn4-90948280', 'tenant_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'project_id': '2eb3ff52f28644dca35a6b944ea2c10f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aebafa20-220b-4c28-84ab-b3432b9ad562', '5b5b11e8-c0aa-491c-816f-7577bdcfa6e5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61836824', 'ctest-vn4-90948280'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61836824', 'ctest-policy1-80457674']], 'subnet_ipam': [{'subnet_cidr': '38.122.41.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '3069:97dd:22e4:55e5:b22:6516::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-02 22:37:02,119 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-02 22:37:02,408 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-02 22:37:02,435 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2 2025-09-02 22:37:02,445 - DEBUG - Requesting: http://10.0.0.48:8082/project/2eb3ff52-f286-44dc-a35a-6b944ea2c10f 2025-09-02 22:37:02,564 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,574 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,582 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:02,587 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:02,593 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bf5df6ac-9738-42b4-92e6-16a84c9e1660 2025-09-02 22:37:02,598 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-02 22:37:02,598 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,605 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:02,616 - INFO - Verified VN network id 12 for VN 434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,617 - INFO - Verifications in API Server for VN ctest-vn4-90948280 passed 2025-09-02 22:37:02,617 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,624 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:02,629 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:02,634 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/bf5df6ac-9738-42b4-92e6-16a84c9e1660 2025-09-02 22:37:02,643 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-61836824', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4850064342512648794', 'uuid-lslong': '9767933964172707273'}, 'enable': 'true', 'created': '2025-09-02T22:37:01', 'last-modified': '2025-09-02T22:37:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.707672'} 2025-09-02 22:37:02,648 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-02 22:37:02,648 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-90948280 passed 2025-09-02 22:37:02,649 - DEBUG - ====Verifying policy data for ctest-vn4-90948280 in API_Server ====== 2025-09-02 22:37:02,649 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-02 22:37:02,653 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2 2025-09-02 22:37:02,662 - DEBUG - Requesting: http://10.0.0.48:8082/project/2eb3ff52-f286-44dc-a35a-6b944ea2c10f 2025-09-02 22:37:02,727 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/434ee3d2-a141-425a-878e-ac300bfcc5c9 2025-09-02 22:37:02,735 - DEBUG - ==>Verifying data for policy with id: b168e422-e21a-4ff7-8ae4-099660c4a1ac, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-61836824', 'ctest-policy1-80457674'] 2025-09-02 22:37:02,735 - INFO - VN ctest-vn4-90948280 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-02 22:37:02,735 - DEBUG - Verifying the vn in opserver 2025-09-02 22:37:02,735 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280 virtual network link through opserver 10.0.0.48 2025-09-02 22:37:02,735 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-02 22:37:03,022 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks 2025-09-02 22:37:03,068 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280?flat'} 2025-09-02 22:37:03,068 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-61836824:ctest-vn4-90948280 is found in opserver 2025-09-02 22:37:03,077 - DEBUG - Do not have enough data to verify VN in agent 2025-09-02 22:37:03,081 - DEBUG - VRF ids for VN ctest-vn4-90948280: {} 2025-09-02 22:37:03,081 - DEBUG - ====Verifying data for ctest-policy1-80457674 in API_Server ====== 2025-09-02 22:37:03,081 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-02 22:37:03,086 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2 2025-09-02 22:37:03,095 - DEBUG - Requesting: http://10.0.0.48:8082/project/2eb3ff52-f286-44dc-a35a-6b944ea2c10f 2025-09-02 22:37:03,162 - DEBUG - Requesting: http://10.0.0.48:8082/network-policy/b168e422-e21a-4ff7-8ae4-099660c4a1ac 2025-09-02 22:37:03,170 - INFO - Verified policy ctest-policy1-80457674 in API Server, Result: True 2025-09-02 22:37:03,171 - INFO - Done with setup and verification, moving onto test .. 2025-09-02 22:37:03,179 - INFO - Deleting VN ctest-vn4-90948280 2025-09-02 22:37:03,281 - DEBUG - Response for deleting network () 2025-09-02 22:37:03,281 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/b1bf96d8-0df7-4d2d-803f-ea4beea593b0 2025-09-02 22:37:03,285 - DEBUG - Response Code: 404 2025-09-02 22:37:03,285 - DEBUG - Requesting: http://10.0.0.48:8082/domains 2025-09-02 22:37:03,289 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2 2025-09-02 22:37:03,340 - DEBUG - Requesting: http://10.0.0.48:8082/project/2eb3ff52-f286-44dc-a35a-6b944ea2c10f 2025-09-02 22:37:03,406 - INFO - Validated that VN ctest-vn4-90948280 is not found in API Server 2025-09-02 22:37:03,414 - DEBUG - VN ctest-vn4-90948280 is not present in Agent 10.0.0.48 2025-09-02 22:37:03,414 - INFO - Validated that VN ctest-vn4-90948280 is not in any agent 2025-09-02 22:37:03,426 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-90948280 info 2025-09-02 22:37:03,448 - INFO - Deleted policy ctest-policy1-80457674 2025-09-02 22:37:03,607 - DEBUG - policy ctest-policy1-80457674 is not found in API Server 2025-09-02 22:37:03,860 - DEBUG - No XMPP flaps were noticed during the test
2025-09-02 22:37:03,860 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-02 22:37:03,860 - INFO - -------------------------------------------------------------------------------- 2025-09-02 22:37:04,155 - DEBUG - No XMPP flaps were noticed during the test
2025-09-02 22:37:04,155 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-02 22:37:04,155 - INFO - -------------------------------------------------------------------------------- 2025-09-02 22:37:04,797 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-61836824, ID : 2eb3ff52-f286-44dc-a35a-6b944ea2c10f