2025-07-23 13:30:53,000 - INFO - Domain Default found not creating 2025-07-23 13:30:53,173 - INFO - Project ctest-TestBasicPolicyNegativeIpv4v6-40184175 not found, creating it 2025-07-23 13:30:53,644 - INFO - Created Project:ctest-TestBasicPolicyNegativeIpv4v6-40184175, ID : 1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d 2025-07-23 13:30:55,120 - INFO - ================================================================================ 2025-07-23 13:30:55,120 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:30:55,374 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with 2025-07-23 13:30:55,374 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:30:55,374 - INFO - 2025-07-23 13:30:55,374 - INFO - ================================================================================ 2025-07-23 13:30:55,374 - INFO - STARTING TEST : test_remove_policy_with_ref 2025-07-23 13:30:55,374 - 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-23 13:30:55,666 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.193': '0'}} with 2025-07-23 13:30:55,666 - INFO - Initial checks done. Running the testcase now 2025-07-23 13:30:55,666 - INFO - 2025-07-23 13:30:56,023 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467, 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-40184175:ctest-vn4-62275467, 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-40184175:ctest-vn4-62275467, 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-40184175:ctest-vn4-62275467, 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-23 13:30:56,845 - DEBUG - Response for create_network : {'network': {'id': '528fe7d4-9d63-4e27-8da3-4b0ce045a4fd', 'name': 'ctest-vn4-62275467', 'tenant_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'project_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40184175', 'ctest-vn4-62275467'], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:30:57,068 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d69a501-e01e-4ee8-9e3e-df70475197ac', 'name': '', 'tenant_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'network_id': '528fe7d4-9d63-4e27-8da3-4b0ce045a4fd', 'ip_version': 4, 'cidr': '173.24.7.192/26', 'allocation_pools': [{'start': '173.24.7.194', 'end': '173.24.7.254'}], 'gateway_ip': '173.24.7.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '173.24.7.194', 'tags': [], 'project_id': '1e7e78c96f924a5dab55ce2bccf8c79d'}} 2025-07-23 13:30:57,240 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b9400169-7424-4701-bf9e-48d1d0fb2ad2', 'name': '', 'tenant_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'network_id': '528fe7d4-9d63-4e27-8da3-4b0ce045a4fd', 'ip_version': 6, 'cidr': '36cb:1336:a046:28e8:1031:6cb4::/96', 'allocation_pools': [{'start': '36cb:1336:a046:28e8:1031:6cb4:0:2', 'end': '36cb:1336:a046:28e8:1031:6cb4:ffff:fffe'}], 'gateway_ip': '36cb:1336:a046:28e8:1031:6cb4:0:1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '36cb:1336:a046:28e8:1031:6cb4:0:2', 'tags': [], 'project_id': '1e7e78c96f924a5dab55ce2bccf8c79d'}} 2025-07-23 13:30:57,261 - INFO - Created VN ctest-vn4-62275467 2025-07-23 13:30:57,316 - DEBUG - VN ctest-vn4-62275467 UUID is 528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:57,541 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '528fe7d4-9d63-4e27-8da3-4b0ce045a4fd', 'name': 'ctest-vn4-62275467', 'tenant_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'project_id': '1e7e78c96f924a5dab55ce2bccf8c79d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d69a501-e01e-4ee8-9e3e-df70475197ac', 'b9400169-7424-4701-bf9e-48d1d0fb2ad2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40184175', 'ctest-vn4-62275467'], 'policys': [['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40184175', 'ctest-policy1-07200613']], 'subnet_ipam': [{'subnet_cidr': '173.24.7.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}, {'subnet_cidr': '36cb:1336:a046:28e8:1031:6cb4::/96', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}} 2025-07-23 13:30:57,704 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 13:30:57,996 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 13:30:58,029 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d 2025-07-23 13:30:58,047 - DEBUG - Requesting: http://10.0.0.23:8082/project/1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d 2025-07-23 13:30:58,128 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,142 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,153 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,162 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,171 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/92692aaa-2ee4-4ad1-945e-a0ac6f300be1 2025-07-23 13:30:58,179 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:30:58,179 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,191 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,208 - INFO - Verified VN network id 10 for VN 528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,208 - INFO - Verifications in API Server for VN ctest-vn4-62275467 passed 2025-07-23 13:30:58,208 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,220 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,229 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,237 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/92692aaa-2ee4-4ad1-945e-a0ac6f300be1 2025-07-23 13:30:58,251 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicyNegativeIpv4v6-40184175', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5949228533139328551', 'uuid-lslong': '10206083699226027261'}, 'enable': 'true', 'created': '2025-07-23T13:30:56', 'last-modified': '2025-07-23T13:30:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.746502'} 2025-07-23 13:30:58,259 - DEBUG - Route Targets: ['target:64512:8000005'] 2025-07-23 13:30:58,259 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn4-62275467 passed 2025-07-23 13:30:58,259 - DEBUG - ====Verifying policy data for ctest-vn4-62275467 in API_Server ====== 2025-07-23 13:30:58,259 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 13:30:58,265 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d 2025-07-23 13:30:58,280 - DEBUG - Requesting: http://10.0.0.23:8082/project/1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d 2025-07-23 13:30:58,354 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/528fe7d4-9d63-4e27-8da3-4b0ce045a4fd 2025-07-23 13:30:58,365 - DEBUG - ==>Verifying data for policy with id: bf3d8fa0-95bb-40e4-ae2f-7a55a7598eb2, fqn: ['default-domain', 'ctest-TestBasicPolicyNegativeIpv4v6-40184175', 'ctest-policy1-07200613'] 2025-07-23 13:30:58,365 - INFO - VN ctest-vn4-62275467 Policy verification: verify_vn_policy_in_api_server, status: True 2025-07-23 13:30:58,365 - DEBUG - Verifying the vn in opserver 2025-07-23 13:30:58,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467 virtual network link through opserver 10.0.0.23 2025-07-23 13:30:58,366 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 13:30:58,656 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks 2025-07-23 13:30:58,715 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467?flat'} 2025-07-23 13:30:58,715 - INFO - Validated that VN default-domain:ctest-TestBasicPolicyNegativeIpv4v6-40184175:ctest-vn4-62275467 is found in opserver 2025-07-23 13:30:58,727 - DEBUG - Do not have enough data to verify VN in agent 2025-07-23 13:30:58,733 - DEBUG - VRF ids for VN ctest-vn4-62275467: {} 2025-07-23 13:30:58,734 - DEBUG - ====Verifying data for ctest-policy1-07200613 in API_Server ====== 2025-07-23 13:30:58,734 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 13:30:58,740 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d 2025-07-23 13:30:58,753 - DEBUG - Requesting: http://10.0.0.23:8082/project/1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d 2025-07-23 13:30:58,828 - DEBUG - Requesting: http://10.0.0.23:8082/network-policy/bf3d8fa0-95bb-40e4-ae2f-7a55a7598eb2 2025-07-23 13:30:58,839 - INFO - Verified policy ctest-policy1-07200613 in API Server, Result: True 2025-07-23 13:30:58,839 - INFO - Done with setup and verification, moving onto test .. 2025-07-23 13:30:58,847 - INFO - Deleting VN ctest-vn4-62275467 2025-07-23 13:30:58,976 - DEBUG - Response for deleting network () 2025-07-23 13:30:58,976 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/e4168eb5-3666-4b31-bc6e-eadeb82eba81 2025-07-23 13:30:58,982 - DEBUG - Response Code: 404 2025-07-23 13:30:58,982 - DEBUG - Requesting: http://10.0.0.23:8082/domains 2025-07-23 13:30:58,988 - DEBUG - Requesting: http://10.0.0.23:8082/domain/da3ff578-e247-4ebc-b955-07f04a47ad8d 2025-07-23 13:30:59,041 - DEBUG - Requesting: http://10.0.0.23:8082/project/1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d 2025-07-23 13:30:59,118 - INFO - Validated that VN ctest-vn4-62275467 is not found in API Server 2025-07-23 13:30:59,130 - DEBUG - VN ctest-vn4-62275467 is not present in Agent 10.0.0.23 2025-07-23 13:30:59,130 - INFO - Validated that VN ctest-vn4-62275467 is not in any agent 2025-07-23 13:30:59,146 - INFO - Validated that Routing instances and Config db in Control-nodes does not have VN ctest-vn4-62275467 info 2025-07-23 13:30:59,187 - INFO - Deleted policy ctest-policy1-07200613 2025-07-23 13:30:59,356 - DEBUG - policy ctest-policy1-07200613 is not found in API Server 2025-07-23 13:30:59,610 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 13:30:59,610 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 13:30:59,610 - INFO - -------------------------------------------------------------------------------- 2025-07-23 13:30:59,901 - DEBUG - No XMPP flaps were noticed during the test
2025-07-23 13:30:59,901 - INFO - END TEST : test_remove_policy_with_ref : PASSED[0:00:04]
2025-07-23 13:30:59,902 - INFO - -------------------------------------------------------------------------------- 2025-07-23 13:31:00,584 - INFO - Deleted project: ctest-TestBasicPolicyNegativeIpv4v6-40184175, ID : 1e7e78c9-6f92-4a5d-ab55-ce2bccf8c79d