2025-07-31 13:25:54,751 - INFO - Domain Default found not creating 2025-07-31 13:25:54,945 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-53605808 not found, creating it 2025-07-31 13:25:55,470 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-53605808, ID : d4929325-1ac5-45ec-9912-f7245390e5eb 2025-07-31 13:25:57,079 - INFO - ================================================================================ 2025-07-31 13:25:57,079 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 13:25:57,344 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-31 13:25:57,344 - INFO - Initial checks done. Running the testcase now 2025-07-31 13:25:57,344 - INFO - 2025-07-31 13:25:57,344 - INFO - ================================================================================ 2025-07-31 13:25:57,344 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-31 13:25:57,344 - 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-07-31 13:25:57,628 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.0.0.38': '0'}} with 2025-07-31 13:25:57,628 - INFO - Initial checks done. Running the testcase now 2025-07-31 13:25:57,628 - INFO - 2025-07-31 13:25:57,992 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639, 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-53605808:ctest-vn4-58959639, 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-53605808:ctest-vn4-58959639, 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-53605808:ctest-vn4-58959639, 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-07-31 13:25:58,530 - DEBUG - Response for create_network : {'network': {'id': 'c4f0d338-d387-4a0b-a7b0-e0936eac9ef7', 'name': 'ctest-vn4-58959639', 'tenant_id': 'd49293251ac545ec9912f7245390e5eb', 'project_id': 'd49293251ac545ec9912f7245390e5eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53605808', 'ctest-vn4-58959639'], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:25:58,746 - DEBUG - Response for create_subnet : {'subnet': {'id': '9ebc1865-8b92-4fe4-8129-a8d920174884', 'name': '', 'tenant_id': 'd49293251ac545ec9912f7245390e5eb', 'network_id': 'c4f0d338-d387-4a0b-a7b0-e0936eac9ef7', 'ip_version': 4, 'cidr': '41.138.206.0/26', 'allocation_pools': [{'start': '41.138.206.2', 'end': '41.138.206.62'}], 'gateway_ip': '41.138.206.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '41.138.206.2', 'tags': [], 'project_id': 'd49293251ac545ec9912f7245390e5eb'}} 2025-07-31 13:25:58,925 - DEBUG - Response for create_subnet : {'subnet': {'id': 'dfd3121e-d9fb-4806-a902-4bdadbfe0568', 'name': '', 'tenant_id': 'd49293251ac545ec9912f7245390e5eb', 'network_id': 'c4f0d338-d387-4a0b-a7b0-e0936eac9ef7', 'ip_version': 6, 'cidr': '2ff5:4e2c:5204:3b64:aa94:725b::/96', 'allocation_pools': [{'start': '2ff5:4e2c:5204:3b64:aa94:725b:0:2', 'end': '2ff5:4e2c:5204:3b64:aa94:725b:ffff:fffe'}], 'gateway_ip': '2ff5:4e2c:5204:3b64:aa94:725b:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2ff5:4e2c:5204:3b64:aa94:725b:0:2', 'tags': [], 'project_id': 'd49293251ac545ec9912f7245390e5eb'}} 2025-07-31 13:25:58,949 - INFO - Created VN ctest-vn4-58959639 2025-07-31 13:25:59,007 - DEBUG - VN ctest-vn4-58959639 UUID is c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,229 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'c4f0d338-d387-4a0b-a7b0-e0936eac9ef7', 'name': 'ctest-vn4-58959639', 'tenant_id': 'd49293251ac545ec9912f7245390e5eb', 'project_id': 'd49293251ac545ec9912f7245390e5eb', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9ebc1865-8b92-4fe4-8129-a8d920174884', 'dfd3121e-d9fb-4806-a902-4bdadbfe0568'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53605808', 'ctest-vn4-58959639'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53605808', 'ctest-policy1-35727874']], 'subnet_ipam': [{'subnet_cidr': '41.138.206.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '2ff5:4e2c:5204:3b64:aa94:725b::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-31 13:25:59,395 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:25:59,689 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:25:59,716 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:25:59,729 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4929325-1ac5-45ec-9912-f7245390e5eb 2025-07-31 13:25:59,808 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,824 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,834 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:25:59,842 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:25:59,849 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/edf9b322-33b7-4136-8fe4-079dde031671 2025-07-31 13:25:59,865 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:25:59,865 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,876 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:25:59,892 - INFO - Verified VN network id 12 for VN c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,892 - INFO - Verifications in API Server for VN ctest-vn4-58959639 passed 2025-07-31 13:25:59,892 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:25:59,906 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:25:59,914 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:25:59,921 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/edf9b322-33b7-4136-8fe4-079dde031671 2025-07-31 13:25:59,938 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-53605808', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14191074666864921099', 'uuid-lslong': '12083404724056661751'}, 'enable': 'true', 'created': '2025-07-31T13:25:58', 'last-modified': '2025-07-31T13:25:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.732930'} 2025-07-31 13:25:59,944 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-31 13:25:59,944 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-58959639 passed 2025-07-31 13:25:59,944 - DEBUG - ====Verifying policy data for ctest-vn4-58959639 in API_Server ====== 2025-07-31 13:25:59,944 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:25:59,951 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:25:59,963 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4929325-1ac5-45ec-9912-f7245390e5eb 2025-07-31 13:26:00,044 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/c4f0d338-d387-4a0b-a7b0-e0936eac9ef7 2025-07-31 13:26:00,054 - DEBUG - ==>Verifying data for policy with id: 74f76da0-860c-473e-915f-b93945747611, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-53605808', 'ctest-policy1-35727874'] 2025-07-31 13:26:00,054 - INFO - VN ctest-vn4-58959639 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-31 13:26:00,054 - DEBUG - Verifying the vn in opserver 2025-07-31 13:26:00,054 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639 virtual network link through opserver 10.0.0.38 2025-07-31 13:26:00,054 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 13:26:00,348 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks 2025-07-31 13:26:00,405 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639?flat'} 2025-07-31 13:26:00,405 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-53605808:ctest-vn4-58959639 is found in opserver 2025-07-31 13:26:00,416 - DEBUG - Do not have enough data to verify VN in agent 2025-07-31 13:26:00,420 - DEBUG - VRF ids for VN ctest-vn4-58959639: {} 2025-07-31 13:26:00,420 - DEBUG - ====Verifying data for ctest-policy1-35727874 in API_Server ====== 2025-07-31 13:26:00,421 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:00,426 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:00,438 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4929325-1ac5-45ec-9912-f7245390e5eb 2025-07-31 13:26:00,517 - DEBUG - Requesting: http://10.0.0.38:8082/network-policy/74f76da0-860c-473e-915f-b93945747611 2025-07-31 13:26:00,529 - INFO - Verified policy ctest-policy1-35727874 in API Server, Result: True 2025-07-31 13:26:00,530 - INFO - Done with setup and verification, moving onto test .. 2025-07-31 13:26:00,538 - INFO - Deleting VN ctest-vn4-58959639 2025-07-31 13:26:00,679 - DEBUG - Response for deleting network () 2025-07-31 13:26:00,679 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/f54365ad-99e1-4822-95c1-005e32a50b6f 2025-07-31 13:26:00,685 - DEBUG - Response Code: 404 2025-07-31 13:26:00,686 - DEBUG - Requesting: http://10.0.0.38:8082/domains 2025-07-31 13:26:00,692 - DEBUG - Requesting: http://10.0.0.38:8082/domain/733d7848-1258-418e-a5a2-b55e8ff4f923 2025-07-31 13:26:00,749 - DEBUG - Requesting: http://10.0.0.38:8082/project/d4929325-1ac5-45ec-9912-f7245390e5eb 2025-07-31 13:26:00,832 - INFO - Validated that VN ctest-vn4-58959639 is not found in API Server 2025-07-31 13:26:00,843 - DEBUG - VN ctest-vn4-58959639 is not present in Agent 10.0.0.38 2025-07-31 13:26:00,843 - INFO - Validated that VN ctest-vn4-58959639 is not in any agent 2025-07-31 13:26:00,859 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-58959639 info 2025-07-31 13:26:00,890 - INFO - Deleted policy ctest-policy1-35727874 2025-07-31 13:26:01,067 - DEBUG - policy ctest-policy1-35727874 is not found in API Server 2025-07-31 13:26:01,336 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 13:26:01,336 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-31 13:26:01,336 - INFO - -------------------------------------------------------------------------------- 2025-07-31 13:26:01,629 - DEBUG - No XMPP flaps were noticed during the test
2025-07-31 13:26:01,629 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-31 13:26:01,630 - INFO - -------------------------------------------------------------------------------- 2025-07-31 13:26:02,349 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-53605808, ID : d4929325-1ac5-45ec-9912-f7245390e5eb