<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> Alfredo Moralejo Alonso <amoralej@redhat.com><br>
<b>Sent:</b> Friday, February 24, 2017 8:20 PM<br>
<b>To:</b> Boris Derzhavets<br>
<b>Cc:</b> Javier Pena; rdo-list<br>
<b>Subject:</b> Re: [rdo-list] ERROR oslo_messaging.rpc.server ImportError: No module named kubernetes on RDO Ocata AIO packstack setup</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi,<br>
<br>
magnum switched from python-k8s to python-kubernetes in<br>
<a href="https://review.openstack.org/#/c/432421/" id="LPlnk788888" previewremoved="true">https://review.openstack.org/#/c/432421/</a> right before releasing<br>
version 4.1.0 so we'll have to add that new package as soon as<br>
> possible.<br>
<br>
At the moment `pip install kubernetes` seems to help out :-<br>
<br>
<font size="2"><span style="font-size:10pt;">[root@Server73Centos ~(keystone_admin)]#</span></font> <span>magnum bay-create --name demoswarmbay --baymodel demoswarmbaymodel --master-count 1 --node-count 1<br>
<br>
</span>
<div>[root@Server73Centos ~(keystone_admin)]# openstack stack list<br>
+-------------------------+-------------------------+-----------------+----------------------+--------------+<br>
| ID | Stack Name | Stack Status | Creation Time | Updated Time |<br>
+-------------------------+-------------------------+-----------------+----------------------+--------------+<br>
| 181fe7a5-8333-4ff1-8400 | demoswarmbay- | CREATE_COMPLETE | 2017-02-25T12:03:30Z | None |<br>
| -9bcc075dc5e5 | h2t27gtmfmc6 | | | |<br>
+-------------------------+-------------------------+-----------------+----------------------+--------------+<br>
<br>
[root@Server73Centos ~(keystone_admin)]# nova list<br>
<br>
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+<br>
| ID | Name | Status | Task State | Power State | Networks |<br>
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+<br>
| 596f6824-cd04-4c90-8cf9-1ac5831688a3 | de-44jlfim7l-0-svjcdh7xn5zf-swarm-master-r4nnoasv5g7b | ACTIVE | - | Running | =10.0.0.11, 192.168.122.100 |<br>
| 06191eec-a3db-4219-9719-320637dc1019 | de-xer42fvuxmi-0-djcegfsgidi7-swarm-node-hxd4vqh3og7h | ACTIVE | - | Running | =10.0.0.10, 192.168.122.108 |<br>
+--------------------------------------+-------------------------------------------------------+--------+------------+-------------+-----------------------------+<br>
<br>
<br>
<br>
<div>[root@Server73Centos ~(keystone_admin)]# ssh -i oskey022517.pem fedora@192.168.122.100<br>
Last login: Sat Feb 25 12:39:46 2017 from 192.168.122.54<br>
<br>
[fedora@de-44jlfim7l-0-svjcdh7xn5zf-swarm-master-r4nnoasv5g7b ~]$ uname -a<br>
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</div>
<br>
</div>
<br>
<br>
Thank you once again.<br>
Boris<br>
<br>
> Best regards,<br>
<br>
Alfredo<br>
<br>
<br>
On Fri, Feb 24, 2017 at 6:11 PM, Alfredo Moralejo Alonso<br>
<amoralej@redhat.com> wrote:<br>
> Hi Boris,<br>
><br>
> What version and repo of RDO are you using?<br>
><br>
> Best regards,<br>
><br>
> Alfredo<br>
><br>
><br>
> On Fri, Feb 24, 2017 at 5:51 PM, Boris Derzhavets<br>
> <bderzhavets@hotmail.com> wrote:<br>
>> Update generated answer file :-<br>
>><br>
>><br>
>> # Specify 'y' to install OpenStack Orchestration (heat). ['y', 'n']<br>
>> CONFIG_HEAT_INSTALL=y<br>
>><br>
>> # Specify 'y' to install OpenStack Container Infrastructure<br>
>> # Management Service (magnum). ['y', 'n']<br>
>> CONFIG_MAGNUM_INSTALL=y<br>
>><br>
>> AIO packstack deployment is OK. public flat network recreated<br>
>><br>
>><br>
>> [root@Server73Centos ~(keystone_admin)]# openstack service list<br>
>> +----------------------------------+------------+-----------------+<br>
>> | ID | Name | Type |<br>
>> +----------------------------------+------------+-----------------+<br>
>> | 12965615fc464139907a31c41d4bb70f | keystone | identity |<br>
>> | 250f93b7759140e28e11bd5f10b852fb | cinder | volume |<br>
>> | 32017c9eb1ac41bea75b41b05084832a | placement | placement |<br>
>> | 34bf4ef146b946f4ab2a5a8661fbf64d | heat-cfn | cloudformation |<br>
>> | 507ae90b1fe342e9a5d6ae72a590803d | aodh | alarming |<br>
>> | 75951116d8434862b588953f099d43d2 | ceilometer | metering |<br>
>> | 80cb79bcc2454b9ba69d5ee296f71bc7 | magnum | container-infra | <===<br>
>> | 9a64bb95a5de4aca836f33ed5a9ed79b | neutron | network |<br>
>> | 9b94ea12ec1849c588e96277e737f6c2 | swift | object-store |<br>
>> | 9dffaf1da9004043bc6b8dd2212722cc | gnocchi | metric |<br>
>> | a79fb914b5db48acb018c223d1006e62 | heat | orchestration |<br>
>> | affbc4a180304e5cb55c070f9e12087a | cinderv2 | volumev2 |<br>
>> | cf440e11bd10456792f77558c380eaa8 | glance | image |<br>
>> | edc36132717049609af9d4f7255fe2a9 | nova | compute |<br>
>> | f4a444f5fe2e41b5b9cf51c912f2932e | cinderv3 | volumev3 |<br>
>><br>
>> +----------------------------------+------------+-----------------+<br>
>><br>
>> [root@Server73Centos ~(keystone_admin)]# openstack endpoint list | grep<br>
>> magnum<br>
>> | 359d16b05d8b48efb3e7c7d5b515ad41 | RegionOne | magnum |<br>
>> container-infra | True | internal | <a href="http://192.168.122.54:9511/v1" id="LPlnk945715" previewremoved="true">
http://192.168.122.54:9511/v1</a><br>
>> |<br>
>> | abc84dd59613460e92074eff6ff2a6f5 | RegionOne | magnum |<br>
>> container-infra | True | public | <a href="http://192.168.122.54:9511/v1" id="LPlnk132340" previewremoved="true">
http://192.168.122.54:9511/v1</a><br>
>> |<br>
>> | d89da369cf444db69d06c50505079287 | RegionOne | magnum |<br>
>> container-infra | True | admin | <a href="http://192.168.122.54:9511/v1" id="LPlnk455490" previewremoved="true">
http://192.168.122.54:9511/v1</a><br>
>> |<br>
>><br>
>> [root@Server73Centos ~(keystone_admin)]# magnum service-list<br>
>> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+<br>
>> | id | host | binary | state | disabled | disabled_reason |<br>
>> created_at | updated_at |<br>
>> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+<br>
>> | 1 | - | magnum-conductor | up | | - |<br>
>> 2017-02-24T15:19:59+00:00 | 2017-02-24T16:28:05+00:00 |<br>
>> +----+------+------------------+-------+----------+-----------------+---------------------------+---------------------------+<br>
>><br>
>> However, /var/log/magnum/magnum-conductor.log reports<br>
>><br>
>><br>
>> 2017-02-24 19:08:25.569 24641 WARNING<br>
>> magnum.common.cert_manager.local_cert_manager<br>
>> [req-65e47653-e20e-4add-97ec-3033f42acb01 - - - - -] Storing certificate<br>
>> data on the local filesystem. CertManager type 'local' should be used for<br>
>> testing purpose.<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server<br>
>> [req-65e47653-e20e-4add-97ec-3033f42acb01 - - - - -] Exception during<br>
>> message handling<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server Traceback<br>
>> (most recent call last):<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/server.py", line 155,<br>
>> in _process_incoming<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server res =<br>
>> self.dispatcher.dispatch(message)<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line<br>
>> 222, in dispatch<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server return<br>
>> self._do_dispatch(endpoint, method, ctxt, args)<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/oslo_messaging/rpc/dispatcher.py", line<br>
>> 192, in _do_dispatch<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server result =<br>
>> func(ctxt, **new_args)<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/osprofiler/profiler.py", line 153, in<br>
>> wrapper<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server return<br>
>> f(*args, **kwargs)<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/magnum/conductor/handlers/cluster_conductor.py",<br>
>> line 66, in cluster_create<br>
>> 2017-02-24 19:08:25.861 24641 ERROR oslo_messaging.rpc.server cluster)<br>
>><br>
>> . . . . . . .<br>
>><br>
>><br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2229, in<br>
>> load<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server return<br>
>> self.resolve()<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in<br>
>> resolve<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server module =<br>
>> __import__(self.module_name, fromlist=['__name__'], level=0)<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/magnum/drivers/k8s_fedora_atomic_v1/driver.py",<br>
>> line 15, in <module><br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server from<br>
>> magnum.drivers.common import k8s_monitor<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/magnum/drivers/common/k8s_monitor.py",<br>
>> line 16, in <module><br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server from<br>
>> magnum.conductor import k8s_api as k8s<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server File<br>
>> "/usr/lib/python2.7/site-packages/magnum/conductor/k8s_api.py", line 17, in<br>
>> <module><br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server from<br>
>> kubernetes import client as k8s_config<br>
>> 2017-02-24 19:10:37.032 24641 ERROR oslo_messaging.rpc.server ImportError:<br>
>> No module named kubernetes<br>
>><br>
>> EOF<br>
>><br>
>> ------------------------------------------------------------<br>
>><br>
>> Consequently following error occurs<br>
>><br>
>> ------------------------------------------------------------<br>
>><br>
>> [root@Server73Centos ~(keystone_admin)]# magnum bay-create --name<br>
>> demoswarmbay --baymodel demoswarmbaymodel --master-count 1 --node-count 1<br>
>> WARNING: Bay commands are deprecated and will be removed in a future<br>
>> release.<br>
>> Use cluster commands to avoid seeing this message.<br>
>> Request to create bay 5e8bf225-6ade-4766-8436-d7c39a488cff has been<br>
>> accepted.<br>
>><br>
>> [root@Server73Centos ~(keystone_admin)]# magnum bay-show demoswarmbay<br>
>> WARNING: Bay commands are deprecated and will be removed in a future<br>
>> release.<br>
>> Use cluster commands to avoid seeing this message.<br>
>> +--------------------+--------------------------------------+<br>
>> | Property | Value |<br>
>> +--------------------+--------------------------------------+<br>
>> | status | CREATE_FAILED |<br>
>> | uuid | 5e8bf225-6ade-4766-8436-d7c39a488cff |<br>
>> | stack_id | - |<br>
>> | status_reason | No module named kubernetes | <=====<br>
>> | created_at | 2017-02-24T16:08:24+00:00 |<br>
>> | name | demoswarmbay |<br>
>> | updated_at | 2017-02-24T16:08:25+00:00 |<br>
>> | discovery_url | - |<br>
>> | bay_create_timeout | 60 |<br>
>> | api_address | - |<br>
>> | coe_version | - |<br>
>> | baymodel_id | 6c2ab006-5879-4425-80a6-8d51951ee7ba |<br>
>> | master_addresses | [] |<br>
>> | bay_faults | {} |<br>
>> | node_addresses | [] |<br>
>> | master_count | 1 |<br>
>> | container_version | - |<br>
>> | node_count | 1 |<br>
>> +--------------------+--------------------------------------+<br>
>><br>
>><br>
>> [root@Server73Centos /(keystone_admin)]# find . -name "kuberne*" -print<br>
>> find: ‘./run/user/1000/gvfs’: Permission denied<br>
>> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.py<br>
>> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.pyc<br>
>> ./usr/lib/python2.7/site-packages/sos/plugins/kubernetes.pyo<br>
>> ./usr/lib/python2.7/site-packages/magnum/drivers/common/templates/kubernetes<br>
>> ./usr/lib/python2.7/site-packages/magnum/drivers/k8s_fedora_ironic_v1/image/kubernetes<br>
>><br>
>><br>
>> I believe I am missing something attempting to setup magnum, heat build even<br>
>><br>
>> doesn't start.<br>
>><br>
>> Please , advise.<br>
>><br>
>><br>
>> Boris.<br>
>><br>
>> ________________________________<br>
>><br>
>><br>
>> _______________________________________________<br>
>> rdo-list mailing list<br>
>> rdo-list@redhat.com<br>
>> <a href="https://www.redhat.com/mailman/listinfo/rdo-list" id="LPlnk102035" previewremoved="true">
https://www.redhat.com/mailman/listinfo/rdo-list</a>
<div id="LPBorder_GT_14880264889870.7800554357675092" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_14880264889840.35156180928182745" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_14880264889850.9266218860523191" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_14880264889850.7445423545265677"></div>
<div id="LPTitle_14880264889850.5512612964366178" style="top: 0px; color: rgb(0, 120, 215); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_14880264889860.7595428169155678" style="text-decoration: none;" href="https://www.redhat.com/mailman/listinfo/rdo-list" target="_blank">rdo-list Info Page - Red Hat</a></div>
<div id="LPMetadata_14880264889860.778535524941188" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 14px;">
www.redhat.com</div>
<div id="LPDescription_14880264889870.9544577451483972" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
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 ...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
>><br>
>> To unsubscribe: rdo-list-unsubscribe@redhat.com<br>
</div>
</span></font></div>
</div>
</body>
</html>