settingsLogin | Registersettings

[Openstack-operators] [magnum] issue using magnum on Pike

0 votes

So I started a fresh install of Pike on OpenSuSE in my test lab at work, and I’m having a hard time getting Magnum to work. I’m getting this error on Cluster Create:

http://paste.openstack.org/show/622304/

(AttributeError: 'module' object has no attribute 'APIClient')

I’m running OpenSuSE 42.2, here are my magnum packages:
gvicopnstk01:~ # rpm -qa | grep -i magnum
openstack-magnum-api-5.0.2~dev8-1.2.noarch
python-magnum-5.0.2~dev8-1.2.noarch
openstack-magnum-5.0.2~dev8-1.2.noarch
openstack-magnum-conductor-5.0.2~dev8-1.2.noarch
python-magnumclient-2.6.0-1.11.noarch

Command I’m running to create the cluster:
gvicopnstk01:~ # magnum cluster-create --name k8s-cluster --cluster-template k8s-cluster-template --master-count 1 --node-count 1

The Template I’m using:
gvicopnstk01:~ # magnum cluster-template-show 6fa514c1-f598-46b1-8bba-6c7c728094bc
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| insecureregistry | - |
| labels | {} |
| updated
at | - |
| floatingipenabled | True |
| fixedsubnet | - |
| master
flavorid | m1.small |
| uuid | 6fa514c1-f598-46b1-8bba-6c7c728094bc |
| no
proxy | - |
| httpsproxy | - |
| tls
disabled | False |
| keypairid | AW |
| public | False |
| http
proxy | - |
| dockervolumesize | - |
| servertype | vm |
| external
networkid | provider |
| cluster
distro | fedora-atomic |
| imageid | fedora-atomic-ocata |
| volume
driver | - |
| registryenabled | False |
| docker
storagedriver | devicemapper |
| apiserver
port | - |
| name | k8s-cluster-template |
| createdat | 2017-09-28T19:25:58+00:00 |
| network
driver | flannel |
| fixednetwork | - |
| coe | kubernetes |
| flavor
id | m1.small |
| masterlbenabled | False |
| dns_nameserver | 192.168.240.150 |

(The image name is Ocata because I downloaded the Ocata image, I figured it was fine)

The Error I’m getting I cannot find anything about it on Google. Any got any ideas the right direction I should go?

Thanks,
Andrew Wojnarek | Sr. Systems Engineer | ATS Group, LLC
mobile 717.856.6901 | andy.wojnarek@TheATSGroup.comandy.wojnarek@TheATSGroup.com
Galileo Performance Explorer Bloghttp://galileosuite.com/blog/ Offers Deep Insights for Server/Storage Systems


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
asked Oct 3, 2017 in openstack-operators by Andy_Wojnarek (440 points)   3 3

5 Responses

0 votes

The current release of Magnum is 5.0.1. You seem to be running a later dev
release. Perhaps sine regression got introduced in that build?

-Erik

On Sep 29, 2017 8:59 AM, "Andy Wojnarek" andy.wojnarek@theatsgroup.com
wrote:

So I started a fresh install of Pike on OpenSuSE in my test lab at work,
and I’m having a hard time getting Magnum to work. I’m getting this error
on Cluster Create:

http://paste.openstack.org/show/622304/

(AttributeError: 'module' object has no attribute 'APIClient')

I’m running OpenSuSE 42.2, here are my magnum packages:

gvicopnstk01:~ # rpm -qa | grep -i magnum

openstack-magnum-api-5.0.2~dev8-1.2.noarch

python-magnum-5.0.2~dev8-1.2.noarch

openstack-magnum-5.0.2~dev8-1.2.noarch

openstack-magnum-conductor-5.0.2~dev8-1.2.noarch

python-magnumclient-2.6.0-1.11.noarch

Command I’m running to create the cluster:

gvicopnstk01:~ # magnum cluster-create --name k8s-cluster
--cluster-template k8s-cluster-template --master-count 1 --node-count 1

The Template I’m using:

gvicopnstk01:~ # magnum cluster-template-show 6fa514c1-f598-46b1-8bba-
6c7c728094bc

+-----------------------+--------------------------------------+

| Property | Value |

+-----------------------+--------------------------------------+

| insecure_registry | - |

| labels | {} |

| updated_at | - |

| floatingipenabled | True |

| fixed_subnet | - |

| masterflavorid | m1.small |

| uuid | 6fa514c1-f598-46b1-8bba-6c7c728094bc |

| no_proxy | - |

| https_proxy | - |

| tls_disabled | False |

| keypair_id | AW |

| public | False |

| http_proxy | - |

| dockervolumesize | - |

| server_type | vm |

| externalnetworkid | provider |

| cluster_distro | fedora-atomic |

| image_id | fedora-atomic-ocata |

| volume_driver | - |

| registry_enabled | False |

| dockerstoragedriver | devicemapper |

| apiserver_port | - |

| name | k8s-cluster-template |

| created_at | 2017-09-28T19:25:58+00:00 |

| network_driver | flannel |

| fixed_network | - |

| coe | kubernetes |

| flavor_id | m1.small |

| masterlbenabled | False |

| dns_nameserver | 192.168.240.150 |

(The image name is Ocata because I downloaded the Ocata image, I figured it
was fine)

The Error I’m getting I cannot find anything about it on Google. Any got
any ideas the right direction I should go?

Thanks,

Andrew Wojnarek | Sr. Systems Engineer | ATS Group, LLC

mobile 717.856.6901 <(717)%20856-6901> | andy.wojnarek@TheATSGroup.com

Galileo Performance Explorer Blog * Offers
Deep Insights for Server/Storage Systems*


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Sep 29, 2017 by Erik_McCormick (3,880 points)   2 4
0 votes

Interesting.

The SuSE repos have 5.0.2 in the Pike repo:

gvicopnstk01:~ # zypper se -s magnum
zypper se -s magnum
Loading repository data...
Reading installed packages...

S | Name | Type | Version | Arch | Repository
---+-----------------------------------------+------------+----------------+--------+---------------------
| openstack-horizon-plugin-magnum-ui | package | 3.0.1~dev3-1.1 | noarch | Pike
| openstack-horizon-plugin-magnum-ui | srcpackage | 3.0.1~dev3-1.1 | noarch | Pike
| openstack-horizon-plugin-magnum-ui-test | package | 3.0.1~dev3-1.1 | noarch | Pike
i | openstack-magnum | package | 5.0.2~dev8-1.2 | noarch | (System Packages)
v | openstack-magnum | package | 5.0.2~dev8-2.1 | noarch | Pike
| openstack-magnum | srcpackage | 5.0.2~dev8-2.1 | noarch | Pike
i+ | openstack-magnum-api | package | 5.0.2~dev8-1.2 | noarch | (System Packages)
v | openstack-magnum-api | package | 5.0.2~dev8-2.1 | noarch | Pike
i+ | openstack-magnum-conductor | package | 5.0.2~dev8-1.2 | noarch | (System Packages)
v | openstack-magnum-conductor | package | 5.0.2~dev8-2.1 | noarch | Pike
| openstack-magnum-doc | package | 5.0.2~dev8-2.1 | noarch | Pike
| openstack-magnum-doc | srcpackage | 5.0.2~dev8-2.1 | noarch | Pike
| openstack-magnum-test | package | 5.0.2~dev8-2.1 | noarch | Pike
| python-horizon-plugin-magnum-ui | package | 3.0.1~dev3-1.1 | noarch | Pike
i | python-magnum | package | 5.0.2~dev8-1.2 | noarch | (System Packages)
v | python-magnum | package | 5.0.2~dev8-2.1 | noarch | Pike
i+ | python-magnumclient | package | 2.6.0-1.11 | noarch | Pike
v | python-magnumclient | package | 2.3.0-3.3 | noarch | openSUSE-Leap-42.3-0
| python-magnumclient | srcpackage | 2.6.0-1.11 | noarch | Pike
| python-magnumclient-doc | package | 2.6.0-1.11 | noarch | Pike
| python-magnumclient-doc | package | 2.3.0-3.3 | noarch | openSUSE-Leap-42.3-0

