2025-09-08 18:59:08,078 - INFO - Domain Default found not creating 2025-09-08 18:59:08,201 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-76901520 not found, creating it 2025-09-08 18:59:08,612 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-76901520, ID : 9f8c6dc0-79cf-448b-8fbf-7ecef75f5357 2025-09-08 18:59:09,916 - INFO - ================================================================================ 2025-09-08 18:59:09,916 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 18:59:10,171 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-08 18:59:10,171 - INFO - Initial checks done. Running the testcase now 2025-09-08 18:59:10,171 - INFO - 2025-09-08 18:59:10,171 - INFO - ================================================================================ 2025-09-08 18:59:10,171 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-09-08 18:59:10,171 - 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-08 18:59:10,458 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with 2025-09-08 18:59:10,458 - INFO - Initial checks done. Running the testcase now 2025-09-08 18:59:10,458 - INFO - 2025-09-08 18:59:10,794 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542, 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-76901520:ctest-vn4-62250542, 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-76901520:ctest-vn4-62250542, 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-76901520:ctest-vn4-62250542, 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-08 18:59:11,287 - DEBUG - Response for create_network : {'network': {'id': '522dc349-e867-4d81-a856-11fbb344b904', 'name': 'ctest-vn4-62250542', 'tenant_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'project_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76901520', 'ctest-vn4-62250542'], 'port_security_enabled': True, 'description': ''}} 2025-09-08 18:59:11,442 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da63810c-1c6e-4c9d-a245-b6dfb5873d7b', 'name': '', 'tenant_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'network_id': '522dc349-e867-4d81-a856-11fbb344b904', 'ip_version': 4, 'cidr': '132.13.224.64/26', 'allocation_pools': [{'start': '132.13.224.66', 'end': '132.13.224.126'}], 'gateway_ip': '132.13.224.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '132.13.224.66', 'tags': [], 'project_id': '9f8c6dc079cf448b8fbf7ecef75f5357'}} 2025-09-08 18:59:11,624 - DEBUG - Response for create_subnet : {'subnet': {'id': '4d9e69d9-a88b-4752-ae2b-4d7c54541988', 'name': '', 'tenant_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'network_id': '522dc349-e867-4d81-a856-11fbb344b904', 'ip_version': 6, 'cidr': '25bb:34c5:f2ff:5ce0:1b32:d170::/96', 'allocation_pools': [{'start': '25bb:34c5:f2ff:5ce0:1b32:d170:0:2', 'end': '25bb:34c5:f2ff:5ce0:1b32:d170:ffff:fffe'}], 'gateway_ip': '25bb:34c5:f2ff:5ce0:1b32:d170:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '25bb:34c5:f2ff:5ce0:1b32:d170:0:2', 'tags': [], 'project_id': '9f8c6dc079cf448b8fbf7ecef75f5357'}} 2025-09-08 18:59:11,641 - INFO - Created VN ctest-vn4-62250542 2025-09-08 18:59:11,694 - DEBUG - VN ctest-vn4-62250542 UUID is 522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:11,891 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '522dc349-e867-4d81-a856-11fbb344b904', 'name': 'ctest-vn4-62250542', 'tenant_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'project_id': '9f8c6dc079cf448b8fbf7ecef75f5357', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da63810c-1c6e-4c9d-a245-b6dfb5873d7b', '4d9e69d9-a88b-4752-ae2b-4d7c54541988'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76901520', 'ctest-vn4-62250542'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76901520', 'ctest-policy1-93628213']], 'subnet_ipam': [{'subnet_cidr': '132.13.224.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '25bb:34c5:f2ff:5ce0:1b32:d170::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-09-08 18:59:12,054 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 18:59:12,345 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 18:59:12,370 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750 2025-09-08 18:59:12,380 - DEBUG - Requesting: http://10.0.0.22:8082/project/9f8c6dc0-79cf-448b-8fbf-7ecef75f5357 2025-09-08 18:59:12,445 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,455 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,463 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:12,469 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:12,474 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6bf4b8d-8677-4c7c-89d3-6bda6e8d59b0 2025-09-08 18:59:12,478 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 18:59:12,478 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,485 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:12,495 - INFO - Verified VN network id 12 for VN 522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,496 - INFO - Verifications in API Server for VN ctest-vn4-62250542 passed 2025-09-08 18:59:12,496 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,503 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:12,508 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:12,513 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/c6bf4b8d-8677-4c7c-89d3-6bda6e8d59b0 2025-09-08 18:59:12,522 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-76901520', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5921603807261183361', 'uuid-lslong': '12129902419111098628'}, 'enable': 'true', 'created': '2025-09-08T18:59:11', 'last-modified': '2025-09-08T18:59:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.678947'} 2025-09-08 18:59:12,528 - DEBUG - Route Targets: ['target:64512:8000004'] 2025-09-08 18:59:12,528 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62250542 passed 2025-09-08 18:59:12,528 - DEBUG - ====Verifying policy data for ctest-vn4-62250542 in API_Server ====== 2025-09-08 18:59:12,528 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 18:59:12,532 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750 2025-09-08 18:59:12,541 - DEBUG - Requesting: http://10.0.0.22:8082/project/9f8c6dc0-79cf-448b-8fbf-7ecef75f5357 2025-09-08 18:59:12,616 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/522dc349-e867-4d81-a856-11fbb344b904 2025-09-08 18:59:12,624 - DEBUG - ==>Verifying data for policy with id: d4bbfaf7-0cb7-4641-a237-e9df440721af, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-76901520', 'ctest-policy1-93628213'] 2025-09-08 18:59:12,624 - INFO - VN ctest-vn4-62250542 Policy verification: verify_vn_policy_in_api_server, status: True 2025-09-08 18:59:12,624 - DEBUG - Verifying the vn in opserver 2025-09-08 18:59:12,624 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542 virtual network link through opserver 10.0.0.22 2025-09-08 18:59:12,624 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-08 18:59:12,910 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks 2025-09-08 18:59:12,956 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542?flat'} 2025-09-08 18:59:12,956 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-76901520:ctest-vn4-62250542 is found in opserver 2025-09-08 18:59:12,966 - DEBUG - Do not have enough data to verify VN in agent 2025-09-08 18:59:12,969 - DEBUG - VRF ids for VN ctest-vn4-62250542: {} 2025-09-08 18:59:12,970 - DEBUG - ====Verifying data for ctest-policy1-93628213 in API_Server ====== 2025-09-08 18:59:12,970 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 18:59:12,974 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750 2025-09-08 18:59:12,983 - DEBUG - Requesting: http://10.0.0.22:8082/project/9f8c6dc0-79cf-448b-8fbf-7ecef75f5357 2025-09-08 18:59:13,047 - DEBUG - Requesting: http://10.0.0.22:8082/network-policy/d4bbfaf7-0cb7-4641-a237-e9df440721af 2025-09-08 18:59:13,055 - INFO - Verified policy ctest-policy1-93628213 in API Server, Result: True 2025-09-08 18:59:13,055 - INFO - Done with setup and verification, moving onto test .. 2025-09-08 18:59:13,061 - INFO - Deleting VN ctest-vn4-62250542 2025-09-08 18:59:13,180 - DEBUG - Response for deleting network () 2025-09-08 18:59:13,180 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/86c1cb3e-280b-44fc-b388-b81ed4f5ee57 2025-09-08 18:59:13,184 - DEBUG - Response Code: 404 2025-09-08 18:59:13,184 - DEBUG - Requesting: http://10.0.0.22:8082/domains 2025-09-08 18:59:13,190 - DEBUG - Requesting: http://10.0.0.22:8082/domain/c286bce8-666b-4dc2-b8c3-2701e222d750 2025-09-08 18:59:13,242 - DEBUG - Requesting: http://10.0.0.22:8082/project/9f8c6dc0-79cf-448b-8fbf-7ecef75f5357 2025-09-08 18:59:13,311 - INFO - Validated that VN ctest-vn4-62250542 is not found in API Server 2025-09-08 18:59:13,319 - DEBUG - VN ctest-vn4-62250542 is not present in Agent 10.0.0.22 2025-09-08 18:59:13,319 - INFO - Validated that VN ctest-vn4-62250542 is not in any agent 2025-09-08 18:59:13,331 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62250542 info 2025-09-08 18:59:13,351 - INFO - Deleted policy ctest-policy1-93628213 2025-09-08 18:59:13,526 - DEBUG - policy ctest-policy1-93628213 is not found in API Server 2025-09-08 18:59:13,789 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 18:59:13,790 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:03]
2025-09-08 18:59:13,790 - INFO - -------------------------------------------------------------------------------- 2025-09-08 18:59:14,078 - DEBUG - No XMPP flaps were noticed during the test
2025-09-08 18:59:14,078 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:05]
2025-09-08 18:59:14,078 - INFO - -------------------------------------------------------------------------------- 2025-09-08 18:59:14,715 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-76901520, ID : 9f8c6dc0-79cf-448b-8fbf-7ecef75f5357