Now try to uninstall its assets. From the UI, go to the installed integration and click on the uninstall button under "Settings" tab.
In the logs there are following errors:
PackageNotFoundError: test_package@1.0.1-rc1 not found
at Object.fetchInfo (index.ts:181:13)
at deleteAssets (remove.ts:337:25)
at removeInstallation (remove.ts:98:3)
at deletePackageHandler (handlers.ts:531:17)
The issue is that we're trying to reach the registry even for a local package, which shouldn't be the case.
Note that from the UI looks like the package was successfully removed, but doing a query for the assets still finds them installed. In fact the asset uninstall is done just after the Registry.fetchInfo call that throws.
Kibana version: present in 8.15 and on 9.0.0 main
Description
Uninstalling package assets throws an error for packages installed via upload.
Repro steps
Install a package via upload. It can be done via
elastic-package install --zip
orNow try to uninstall its assets. From the UI, go to the installed integration and click on the uninstall button under "Settings" tab.
In the logs there are following errors:
Which points to https://github.com/elastic/kibana/blob/a20d92f5bb8da88b6dd007ece468bc9bbd440c71/xpack/plugins/fleet/server/services/epm/packages/remove.ts#L3[…]347
The issue is that we're trying to reach the registry even for a local package, which shouldn't be the case.
Note that from the UI looks like the package was successfully removed, but doing a query for the assets still finds them installed. In fact the asset uninstall is done just after the
Registry.fetchInfo
call that throws.