share network doesn't find by name
Bug #2065773 reported by
Morozov Aleksey
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.
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) |
To post a comment you must log in.
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 ------- ------- ------- ------- ----+-- ------- ------+ ------- ------- ------- ------- ----+-- ------- ------+ 690f-41f4- 8d34-2a0fb828c2 ce | just_for_test | ------- ------- ------- ------- ----+-- ------- ------+ devstack: ~# devstack: ~# openstack share network show just_for_test ------- ------- ------- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ ------- ------- ------- ------- -+----- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ----+ 29T08:54: 06.438175 | 690f-41f4- 8d34-2a0fb828c2 ce | allocation_ update_ support | True | 4b785de732ea469 5d | service_ update_ support | True | subnets | | 7e10-446c- b56c-184d9378ff f9 | 29T08:54: 06.662712 |
+------
| ID | Name |
+------
| 0694dbf4-
+------
root@haixin-
root@haixin-
+------
| Field | Value |
+------
| created_at | 2024-05-
| description | None |
| id | 0694dbf4-
| name | just_for_test |
| network_
| project_id | 714198c7ac5e45a
| security_
| security_services | |
| share_network_
| | id = 35373653-
| | availability_zone = None |
| | created_at = 2024-05-
| | updated_at = None |
| | segmentation_id = None |
| | neutron_net_id = None |
| | neutron_subnet_id = None |
| | ip_version = None |
| | cidr = None |
| | network_type = None |
| ...