Thanks,
Andrew Wojnarek | Sr. Systems Engineer | ATS Group, LLC
mobile 717.856.6901 | andy.wojnarek@TheATSGroup.com
Galileo Performance Explorer Blog Offers Deep Insights for Server/Storage Systems

From: Erik McCormick emccormick@cirrusseven.com
Date: Friday, September 29, 2017 at 10:01 AM
To: Andrew Wojnarek andy.wojnarek@theatsgroup.com
Cc: openstack-operators openstack-operators@lists.openstack.org
Subject: Re: [Openstack-operators] [magnum] issue using magnum on Pike

The current release of Magnum is 5.0.1. You seem to be running a later dev release. Perhaps sine regression got introduced in that build?

-Erik

On Sep 29, 2017 8:59 AM, "Andy Wojnarek" andy.wojnarek@theatsgroup.com wrote:
So I started a fresh install of Pike on OpenSuSE in my test lab at work, and I’m having a hard time getting Magnum to work. I’m getting this error on Cluster Create:

http://paste.openstack.org/show/622304/

(AttributeError: 'module' object has no attribute 'APIClient')

I’m running OpenSuSE 42.2, here are my magnum packages:
gvicopnstk01:~ # rpm -qa | grep -i magnum
openstack-magnum-api-5.0.2~dev8-1.2.noarch
python-magnum-5.0.2~dev8-1.2.noarch
openstack-magnum-5.0.2~dev8-1.2.noarch
openstack-magnum-conductor-5.0.2~dev8-1.2.noarch
python-magnumclient-2.6.0-1.11.noarch

Command I’m running to create the cluster:
gvicopnstk01:~ # magnum cluster-create --name k8s-cluster --cluster-template k8s-cluster-template --master-count 1 --node-count 1

The Template I’m using:
gvicopnstk01:~ # magnum cluster-template-show 6fa514c1-f598-46b1-8bba-6c7c728094bc
+-----------------------+--------------------------------------+
| Property | Value |
+-----------------------+--------------------------------------+
| insecureregistry | - |
| labels | {} |
| updated
at | - |
| floatingipenabled | True |
| fixedsubnet | - |
| master
flavorid | m1.small |
| uuid | 6fa514c1-f598-46b1-8bba-6c7c728094bc |
| no
proxy | - |
| httpsproxy | - |
| tls
disabled | False |
| keypairid | AW |
| public | False |
| http
proxy | - |
| dockervolumesize | - |
| servertype | vm |
| external
networkid | provider |
| cluster
distro | fedora-atomic |
| imageid | fedora-atomic-ocata |
| volume
driver | - |
| registryenabled | False |
| docker
storagedriver | devicemapper |
| apiserver
port | - |
| name | k8s-cluster-template |
| createdat | 2017-09-28T19:25:58+00:00 |
| network
driver | flannel |
| fixednetwork | - |
| coe | kubernetes |
| flavor
id | m1.small |
| masterlbenabled | False |
| dns_nameserver | 192.168.240.150 |

(The image name is Ocata because I downloaded the Ocata image, I figured it was fine)

The Error I’m getting I cannot find anything about it on Google. Any got any ideas the right direction I should go?

Thanks,
Andrew Wojnarek | Sr. Systems Engineer | ATS Group, LLC
mobile 717.856.6901<tel:(717)%20856-6901> | andy.wojnarek@TheATSGroup.com
Galileo Performance Explorer Blog Offers Deep Insights for Server/Storage Systems


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Sep 29, 2017 by Andy_Wojnarek (440 points)   3 3
0 votes

Hello,

It looks like the new docker module is not installed.
The docker client moved from docker 1.x to 2.x and
unfortunately they changed the name.

Magnum Pike depends on python-docker 2.x.
http://git.openstack.org/cgit/openstack/magnum/tree/requirements.txt?h=stable%2Fpike#n16

Module named docker:
https://github.com/docker/docker-py/blob/2.0.0/setup.py#L47
https://pypi.python.org/pypi/docker

Module named docker-py:
https://github.com/docker/docker-py/blob/1.10.6/setup.py#L43
https://pypi.python.org/pypi/docker-py

The change on the name:
https://github.com/docker/docker-py/commit/25aaec37b7c2e950b4a987ac151880061febb37a

