kb_start_server fails with import problem

Bug #1715127 reported by Martynas Sklizmantas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KloudBuster
Fix Released
High
Alec Hothan

Bug Description

(vkb) root@testing:/home/vkb# kb_start_server
2017-09-05 14:18:59,720 [WARNING ] [py.warnings][MainThread] /home/vkb/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:46: DeprecationWarning: OpenSSL.rand is deprecated - you should use os.urandom instead
  import OpenSSL.SSL

2017-09-05 14:18:59,720 [WARNING ] [py.warnings][MainThread] /home/vkb/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:46: DeprecationWarning: OpenSSL.rand is deprecated - you should use os.urandom instead
  import OpenSSL.SSL

Traceback (most recent call last):
  File "/home/vkb/bin/pecan", line 11, in <module>
    load_entry_point('pecan', 'console_scripts', 'pecan')()
  File "/home/vkb/lib/python2.7/site-packages/pecan/commands/base.py", line 96, in handle_command_line
    runner.run(sys.argv[1:])
  File "/home/vkb/lib/python2.7/site-packages/pecan/commands/base.py", line 91, in run
    self.commands[ns.command_name]().run(ns)
  File "/home/vkb/lib/python2.7/site-packages/pecan/commands/serve.py", line 38, in run
    app = self.load_app()
  File "/home/vkb/lib/python2.7/site-packages/pecan/commands/base.py", line 162, in load_app
    return load_app(self.args.config_file)
  File "/home/vkb/lib/python2.7/site-packages/pecan/core.py", line 218, in load_app
    app = module.app.setup_app(_runtime_conf, **kwargs)
  File "/home/vkb/lib/python2.7/site-packages/kb_server/kb_server/app.py", line 26, in setup_app
    **app_conf
  File "/home/vkb/lib/python2.7/site-packages/pecan/__init__.py", line 86, in make_app
    app = Pecan(root, **kw)
  File "/home/vkb/lib/python2.7/site-packages/pecan/core.py", line 832, in __init__
    super(Pecan, self).__init__(*args, **kw)
  File "/home/vkb/lib/python2.7/site-packages/pecan/core.py", line 240, in __init__
    root = self.__translate_root__(root)
  File "/home/vkb/lib/python2.7/site-packages/pecan/core.py", line 275, in __translate_root__
    module = __import__(name, fromlist=fromlist)
  File "/home/vkb/lib/python2.7/site-packages/kb_server/kb_server/controllers/root.py", line 15, in <module>
    from api_cfg import ConfigController
  File "/home/vkb/lib/python2.7/site-packages/kb_server/kb_server/controllers/api_cfg.py", line 24, in <module>
    from kloudbuster.kb_config import KBConfig
  File "/home/vkb/lib/python2.7/site-packages/kloudbuster/kb_config.py", line 25, in <module>
    import kloudbuster
  File "/home/vkb/lib/python2.7/site-packages/kloudbuster/kloudbuster.py", line 31, in <module>
    from kb_config import KBConfig
ImportError: cannot import name KBConfig

(vkb) root@testing:/home/vkb# kloudbuster --version
7.0.0

Revision history for this message
Alec Hothan (ahothan) wrote :

Please confirm on what OS and version you are seeing this (Linux)?

Revision history for this message
Alec Hothan (ahothan) wrote :

I could reproduce on MacOSX, this is due to a circular dependency between kloudbuster,py and kb_config.py

Changed in kloudbuster:
assignee: nobody → Alec Hothan (ahothan)
status: New → In Progress
Revision history for this message
Alec Hothan (ahothan) wrote :

Fixed in 7.0.1

Changed in kloudbuster:
importance: Undecided → High
status: In Progress → Fix Released
Revision history for this message
Alec Hothan (ahothan) wrote :

gerrit: https://review.openstack.org/#/c/500895/

Let us know if you still see any issue

Revision history for this message
Martynas Sklizmantas (saint-ghost) wrote :

sorry, it has been on linux, redhat 7.3. In newly fetched pip package kloudbuster I can start http server fine, but docker image seems to be not updated.

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.