Fails to deploy when specifying secret from a file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard Charm |
Fix Released
|
Undecided
|
Vern Hart |
Bug Description
When specifying secret from a file, for example like this:
secret: include-
you will see the following error in juju logs and will fail to deploy.
2020-03-24 02:04:05 INFO juju-log shared-db:5: Wrote template /usr/share/
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
2020-03-24 02:04:06 DEBUG shared-
This happens when you create openstack-
Here is the bundle that I have used to reproduce this issue.
https:/
For now, you can workaround this issue by creating the file with printf to not have the breakline in the end.
$ printf "encryptcookies
Changed in charm-openstack-dashboard: | |
assignee: | nobody → Vern Hart (vern) |
Changed in charm-openstack-dashboard: | |
milestone: | none → 20.08 |
Changed in charm-openstack-dashboard: | |
status: | Fix Committed → Fix Released |
The charm should definitely strip whitespace (or at least newlines) off the end of the secret config value.