When users on a node are not prepared yet, it is expected
to get wrong authorization exception like this:
ssh_client.py:147 -- Connection using stored authentication info failed!
Traceback (most recent call last):
...
BadAuthenticationType: ('Bad authentication type', [u'publickey']) (allowed_types=[u'publickey'])
- new parameter to SSHClient 'verbose' allows to disable printing
such errors during waiting for ssh access.
Change-Id: I665d5dca3c064e5445863870bfb97d12cf2a4905
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: Ieea99ee85a01061eed68d45fc62f24dbffb98076
If multiple processes are creating/erasing different fuel-devops
environments at the same time, there can be race condition during
libvirt object creation/deletion like:
'bridge virbr3 already exists' and others.
This patch allows to use a lock file to avoid such situation:
export DEVOPS_LOCK_FILE=/run/lock/devops_lock
If the environment variable DEVOPS_LOCK_FILE is not set, then
the lock file is not used (backward compatibility to avoid any
errors caused by using the lock file by default).
Change-Id: Id28f442959594aa5d6bb5c1d15e4f0880653070d
- if 'has_videocard' == True, add <video> device to the
libvirt node. Default: True
Allows to disable videocard for libvirt VMs if necessary
Change-Id: I7a14557016526b6fd1a49b8ef05fb7d111800503
If user has already defined volume in pool it can be used as
backing storage for node disk.
- name: system
capacity: !os_env NODE_VOLUME_SIZE, 150
shared_backing_store_name: !os_env IMAGE_NAME
format: qcow2
Change-Id: Ib1ec1daf74d9bd2c78288cc507e4b32c7233ef3d
If you create an environment and want to start a node prior to running
the admin setup action, it will fail because the networks are not
currently started. This change makes sure the networks are started
before starting the node via the node-start shell command.
Change-Id: I336ea88950e9239d02d3c72c49b3d17eb264e6c3
We can use fuel-devops for deletion of outdated environment.
Usage:
dos.py show-old 3d
dos.py erase-old 3d
where "3d" is time-to-live interval. All envs older than
given interval will be erased.
Last char of interval is multiplier, could be:
- s: seconds
- m: minutes
- h: hours
- d: days
erase-old operation is interactive but it could be
disabled via "--force-cleanup" arg.
list-old command supports --timestamps arg. Note that devops uses
UTC timestamps!
Change-Id: Ic1a744996495296e22ae0fdef9752dba8790aac8
Dict wrapper is used for string format method using
postponed keys resolving.
With this class, format will not fail in case if key not found,
and leaves the unknown key in the string 'as is'.
This behaviour is required as a workaround for strings with
bash-like variables like ${SOMEVAR} to not fail the format because
of 'unknown key: SOMEVAR'.
Returning the 'format' instead of 'replace' is required to use
the escaping of the '{{' '}}' in the string to get '{' '}'.
Change-Id: I1c2bbb083a544eb366c7b00eb1002cc4da652c33
Replace formatting templates for commands from `"{!r}"` to `u"{!s}"`
for better representation of commands with more than one line.
Change-Id: I76a29757d4faffff321cfa3df7e39190acbb406b
Co-Authored-By: Fedor Zhadaev <fzhadaev@mirantis.com>
Show total and per-node maximum vcpu, memory and storage capacity
usage, if defined.
It will help to plan the CI hardware usage mode carefully.
Example:
$ dos.py show-resources test-environment-name
Change-Id: I1bb891ef394d74b06e07c667fc88139377c8c96f
New version of paramiko uses BadHostKeyException as error when smth wrong
with keys from known_hosts and current public key.
Change-Id: I3ea9a1953b4e6daf33265600681c85cd2cd28828
Closes-bug:1697690
Command 'ntpd -gq' is finished with exit code 0 even if
"no servers found" appeared.
Change-Id: Ib45afe7fccca91b402c8f370ede8f963e550921f
Related-Bug: #1656020
If remote server was selected as reference, it can be used as time
source, so there are no big problem if it flaps.
Change-Id: I01fa7acde7c9cd97245e8b2bf8ca31f3c62d6479
Related-Bug: #1656020