conjure-up fails openstack install, missing accounts.yaml

Bug #1630016 reported by Joey Officer
50
This bug affects 9 people
Affects Status Importance Assigned to Milestone
conjure-up
Fix Released
Critical
Adam Stokes
2.0
Fix Released
Critical
Adam Stokes

Bug Description

Fresh/Clean install of Ubuntu 16.04 LTS, with MAAS installed. Have 5 blades in the ready state, post commission. Run conjure-up and select Openstack Base for MAAS, select maas, enter the server IP (either public or private nic address) and the API key retrieved from the webui. After selecting ADD CREDENTIAL, I receive an error :

conjure-up/_unspecified_spell: [ERROR] conjure-up/_unspecified_spell: Showing dialog for exception:
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/conjureup/controllers/deploy/gui.py", line 30, in _pre_deploy_exec
    app.current_model)['provider-type']
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 32, in _decorator
    login(force=True)
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 102, in login
    account = get_account(app.current_controller)
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 512, in get_account
    return get_accounts().get(controller, {})
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 524, in get_accounts
    "Unable to find: {}".format(env))
Exception: Unable to find: /home/sysadmin/.local/share/juju/accounts.yaml
conjure-up/_unspecified_spell: [ERROR] conjure-up/_unspecified_spell: Showing dialog for exception:
Traceback (most recent call last):
  File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 32, in _decorator
    login(force=True)
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 102, in login
    account = get_account(app.current_controller)
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 512, in get_account
    return get_accounts().get(controller, {})
  File "/usr/lib/python3/dist-packages/conjureup/juju.py", line 524, in get_accounts
    "Unable to find: {}".format(env))
Exception: Unable to find: /home/sysadmin/.local/share/juju/accounts.yaml

Changed in conjure-up:
assignee: nobody → Adam Stokes (adam-stokes)
status: New → In Progress
importance: Undecided → High
Revision history for this message
Piotr Szelest (pszelest) wrote :
Download full text (3.2 KiB)

Same here but differend scenario.
Fresh clean install Ubuntu 16.04 server all updates/upgrades. Followed by

http://serenity-networks.com/install-openstack-on-a-single-ubuntu-16-04-1-xenial-xerus-server-updated/

as it is a single deplyment - proof of concept (dedicated HP DL380G6 16GB RAM, 2 CPU quad each 2.67GHz,2x147GB HDD).

conjure-up
[info] No spells found, syncing from registry, please wait.
Exception in ev.run():
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/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", line 294, in _call_callback
    return bool(callback(*args_to_pass))
  File "/usr/lib/python3/dist-packages/ubuntui/views/error.py", line 42, in cancel
    raise SystemExit("Install exited because of error.")
SystemExit: Install exited because of error.
Install exited because of error.

Message befo...

Read more...

Revision history for this message
Eric Sarault (eric-sarault) wrote :

Is there a resolution ETA?

Revision history for this message
Ken D'Ambrosio (ken-jots) wrote :

Ibid.
I have to admit -- it would be nice to be able to type "conjure-up openstack" and have it succeed at least *once*. So far, keeping packages current has meant I'm at least met with (three) different errors, but zero successes. This ticket perfectly describes my current error.

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

I'm looking into this bug, sorry for the delay. For everyone who is using http://serenity-networks.com/install-openstack-on-a-single-ubuntu-16-04-1-xenial-xerus-server-updated/ as a reference for installing conjure-up and openstack please stop. That article instructs you to add the development ppa of juju which is currently at 2.1beta3 rather than the support juju 2.0 series. Please follow whats on http://conjure-up.io for installing and running conjure-up.

I'll provide more information once I track down the issue

Changed in conjure-up:
importance: High → Critical
Revision history for this message
Adam Stokes (adam-stokes) wrote :

Using Ubuntu 16.04 with these ppa's

ppa:juju/stable
ppa:conjure-up/next

I am unable to reproduce this issue. Those still experiencing this issue after making sure those ppa's are correct please update this bug with the exact version of conjure-up and juju that is currently installed.

Thanks!

Changed in conjure-up:
status: In Progress → Incomplete
Revision history for this message
Damian Wojsław (damian-wojslaw) wrote :

Ran it today. Xenial:
sudo apt-add-repository ppa:juju/stable
sudo apt-add-repository ppa:conjure-up/next

lxd init ran

Choosing OpenStack with NovaLXD
Configure new cloud-> localhost
conjure-up returns with Unable to find: /home/trochej/.local/share/juju/accounts.yaml
conjure-up.log attached
screenshot of error message attached

Revision history for this message
Damian Wojsław (damian-wojslaw) wrote :
Revision history for this message
Liversmudge (ben-elman) wrote :

I found my accounts.yaml file in /home/User/accounts.yaml

I symlinked the file to /home/User/.local/share/juju/

Solved this issue ....

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi,
I ran into the same today, so I wanted to confirm and document the versions in use.
I followed the basic start at the front page of http://conjure-up.io/.

I used a freshly deployed host to avoid any influence from old mangling with ppa/sources.list
That (on Xenial) gives me:
conjure-up:
  Installed: 2.1.0-0~201701041302~ubuntu16.04.1
  Candidate: 2.1.0-0~201701041302~ubuntu16.04.1
  Version table:
 *** 2.1.0-0~201701041302~ubuntu16.04.1 500
        500 http://ppa.launchpad.net/conjure-up/next/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     0.1.2 500
        500 http://archive.ubuntu.com//ubuntu xenial-updates/universe amd64 Packages
     0.1.0 500
        500 http://archive.ubuntu.com//ubuntu xenial/universe amd64 Packages
juju-2.0:
  Installed: 1:2.0.2-0ubuntu1~16.04.1~juju1
  Candidate: 1:2.0.2-0ubuntu1~16.04.1~juju1
  Version table:
 *** 1:2.0.2-0ubuntu1~16.04.1~juju1 500
        500 http://ppa.launchpad.net/juju/stable/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.0-0ubuntu0.16.04.2 500
        500 http://archive.ubuntu.com//ubuntu xenial-updates/main amd64 Packages
     2.0~beta4-0ubuntu2 500
        500 http://archive.ubuntu.com//ubuntu xenial/main amd64 Packages
lxd:
  Installed: 2.0.8-0ubuntu1~ubuntu16.04.2
  Candidate: 2.0.8-0ubuntu1~ubuntu16.04.2
  Version table:
 *** 2.0.8-0ubuntu1~ubuntu16.04.2 500
        500 http://archive.ubuntu.com//ubuntu xenial-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.2-0ubuntu1~16.04.1 500
        500 http://archive.ubuntu.com//ubuntu xenial-security/main amd64 Packages
     2.0.0-0ubuntu4 500
        500 http://archive.ubuntu.com//ubuntu xenial/main amd64 Packages

That much to that, but then it doesn't seem to be a fatal error anymore.
I see it popping up in the log, but another error was the fatal one for me.

Timing: The error shows up when selecting the "localhost" for me and it start bottstrapping in the background.

After I had run that once it created a valid
/home/ubuntu/.local/share/juju/accounts.yaml for me and did no more show up in the log.

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

There was a problem that surfaced later on that resembled this issue. It has since been fixed and pushed out to our ppa.

Just updating this bug for those interested.

Changed in conjure-up:
status: Incomplete → Fix Released
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.