From: Alfredo Moralejo Alonso <amoralej@redhat.com>
Sent: Friday, February 24, 2017 8:20 PM
To: Boris Derzhavets
Cc: Javier Pena; rdo-list
Subject: Re: [rdo-list] ERROR oslo_messaging.rpc.server ImportError: No module named kubernetes on RDO Ocata AIO packstack setup
 
Hi,

magnum switched from python-k8s to python-kubernetes in
https://review.openstack.org/#/c/432421/ right before releasing
version 4.1.0 so we'll have to add that new package as soon as
> possible.

 At the moment  `pip install kubernetes` seems to help out :-

[root@Server73Centos ~(keystone_admin)]# magnum bay-create --name demoswarmbay --baymodel demoswarmbaymodel --master-count 1 --node-count 1

[root@Server73Centos ~(keystone_admin)]# openstack stack list
+-------------------------+-------------------------+-----------------+----------------------+--------------+
| ID                      | Stack Name              | Stack Status    | Creation Time        | Updated Time |
+-------------------------+-------------------------+-----------------+----------------------+--------------+
| 181fe7a5-8333-4ff1-8400 | demoswarmbay-           | CREATE_COMPLETE | 2017-02-25T12:03:30Z | None         |
| -9bcc075dc5e5           | h2t27gtmfmc6            |                 |                      |              |
+-------------------------+-------------------------+-----------------+----------------------+--------------+

[root@Server73Centos ~(keystone_admin)]# nova list

+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+
| ID                                   | Name                                                  | Status | Task State | Power State | Networks                    |
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+
| 596f6824-cd04-4c90-8cf9-1ac5831688a3 | de-44jlfim7l-0-svjcdh7xn5zf-swarm-master-r4nnoasv5g7b | ACTIVE | -          | Running     | =10.0.0.11, 192.168.122.100 |
| 06191eec-a3db-4219-9719-320637dc1019 | de-xer42fvuxmi-0-djcegfsgidi7-swarm-node-hxd4vqh3og7h | ACTIVE | -          | Running     | =10.0.0.10, 192.168.122.108 |
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+



[root@Server73Centos ~(keystone_admin)]# ssh -i oskey022517.pem fedora@192.168.122.100
Last login: Sat Feb 25 12:39:46 2017 from 192.168.122.54

[fedora@de-44jlfim7l-0-svjcdh7xn5zf-swarm-master-r4nnoasv5g7b ~]$ uname -a
Linux de-44jlfim7l-0-svjcdh7xn5zf-swarm-master-r4nnoasv5g7b.novalocal 4.9.9-200.fc25.x86_64 #1 SMP Thu Feb 9 17:28:13 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
 


  Thank you once again.
  Boris

> Best regards,

Alfredo


On Fri, Feb 24, 2017 at 6:11 PM, Alfredo Moralejo Alonso
<amoralej@redhat.com> wrote:
> 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@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@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@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@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@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@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@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@redhat.com
>> https://www.redhat.com/mailman/listinfo/rdo-list
www.redhat.com
The rdo-list mailing list provides a forum for discussions about installing, running, and using OpenStack on Red Hat based distributions. To see the collection of ...

>>
>> To unsubscribe: rdo-list-unsubscribe@redhat.com