From patchwork Fri May 6 07:34:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Willem Jan Withagen X-Patchwork-Id: 9029841 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 684B69F372 for ; Fri, 6 May 2016 07:34:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DD3420373 for ; Fri, 6 May 2016 07:34:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DB0D2035B for ; Fri, 6 May 2016 07:34:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752108AbcEFHeq (ORCPT ); Fri, 6 May 2016 03:34:46 -0400 Received: from smtp.digiware.nl ([31.223.170.169]:44852 "EHLO smtp.digiware.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751193AbcEFHeq (ORCPT ); Fri, 6 May 2016 03:34:46 -0400 Received: from rack1.digiware.nl (unknown [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 6C88D1534C9; Fri, 6 May 2016 09:34:43 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by rack1.digiware.nl (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4yLAwyCapRwy; Fri, 6 May 2016 09:34:42 +0200 (CEST) Received: from [IPv6:2001:4cb8:3:1:e45a:b37c:a259:7231] (unknown [IPv6:2001:4cb8:3:1:e45a:b37c:a259:7231]) by smtp.digiware.nl (Postfix) with ESMTP id 0C6B6153430; Fri, 6 May 2016 09:34:42 +0200 (CEST) Subject: Re: ceph-disk broken???? To: kefu chai References: <5e9940d6-d9bb-e9b4-0af8-49e0f0cbb0f5@digiware.nl> Cc: Ceph Development , ldachary@redhat.com From: Willem Jan Withagen Organization: Digiware Management b.v. Message-ID: Date: Fri, 6 May 2016 09:34:37 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-9.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On 6-5-2016 06:49, kefu chai wrote: > On Thu, May 5, 2016 at 4:44 AM, Willem Jan Withagen wrote: >> Hi >> >> Setup: >> Fresh VM with CentOS7 >> standard ceph/ceph clone >> building with run-make-check.sh >> So the dependancies are installed by install-deps.sh >> >> I have several tests that fail with: >> >> run_osd: ceph-disk --statedir=testdir/osd-crush >> --sysconfdir=testdir/osd-crush --prepend-to-path= prepare >> testdir/osd-crush/0 >> Traceback (most recent call last): >> File "/tmp/ceph-disk-virtualenv/bin/ceph-disk", line 5, in >> from pkg_resources import load_entry_point >> File >> "/tmp/ceph-disk-virtualenv/lib/python2.7/site-packages/pkg_resources.py", >> line 3007, in >> working_set.require(__requires__) >> File >> "/tmp/ceph-disk-virtualenv/lib/python2.7/site-packages/pkg_resources.py", >> line 728, in require >> needed = self.resolve(parse_requirements(requirements)) >> File >> "/tmp/ceph-disk-virtualenv/lib/python2.7/site-packages/pkg_resources.py", >> line 626, in resolve >> raise DistributionNotFound(req) >> pkg_resources.DistributionNotFound: ceph-disk==1.0.0 >> >> Looks like ceph-disk is not in the fresh install in tmp... >> >> Ran into this with my development fork, but then also with a regular HEAD >> Did I miss something? > > Willem, you are not missing anything. the problem you are facing is what > happens in our jenkins sometimes. for example, see > https://jenkins.ceph.com/job/ceph-pull-requests/5222/consoleFull . Loïc tried > to root cause this, and found that it only happens in rhel7.0. And FreeBSD... :( Could this be a PATH issue... I do remember adding a /usr/local/bin/ path to ceph-disk.sh to get it to find python in the FreeBSD tree. --WjW ; test_activate_dir ) || return 1 } function run_timeout() { --- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/src/ceph-disk/tests/ceph-disk.sh b/src/ceph-disk/tests/ceph-disk.sh index 60280c6..b1c4391 100755 --- a/src/ceph-disk/tests/ceph-disk.sh +++ b/src/ceph-disk/tests/ceph-disk.sh @@ -69,7 +69,7 @@ CEPH_DISK_ARGS+=" --statedir=$DIR" CEPH_DISK_ARGS+=" --sysconfdir=$DIR" CEPH_DISK_ARGS+=" --prepend-to-path=" CEPH_DISK_ARGS+=" --verbose" -TIMEOUT=120 +TIMEOUT=300 cat=$(which cat) timeout=$(which timeout) @@ -201,7 +201,7 @@ function test_path() { } function test_no_path() { - ( export PATH=../ceph-detect-init/virtualenv/bin:virtualenv/bin:..:/usr/bin:/bin ; test_activate_dir ) || return 1 + ( export PATH=../ceph-detect-init/virtualenv/bin:virtualenv/bin:..:/usr/bin:/bin:/usr/local/bin