Admin account not created if values are provided on initial deployment

Bug #2014035 reported by Chris Johnston
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Landscape Charm
Fix Committed
Medium
Kevin Nasto

Bug Description

Deploying landscape-server with `admin_name`, `admin_email`, and `admin_password` defined causes the admin account to not be created, still being directed to `/new-standalone-user`.

Doing a --reset on `admin_name` and then configuring `admin_name` again creates the user.

Related branches

Revision history for this message
Chris Johnston (cjohnston) wrote :

2023-04-03 17:28:35 INFO juju.worker.uniter.operation runhook.go:159 ran "db-relation-created" hook (via hook dispatching script: dispatch)
2023-04-03 17:28:35 INFO juju.worker.uniter resolver.go:159 found queued "leader-elected" hook
2023-04-03 17:28:36 INFO juju.worker.uniter.operation runhook.go:159 ran "leader-elected" hook (via hook dispatching script: dispatch)
2023-04-03 17:28:37 ERROR unit.landscape-server/0.juju-log server.go:316 Bootstrap account waiting on default root url..
2023-04-03 17:28:38 INFO juju.worker.uniter.operation runhook.go:159 ran "config-changed" hook (via hook dispatching script: dispatch)
2023-04-03 17:28:38 INFO juju.worker.uniter resolver.go:159 found queued "start" hook
2023-04-03 17:28:38 INFO unit.landscape-server/0.juju-log server.go:316 Running legacy hooks/start.
2023-04-03 17:28:38 INFO juju.worker.uniter.operation runhook.go:159 ran "start" hook (via hook dispatching script: dispatch)
2023-04-03 17:28:39 DEBUG juju.worker.dependency engine.go:580 "metric-collect" manifold worker started at 2023-04-03 17:28:39.009529628 +0000 UTC
2023-04-03 17:28:39 INFO juju.worker.uniter.operation runhook.go:159 ran "replicas-relation-changed" hook (via hook dispatching script: dispatch)
2023-04-03 17:28:40 INFO unit.landscape-server/0.juju-log server.go:316 db:7: db relation not yet ready. Missing keys: ['master', 'allowed-units', 'port', 'user']

Changed in landscape-charm:
assignee: nobody → Kevin Nasto (silverdrake11)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Kevin Nasto (silverdrake11) wrote :
Changed in landscape-charm:
status: In Progress → Fix Committed
Revision history for this message
Nobuto Murata (nobuto) wrote :

Subscribing ~field-high.

Could you please backport it to the stable branch and make it available in the stable channel of the charm?

channels: |
  latest/stable: 87 2023-04-04 (87) 6MB amd64, arm64 ubuntu@22.04, ubuntu@20.04
  latest/candidate: ↑
  latest/beta: 86 2023-04-04 (86) 6MB amd64, arm64 ubuntu@22.04, ubuntu@20.04
  latest/edge: 98 2023-10-18 (98) 6MB amd64, arm64 ubuntu@22.04, ubuntu@20.04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.