Is it correct the 'maas-server:' should be 'http://localhost/MAAS' in the .juju/environments.yaml?

Asked by Henrik Kreil

Hi

Is it correct the 'maas-server:' should be 'http://localhost/MAAS' in the .juju/environments.yaml?

OE:
# uname -a
Linux maas 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"
# juju --version
juju 0.7

Error output:
# juju -v status
2013-04-28 23:30:19,937 DEBUG Initializing juju status runtime
2013-04-28 23:30:19,960 INFO Connecting to environment...
2013-04-28 23:30:20,007 ERROR Cannot connect to environment: Unexpected ConnectionRefusedError interacting with provider: Connection was refused by other side: 111: Connection refused.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/juju/providers/common/connect.py", line 43, in run
    client = yield self._internal_connect(share)
ProviderInteractionError: Unexpected ConnectionRefusedError interacting with provider: Connection was refused by other side: 111: Connection refused.
Traceback (most recent call last):
Failure: juju.errors.ProviderInteractionError: Unexpected ConnectionRefusedError interacting with provider: Connection was refused by other side: 111: Connection refused.
2013-04-28 23:30:20,011 ERROR Traceback (most recent call last):
Failure: juju.errors.ProviderInteractionError: Unexpected ConnectionRefusedError interacting with provider: Connection was refused by other side: 111: Connection refused.

2013-04-28 23:30:20,011 ERROR Unexpected ConnectionRefusedError interacting with provider: Connection was refused by other side: 111: Connection refused.

# cat ~/.juju/environments.yaml
default: maas
environments:
  maas:
    type: maas
    maas-server: http://localhost:5240
    maas-oauth: LONG_AND_COMPLICATED
    admin-secret: nothing
    default-series: precise
  sample:
    type: ec2
    control-bucket: juju-6e98f7cb65114cfd869668ebc168712c
    admin-secret: 7ee3223658be4217834706a45b791dfa
    default-series: precise
    ssl-hostname-verification: true

A wget on the http://locahost:5240 return a connection refused.
If I change the maas-server to :80 instead of 5240, the juju bootstrap complains about

juju bootstrap
2013-04-28 23:36:44,051 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
2013-04-28 23:36:44,906 ERROR No matching node is available.
cadm@maas:~$ juju status
2013-04-28 23:36:53,808 INFO Connecting to environment...
2013-04-28 23:36:54,109 ERROR juju environment not found: is the environment bootstrapped?

 juju status
2013-04-28 23:35:47,212 INFO Connecting to environment...
2013-04-28 23:35:47,232 ERROR juju environment not found: is the environment bootstrapped?

# juju bootstrap
2013-04-28 23:35:54,701 ERROR Listing valid maas-tags failed: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/1.0/tags/ was not found on this server.</p>
<hr>
<address>Apache/2.2.22 (Ubuntu) Server at localhost Port 80</address>
</body></html>

2013-04-28 23:35:54,706 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
2013-04-28 23:35:54,821 ERROR Bootstrap aborted because file storage is not writable: Unexpected HTTP 404 trying to PUT http://localhost:80/api/1.0/files/

Changing the maas-server: to http://localhost/MAAS
I get: juju bootstrap
2013-04-28 23:36:44,051 INFO Bootstrapping environment 'maas' (origin: distro type: maas)...
2013-04-28 23:36:44,906 ERROR No matching node is available.

Which might be correct according to : http://askubuntu.com/questions/172011/no-matching-node-is-available-error-when-trying-to-bootstrap-juju

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu maas Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1
Revision history for this message
Mohamed (idhammad-mohamed) said :
#2

You can try with your MaaS @IP:
for example:
"http://192.168.10.1/MAAS"

Revision history for this message
ashraf (akbrzy) said :
#3

Try:

your-host-name:80/MAAS

put i want to ask about

admin-secret: what should it have to be

Can you help with this problem?

Provide an answer of your own, or ask Henrik Kreil for more information if necessary.

To post a message you must log in.