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

Bug #1723982 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Takashi Natsume
Nominated for Pike by Takashi Natsume

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

Tags: nova-manage
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/512324

Changed in nova:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/512324
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=86a535a2689537d81e8a98a9d28ddf1d233dcddc
Submitter: Zuul
Branch: master

commit 86a535a2689537d81e8a98a9d28ddf1d233dcddc
Author: Takashi NATSUME <email address hidden>
Date: Mon Oct 16 22:45:09 2017 +0900

    Fix nova-manage commands that do not exist

    The following commands do not exist.
    But they appear in help message.
    So fix them.

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

    Change-Id: I7b16b8ab36b9a9ae719bf98a75511d82041d0152
    Closes-Bug: #1723982

Changed in nova:
status: In Progress → Fix Released
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

This bug does not affect stable/pike.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/nova 17.0.0.0b1

This issue was fixed in the openstack/nova 17.0.0.0b1 development milestone.

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.