Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I try to deploy MAAS/Juju for the first time and I have some problems when i try to bootstrap JuJu.

Here's my errors :

root@maas-server:~/.juju# juju bootstrap
Launching instance
WARNING picked arbitrary tools &{"1.18.4-precise-amd64" "https://streams.canonical.com/juju/tools/releases/juju-1.18.4-precise-amd64.tgz" "fa87616011cf2fbc7f25a646b59070aa8df1e54d6edfd279281894e9c3fbcc4d" %!q(int64=5360167)}
ERROR bootstrap failed: cannot start bootstrap instance: gomaasapi: got error back from server: 403 FORBIDDEN (You are not allowed to start up this node.)
Bootstrap failed, destroying environment
ERROR cannot start bootstrap instance: gomaasapi: got error back from server: 403 FORBIDDEN (You are not allowed to start up this node.)

here's my environments.yaml

environments:
  vb-maas:
    type: maas
    maas-server: http://10.0.0.1:80/MAAS
    maas-oauth: "BMpXsbZDqP4xUvyYJu:8ctDLuRsAc7UNj7T2M:YwBHUDXUEvhzuXZpHBky9p8wmsyFdMCL"
    admin-secret: super-secret-made-up-admin-key
    default-series: precise
    authorized-keys-path: /root/.ssh/id_rsa.pub

Ubuntu serve (maas server) is a 14.04 version. Juju : 1.18.1-trusty-amd64 MAAS : 1.5.2+bzr2282-0ubuntu

I have 2 nodes "ready". Considering the "403 error", I assume there is a problem with a key, password or privilege... I deleted MAAS-key and re-generate a another one, no change.

Thank you for your help !

share|improve this question
    
Looking at documentation I noticed that maas-server is reported with ' char: maas-server: 'httpd://10.0.0.1:80/MAAS'. I don't know if this is the problem, but it simple to try. –  Letizia Jul 19 at 19:36
    
No replace "http" by "httpd" doesn't change anything. it just adds another error because "httpd" isn't a supported protocol. Can you link the page where you found this information ? –  Caelifer Jul 19 at 20:19
    
Oh! sorry I was wrong in typing! This the right: maas-server: 'http://10.0.0.1:80/MAAS' and this is the link but I think you already view. –  Letizia Jul 19 at 20:25
    
I tried replace " by ', replace IP by hostname etc but as expected, doesn't change anything... –  Caelifer Jul 19 at 20:30
    
Have you added an SSH key to your MAAS profile? –  Adam Collard Jul 20 at 21:28

1 Answer 1

I found a solution. I didn't specify a power type for my nodes. My nodes are vm and I didn't understand what the doc want me to do with the virsh type. So I chose "WOL". And for the time being, it works. Juju is deployed and I can deploy openstack services on my nodes.

Thx everyone for the help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.