Mailing List Archive

Masakari client error
I am using the masakari client version 5.0.0 installed from python pip. I keep getting the following error:
("'Connection' object has no attribute 'ha'", <open file '<stderr>', mode 'w' at 0x7f6ee88791e0>)
when I try to run any commands with it: segment-list host-list etc. It's entirely possible that I'm missing some peice of configuration, or have something improperly configured, but there isn't sufficient documentation for me to figure out if or what. Anybody have a working example that I can see, or know if this an issue?
Re: Masakari client error [ In reply to ]
Hi Torin,

Few days back, this patch [1] got merged in which the service type is changed from "ha" to "instance_ha".

We have tried reproducing the issue you are facing but we are not getting the exact same error. With different versions of openstacksdk, we got different errors.

Masakariclient/masakari-monitors requires openstacksdk version 0.13.0.

Today we have fixed LP bug [2] in patch [3] which should also fix the issue you are facing.

We will release another version of python-masakariclient soon.

Are you installing masakari using devstack? If yes, please install masakari from scratch.
After installing latest masakari, you should be able to run segment-list and host-list using openstack commands.
If you want to run same commands using masakariclient, then you will need to wait until new version of masakariclient is released or you can apply patch [3] in your environment. If you need any help in applying patches, please ask for help on #openstack-masakari IRC.

Simple way to install latest masakariclient from code:
1. git clone https://github.com/openstack/python-masakariclient.git
2. Go to folder python-masakariclient
3. sudo python setup.py install

If you find any issues in Masakari, you can also report bugs in launchpad against below respective projects.
http://launchpad.net/python-masakariclient
https://launchpad.net/masakari-monitors
https://launchpad.net/masakari

Hope this helps!!!

[1] : https://review.openstack.org/#/c/536653/
[2] : https://bugs.launchpad.net/python-masakariclient/+bug/1756047
[3] : https://review.openstack.org/#/c/557634/


Regards,
Tushar Patil


________________________________________
From: Torin Woltjer <torin.woltjer@granddial.com>
Sent: Tuesday, May 15, 2018 11:36:11 PM
To: openstack@lists.openstack.org
Subject: [Openstack] Masakari client error

I am using the masakari client version 5.0.0 installed from python pip. I keep getting the following error:
("'Connection' object has no attribute 'ha'", <open file '<stderr>', mode 'w' at 0x7f6ee88791e0>)
when I try to run any commands with it: segment-list host-list etc. It's entirely possible that I'm missing some peice of configuration, or have something improperly configured, but there isn't sufficient documentation for me to figure out if or what. Anybody have a working example that I can see, or know if this an issue?
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged,confidential, and proprietary data. If you are not the intended recipient,please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: Masakari client error [ In reply to ]
Hello again,

I am not using the git version of masakari anymore, I am using the version installed from python pip. I am using Pike and not Queens so the openstacksdk version 13 is not available in the repository. Should openstacksdk version 0.13 still work with Pike, and should this version of masakari still work with Pike?

Thanks,

Torin Woltjer

Grand Dial Communications - A ZK Tech Inc. Company

616.776.1066 ext. 2006
www.granddial.com

----------------------------------------
From: "Patil, Tushar" <Tushar.Patil@nttdata.com>
Sent: 5/16/18 12:29 AM
To: "openstack@lists.openstack.org" <openstack@lists.openstack.org>, "torin.woltjer@granddial.com" <torin.woltjer@granddial.com>
Subject: Re: [Openstack] Masakari client error
Hi Torin,

Few days back, this patch [1] got merged in which the service type is changed from "ha" to "instance_ha".

We have tried reproducing the issue you are facing but we are not getting the exact same error. With different versions of openstacksdk, we got different errors.

Masakariclient/masakari-monitors requires openstacksdk version 0.13.0.

Today we have fixed LP bug [2] in patch [3] which should also fix the issue you are facing.

We will release another version of python-masakariclient soon.

Are you installing masakari using devstack? If yes, please install masakari from scratch.
After installing latest masakari, you should be able to run segment-list and host-list using openstack commands.
If you want to run same commands using masakariclient, then you will need to wait until new version of masakariclient is released or you can apply patch [3] in your environment. If you need any help in applying patches, please ask for help on #openstack-masakari IRC.

Simple way to install latest masakariclient from code:
1. git clone https://github.com/openstack/python-masakariclient.git
2. Go to folder python-masakariclient
3. sudo python setup.py install

If you find any issues in Masakari, you can also report bugs in launchpad against below respective projects.
http://launchpad.net/python-masakariclient
https://launchpad.net/masakari-monitors
https://launchpad.net/masakari

Hope this helps!!!

[1] : https://review.openstack.org/#/c/536653/
[2] : https://bugs.launchpad.net/python-masakariclient/+bug/1756047
[3] : https://review.openstack.org/#/c/557634/

Regards,
Tushar Patil

________________________________________
From: Torin Woltjer
Sent: Tuesday, May 15, 2018 11:36:11 PM
To: openstack@lists.openstack.org
Subject: [Openstack] Masakari client error

I am using the masakari client version 5.0.0 installed from python pip. I keep getting the following error:
("'Connection' object has no attribute 'ha'", ', mode 'w' at 0x7f6ee88791e0>)
when I try to run any commands with it: segment-list host-list etc. It's entirely possible that I'm missing some peice of configuration, or have something improperly configured, but there isn't sufficient documentation for me to figure out if or what. Anybody have a working example that I can see, or know if this an issue?
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged,confidential, and proprietary data. If you are not the intended recipient,please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.
Re: Masakari client error [ In reply to ]
On 2018-05-16 12:30:47 +0000 (+0000), Torin Woltjer wrote:
[...]
> I am using Pike and not Queens so the openstacksdk version 13 is
> not available in the repository. Should openstacksdk version 0.13
> still work with Pike
[...]

OpenStackSDK strives for backwards-compatibility with even fairly
ancient OpenStack releases, and is not tied to any particular
version of OpenStack services. It should always be safe to run the
latest releases of OpenStackSDK no matter the age of the deployment
with which you intend to communicate.

Note however that the dependencies of OpenStackSDK may conflict with
dependencies of some OpenStack service, so you can't necessarily
expect to be able to co-install them on the same machine without
some means of context separation (virtualenvs, containers, pip
install --local, et cetera).
--
Jeremy Stanley
Re: Masakari client error [ In reply to ]
It looks like pip install actually upgraded my openstacksdk to 0.13 when I installed masakari from pip. Meanwhile the sdk in the 16.04 repository is 0.9.17. I'm wondering now if this might explain why my block storage is also having problems. What is the process for setting up a local environment for separate versions of the SDK (With different services using each?)

Torin Woltjer

Grand Dial Communications - A ZK Tech Inc. Company

616.776.1066 ext. 2006
www.granddial.com

----------------------------------------
From: Jeremy Stanley <fungi@yuggoth.org>
Sent: 5/16/18 8:59 AM
To: openstack@lists.openstack.org
Subject: Re: [Openstack] Masakari client error
On 2018-05-16 12:30:47 +0000 (+0000), Torin Woltjer wrote:
[...]
> I am using Pike and not Queens so the openstacksdk version 13 is
> not available in the repository. Should openstacksdk version 0.13
> still work with Pike
[...]

OpenStackSDK strives for backwards-compatibility with even fairly
ancient OpenStack releases, and is not tied to any particular
version of OpenStack services. It should always be safe to run the
latest releases of OpenStackSDK no matter the age of the deployment
with which you intend to communicate.

Note however that the dependencies of OpenStackSDK may conflict with
dependencies of some OpenStack service, so you can't necessarily
expect to be able to co-install them on the same machine without
some means of context separation (virtualenvs, containers, pip
install --local, et cetera).
--
Jeremy Stanley
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: Masakari client error [ In reply to ]
Hi Torin,

If you are using stable/pike, then it is recommended to use python-masakariclient version 3.0.1 [1] which requires openstacksdk version 0.9.17.

Are you trying to upgrade your stable/pike environment to the latest rocky-milestone1 (all services including Masakari)?

[1] : https://github.com/openstack/requirements/blob/stable/pike/upper-constraints.txt

Regards,
Tushar Patil

________________________________________
From: Torin Woltjer <torin.woltjer@granddial.com>
Sent: Wednesday, May 16, 2018 10:32:10 PM
To: fungi@yuggoth.org; openstack@lists.openstack.org
Subject: Re: [Openstack] Masakari client error

It looks like pip install actually upgraded my openstacksdk to 0.13 when I installed masakari from pip. Meanwhile the sdk in the 16.04 repository is 0.9.17. I'm wondering now if this might explain why my block storage is also having problems. What is the process for setting up a local environment for separate versions of the SDK (With different services using each?)

Torin Woltjer

Grand Dial Communications - A ZK Tech Inc. Company

616.776.1066 ext. 2006
<http://www.granddial.com>www.granddial.com<http://www.granddial.com>

________________________________
From: Jeremy Stanley <fungi@yuggoth.org>
Sent: 5/16/18 8:59 AM
To: openstack@lists.openstack.org
Subject: Re: [Openstack] Masakari client error
On 2018-05-16 12:30:47 +0000 (+0000), Torin Woltjer wrote:
[...]
> I am using Pike and not Queens so the openstacksdk version 13 is
> not available in the repository. Should openstacksdk version 0.13
> still work with Pike
[...]

OpenStackSDK strives for backwards-compatibility with even fairly
ancient OpenStack releases, and is not tied to any particular
version of OpenStack services. It should always be safe to run the
latest releases of OpenStackSDK no matter the age of the deployment
with which you intend to communicate.

Note however that the dependencies of OpenStackSDK may conflict with
dependencies of some OpenStack service, so you can't necessarily
expect to be able to co-install them on the same machine without
some means of context separation (virtualenvs, containers, pip
install --local, et cetera).
--
Jeremy Stanley
_______________________________________________
Mailing list: <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged,confidential, and proprietary data. If you are not the intended recipient,please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Re: Masakari client error [ In reply to ]
Hi Tushar,

Thanks for linking to that document, I hadn't seen it before and it's very useful. As far as milestones are concerned, I was planning on sticking with Pike. Up until this point I've been using the packages from http://ubuntu-cloud.archive.canonical.com/ubuntu xenial-updates/pike main, when I installed the latest packages from pip, I was ignorant of what I would doing and what would happen. I may switch to queens or rocky, but I would like to upgrade to the latest Ubuntu LTS if I am to do that (bionic only has a repo for rocky but not queens I believe).

----------------------------------------
From: "Patil, Tushar" <Tushar.Patil@nttdata.com>
Sent: 5/16/18 9:03 PM
To: "fungi@yuggoth.org" <fungi@yuggoth.org>, "openstack@lists.openstack.org" <openstack@lists.openstack.org>, "torin.woltjer@granddial.com" <torin.woltjer@granddial.com>
Subject: Re: [Openstack] Masakari client error
Hi Torin,

If you are using stable/pike, then it is recommended to use python-masakariclient version 3.0.1 [1] which requires openstacksdk version 0.9.17.

Are you trying to upgrade your stable/pike environment to the latest rocky-milestone1 (all services including Masakari)?

[1] : https://github.com/openstack/requirements/blob/stable/pike/upper-constraints.txt

Regards,
Tushar Patil

________________________________________
From: Torin Woltjer
Sent: Wednesday, May 16, 2018 10:32:10 PM
To: fungi@yuggoth.org; openstack@lists.openstack.org
Subject: Re: [Openstack] Masakari client error

It looks like pip install actually upgraded my openstacksdk to 0.13 when I installed masakari from pip. Meanwhile the sdk in the 16.04 repository is 0.9.17. I'm wondering now if this might explain why my block storage is also having problems. What is the process for setting up a local environment for separate versions of the SDK (With different services using each?)

Torin Woltjer

Grand Dial Communications - A ZK Tech Inc. Company

616.776.1066 ext. 2006
www.granddial.com

________________________________
From: Jeremy Stanley
Sent: 5/16/18 8:59 AM
To: openstack@lists.openstack.org
Subject: Re: [Openstack] Masakari client error
On 2018-05-16 12:30:47 +0000 (+0000), Torin Woltjer wrote:
[...]
> I am using Pike and not Queens so the openstacksdk version 13 is
> not available in the repository. Should openstacksdk version 0.13
> still work with Pike
[...]

OpenStackSDK strives for backwards-compatibility with even fairly
ancient OpenStack releases, and is not tied to any particular
version of OpenStack services. It should always be safe to run the
latest releases of OpenStackSDK no matter the age of the deployment
with which you intend to communicate.

Note however that the dependencies of OpenStackSDK may conflict with
dependencies of some OpenStack service, so you can't necessarily
expect to be able to co-install them on the same machine without
some means of context separation (virtualenvs, containers, pip
install --local, et cetera).
--
Jeremy Stanley
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Disclaimer: This email and any attachments are sent in strictest confidence for the sole use of the addressee and may contain legally privileged,confidential, and proprietary data. If you are not the intended recipient,please advise the sender by replying promptly to this email and then delete and destroy this email and any attachments without any further use, copying or forwarding.