Actions
Bug #10291
closedmultimds shell scripts contain sepia references
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Crash signature (v1):
Crash signature (v2):
Description
Note: This may be true for many other suites as well.
http://pulpito.ceph.redhat.com/teuthology-2014-12-09_19:18:01-multimds-giant-testing-basic-magna/ failed on the command:
wget -O- 'http://ceph.com/git/?p=ceph-qa-chef.git;a=blob_plain;f=solo/solo-from-scratch;hb=HEAD' | sh -x
The output of the wget is:
#!/bin/sh # This file is not chmod a+x on purpose, to avoid running it # accidentally. Automation will always run it through # # wget -q -O- https://raw.github.com/ceph/ceph-qa-chef/master/solo/solo-from-scratch | sh set -e cd "$(dirname "$0")" distro=$(python -c 'import platform; distro = platform.dist()[0]; print distro.lower().rstrip()') distroversion=$(python -c 'import platform; distro = platform.dist()[1]; print distro') #Shell can't do string comparosin like bash so doing it awkwardly: centos=$(echo $distro | grep -ic -e centos -e redhat -e fedora || true) ubuntu=$(echo $distro | grep -ic -e ubuntu -e debian || true) trusty=$(echo $distroversion | grep -ic '14\.04' || true) if [ $ubuntu -gt 0 ]; then if [ $trusty -gt 0 ]; then nodepends='' else nodepends='--no-install-recommends' fi for package in git; do if [ "$(dpkg --status -- $package|sed -n 's/^Status: //p')" != "install ok installed" ]; then # add a space after old values missing="${missing:+$missing }$package" fi done if [ -n "$missing" ]; then echo "solo-from-scratch: installing missing required packages: $missing" 1>&2 aptcheck=$(grep -ic apt-mirror /etc/apt/sources.list || true) if [ $aptcheck -lt 1 ] then sudo cp -n /etc/apt/sources.list /etc/apt/sources.list.orig sudo sed -i 's@http://us.archive.ubuntu.com@http://apt-mirror.front.sepia.ceph.com/archive.ubuntu.com@g' /etc/apt/sources.list sudo sed -i 's@http://archive.ubuntu.com@http://apt-mirror.front.sepia.ceph.com/archive.ubuntu.com@g' /etc/apt/sources.list sudo sed -i 's@http://security.ubuntu.com@http://apt-mirror.front.sepia.ceph.com/security.ubuntu.com@g' /etc/apt/sources.list fi sudo apt-get update sudo \ env DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical \ apt-get \ -y \ -q \ -o Dpkg::Options::=--force-confnew \ install \ $nodepends \ -- \ $missing fi fi if [ $centos -gt 0 ]; then sudo sed -i 's@baseurl=http://vault.centos.org/@baseurl=http://apt-mirror.front.sepia.ceph.com/centosvault/@g' /etc/yum.repos.d/Cent* || true sudo sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Cent* || true sudo sed -i 's/^#baseurl/baseurl/g' /etc/yum.repos.d/Cent* || true sudo sed -i 's@http://mirror.centos.org/centos/@http://apt-mirror.front.sepia.ceph.com/centos/@g' /etc/yum.repos.d/Cent* || true sudo sed -i 's/^gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/Cent* || true #Individual Packages for package in git; do installed=$(sudo yum list installed | grep -ic "^$package" || true) if [ $installed -eq 0 ] then echo Installing missing package: "$package" sudo yum -y install "$package" fi done fi SCRATCH="$(mktemp -d --tmpdir 'solo-from-scratch.XXXXXXXXXXXX')" cd "$SCRATCH" cleanup () { rm -rf "$SCRATCH" } trap cleanup INT TERM EXIT git init #git pull https://github.com/NewDreamNetwork/ceph-qa-chef.git #git pull http://ceph.com/git/ceph-qa-chef.git #Avoid pulling via HTTP to reduce apache load git pull git://ceph.com/ceph-qa-chef.git ./solo/run
The shell script references to sepia may not work in all labs.
Actions