← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1692982] [NEW] Need --strict option for nova-manage cell_v2 discover_hosts

 

Public bug reported:

Description
===========
The "nova-manage cell_v2 discover_hosts" currently exits with code 0 unless something seriously breaks during the command execution. There should be a path for this command to exit with a failure code unless an unmapped host is found. If one is found, it should be considered a success. 


Proposal
========
Add a --strict option (defaulting to false) to the nova-manage cell_v2 discover_hosts command. When this option is provided, the command will succeed with exit code 0 if any unmapped hosts are discovered. In any other case it will fail with exit code 1.

** Affects: nova
     Importance: Undecided
     Assignee: Eric Berglund (esberglu)
         Status: In Progress

** Changed in: nova
     Assignee: (unassigned) => Eric Berglund (esberglu)

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

Title:
  Need --strict option for nova-manage cell_v2 discover_hosts

Status in OpenStack Compute (nova):
  In Progress

Bug description:
  Description
  ===========
  The "nova-manage cell_v2 discover_hosts" currently exits with code 0 unless something seriously breaks during the command execution. There should be a path for this command to exit with a failure code unless an unmapped host is found. If one is found, it should be considered a success. 

  
  Proposal
  ========
  Add a --strict option (defaulting to false) to the nova-manage cell_v2 discover_hosts command. When this option is provided, the command will succeed with exit code 0 if any unmapped hosts are discovered. In any other case it will fail with exit code 1.

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


Follow ups