Project

General

Profile

Actions

Bug #10286

closed

internal.lock_machines no longer respects command-line args --os-type/--os-version

Added by Dan Mick over 9 years ago. Updated over 9 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):

Related issues 1 (0 open1 closed)

Related to teuthology - Bug #10279: --os-version and --os-type is not respectedResolvedAndrew Schoen12/09/2014

Actions
Actions #1

Updated by Dan Mick over 9 years ago

  • Source changed from other to Development

If --os-type and --os-version are set on the command line, they don't get noticed in internal.lock_machines. I am not sure I'm correctly inferring the new rules for what overrides what where, but this is a possible fix to the issue:

--- a/teuthology/task/internal.py
+++ b/teuthology/task/internal.py
@@ -64,8 +64,8 @@ def lock_machines(ctx, config):
     new machines.  This is not called if the one has teuthology-locked
     machines and placed those keys in the Targets section of a yaml file.
     """ 
-    os_type = ctx.config.get('os_type')
-    os_version = ctx.config.get('os_version')
+    os_type = ctx.config.get('os_type') or ctx.get('os_type')
+    os_version = ctx.config.get('os_version') or ctx.get('os_version')
     arch = ctx.config.get('arch')
     log.info('Locking machines...')
     assert isinstance(config[0], int), 'config[0] must be an integer'
Actions #2

Updated by Dan Mick over 9 years ago

  • Status changed from New to Duplicate
Actions

Also available in: Atom PDF