<commit_before>#!/bin/sh
# usage:
# curl http://openqa.suse.de/sle/qatests/qa_openstack.sh | sh -x
# needs 2.1GB space for /var/lib/{glance,nova}
export MODE=kvm
# Avoid nested virtualisation by setting the line below
# Note that as of today (2014-02-14) OpenStack Nova has known
# bugs. Since upstream tests with kvm, it doesn't really
# make sense to test anything else.
# MODE=lxc
if ! grep -q -e vmx -e svm /proc/cpuinfo ; then
    MODE=lxc
fi
ARCH=$(uname -i)
: ${repomirror:=http://download.opensuse.org}
cloudopenstackmirror=$repomirror/repositories/Cloud:/OpenStack:

ifconfig | grep inet

# setup optional extra disk for cinder-volumes
dev_cinder=/dev/vdb
if ! test -e $dev_cinder && file -s /dev/sdb|grep -q "ext3 filesystem data" ; then
    dev_cinder=/dev/sdb
fi
if [ -e $dev_cinder ]; then
    # CINDER_VOLUMES_DEV is evaulated by openstack-loopback-lvm
    # from openstack-quickstart to create the VG
    export CINDER_VOLUMES_DEV=$dev_cinder
fi

# setup optional extra disk for manila-shares
dev_manila=/dev/vdc
if ! test -e $dev_manila && file -s /dev/sdc|grep -q "ext3 filesystem data" ; then
    dev_manila=/dev/sdc
fi
if [ -e $dev_manila ]; then
    # MANILA_SHARES_DEV is evaluated by openstack-loopback-lvm
    # from openstack-quickstart to create the VG
    export MANILA_SHARES_DEV=$dev_manila
fi

mount -o remount,noatime,barrier=0 /


function get_dist_name() {
    . /etc/os-release
    echo $NAME
}

function get_dist_version() {
    . /etc/os-release
    echo $VERSION_ID
}
<commit_msg>qa_openstack: Allow /dev/xvdX for cinder/manila block devs<commit_after>#!/bin/sh
# usage:
# curl http://openqa.suse.de/sle/qatests/qa_openstack.sh | sh -x
# needs 2.1GB space for /var/lib/{glance,nova}
export MODE=kvm
# Avoid nested virtualisation by setting the line below
# Note that as of today (2014-02-14) OpenStack Nova has known
# bugs. Since upstream tests with kvm, it doesn't really
# make sense to test anything else.
# MODE=lxc
if ! grep -q -e vmx -e svm /proc/cpuinfo ; then
    MODE=lxc
fi
ARCH=$(uname -i)
: ${repomirror:=http://download.opensuse.org}
cloudopenstackmirror=$repomirror/repositories/Cloud:/OpenStack:

ifconfig | grep inet

# setup optional extra disk for cinder-volumes
dev_cinder=/dev/vdb
if ! test -e $dev_cinder ; then
    # maybe we run under xen
    dev_cinder=/dev/xvdb
    if ! test -e $dev_cinder && file -s /dev/sdb|grep -q "ext3 filesystem data" ; then
        dev_cinder=/dev/sdb
    fi
fi
if [ -e $dev_cinder ]; then
    # CINDER_VOLUMES_DEV is evaulated by openstack-loopback-lvm
    # from openstack-quickstart to create the VG
    export CINDER_VOLUMES_DEV=$dev_cinder
fi

# setup optional extra disk for manila-shares
dev_manila=/dev/vdc
if ! test -e $dev_manila ; then
    # maybe we run under xen
    dev_manila=/dev/xvdc

    if ! test -e $dev_manila && file -s /dev/sdc|grep -q "ext3 filesystem data" ; then
        dev_manila=/dev/sdc
    fi
fi
if [ -e $dev_manila ]; then
    # MANILA_SHARES_DEV is evaluated by openstack-loopback-lvm
    # from openstack-quickstart to create the VG
    export MANILA_SHARES_DEV=$dev_manila
fi

mount -o remount,noatime,barrier=0 /


function get_dist_name() {
    . /etc/os-release
    echo $NAME
}

function get_dist_version() {
    . /etc/os-release
    echo $VERSION_ID
}

{'fraction_non_alphanumeric': 0.10670731707317073, 'fraction_numerical': 0.007926829268292683, 'mean_word_length': 3.5006858710562416, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5426660', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1224, 'n_words': 342}