'nova-manage cell_v2 map_instances' return argument error when --max-count option is used

Bug #1715533 reported by Eunjin Baek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Eunjin Baek
Newton
Fix Committed
High
Matt Riedemann
Ocata
Fix Committed
High
Matt Riedemann
Pike
Fix Committed
High
Matt Riedemann

Bug Description

[Test step]
1. Create cell1
2. Commit a command "nova-manage cell_v2 map_instances --cell_uuid <cell1 uuid> --max-count <max_conut>",
error is occured because of 'max-count' argument like below.

[root@aosc cmd(keystone_admin)]# nova-manage cell_v2 list_cells
+-------+--------------------------------------+
| Name | UUID |
+-------+--------------------------------------+
| cell0 | 00000000-0000-0000-0000-000000000000 |
| cell1 | b0fd1642-2836-4de7-9d2c-2b44d890bd89 |
+-------+--------------------------------------+

[root@osc ~(keystone_admin)]# nova-manage cell_v2 map_instances --cell_uuid b0fd1642-2836-4de7-9d2c-2b44d890bd89 --max-count 2000
An error has occurred:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/nova/cmd/manage.py", line 1609, in main
    ret = fn(*fn_args, **fn_kwargs)
TypeError: map_instances() got an unexpected keyword argument 'max-count'

Tags: cells
Eunjin Baek (ej218-baek)
Changed in nova:
assignee: nobody → Eunjin Baek (ej218-baek)
summary: - nova-manage cell_v2 map_instances return error when --max-count option
+ 'nova-manage cell_v2 map_instances' return error when --max-count option
is used
summary: - 'nova-manage cell_v2 map_instances' return error when --max-count option
- is used
+ 'nova-manage cell_v2 map_instances' return argument error when --max-
+ count option is used
Revision history for this message
Takashi Natsume (natsume-takashi) wrote :

Set the status 'In-Progess' because this bug report has assignee.

tags: added: cells
Changed in nova:
status: New → In Progress
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/502236

Changed in nova:
assignee: Eunjin Baek (ej218-baek) → Matt Riedemann (mriedem)
Matt Riedemann (mriedem)
Changed in nova:
importance: Undecided → High
assignee: Matt Riedemann (mriedem) → Eunjin Baek (ej218-baek)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/pike)

Fix proposed to branch: stable/pike
Review: https://review.openstack.org/507552

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/507556

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/507557

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

Reviewed: https://review.openstack.org/502236
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=87a53cc45283a81386ee8f870a25a315b8527749
Submitter: Jenkins
Branch: master

commit 87a53cc45283a81386ee8f870a25a315b8527749
Author: ejbaek <email address hidden>
Date: Sat Sep 9 11:59:41 2017 +0000

    Fix --max-count handling for nova-manage cell_v2 map_instances

    Code is added to define destination for cell_uuid and max_count
    argument, otherwise specifying --max-count fails with:

    TypeError: map_instances() got an unexpected keyword argument 'max-count'

    Change-Id: I9328a20b97977bfffa21df55bd4d60e711a406a7
    Closes-Bug: #1715533

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

Reviewed: https://review.openstack.org/507552
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=c3f3f62b090f6b2e4b69db09e16cac0fe6c843c9
Submitter: Jenkins
Branch: stable/pike

commit c3f3f62b090f6b2e4b69db09e16cac0fe6c843c9
Author: ejbaek <email address hidden>
Date: Sat Sep 9 11:59:41 2017 +0000

    Fix --max-count handling for nova-manage cell_v2 map_instances

    Code is added to define destination for cell_uuid and max_count
    argument, otherwise specifying --max-count fails with:

    TypeError: map_instances() got an unexpected keyword argument 'max-count'

    Change-Id: I9328a20b97977bfffa21df55bd4d60e711a406a7
    Closes-Bug: #1715533
    (cherry picked from commit 87a53cc45283a81386ee8f870a25a315b8527749)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/ocata)

Reviewed: https://review.openstack.org/507556
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f5e8060441f74b9add0f683558e2f4648ef54efd
Submitter: Jenkins
Branch: stable/ocata

commit f5e8060441f74b9add0f683558e2f4648ef54efd
Author: ejbaek <email address hidden>
Date: Sat Sep 9 11:59:41 2017 +0000

    Fix --max-count handling for nova-manage cell_v2 map_instances

    Code is added to define destination for cell_uuid and max_count
    argument, otherwise specifying --max-count fails with:

    TypeError: map_instances() got an unexpected keyword argument 'max-count'

    Change-Id: I9328a20b97977bfffa21df55bd4d60e711a406a7
    Closes-Bug: #1715533
    (cherry picked from commit 87a53cc45283a81386ee8f870a25a315b8527749)
    (cherry picked from commit c3f3f62b090f6b2e4b69db09e16cac0fe6c843c9)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/newton)

Reviewed: https://review.openstack.org/507557
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=8e0ed9d8532873bbfff9648fd020c4e6e8e15ba7
Submitter: Zuul
Branch: stable/newton

commit 8e0ed9d8532873bbfff9648fd020c4e6e8e15ba7
Author: ejbaek <email address hidden>
Date: Sat Sep 9 11:59:41 2017 +0000

    Fix --max-count handling for nova-manage cell_v2 map_instances

    Code is added to define destination for cell_uuid and max_count
    argument, otherwise specifying --max-count fails with:

    TypeError: map_instances() got an unexpected keyword argument 'max-count'

    Change-Id: I9328a20b97977bfffa21df55bd4d60e711a406a7
    Closes-Bug: #1715533
    (cherry picked from commit 87a53cc45283a81386ee8f870a25a315b8527749)
    (cherry picked from commit c3f3f62b090f6b2e4b69db09e16cac0fe6c843c9)
    (cherry picked from commit f5e8060441f74b9add0f683558e2f4648ef54efd)

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.

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

This issue was fixed in the openstack/nova 16.0.2 release.

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

This issue was fixed in the openstack/nova 14.0.9 release.

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

This issue was fixed in the openstack/nova 15.0.8 release.

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.