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

spotweb hostPath mounted on wrong pod #7825

Closed
1 task done
EdwinKM opened this issue Mar 21, 2023 · 3 comments
Closed
1 task done

spotweb hostPath mounted on wrong pod #7825

EdwinKM opened this issue Mar 21, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@EdwinKM
Copy link

EdwinKM commented Mar 21, 2023

App Name

spotweb

SCALE Version

22.02.3

App Version

1.5.1_7.0.26

Application Events

N/A

Application Logs

N/A

Application Configuration

N/A

Describe the bug

spotweb seems to start 2 pods: "spotweb" and "postgresql". The data to persist seems to be the database data of "/bitnami/postgresql". However, if we use TrueNas to add a hostPath mount it is attached to the "spotweb".

Meaning we can only use PVC to persist data.

To Reproduce

1: install "spotweb"
2: make a hostpath mapping /truenas_host/dataset/spotnet -> /bitnami/postgresql
3: start spotweb
4: shell-into the "spotweb" pod and notice the (empty) /bitnami/postgresql location
5: shell-into the "postgresql" pod and notice the /bitnami/postgresql location with the database files
6: look at the truenas host /truenas_host/dataset/spotnet and see the folder is still empty

Expected Behavior

Expected to be able to overrule the PVC and use hostPath for /bitnami/postgresql

Screenshots

N/A

Additional Context

Created forum post: https://www.truenas.com/community/threads/how-to-figuring-out-hostpath-mappings-for-apps.108716/

I know TrueCharts is not that keen about hostPath. At this moment i am also not sure if this is a bug:

  • in the Truecharts files? (is the "core app" wrongly specified?)
  • Does TrueNAS lack the feature to assign a mapping to a wanted POD?

I've read and agree with the following

  • I've checked all open and closed issues and my issue is not there.
@EdwinKM EdwinKM added the bug Something isn't working label Mar 21, 2023
@stavros-k
Copy link
Member

HostPath for databases cannot be used.
Database is a statefulset workload, which can only use VolumeClaimTemplates.
Also you can't mount any storage from the GUI to dependencies such as databases.

@Ornias1993
Copy link
Member

Also using an unsupported version pf SCALE…

@truecharts-admin
Copy link
Collaborator

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

@truecharts truecharts locked and limited conversation to collaborators Mar 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants