ERROR openining API connection: no API addresses

Bug #1609593 reported by D
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
conjure-up
Incomplete
Undecided
Adam Stokes

Bug Description

Ive been having issues with getting conjure up from 16.04 to instantiate openstack for sometime, today I took it upon myself to cook everything down & reinstall MAAS from bare metal.

After a couple instances of trying to make a go of everything in the NON-Autopilot way of things, I got "ERROR openining API connection: no API addresses", I installed the conjure-up 2.0.0 prerelease & it updated juju, then took another stab at this and Im still getting the same thing...

looking at /var/log/conjure-up/combined.log, I get:

Aug 3 18:34:36 SLC-MAAS conjure-up/openstack: [ERROR] Showing dialog for exception:#012Traceback (most recent call last):#012 File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run#012 result = self.fn(*self.args, **self.kwargs)#012 File "/usr/share/conjure-up/conjure/controllers/clouds/gui.py", line 18, in __add_model#012 juju.add_model(app.current_model)#012 File "/usr/share/conjure-up/conjure/juju.py", line 584, in add_model#012 "Unable to create model: {}".format(sh.stderr.decode('utf8')))#012Exception: Unable to create model: ERROR opening API connection: no API addresses
Aug 3 18:57:40 SLC-MAAS conjure-up/openstack: [ERROR] Showing dialog for exception:#012Traceback (most recent call last):#012 File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run#012 result = self.fn(*self.args, **self.kwargs)#012 File "/usr/share/conjure-up/conjure/controllers/clouds/gui.py", line 18, in __add_model#012 juju.add_model(app.current_model)#012 File "/usr/share/conjure-up/conjure/juju.py", line 584, in add_model#012 "Unable to create model: {}".format(sh.stderr.decode('utf8')))#012Exception: Unable to create model: ERROR opening API connection: no API addresses

Revision history for this message
Adam Stokes (adam-stokes) wrote :

Can you juju bootstrap outside of conjure-up?

Changed in conjure-up:
assignee: nobody → Adam Stokes (adam-stokes)
status: New → Incomplete
Revision history for this message
D (darby-t) wrote :
Download full text (6.1 KiB)

Im pretty new to juju, and so far the only thing Ive used it for is conjure-up.

Trying juju bootstrap I get...

maasadmin@SLC-MAAS:~$ juju bootstrap
Clouds
aws
aws-china
aws-gov
azure
azure-china
cloudsigma
google
joyent
localhost
rackspace

Select a cloud [localhost]:

Enter a name for the Controller [maasadmin-localhost]:

ERROR cannot find network interface "lxdbr0": route ip+net: no such network interface
ERROR invalid config: route ip+net: no such network interface

Just for giggles, I tried conjure-up openstack since its been a while & it seems to get a bit farther, but once I select continue conjure-up blows up with:
[info] Loading current openstack spells from Juju Charmstore, please wait.
Exception in ev.run():
Traceback (most recent call last):
  File "/usr/share/conjure-up/ubuntui/ev.py", line 83, in run
    cls.loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 278, in run
    self._run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 376, in _run
    self.event_loop.run()
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 1326, in run
    self._loop.run_forever()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 345, in run_forever
    self._run_once()
  File "/usr/lib/python3.5/asyncio/base_events.py", line 1312, in _run_once
    handle._run()
  File "/usr/lib/python3.5/asyncio/events.py", line 125, in _run
    self._callback(*self._args)
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 393, in <lambda>
    event_loop, callback, self.get_available_raw_input())
  File "/usr/lib/python3/dist-packages/urwid/raw_display.py", line 493, in parse_input
    callback(processed, processed_codes)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 403, in _update
    self.process_input(keys)
  File "/usr/lib/python3/dist-packages/urwid/main_loop.py", line 503, in process_input
    k = self._topmost_widget.keypress(self.screen_size, k)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 643, in keypress
    return self._current_widget.keypress(size, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1128, in keypress
    return self.body.keypress( (maxcol, remaining), key )
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 836, in keypress
    return self._original_widget.keypress((maxcol,), key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1587, in keypress
    key = self.focus.keypress(tsize, key)
  File "/usr/lib/python3/dist-packages/urwid/decoration.py", line 621, in keypress
    return self._original_widget.keypress(maxvals, key)
  File "/usr/lib/python3/dist-packages/urwid/container.py", line 1587, in keypress
    key = self.focus.keypress(tsize, key)
  File "/usr/lib/python3/dist-packages/urwid/wimp.py", line 535, in keypress
    self._emit('click')
  File "/usr/lib/python3/dist-packages/urwid/widget.py", line 463, in _emit
    signals.emit_signal(self, name, self, *args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", line 264, in emit
    result |= self._call_callback(callback, user_arg, user_args, args)
  File "/usr/lib/python3/dist-packages/urwid/signals.py", li...

Read more...

Revision history for this message
D (darby-t) wrote :

I did sudo lxd init, configured the bridge & what not on the maas box (Interestingly enough, when I do ifconfig, I dont have lxdbr0)

I reran thru the conjure-up, using both 'maas' & 'localhost' as targets; maas seems to immediately blow up, local host I at least get to the next screen where I have the option for Openstack with LXD & Openstack

Choosing either, I get a meltdown

and from /var/log/conjure-up/combined.log I get:
Aug 16 11:50:51 SLC-MAAS conjure-up/openstack: [ERROR] Showing dialog for exception:#012Traceback (most recent call last):#012 File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run#012 result = self.fn(*self.args, **self.kwargs)#012 File "/usr/share/conjure-up/conjure/controllers/clouds/gui.py", line 18, in __add_model#012 juju.add_model(app.current_model)#012 File "/usr/share/conjure-up/conjure/juju.py", line 584, in add_model#012 "Unable to create model: {}".format(sh.stderr.decode('utf8')))#012Exception: Unable to create model: ERROR opening API connection: no API addresses
Aug 16 11:51:00 SLC-MAAS conjure-up/openstack: [ERROR] ERROR cannot find network interface "lxdbr0": route ip+net: no such network interface#012ERROR invalid config: route ip+net: no such network interface
Aug 16 11:51:00 SLC-MAAS conjure-up/openstack: [ERROR] Showing dialog for exception:#012NoneType
Aug 16 11:51:07 SLC-MAAS conjure-up/openstack: [ERROR] ERROR cannot find network interface "lxdbr0": route ip+net: no such network interface#012ERROR invalid config: route ip+net: no such network interface
Aug 16 11:51:07 SLC-MAAS conjure-up/openstack: [ERROR] Showing dialog for exception:#012NoneType

Revision history for this message
Adam Stokes (adam-stokes) wrote :

Make sure your `lxdbr0` device is listed, you can trigger it with `lxc finger` as the user you are running conjure-up as.

Revision history for this message
Rich Trivett (rtrivett) wrote :

Started juju -debug and killed the cmd window part way through. Now can't connect?

C:\Users\RICH>juju add-model wordpress
ERROR opening API connection: no API addresses

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.