Dreamhost progress

Michael Hudson-Doyle michael.hudson at canonical.com
Thu Jul 16 23:04:53 UTC 2015


On 17 July 2015 at 10:51, Martin Packman <martin.packman at canonical.com> wrote:
>
> That gets us to the current problem though, which is the Dreamhost
> image labelled "Ubuntu-14.04-Trusty" does not have an 'ubuntu' user.
> Instead, the base user account is 'dhc-user' and cloud-init adds your
> keys there. I can see three possible ways past this:
>
> 1) Get them to use our standard cloud images

I don't know if this is a helpful remark at all, but the way cloud
images work is not that they have an ubuntu user set up in the image:
cloud-init creates the user account and it is called 'ubuntu' by
default. So maybe if you can supply cloud-init config when booting,
you can get the user to still be called that (it's the
system_info.default_user.name key I think).

Cheers,
mwh

> 2) Add config option to use a different username than ubuntu (ick)
> 3) Make the cloudconfig generation detect the lack of the ubuntu user and add it
>
> Our centos path sort of does the last of these already, but we assume
> all ubuntu versions are sanely set up.
>
> Martin
>
>
> [0] Openstack provider should work without object-store
> <https://bugs.launchpad.net/juju-core/+bug/1456265>
> [1] DreamCompute
> <https://www.dreamhost.com/cloud/computing/>
> [2] Patch needed to progress with bootstrap:
> diff --git a/provider/openstack/provider.go b/provider/openstack/provider.go
> index 4ba9a73..e84b5c9 100644
> --- a/provider/openstack/provider.go
> +++ b/provider/openstack/provider.go
> @@ -770,7 +770,9 @@ func authClient(ecfg *environConfig) client.AuthenticatingCl
>         if !ecfg.SSLHostnameVerification() {
>                 newClient = client.NewNonValidatingClient
>         }
> -       return newClient(cred, authMode, nil)
> +       client := newClient(cred, authMode, nil)
> +       client.SetRequiredServiceTypes([]string{"compute"})
> +       return client
>  }
>
> --
> Juju-dev mailing list
> Juju-dev at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju-dev



More information about the Juju-dev mailing list