Support --os-version as argument.

You can use --os-type as an argument when not running teuthology
tests but instead just using teuthology-lock. This adds the ability
to also use --os-version so you can specify the version of the
distro without having to run an actual test with a yaml like you
normally would have had to do setting os_version in the yaml.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Fixed errors. Tests pass.

Since the default OS version is different for each distro the
argument default is None instead of explicity set to a value
like with get_distro. Fixed some logic around that and the tests
making the arugment always take precidence.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
install.upgrade: fix overrides of sha1|tag|branch

If the upgrade task config has a branch: (or tag or sha1), do
not apply the sha1|branch|tag overrides keys.  This fixes the
breakage from 280f783c2e8dda0df6afb4de0b115aad1614fbdc which
made

overrides:
  install:
    ceph:
      sha1: f88866fe9c218e03b3f89ff21e2b7b655aa74294
tasks:
...
- install.upgrade:
    all:
      branch: dumpling

...use the sha1 from the overrides instead of the explicitly
specified branch.  The intention was to only use the overrides
when the version was not specified (whether it was sha1 or
branch or tag).

At some point we should probably make the same change for
install function in install.py, but let's fix this first to
get the upgrade tests working.

Signed-off-by: Sage Weil <sage@inktank.com>
Merge pull request #148 from ceph/wip-upgrade

install.upgrade: fix overrides of sha1|tag|branch
Added two new tasks.  tgt starts up the tgt service.  iscsi starts
up the iscsi service and logins to an rbd image using the tgt service
(either locally or remotely).  The iscsi service runs some
simple tests, and then sets up the isci-image to be useable by
rbd test scripts.  Later workunits can perform further testing
on the isci-image interface.

In order to add the new tasks, common_fs_utils.py was formed
from code extracted out of rbd.py.  Rbd.py and iscsi.py both
call the functions in this module.

Fixes: #6433
Signed-off-by: Warren Usui <warren.usui@inktank.com>
Reviewed-by: Josh Durgin
install.upgrade: deepcopy() overrides before we modify it

Since we modify the dict, make sure it is a deep copy.
Otherwise, a sequence like:

- install.upgrade:
    all:
      branch: dumpling
...
- install.upgrade:
    all: null

will delete the overrides keys in the first upgrade call and
then not have them at all in the second.

Signed-off-by: Sage Weil <sage@inktank.com>
Transition from sentry_events to sentry_event
Merge pull request #149 from ceph/reporting

Transition from sentry_events to sentry_event
Don't use create_run() unless necessary

Runs are created automatically now.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Merge pull request #150 from ceph/reporting

Don't use create_run() unless necessary
Fix hilariously long sentry_event para

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Don't re-call logging.basicConfig()

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Also catch socket.error in try_push_job_info
Consolidate two excepts into one.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Merge pull request #146 from ceph/wip-os-type

Wip os type
For saya (arm) use arm gitbuilder for ceph sha1.

Since the arm gitbuilder (even using a ton of nodes for distcc) is
much slower than x86 lets grab the sha1 from its own gitbuilder
when machine_type is saya rather than the x86 one.

Signed-off-by: Sandon Van Ness <sandon@inktank.com>
Make report_job() always return an int
syslog: ignore perf nmi handler timeout

This seems to have started appearing in recent 3.12+ kernels
with perf enabled.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
add git clone to installation instrutions

Signed-off-by: Loic Dachary <loic@dachary.org>
Merge pull request #152 from dachary/master

add git clone to installation instrutions