Bug #10286
closed
- 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'
- Status changed from New to Duplicate
Also available in: Atom
PDF