launching congress-server failed because import error

Bug #1459141 reported by Rui Chen
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
congress
Fix Released
Undecided
Rui Chen

Bug Description

stack@devstack:/opt/stack/congress/congress$ [master]$ git log -1
commit 50d3d073c42569032d92a53413f57564c0e79ac9
Author: Alexander Yip <email address hidden>
Date: Fri Apr 24 14:53:13 2015 -0700

    Add status api calls for policy and rule

    This change allows an API client to request the status of a rule or policy.
    The response will reflect the state of the policy engine, not the state of the
    database, since the policy engine and the database can become out of sync.

    For a policy that exists, the API response will contain the policy name and
    id. For a rule that exists, the API response will contain the rule name, id,
    comment, and original string. If the rule or policy does not exist, the
    congress server will return a 404 error.

    Change-Id: I5c134e14d1ae5fec802a649be9834f86dab5c37a

Launching congress-server failed.

cd /opt/stack/congress && python /usr/local/bin/congress-server --config-file /etc/congress/congress.conf
2015-05-27 15:37:43.612 11230 INFO congress.server.congress_server [-] Starting congress server on port 1789
2015-05-27 15:37:43.613 11230 INFO congress.common.config [-] Config paste file: /etc/congress/api-paste.ini
2015-05-27 15:37:43.655 11230 CRITICAL congress [-] ImportError: No module named webserivce
2015-05-27 15:37:43.655 11230 TRACE congress Traceback (most recent call last):
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/local/bin/congress-server", line 10, in <module>
2015-05-27 15:37:43.655 11230 TRACE congress sys.exit(main())
2015-05-27 15:37:43.655 11230 TRACE congress File "/opt/stack/congress/congress/server/congress_server.py", line 102, in main
2015-05-27 15:37:43.655 11230 TRACE congress cfg.CONF.api_workers))
2015-05-27 15:37:43.655 11230 TRACE congress File "/opt/stack/congress/congress/server/congress_server.py", line 54, in create_api_server
2015-05-27 15:37:43.655 11230 TRACE congress app = deploy.loadapp('config:%s' % conf, name=name)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2015-05-27 15:37:43.655 11230 TRACE congress return loadobj(APP, uri, name=name, **kw)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2015-05-27 15:37:43.655 11230 TRACE congress return context.create()
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-05-27 15:37:43.655 11230 TRACE congress return self.object_type.invoke(self)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-05-27 15:37:43.655 11230 TRACE congress **context.local_conf)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2015-05-27 15:37:43.655 11230 TRACE congress val = callable(*args, **kw)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/urlmap.py", line 28, in urlmap_factory
2015-05-27 15:37:43.655 11230 TRACE congress app = loader.get_app(app_name, global_conf=global_conf)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-05-27 15:37:43.655 11230 TRACE congress name=name, global_conf=global_conf).create()
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
2015-05-27 15:37:43.655 11230 TRACE congress return self.object_type.invoke(self)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2015-05-27 15:37:43.655 11230 TRACE congress **context.local_conf)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 55, in fix_call
2015-05-27 15:37:43.655 11230 TRACE congress val = callable(*args, **kw)
2015-05-27 15:37:43.655 11230 TRACE congress File "/opt/stack/congress/congress/auth.py", line 68, in pipeline_factory
2015-05-27 15:37:43.655 11230 TRACE congress app = loader.get_app(pipeline[-1])
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2015-05-27 15:37:43.655 11230 TRACE congress name=name, global_conf=global_conf).create()
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 362, in app_context
2015-05-27 15:37:43.655 11230 TRACE congress APP, name=name, global_conf=global_conf)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context
2015-05-27 15:37:43.655 11230 TRACE congress section)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
2015-05-27 15:37:43.655 11230 TRACE congress value = import_string(found_expr)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string
2015-05-27 15:37:43.655 11230 TRACE congress return pkg_resources.EntryPoint.parse("x=" + s).load(False)
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2345, in load
2015-05-27 15:37:43.655 11230 TRACE congress return self.resolve()
2015-05-27 15:37:43.655 11230 TRACE congress File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2351, in resolve
2015-05-27 15:37:43.655 11230 TRACE congress module = __import__(self.module_name, fromlist=['__name__'], level=0)
2015-05-27 15:37:43.655 11230 TRACE congress File "/opt/stack/congress/congress/service.py", line 20, in <module>
2015-05-27 15:37:43.655 11230 TRACE congress from congress.api import router
2015-05-27 15:37:43.655 11230 TRACE congress File "/opt/stack/congress/congress/api/router.py", line 16, in <module>
2015-05-27 15:37:43.655 11230 TRACE congress from congress.api.webserivce import CollectionHandler
2015-05-27 15:37:43.655 11230 TRACE congress ImportError: No module named webserivce
2015-05-27 15:37:43.655 11230 TRACE congress
congress failed to start

Rui Chen (kiwik-chenrui)
Changed in congress:
assignee: nobody → Rui Chen (kiwik-chenrui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/185871

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/185871
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=dc4f2bd17ccca5f95f565bca593a34ee1cd6d3d3
Submitter: Jenkins
Branch: master

commit dc4f2bd17ccca5f95f565bca593a34ee1cd6d3d3
Author: Rui Chen <email address hidden>
Date: Wed May 27 15:58:43 2015 +0800

    Fix congress-server launching failed

    Launching failed because of typo issue, 'webserivce'
    should be 'webservice' in api/router.py.

    Change-Id: Icca88e8d93723829c135f505abe8e88c710bc833
    Closes-Bug: #1459141

Changed in congress:
status: In Progress → Fix Committed
Tim Hinrichs (thinrichs)
Changed in congress:
milestone: none → liberty-2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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