Project

General

Profile

Actions

Bug #57173

closed

cephadm: bootstrap should return non-zero exit code when applying spec fails

Added by Adam King over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
backport_processed
Backport:
quincy, pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

This is mostly useful for testing automation, but right now if applying the spec provided with --apply-spec fails, the return code remains zero. We don't want to error out entirely in that case as we still want to print the remaining output (e.g. the dashboard password). Continuing onward and then returning a nonzero code could provide a balance where we still give all the output but still have something to make it easier for those writing automation around bootstrap.


Related issues 2 (0 open2 closed)

Copied to Orchestrator - Backport #57378: quincy: cephadm: bootstrap should return non-zero exit code when applying spec failsResolvedAdam KingActions
Copied to Orchestrator - Backport #57379: pacific: cephadm: bootstrap should return non-zero exit code when applying spec failsResolvedAdam KingActions
Actions #1

Updated by Adam King over 1 year ago

  • Status changed from New to Pending Backport
  • Pull request ID set to 47665
Actions #2

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57378: quincy: cephadm: bootstrap should return non-zero exit code when applying spec fails added
Actions #3

Updated by Backport Bot over 1 year ago

  • Copied to Backport #57379: pacific: cephadm: bootstrap should return non-zero exit code when applying spec fails added
Actions #4

Updated by Backport Bot over 1 year ago

  • Tags set to backport_processed
Actions #5

Updated by Adam King over 1 year ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF