share network doesn't find by name

Bug #2065773 reported by Morozov Aleksey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-manilaclient
In Progress
Medium
Morozov Aleksey

Bug Description

All commands with share network working only with id of share network, if I try to set name instead of id command will crashes with following error:
Resource.get() takes 1 positional argument but 2 were given

This exception raises in oscutils.find_resource

description: updated
description: updated
Changed in python-manilaclient:
status: New → In Progress
description: updated
Changed in python-manilaclient:
milestone: none → dalmation-2
Changed in python-manilaclient:
importance: Undecided → Medium
assignee: nobody → Morozov Aleksey (morozovalekseywot)
Revision history for this message
haixin (haixin77) wrote :
Download full text (3.9 KiB)

hi, I can't reproduce the bug you described, like below.
So, I guess there is a problem with the osc_lib package on your environment and you need to upgrade it?

root@haixin-devstack:~# openstack share network list
+--------------------------------------+---------------+
| ID | Name |
+--------------------------------------+---------------+
| 0694dbf4-690f-41f4-8d34-2a0fb828c2ce | just_for_test |
+--------------------------------------+---------------+
root@haixin-devstack:~#
root@haixin-devstack:~# openstack share network show just_for_test
+-----------------------------------+-------------------------------------------------------------------------------+
| Field | Value |
+-----------------------------------+-------------------------------------------------------------------------------+
| created_at | 2024-05-29T08:54:06.438175 |
| description | None |
| id | 0694dbf4-690f-41f4-8d34-2a0fb828c2ce |
| name | just_for_test |
| network_allocation_update_support | True |
| project_id | 714198c7ac5e45a4b785de732ea4695d |
| security_service_update_support | True |
| security_services | |
| share_network_subnets | |
| | id = 35373653-7e10-446c-b56c-184d9378fff9 |
| | availability_zone = None |
| | created_at = 2024-05-29T08:54:06.662712 |
| | updated_at = None |
| | segmentation_id = None |
| | neutron_net_id = None |
| | neutron_subnet_id = None |
| | ip_version = None |
| | cidr = None |
| | network_type = None |
| ...

Read more...

Revision history for this message
Morozov Aleksey (morozovalekseywot) wrote :

Which version of osc-lib do yo use? I use v3.0.1 of osc_lib and os-share-api-version 2.32

Revision history for this message
Vida Haririan (vhariria) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-manilaclient (master)

Change abandoned by "Morozov Aleksey <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/python-manilaclient/+/919759
Reason: Reason of the error in another place

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.