← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1586131] Re: 'creds' keyerror when deploying openstack/bigdata

 

** Changed in: conjure-up (Ubuntu)
       Status: In Progress => Fix Released

** Description changed:

+ [Impact]
+ Any user using the latest Juju beta7 which changed the cloud listing from lxd to localhost
+ 
+ [Test]
  I did the following:
  
  apt install conjure-up #per instructions
- conjure-up bigdata 
+ conjure-up bigdata
  In the menu
  
  choose Apache Flume/Spark/Zeppelin
  choose local host
  get:
  
  arosales@x230:~$ conjure-up bigdata
  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 1328, in run
-     raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
-   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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
-     return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
-     self.cb(result.label, create_cloud=True)
-   File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
-     return self.app.controllers['newcloud'].render(cloud)
-   File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
-     creds,
+   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 1328, in run
+     raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
+   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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
+     return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
+     self.cb(result.label, create_cloud=True)
+   File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
+     return self.app.controllers['newcloud'].render(cloud)
+   File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
+     creds,
  UnboundLocalError: local variable 'creds' referenced before assignment
  Traceback (most recent call last):
-   File "/usr/bin/conjure-up", line 9, in <module>
-     load_entry_point('conjure-up==0.1.0', 'console_scripts', 'conjure-up')()
-   File "/usr/share/conjure-up/conjure/app.py", line 222, in main
-     app.start()
-   File "/usr/share/conjure-up/conjure/app.py", line 171, in start
-     EventLoop.run()
-   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 1328, in run
-     raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
-   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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
-     return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
-     self.cb(result.label, create_cloud=True)
-   File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
-     return self.app.controllers['newcloud'].render(cloud)
-   File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
-     creds,
+   File "/usr/bin/conjure-up", line 9, in <module>
+     load_entry_point('conjure-up==0.1.0', 'console_scripts', 'conjure-up')()
+   File "/usr/share/conjure-up/conjure/app.py", line 222, in main
+     app.start()
+   File "/usr/share/conjure-up/conjure/app.py", line 171, in start
+     EventLoop.run()
+   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 1328, in run
+     raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
+   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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
+     return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
+     self.cb(result.label, create_cloud=True)
+   File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
+     return self.app.controllers['newcloud'].render(cloud)
+   File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
+     creds,
  UnboundLocalError: local variable 'creds' referenced before assignment
  arosales@x230:~$ conjure-up --version
  conjure-up 0.1.0
  arosales@x230:~$ uname -a
  Linux x230 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
- arosales@x230:~$ cat /etc/lsb-release 
+ arosales@x230:~$ cat /etc/lsb-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=16.04
  DISTRIB_CODENAME=xenial
  DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
  arosales@x230:~$
+ 
+ [Regression Potentional]
+ This fix supports both pre juju beta7 which used 'lxd' as the cloud type and beta7 upwards which supports 'localhost' as cloud type. Regression should therefore be minimal since it was completely broken with the latest release of juju.

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1586131

Title:
  'creds' keyerror when deploying openstack/bigdata

Status in conjure-up package in Ubuntu:
  Fix Released
Status in conjure-up source package in Xenial:
  New

Bug description:
  [Impact]
  Any user using the latest Juju beta7 which changed the cloud listing from lxd to localhost

  [Test]
  I did the following:

  apt install conjure-up #per instructions
  conjure-up bigdata
  In the menu

  choose Apache Flume/Spark/Zeppelin
  choose local host
  get:

  arosales@x230:~$ conjure-up bigdata
  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 1328, in run
      raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
    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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
      return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
      self.cb(result.label, create_cloud=True)
    File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
      return self.app.controllers['newcloud'].render(cloud)
    File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
      creds,
  UnboundLocalError: local variable 'creds' referenced before assignment
  Traceback (most recent call last):
    File "/usr/bin/conjure-up", line 9, in <module>
      load_entry_point('conjure-up==0.1.0', 'console_scripts', 'conjure-up')()
    File "/usr/share/conjure-up/conjure/app.py", line 222, in main
      app.start()
    File "/usr/share/conjure-up/conjure/app.py", line 171, in start
      EventLoop.run()
    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 1328, in run
      raise self._exc_info[0](self._exc_info[1]).with_traceback(self._exc_info[2])
    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/share/conjure-up/conjure/ui/views/cloud.py", line 21, in keypress
      return super().keypress(size, 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/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/share/conjure-up/conjure/ui/views/cloud.py", line 72, in submit
      self.cb(result.label, create_cloud=True)
    File "/usr/share/conjure-up/conjure/controllers/cloud.py", line 39, in finish
      return self.app.controllers['newcloud'].render(cloud)
    File "/usr/share/conjure-up/conjure/controllers/newcloud.py", line 118, in render
      creds,
  UnboundLocalError: local variable 'creds' referenced before assignment
  arosales@x230:~$ conjure-up --version
  conjure-up 0.1.0
  arosales@x230:~$ uname -a
  Linux x230 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
  arosales@x230:~$ cat /etc/lsb-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=16.04
  DISTRIB_CODENAME=xenial
  DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
  arosales@x230:~$

  [Regression Potentional]
  This fix supports both pre juju beta7 which used 'lxd' as the cloud type and beta7 upwards which supports 'localhost' as cloud type. Regression should therefore be minimal since it was completely broken with the latest release of juju.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/conjure-up/+bug/1586131/+subscriptions


References