Bugs in python files

Bug #2058248 reported by Guytion
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned
python-openstackclient
New
Undecided
Unassigned

Bug Description

Description
===========
Python error that pops up during instance creation

Steps to reproduce
==================
I use demo scipt to launch an instance:

$ . demo-openrc
$ openstack server --debug create --flavor m1.nano --image cirros --nic net-id=698c77d5-49cb-47f2-8e26-766b2be3783d --security-group default --key-name mykey selfservice-instance

Expected result
===============
An instance created and show status like https://docs.openstack.org/install-guide/launch-instance-selfservice.html

Actual result
=============
An instance created but pop up Python error:
Resource.get() takes 1 positional argument but 2 were given
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 410, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/display.py", line 117, in run
    column_names, data = self.take_action(parsed_args)
  File "/usr/lib/python3/dist-packages/openstackclient/compute/v2/server.py", line 1964, in take_action
    details = _prep_server_detail(compute_client, image_client, server)
  File "/usr/lib/python3/dist-packages/openstackclient/compute/v2/server.py", line 147, in _prep_server_detail
    server = utils.find_resource(compute_client.servers, info['id'])
  File "/usr/lib/python3/dist-packages/osc_lib/utils/__init__.py", line 271, in find_resource
    if (resource.get('id') == name_or_id or
TypeError: Resource.get() takes 1 positional argument but 2 were given

Environment
===========
1. Openstack version is 2023.2
2. Hypervisor is Libvirt + KVM, storage type is LVM
3. Networking type is Neutron with OpenVSwitch

Revision history for this message
Sylvain Bauza (sylvain-bauza) wrote :

The exception comes from OSC, moving the bug report to that project.

Changed in nova:
status: New → Invalid
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.