Dev and Ops , and might be the opposite.

How to recover juju from a lost ~/.juju (OpenStack Provider)

If you have accidentally lost the ~/.juju directory or the
host where your juju client runs, then the following procedure can help you to recover access to your environment.

Note that this document covers only the OpenStack provider, but might apply for others as well.
We are assuming that the units that composes your juju deployment are still alive, specially your bootstrap host.

First, you need to have a new machine, setup a new ssh key and install juju-core.

Replace the environ-uuid and uuid with the environment uid, then the first ca-certentry
with the ca-cert specified on the second step. Then the next ca-cert and ca-private-key
with the contents of the file /var/lib/juju/server.pem that you got from the bootstrap node.

Once you are done, you need to regenerate your admin-password with a new one, use the following
Go script to re-generate:

At this point you should be access to switch into your new environment and run a juju status.

$ juju switch recovery
$ juju status

Accessing via SSH

For accessing via juju ssh you need to copy your new RSA public key into ~/.ssh/authorized_keys for every
juju machine. After doing this, you need to manually modify the database to use your new ssh key

Jorge Niedbalski

Hey there!, welcome.
Welcome to my personal blog, my name is Jorge Niedbalski
and this is a space for ramblings about systems, software, books and some personal notes.
My work life is almost entirely related to Linux and Open Source , particularly
in projects related to managing systems and cloud computing platforms.
Nowadays, I am interested in openstack, containers, virtualization and
monitoring software and often I find myself using and/or writing/reading software on this
this spectrum.
I also like to write useful pieces of software typically written in Python
or C and lately i've been quite interested into learning the Go language.
In my personal life my time is fullfilled between my family, traveling
or reading something interesting.
I hope you can find something useful on this space, feel free to comment
or reach me out jnr@metaklass.org.