Skip to content

Openstack Integration is not working on stackstorm 3.8.0 #39

@ghost

Description

Hi all,

i have problems to get the openstack integration running in StackStorm 3.8.0 environment.

st2 run openstack.server.list                                                                                                                                                                                                           ─╯
.
id: <<SOMEID>>
action.ref: openstack.server.list
context.user: <<USERNAME>>
parameters: None
status: failed
start_timestamp: Tue, 23 May 2023 15:51:24 CEST
end_timestamp: Tue, 23 May 2023 15:51:25 CEST
result:
  exit_code: 1
  result: None
  stderr: "/opt/stackstorm/packs/openstack/actions/src/lib/base.py:84: PkgResourcesDeprecationWarning: Parameters to load are deprecated.  Call .resolve and .require separately.
  command_cls = entry_point.load(require=False)
Traceback (most recent call last):
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 395, in <module>
    obj.run()
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/python_runner/python_action_wrapper.py", line 214, in run
    output = action.run(**self._parameters)
  File "/opt/stackstorm/packs/openstack/actions/src/lib/base.py", line 36, in run
    self.parser = self._get_parser(kwargs.pop('ep'))
  File "/opt/stackstorm/packs/openstack/actions/src/lib/base.py", line 84, in _get_parser
    command_cls = entry_point.load(require=False)
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2450, in load
    return self.resolve()
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2456, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/openstackclient/compute/v2/server.py", line 25, in <module>
    from novaclient.v2 import servers
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/novaclient/v2/__init__.py", line 16, in <module>
    from novaclient.v2.client import Client   # noqa
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/novaclient/v2/client.py", line 18, in <module>
    from novaclient import client
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/novaclient/client.py", line 27, in <module>
    from keystoneauth1 import adapter
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/keystoneauth1/adapter.py", line 19, in <module>
    from keystoneauth1 import session
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/keystoneauth1/session.py", line 40, in <module>
    import osprofiler.web as osprofiler_web
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/osprofiler/web.py", line 19, in <module>
    from osprofiler import profiler
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/osprofiler/profiler.py", line 27, in <module>
    from osprofiler import notifier
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/osprofiler/notifier.py", line 18, in <module>
    from osprofiler.drivers import base
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/osprofiler/drivers/__init__.py", line 4, in <module>
    from osprofiler.drivers import loginsight  # noqa
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/osprofiler/drivers/loginsight.py", line 25, in <module>
    from oslo_concurrency.lockutils import synchronized
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/oslo_concurrency/lockutils.py", line 37, in <module>
    import eventlet
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/__init__.py", line 17, in <module>
    from eventlet import convenience
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/convenience.py", line 7, in <module>
    from eventlet.green import socket
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/green/socket.py", line 4, in <module>
    __import__('eventlet.green._socket_nodns')
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/green/_socket_nodns.py", line 11, in <module>
    from eventlet import greenio
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/greenio/__init__.py", line 3, in <module>
    from eventlet.greenio.base import *  # noqa
  File "/opt/stackstorm/st2/lib/python3.8/site-packages/eventlet/greenio/base.py", line 468, in <module>
    from OpenSSL import SSL
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import SSL, crypto
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/OpenSSL/SSL.py", line 19, in <module>
    from OpenSSL.crypto import (
  File "/opt/stackstorm/virtualenvs/openstack/lib/python3.8/site-packages/OpenSSL/crypto.py", line 3258, in <module>
    utils.deprecated(
TypeError: deprecated() got an unexpected keyword argument 'name'
"
  stdout: ''

Installation Type: Repository
OS: Red Hat Enterprise Linux release 8.7 (Ootpa)

Any Ideas?

Thanks for help
Ronnie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions