FAQ | This is a LIVE service | Changelog

Skip to content

Logan breaks with '--workspace development init'

It looks like running logan --workspace development init breaks it.

I suspect this is because it's only intended that logan --workspace default init be used for initialisation.

If that's the case, it would be good to detect non-default workspace args when init is being run, and gracefully handle with a message to the user.

Here's the output seen when the development workspace is specified.

The output then loops repeatedly over /ttyN lines until forcefully terminated.

❯ logan --workspace development init
INFO     Pulling docker image "registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform:1.1"                                     tool.py:145
1.1: Pulling from uis/devops/infra/dockerimages/logan-terraform
Digest: sha256:0b9e5fb324c52d4d57453ce579be1b82c61dd024ac536cc01d787d4d90c5da35
Status: Image is up to date for registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform:1.1
registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform:1.1

What's Next?
  1. Sign in to your Docker account → docker login
  2. View a summary of image vulnerabilities and recommendations → docker scout quickview registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform:1.1
INFO     Using "/tmp" as default temporary directory on OS X.                                                                                              tool.py:188
INFO     Using temporary directory "/tmp/university_organisational_chart-xw3cd3xz"                                                                         tool.py:205
INFO     Executing: docker "run" "--rm" "-i" "-t" "-v" "/Users/nick/Projects/devops/iam/orgchart/infrastructure:/workdir:ro" "-v"                          tool.py:331
         "university_organisational_chart-terraform-data:/terraform_data/" "-v"
         "/tmp/university_organisational_chart-xw3cd3xz/environment:/terraform_data/environment:ro" "-v" "/run/host-services/ssh-auth.sock:/ssh-agent"
         "-e" "SSH_AUTH_SOCK=/ssh-agent" "-v" "/var/run/docker.sock:/var/run/docker.sock" "-v"
         "/Users/nick/.config/gcloud/application_default_credentials.json:/credentials.json"
         "registry.gitlab.developers.cam.ac.uk/uis/devops/infra/dockerimages/logan-terraform:1.1" "init"
can't run '/sbin/openrc': No such file or directory
can't run '/sbin/openrc': No such file or directory
can't run '/sbin/openrc': No such file or directory
can't open /dev/tty1: No such file or directory
can't open /dev/tty2: No such file or directory
can't open /dev/tty3: No such file or directory
can't open /dev/tty4: No such file or directory
can't open /dev/tty5: No such file or directory
can't open /dev/tty6: No such file or directory
can't open /dev/tty1: No such file or directory