← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2058248] Re: Bugs in python files

 

I think that this may be coming from duplicate names for some of entity
provided (image, flavor, key, etc). It is not reproducible in
environment without them. Closing this as bug was in incomplete state
for a year.

** Changed in: python-openstackclient
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/2058248

Title:
  Bugs in python files

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

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/2058248/+subscriptions



References