← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1723982] [NEW] Commands that do not exist appear in help message of nova-manage

 

Public bug reported:

Description
===========

The following commands do not exist.
But they appear in the help message of nova-manage.

* nova-manage cell parse_server_string
* nova-manage db print_dict

Steps to reproduce
==================

stack@devstack-master:~$ nova-manage cell
usage: nova-manage cell [-h] {create,delete,list,parse_server_string} ...
nova-manage cell: error: too few arguments
stack@devstack-master:~$ nova-manage cell parse_server_string
An error has occurred:
Traceback (most recent call last):
  File "/opt/stack/nova/nova/cmd/manage.py", line 1861, in main
    fn, fn_args, fn_kwargs = cmd_common.get_action_fn()
  File "/opt/stack/nova/nova/cmd/common.py", line 187, in get_action_fn
    missing = validate_args(fn, *fn_args, **fn_kwargs)
  File "/opt/stack/nova/nova/cmd/common.py", line 76, in validate_args
    if six.get_method_self(fn) is not None:
AttributeError: 'function' object has no attribute 'im_self'

stack@devstack-master:~$ nova-manage db
usage: nova-manage db [-h]
                      {archive_deleted_rows,ironic_flavor_migration,null_instance_uuid_scan,online_data_migrations,print_dict,sync,version}
                      ...
nova-manage db: error: too few arguments
stack@devstack-master:~$ nova-manage db print_dict
An error has occurred:
Traceback (most recent call last):
  File "/opt/stack/nova/nova/cmd/manage.py", line 1861, in main
    fn, fn_args, fn_kwargs = cmd_common.get_action_fn()
  File "/opt/stack/nova/nova/cmd/common.py", line 187, in get_action_fn
    missing = validate_args(fn, *fn_args, **fn_kwargs)
  File "/opt/stack/nova/nova/cmd/common.py", line 76, in validate_args
    if six.get_method_self(fn) is not None:
AttributeError: 'function' object has no attribute 'im_self'

Environment
===========

nova master(commit 1148a2d67b70dd767f798e1dfe0b4c7634d2f90c)
OS: Ubuntu 16.04.2 LTS

** Affects: nova
     Importance: Undecided
     Assignee: Takashi NATSUME (natsume-takashi)
         Status: In Progress


** Tags: nova-manage

-- 
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/1723982

Title:
  Commands that do not exist appear in help message of nova-manage

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Description
  ===========

  The following commands do not exist.
  But they appear in the help message of nova-manage.

  * nova-manage cell parse_server_string
  * nova-manage db print_dict

  Steps to reproduce
  ==================

  stack@devstack-master:~$ nova-manage cell
  usage: nova-manage cell [-h] {create,delete,list,parse_server_string} ...
  nova-manage cell: error: too few arguments
  stack@devstack-master:~$ nova-manage cell parse_server_string
  An error has occurred:
  Traceback (most recent call last):
    File "/opt/stack/nova/nova/cmd/manage.py", line 1861, in main
      fn, fn_args, fn_kwargs = cmd_common.get_action_fn()
    File "/opt/stack/nova/nova/cmd/common.py", line 187, in get_action_fn
      missing = validate_args(fn, *fn_args, **fn_kwargs)
    File "/opt/stack/nova/nova/cmd/common.py", line 76, in validate_args
      if six.get_method_self(fn) is not None:
  AttributeError: 'function' object has no attribute 'im_self'

  stack@devstack-master:~$ nova-manage db
  usage: nova-manage db [-h]
                        {archive_deleted_rows,ironic_flavor_migration,null_instance_uuid_scan,online_data_migrations,print_dict,sync,version}
                        ...
  nova-manage db: error: too few arguments
  stack@devstack-master:~$ nova-manage db print_dict
  An error has occurred:
  Traceback (most recent call last):
    File "/opt/stack/nova/nova/cmd/manage.py", line 1861, in main
      fn, fn_args, fn_kwargs = cmd_common.get_action_fn()
    File "/opt/stack/nova/nova/cmd/common.py", line 187, in get_action_fn
      missing = validate_args(fn, *fn_args, **fn_kwargs)
    File "/opt/stack/nova/nova/cmd/common.py", line 76, in validate_args
      if six.get_method_self(fn) is not None:
  AttributeError: 'function' object has no attribute 'im_self'

  Environment
  ===========

  nova master(commit 1148a2d67b70dd767f798e1dfe0b4c7634d2f90c)
  OS: Ubuntu 16.04.2 LTS

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


Follow ups