truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.16k stars 616 forks source link

[OpenEBS V4.3.0] Not installing on fresh Dragonfish 24.04 installation #20935

Closed nicholas-fedor closed 7 months ago

nicholas-fedor commented 7 months ago

chart Name

Openebs

Operating System

TrueNAS SCALE 23.10.2

Deployment Method

TrueNAS SCALE charts

Chart Version

4.3.0

Kubernetes Events

Error: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 469, in run
    await self.future
  File "/usr/lib/python3/dist-packages/middlewared/job.py", line 511, in __run_body
    rv = await self.method(*args)
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/service/crud_service.py", line 210, in nf
    rv = await func(*args, **kwargs)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 47, in nf
    res = await f(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/schema/processor.py", line 187, in nf
    return await func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/plugins/chart_releases_linux/chart_release.py", line 495, in do_create
    await self.middleware.call(
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1564, in call
    return await self._call(
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/middlewared/main.py", line 1428, 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 1321, 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: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /etc/rancher/k3s/k3s.yaml
Error: INSTALLATION FAILED: Unable to continue with install: CustomResourceDefinition "volumesnapshotclasses.snapshot.storage.k8s.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "openebs"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "ix-openebs"

chartlication Logs

[EFAULT] Failed to install App: WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /etc/rancher/k3s/k3s.yaml Error: INSTALLATION FAILED: Unable to continue with install: CustomResourceDefinition "volumesnapshotclasses.snapshot.storage.k8s.io" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata; label validation error: missing key "app.kubernetes.io/managed-by": must be set to "Helm"; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "openebs"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "ix-openebs"

Chart Configuration

Default Class: Enabled reclaimPolicy: Retain (Keep Data on App Deletion) Allow VolumeExpansion: Enabled Pool/Dataset: Apps/OpenEBS

Describe the bug

Attempting to install OpenEBS on TrueNAS-SCALE-24.04-RC.1 Attempted initially on a pre-existing installation and then on a fresh installation.

/etc/rancher/k3s/k3s.yaml shows a group-read permission (-rw-r-), which is easily resolved via removing that particular permission (chmod 600); however, this will not persist after a restart of K3S.

Manually adding the specified items to the CRD does not resolve the issue, as the same error regarding the missing definitions will continue to persist. i.e. KUBE_EDITOR="nano" k3s kubectl edit crd volumesnapshotclasses.snapshot.storage.k8s.io And adding the following: Annotation: meta.helm.sh/release-name: openebs meta.helm.sh/release-namespace: ix-openebs Label: app.kubernetes.io/managed-by: Helm

To Reproduce

On a fresh installation of TrueNAS-SCALE-24.04-RC.1: Follow instructions listed here: TrueCharts Dragonfish Storage Guide Pretty basic, but ensured that the path format was correct and that this was not within the ix-applications dataset.

Expected Behavior

Immediate installation without errors, just like how chart V4.2.5 installed without error.

Screenshots

firefox_E1hY1DF97c firefox_v7C9ExL4Wb

Additional Context

This same error also occurred when attempting to upgrade from V4.2.5 on a prior installation.

I've read and agree with the following

PrivatePuffin commented 7 months ago

Do not EVER EVER start randomly editing things on TrueNAS SCALE. That means we cannot work with you on your bugreport and you're for-ever invalidated to get support from us.

PrivatePuffin commented 7 months ago

Fixed. Upstream fucked-up their helm-chart, again.

nicholas-fedor commented 7 months ago

Thanks for the prompt response.

truecharts-admin commented 1 month ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists