You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Use Google Cloud Storage backendstorageBackend: storages.backends.gcloud.GoogleCloudStorage# Provide the necessary configuration for GCSstorageConfig:
GS_BUCKET_NAME: 'your-gcs-bucket-name'GS_PROJECT_ID: 'your-google-cloud-project-id'GS_CREDENTIALS_JSON: '/path/to/your/credentials.json'# Optional settings for customizing GCS behaviorGS_DEFAULT_ACL: 'publicRead'# Set default access control, e.g., 'publicRead' or 'private'GS_FILE_OVERWRITE: False # Set to False if you want to prevent overwriting filesplugins: ["django-storages"]
Current Behavior & Steps to Reproduce
We've added the values above, mounted the credentials json using a secret. The file is mounted properly and found.
However, when booting the following error occurs:
django.core.exceptions.ImproperlyConfigured: Unable to import plugin django-storages: Module not found. Check that the plugin module has been installed within the correct Python environment.
There is no option to install python modules.
Expected Behavior
I would expect that when the values.yaml has an option for storageBackends, which references to django-storages, that the packages is either already installed, either there is an option to install it.
Currently no custom python packages can be installed.
I think using the initContainer would be a great place to install these packages. Either by checking if storageBackend is set, and if so installing django-storages[google/aws/azure], or by adding an option to install custom python packages.
We can offcourse build our own docker image and include the package, but that seems counterintuitive.
NetBox Logs
django.core.exceptions.ImproperlyConfigured: Unable to import plugin django-storages: Module not found. Check that the plugin module has been installed within the correct Python environment.
[ Use DB_WAIT_DEBUG=1 in netbox.env to print full traceback for errors here ]
⏳ Waiting on DB... (0s / 30s)
django.core.exceptions.ImproperlyConfigured: Unable to import plugin django-storages: Module not found. Check that the plugin module has been installed within the correct Python environment.
The text was updated successfully, but these errors were encountered:
Thanks for filing this issue, @pimvandenbroek.
I'm going to close it as a duplicate of #173.
The use case is very relevant, though, and it will probably help to consider correctly the referenced issue.
The Helm chart version
netbox-5.0.0-beta.132
Environment Versions
Custom chart values
Current Behavior & Steps to Reproduce
We've added the values above, mounted the credentials json using a secret. The file is mounted properly and found.
However, when booting the following error occurs:
There is no option to install python modules.
Expected Behavior
I would expect that when the values.yaml has an option for storageBackends, which references to django-storages, that the packages is either already installed, either there is an option to install it.
Currently no custom python packages can be installed.
I think using the initContainer would be a great place to install these packages. Either by checking if storageBackend is set, and if so installing django-storages[google/aws/azure], or by adding an option to install custom python packages.
We can offcourse build our own docker image and include the package, but that seems counterintuitive.
NetBox Logs
The text was updated successfully, but these errors were encountered: