'BaseProxy' object has no attribute

Bug #1906911 reported by Reski Rukmantiyo on 2020-12-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-masakariclient
Undecided
Unassigned

Bug Description

I'm using masakari client 6.2 and ussuri as openstack release
Installing openstack with kolla-ansible 10.1.0

The bugs is everytime I want to do something with masakari client, it would said like this.

(kolla) ubuntu@node-bastion:~$ openstack segment list
'BaseProxy' object has no attribute 'segments'

(kolla) ubuntu@node-bastion:~$ openstack segment create test auto compute
'BaseProxy' object has no attribute 'create_segment'

I install masakari client (python-masakariclient) using sudo pip install python-masakariclient

Any workaround for this?

Thanks

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Hmm, this is interesting.

Could you share what `pip list` is showing as installed?
(well, `sudo pip list`)

Revision history for this message
Reski Rukmantiyo (reski-rukmantiyo) wrote : Re: [Bug 1906911] Re: 'BaseProxy' object has no attribute
  • pip-list.txt Edit (4.4 KiB, text/plain; charset="US-ASCII"; name="pip-list.txt")

Hi Radoslaw,

Here's my pip list

python-apt (1.6.5+ubuntu0.3)
> python-cinderclient (3.5.0)
> python-dateutil (2.8.1)
> python-debian (0.1.32)
> python-designateclient (4.1.0)
> python-editor (1.0.4)
> python-glanceclient (2.9.1)
> python-heatclient (2.2.1)
> python-keystoneclient (3.15.0)
> python-masakariclient (6.2.0)
> python-mimeparse (1.6.0)
> python-mistralclient (3.3.0)
> python-neutronclient (6.7.0)
> python-novaclient (9.1.1)
> python-openstackclient (3.14.2)
> python-subunit (1.4.0)
> python-swiftclient (3.5.0)
> python-troveclient (2.14.0)

Full list in the attachment

Thanks

On Sat, Dec 5, 2020 at 4:05 PM Radosław Piliszek <email address hidden>
wrote:

> Hmm, this is interesting.
>
> Could you share what `pip list` is showing as installed?
> (well, `sudo pip list`)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1906911
>
> Title:
> 'BaseProxy' object has no attribute
>
> Status in python-masakariclient:
> New
>
> Bug description:
> I'm using masakari client 6.2 and ussuri as openstack release
> Installing openstack with kolla-ansible 10.1.0
>
> The bugs is everytime I want to do something with masakari client, it
> would said like this.
>
> (kolla) ubuntu@node-bastion:~$ openstack segment list
> 'BaseProxy' object has no attribute 'segments'
>
> (kolla) ubuntu@node-bastion:~$ openstack segment create test auto
> compute
> 'BaseProxy' object has no attribute 'create_segment'
>
> I install masakari client (python-masakariclient) using sudo pip
> install python-masakariclient
>
> Any workaround for this?
>
> Thanks
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/python-masakariclient/+bug/1906911/+subscriptions
>

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

Downgrade python-masakariclient to 6.0.0 as that is the version compatible with Ussuri libs.
Also, you seem to have python-novaclient of Pike release.
How did you get in this? :D
Since you are running on Ubuntu, which packages Masakari and all others, I suggest you start afresh and rely on Ubuntu Cloud Archive (UCA) for Ussuri instead. See https://wiki.ubuntu.com/OpenStack/CloudArchive
Your issue stems from the fact that you have a mix-and-match of library versions.

Revision history for this message
Radosław Piliszek (yoctozepto) wrote :

On second thought, you have actually shown you are using a custom venv - even more intriguing how that has happened for you. :-)
Well, if venv is your thing, then it would be safe to create a new one and install properly for Ussuri:
pip install -U -c https://releases.openstack.org/constraints/upper/ussuri python-masakariclient

Revision history for this message
Reski Rukmantiyo (reski-rukmantiyo) wrote :

Thanks Radoslaw, let me re-arrange again my venv in my ubuntu.
I’m using kolla-ansible for deploying the openstack.

will let you know

Thanks

On Sat, 5 Dec 2020 at 21.05 Radosław Piliszek <email address hidden>
wrote:

> On second thought, you have actually shown you are using a custom venv -
> even more intriguing how that has happened for you. :-)
> Well, if venv is your thing, then it would be safe to create a new one and
> install properly for Ussuri:
> pip install -U -c https://releases.openstack.org/constraints/upper/ussuri
> python-masakariclient
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1906911
>
> Title:
> 'BaseProxy' object has no attribute
>
> Status in python-masakariclient:
> New
>
> Bug description:
> I'm using masakari client 6.2 and ussuri as openstack release
> Installing openstack with kolla-ansible 10.1.0
>
> The bugs is everytime I want to do something with masakari client, it
> would said like this.
>
> (kolla) ubuntu@node-bastion:~$ openstack segment list
> 'BaseProxy' object has no attribute 'segments'
>
> (kolla) ubuntu@node-bastion:~$ openstack segment create test auto
> compute
> 'BaseProxy' object has no attribute 'create_segment'
>
> I install masakari client (python-masakariclient) using sudo pip
> install python-masakariclient
>
> Any workaround for this?
>
> Thanks
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/python-masakariclient/+bug/1906911/+subscriptions
>

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments