← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2058248] Re: Bugs in python files


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

** Also affects: python-openstackclient
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: New => Invalid

You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).

  Bugs in python files

Status in OpenStack Compute (nova):
Status in python-openstackclient:

Bug 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

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

To manage notifications about this bug go to: