nova-manage cell_v2 map_cell0 always returns a non-0 exit code
Bug #1656017 reported by
Matt Riedemann
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Dan Peschman | ||
Newton |
New
|
Undecided
|
Unassigned |
Bug Description
See the discussion in this review:
https:/
The map_cell0 CLI is really treated like a function and it's used by the simple_cell_setup command. If map_cell0 is used as a standalone command it always returns a non-0 exit code because it's returning a CellMapping object (or failing with a duplicate entry error if the cell0 mapping already exists).
We should split the main part of the map_cell0 function out into a private method and then treat map_cell0 as a normal CLI with integer exit codes (0 on success, >0 on failure) and print out whatever information is needed when mapping cell0, like the uuid for example.
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/420132
Review: https:/