[rdo-list] ERROR oslo_messaging.rpc.server ImportError: No module named kubernetes on RDO Ocata AIO packstack setup

Alfredo Moralejo Alonso amoralej at redhat.com
Fri Feb 24 17:11:43 UTC 2017


Hi Boris,

What version and repo of RDO are you using?

Best regards,

Alfredo


On Fri, Feb 24, 2017 at 5:51 PM, Boris Derzhavets
<bderzhavets at hotmail.com> wrote:
> Update generated answer file :-
>
>
> # Specify 'y' to install OpenStack Orchestration (heat). ['y', 'n']
> CONFIG_HEAT_INSTALL=y
>
> # Specify 'y' to install OpenStack Container Infrastructure
> # Management Service (magnum). ['y', 'n']
> CONFIG_MAGNUM_INSTALL=y
>
> AIO packstack deployment is OK. public flat network recreated
>
>
> [root at Server73Centos ~(keystone_admin)]# openstack service list
> +----------------------------------+------------+-----------------+
> | ID                               | Name       | Type            |
> +----------------------------------+------------+-----------------+
> | 12965615fc464139907a31c41d4bb70f | keystone   | identity        |
> | 250f93b7759140e28e11bd5f10b852fb | cinder     | volume          |
> | 32017c9eb1ac41bea75b41b05084832a | placement  | placement       |
> | 34bf4ef146b946f4ab2a5a8661fbf64d | heat-cfn   | cloudformation  |
> | 507ae90b1fe342e9a5d6ae72a590803d | aodh       | alarming        |
> | 75951116d8434862b588953f099d43d2 | ceilometer | metering        |
> | 80cb79bcc2454b9ba69d5ee296f71bc7 | magnum     | container-infra | <===
> | 9a64bb95a5de4aca836f33ed5a9ed79b | neutron    | network         |
> | 9b94ea12ec1849c588e96277e737f6c2 | swift      | object-store    |
> | 9dffaf1da9004043bc6b8dd2212722cc | gnocchi    | metric          |
> | a79fb914b5db48acb018c223d1006e62 | heat       | orchestration   |
> | affbc4a180304e5cb55c070f9e12087a | cinderv2   | volumev2        |
> | cf440e11bd10456792f77558c380eaa8 | glance     | image           |
> | edc36132717049609af9d4f7255fe2a9 | nova       | compute         |
> | f4a444f5fe2e41b5b9cf51c912f2932e | cinderv3   | volumev3        |
>
> +----------------------------------+------------+-----------------+
>
> [root at Server73Centos ~(keystone_admin)]# openstack endpoint list | grep
> magnum
> | 359d16b05d8b48efb3e7c7d5b515ad41 | RegionOne | magnum       |
> container-infra | True    | internal  | http://192.168.122.54:9511/v1
> |
> | abc84dd59613460e92074eff6ff2a6f5 | RegionOne | magnum       |
> container-infra | True    | public    | http://192.168.122.54:9511/v1
> |
> | d89da369cf444db69d06c50505079287 | RegionOne | magnum       |
> container-infra | True    | admin     | http://192.168.122.54:9511/v1
> |
>
> [root at Server73Centos ~(keystone_admin)]# magnum service-list
> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
> | id | host | binary           | state | disabled | disabled_reason |
> created_at                | updated_at                |
> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
> | 1  | -    | magnum-conductor | up    |          | -               |
> 2017-02-24T15:19:59+00:00 | 2017-02-24T16:28:05+00:00 |
> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+
>
> However, /var/log/magnum/magnum-conductor.log reports
>
>
> 2017-02-24 19:08:25.569 24641 WARNING
> magnum.common.cert_manager.local_cert_manager
> [req-65e47653-e20e-4add-97ec-3033f42acb01 - - - - -] Storing certificate
> data on the local filesystem. CertManager type 'local' should be used for
> testing purpose.
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server
> [req-65e47653-e20e-4add-97ec-3033f42acb01 - - - - -] Exception during
> message handling
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server Traceback
> (most recent call last):
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155,
> in _process_incoming
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server     res =
> self.dispatcher.dispatch(message)
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line
> 222, in dispatch
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server     return
> self._do_dispatch(endpoint, method, ctxt, args)
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line
> 192, in _do_dispatch
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server     result =
> func(ctxt, **new_args)
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in
> wrapper
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server     return
> f(*args, **kwargs)
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/magnum/conductor/handlers/cluster_conductor.py",
> line 66, in cluster_create
> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server     cluster)
>
> . . . . . . .
>
>
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2229, in
> load
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server     return
> self.resolve()
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in
> resolve
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server     module =
> __import__(self.module_name, fromlist=['__name__'], level=0)
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/magnum/drivers/k8s_fedora_atomic_v1/driver.py",
> line 15, in <module>
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server     from
> magnum.drivers.common import k8s_monitor
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/magnum/drivers/common/k8s_monitor.py",
> line 16, in <module>
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server     from
> magnum.conductor import k8s_api as k8s
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server   File
> "/usr/lib/python2.7/site-packages/magnum/conductor/k8s_api.py", line 17, in
> <module>
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server     from
> kubernetes import client as k8s_config
> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server ImportError:
> No module named kubernetes
>
> EOF
>
> ------------------------------------------------------------
>
> Consequently following error occurs
>
> ------------------------------------------------------------
>
> [root at Server73Centos ~(keystone_admin)]# magnum bay-create --name
> demoswarmbay --baymodel demoswarmbaymodel --master-count 1 --node-count 1
> WARNING: Bay commands are deprecated and will be removed in a future
> release.
> Use cluster commands to avoid seeing this message.
> Request to create bay 5e8bf225-6ade-4766-8436-d7c39a488cff has been
> accepted.
>
> [root at Server73Centos ~(keystone_admin)]# magnum bay-show demoswarmbay
> WARNING: Bay commands are deprecated and will be removed in a future
> release.
> Use cluster commands to avoid seeing this message.
> +--------------------+--------------------------------------+
> | Property           | Value                                |
> +--------------------+--------------------------------------+
> | status             | CREATE_FAILED                        |
> | uuid               | 5e8bf225-6ade-4766-8436-d7c39a488cff |
> | stack_id           | -                                    |
> | status_reason      | No module named kubernetes           | <=====
> | created_at         | 2017-02-24T16:08:24+00:00            |
> | name               | demoswarmbay                         |
> | updated_at         | 2017-02-24T16:08:25+00:00            |
> | discovery_url      | -                                    |
> | bay_create_timeout | 60                                   |
> | api_address        | -                                    |
> | coe_version        | -                                    |
> | baymodel_id        | 6c2ab006-5879-4425-80a6-8d51951ee7ba |
> | master_addresses   | []                                   |
> | bay_faults         | {}                                   |
> | node_addresses     | []                                   |
> | master_count       | 1                                    |
> | container_version  | -                                    |
> | node_count         | 1                                    |
> +--------------------+--------------------------------------+
>
>
> [root at Server73Centos /(keystone_admin)]# find . -name "kuberne*" -print
> find: ‘./run/user/1000/gvfs’: Permission denied
> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.py
> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.pyc
> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.pyo
> ./usr/lib/python2.7/site-packages/magnum/drivers/common/templates/kubernetes
> ./usr/lib/python2.7/site-packages/magnum/drivers/k8s_fedora_ironic_v1/image/kubernetes
>
>
> I believe I am missing something attempting to setup magnum, heat build even
>
> doesn't start.
>
> Please , advise.
>
>
> Boris.
>
> ________________________________
>
>
> _______________________________________________
> rdo-list mailing list
> rdo-list at redhat.com
> https://www.redhat.com/mailman/listinfo/rdo-list
>
> To unsubscribe: rdo-list-unsubscribe at redhat.com




More information about the dev mailing list