You need to install docker 2.x , I don't know if there are opensuse
packages for it, I see only 1.10.4.

zypper info python-docker-py

Loading repository data...
Reading installed packages...

Information for package python-docker-py:


Repository : OSS
Name : python-docker-py
Version : 1.10.4-10.2
Arch : noarch
Vendor : openSUSE
Installed Size : 306.6 KiB
Installed : No
Status : not installed
Source package : python-docker-py-1.10.4-10.2.src
Summary : Docker API Client
Description :
A docker API client in Python

Cheers,
Spyros


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Oct 3, 2017 by Spyros_Trigazis (1,780 points)   1
0 votes

cc Andy Wojnarek and Erik McCormick

On 3 October 2017 at 10:32, Spyros Trigazis strigazi@gmail.com wrote:
Hello,

It looks like the new docker module is not installed.
The docker client moved from docker 1.x to 2.x and
unfortunately they changed the name.

Magnum Pike depends on python-docker 2.x.
http://git.openstack.org/cgit/openstack/magnum/tree/requirements.txt?h=stable%2Fpike#n16

Module named docker:
https://github.com/docker/docker-py/blob/2.0.0/setup.py#L47
https://pypi.python.org/pypi/docker

Module named docker-py:
https://github.com/docker/docker-py/blob/1.10.6/setup.py#L43
https://pypi.python.org/pypi/docker-py

The change on the name:
https://github.com/docker/docker-py/commit/25aaec37b7c2e950b4a987ac151880061febb37a

You need to install docker 2.x , I don't know if there are opensuse
packages for it, I see only 1.10.4.

zypper info python-docker-py

Loading repository data...
Reading installed packages...

Information for package python-docker-py:


Repository : OSS
Name : python-docker-py
Version : 1.10.4-10.2
Arch : noarch
Vendor : openSUSE
Installed Size : 306.6 KiB
Installed : No
Status : not installed
Source package : python-docker-py-1.10.4-10.2.src
Summary : Docker API Client
Description :
A docker API client in Python

Cheers,
Spyros


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Oct 3, 2017 by Spyros_Trigazis (1,780 points)   1
0 votes

Thank you very much! That makes a ton of sense.

How did you troubleshoot this? I couldn’t find anything intuitive about the error message.

Do you think this is worthy of a bug submittal? Or is it strictly a build issue on SuSE’s part?

Thanks,
Andrew Wojnarek | Sr. Systems Engineer | ATS Group, LLC
mobile 717.856.6901 | andy.wojnarek@TheATSGroup.com

On 10/3/17, 4:37 AM, "Spyros Trigazis" strigazi@gmail.com wrote:

cc Andy Wojnarek and Erik McCormick

On 3 October 2017 at 10:32, Spyros Trigazis <strigazi@gmail.com> wrote:

Hello,

It looks like the new docker module is not installed.
The docker client moved from docker 1.x to 2.x and
unfortunately they changed the name.

Magnum Pike depends on python-docker 2.x.
http://git.openstack.org/cgit/openstack/magnum/tree/requirements.txt?h=stable%2Fpike#n16

Module named docker:
https://github.com/docker/docker-py/blob/2.0.0/setup.py#L47
https://pypi.python.org/pypi/docker

Module named docker-py:
https://github.com/docker/docker-py/blob/1.10.6/setup.py#L43
https://pypi.python.org/pypi/docker-py

The change on the name:
https://github.com/docker/docker-py/commit/25aaec37b7c2e950b4a987ac151880061febb37a

You need to install docker 2.x , I don't know if there are opensuse
packages for it, I see only 1.10.4.

zypper info python-docker-py

Loading repository data...
Reading installed packages...

Information for package python-docker-py:


Repository : OSS
Name : python-docker-py
Version : 1.10.4-10.2
Arch : noarch
Vendor : openSUSE
Installed Size : 306.6 KiB
Installed : No
Status : not installed
Source package : python-docker-py-1.10.4-10.2.src
Summary : Docker API Client
Description :
A docker API client in Python

Cheers,
Spyros


OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
responded Oct 3, 2017 by Andy_Wojnarek (440 points)   3 3
...