juju bootstrap failed with "discarding API open error"

Bug #1477920 reported by kevin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
New
Undecided
Unassigned

Bug Description

#tail –f command.log
[DEBUG • 07-16 08:52:15] • cloudinstall.multi_install • (multi_install.py, do_install, 143)]
   Problem during bootstrap: '{'output': 'Bootstrapping environment "maas"
Starting new instance for initial state server
Launching instance
WARNING no architecture was specified, acquiring an arbitrary node
 - /MAAS/api/1.0/nodes/node-8620728c-2bb1-11e5-9498-0050568e7fe1/
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to perfumed-chain.maas:22
Attempting to connect to perfumed-chain.maas:22
Attempting to connect to 192.168.11.29:22
Logging to /var/log/cloud-init-output.log on remote host
Running apt-get update
Running apt-get upgrade
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Fetching tools: curl -sSfw \'tools from %{url_effective} downloaded: HTTP %{http_code}; time %{time_total}s; size %{size_download} bytes; speed %{speed_download} bytes/s \' --retry 10 -o $bin/tools.tar.gz <[https://streams.canonical.com/juju/tools/releases/juju-1.24.2-trusty-amd64.tgz]>
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap agent installed
WARNING discarding API open error: unable to connect to "wss://69.172.200.109:17070/environment/c0db9ace-778a-44e5-859c-3929ee7b7638/api"
ERROR unable to connect to "wss://perfumed-chain.maas:17070/environment/c0db9ace-778a-44e5-859c-3929ee7b7638/api"
', 'status': 1}'
[DEBUG • 07-16 08:52:15] • cloudinstall.utils • (utils.py, global_exchandler, 63)]
   Traceback (most recent call last):
  File "/usr/share/openstack/cloudinstall/utils.py", line 78, in run
    super().run()
  File "/usr/lib/python3.4/threading.py", line 868, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/openstack/cloudinstall/machinewait.py", line 127, in do_continue
    self.installer.do_install()
  File "/usr/share/openstack/cloudinstall/multi_install.py", line 144, in do_install
    raise Exception("Problem with juju bootstrap.")
Exception: Problem with juju bootstrap.

On MAAS node:
ubuntu@perfumed-chain:/var/log$ netstat -nat| grep 17070
tcp 0 0 127.0.0.1:33323 127.0.0.1:17070 ESTABLISHED
tcp 0 0 127.0.0.1:33350 127.0.0.1:17070 ESTABLISHED
tcp6 0 0 :::17070 :::* LISTEN
tcp6 0 0 127.0.0.1:17070 127.0.0.1:33323 ESTABLISHED
tcp6 0 0 127.0.0.1:17070 127.0.0.1:33350 ESTABLISHED

Revision history for this message
Narinder Gupta (narindergupta) wrote :

IS this server behind enterprises firewall proxy? Also please paste your environment.yaml file and the bundle or command you are trying to run as part of bootstrap.

Curtis Hovey (sinzui)
tags: added: bootstrap maas-provider
tags: added: cloud-installer
Revision history for this message
kevin (kevin-x-wang) wrote :

the server should be behind enterprise firewall, could you please tell which website or port should i apply to access on firewall?

i am using command "openstack-install" to deploy openstack with juju, in log, i can see command "juju bootstrap" to deploy bootstrap, and it failed here.

openstack@ubuntukevin:~/.cloud-install/juju$ cat environments.yaml
default: maas

environments:
  maas:
    type: maas
    maas-server: 'http://10.103.116.208/MAAS/'
    maas-oauth: 'J4vczbfz3bRtFvqVzd:EPdY82n7dUZb6ycAtt:sKG8Uj49h8Hryqxd4sEyhRUnxdUsWH2a'
    admin-secret: openstack
    default-series: trusty
    authorized-keys-path: ~/.ssh/id_rsa.pub
    apt-http-proxy: 'http://10.103.116.208:8000/'
    lxc-clone: true
    bootstrap-timeout: 3600
    no-proxy: localhost,10.103.116.208

  openstack:
    type: openstack
    use-floating-ip: true
    use-default-secgroup: true
    network: ubuntu-net
    auth-url: http://keystoneurl:5000/v2.0/
    tenant-name: ubuntu
    region: RegionOne
    auth-mode: userpass
    username: ubuntu
    password: openstackopenstack@ubuntukevin:~/.cloud-install/juju$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.