Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[clusterissuer] Clusterissuer install/update error #20878

Closed
2 tasks done
ementat opened this issue Apr 17, 2024 · 1 comment
Closed
2 tasks done

[clusterissuer] Clusterissuer install/update error #20878

ementat opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ementat
Copy link

ementat commented Apr 17, 2024

chart Name

clusterissuer

Operating System

TrueNAS SCALE 23.10.2

Deployment Method

TrueNAS SCALE charts

Chart Version

7.8.6

Kubernetes Events

No events, because can't install chart.

chartlication Logs

No logs, because can't install chart.

Chart Configuration

clusterissuer

Describe the bug

Clusterissuer install failing with the following error:

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 427, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 465, in __run_body
    rv = await self.method(*([self] + args))
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 197, in nf
    rv = await func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 44, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 177, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 487, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1399, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1353, in _call
    return await self.run_in_executor(prepared_call.executor, methodobj, *prepared_call.args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1251, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/helm.py", line 49, in helm_action
    raise CallError(f'Failed to {tn_action} App: {errmsg}')
middlewared.service_exception.CallError: [EFAULT] Failed to install App: Error: INSTALLATION FAILED: 1 error occurred:
	* namespaces "cert-manager" not found

To Reproduce

  1. Applications -> Discover -> clusterissuer -> Install
  2. Add ACME issuer
  3. Disable Prometheus Metrics
  4. Press Install

Expected Behavior

Chart installs and working.

Screenshots

image
image

Additional Context

This issue appeared on the latest version of clusterissuer: 7.8.6

cert-manager is installed and running:

k3s kubectl get pods -A | grep cert
ix-cert-manager          cert-manager-certmanager-b88669d8c-jsgwb              1/1     Running   0              4h19m
ix-cert-manager          cert-manager-certmanager-cainjector-87f75f7fc-pzmfj   1/1     Running   0              4h19m
ix-cert-manager          cert-manager-certmanager-webhook-bc46b9d8f-tkk69      1/1     Running   0              4h19m

Already tried to:

  1. Uninstall clusterissuer and install again - failed.
  2. Uninstall cert-manager, performed:
sudo k3s kubectl delete  --grace-period 30 --v=4 -k https://github.com/truecharts/manifests/delete4
  1. Installed cert-manager again. Tried to install clusterissuer - failed.

I've read and agree with the following

  • I've checked all open and closed issues and my issue is not there.
  • I've prefixed my issue title with [Chart-Name]
@ementat ementat added the bug Something isn't working label Apr 17, 2024
@PrivatePuffin
Copy link
Member

I've submitted a temporary hotfix that allow users to enter the cert-manager namespace manually.
We'll have to have a new look at this later to rework it more thoroughly and move these CRs to common.
@stavros-k

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants