New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qa/ fix the find option to be compatible with GNU find #16646

merged 1 commit into from Jul 28, 2017


None yet
5 participants

tchaikov commented Jul 28, 2017

also re-indent to be consistent with other part of this script

Signed-off-by: Kefu Chai

qa/ fix the find option to be compatible with GNU find
also re-indent to be consistent with other part of this script

Signed-off-by: Kefu Chai <>

@liewegas liewegas merged commit efd7200 into ceph:master Jul 28, 2017

3 of 4 checks passed

make check (arm64) make check failed
Signed-off-by all commits in this PR are signed
Unmodified Submodules submodules for project are unmodified
make check make check succeeded

@tchaikov tchaikov deleted the tchaikov:wip-qa-run-standalone-work-with-gnu-find branch Jul 28, 2017


This comment has been minimized.


xiexingguo commented Jul 29, 2017

@tchaikov Sorry, kefu. There was a power outage in ChangSha yesterday ...

I try to run the test-scripts under qa/standalone via the guide(qa/standalone/README) and get following error:

[root@gitbuilder-ceph-rpm-centos7-amd64-basic /home/xxg/build/ceph-dev/build]# PATH=$PATH:bin CEPH_ROOT=.. CEPH_LIB=lib ../qa/standalone/mon/
+ PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}:  '
../qa/standalone/ main:  export PATH=/tmp/ceph-disk-virtualenv/bin:/tmp/ceph-detect-init-virtualenv/bin:.:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:bin
../qa/standalone/ main:  PATH=/tmp/ceph-disk-virtualenv/bin:/tmp/ceph-detect-init-virtualenv/bin:.:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:bin
../qa/standalone/ main:  export CEPH_CONF=/dev/null
../qa/standalone/ main:  CEPH_CONF=/dev/null
../qa/standalone/ main:  unset CEPH_ARGS
../qa/standalone/ main:  local code
../qa/standalone/ main:  run td/misc
../qa/standalone/mon/ run:  local dir=td/misc
../qa/standalone/mon/ run:  shift
../qa/standalone/mon/ run:  export CEPH_MON=
../qa/standalone/mon/ run:  CEPH_MON=
../qa/standalone/mon/ run:  export CEPH_ARGS
.../qa/standalone/mon/ run:  uuidgen
../qa/standalone/mon/ run:  CEPH_ARGS+='--fsid=a768087a-2d10-437f-8be4-c30158bf48a0 --auth-supported=none '
../qa/standalone/mon/ run:  CEPH_ARGS+='--mon-host= '
.../qa/standalone/mon/ run:  set
.../qa/standalone/mon/ run:  sed -n -e 's/^\(TEST_[0-9a-z_]*\) .*/\1/p'
../qa/standalone/mon/ run:  local 'funcs=TEST_mon_add_to_single_mon
../qa/standalone/mon/ run:  for func in '$funcs'
../qa/standalone/mon/ run:  TEST_mon_add_to_single_mon td/misc
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  local dir=td/misc
.../qa/standalone/mon/ TEST_mon_add_to_single_mon:  uuidgen
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  fsid=82ee057e-1534-40b5-b1d2-117dc9dff742
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  MONA=
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  MONB=
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  CEPH_ARGS_orig='--fsid=a768087a-2d10-437f-8be4-c30158bf48a0 --auth-supported=none --mon-host= '
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  CEPH_ARGS='--fsid=82ee057e-1534-40b5-b1d2-117dc9dff742 --auth-supported=none '
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  CEPH_ARGS+='--mon-initial-members=a '
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  CEPH_ARGS+='--mon-host= '
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  setup td/misc
../qa/standalone/ setup:  local dir=td/misc
../qa/standalone/ setup:  teardown td/misc
../qa/standalone/ teardown:  local dir=td/misc
../qa/standalone/ teardown:  kill_daemons td/misc KILL
.../qa/standalone/ kill_daemons:  shopt -q -o xtrace
.../qa/standalone/ kill_daemons:  echo true
../qa/standalone/ kill_daemons:  local trace=true
../qa/standalone/ kill_daemons:  true
../qa/standalone/ kill_daemons:  shopt -u -o xtrace
../qa/standalone/ kill_daemons:  return 0
.../qa/standalone/ teardown:  uname
../qa/standalone/ teardown:  '[' Linux '!=' FreeBSD ']'
.../qa/standalone/ teardown:  stat -f -c %T .
../qa/standalone/ teardown:  '[' xfs == btrfs ']'
../qa/standalone/ teardown:  rm -fr td/misc
.../qa/standalone/ teardown:  get_asok_dir
.../qa/standalone/ get_asok_dir:  '[' -n '' ']'
.../qa/standalone/ get_asok_dir:  echo /tmp/ceph-asok.185838
../qa/standalone/ teardown:  rm -rf /tmp/ceph-asok.185838
../qa/standalone/ setup:  mkdir -p td/misc
.../qa/standalone/ setup:  get_asok_dir
.../qa/standalone/ get_asok_dir:  '[' -n '' ']'
.../qa/standalone/ get_asok_dir:  echo /tmp/ceph-asok.185838
../qa/standalone/ setup:  mkdir -p /tmp/ceph-asok.185838
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  run_mon td/misc a --public-addr
../qa/standalone/ run_mon:  local dir=td/misc
../qa/standalone/ run_mon:  shift
../qa/standalone/ run_mon:  local id=a
../qa/standalone/ run_mon:  shift
../qa/standalone/ run_mon:  local data=td/misc/a
../qa/standalone/ run_mon:  ceph-mon --id a --mkfs --mon-data=td/misc/a --run-dir=td/misc --public-addr
ceph-mon: renaming mon.noname-a to mon.a
ceph-mon: set fsid to 82ee057e-1534-40b5-b1d2-117dc9dff742
ceph-mon: created monfs at td/misc/a for mon.a
.../qa/standalone/ run_mon:  get_asok_path
.../qa/standalone/ get_asok_path:  local name=
.../qa/standalone/ get_asok_path:  '[' -n '' ']'
..../qa/standalone/ get_asok_path:  get_asok_dir
..../qa/standalone/ get_asok_dir:  '[' -n '' ']'
..../qa/standalone/ get_asok_dir:  echo /tmp/ceph-asok.185838
.../qa/standalone/ get_asok_path:  echo '/tmp/ceph-asok.185838/$cluster-$name.asok'
../qa/standalone/ run_mon:  ceph-mon --id a --mon-osd-full-ratio=.99 --mon-data-avail-crit=1 --paxos-propose-interval=0.1 --osd-crush-chooseleaf-type=0 --erasure-code-dir lib --plugin-dir lib --osd-class-dir lib --debug-mon 20 --debug-ms 20 --debug-paxos 20 --chdir= --mon-data=td/misc/a '--log-file=td/misc/$name.log' '--admin-socket=/tmp/ceph-asok.185838/$cluster-$name.asok' --mon-cluster-log-file=td/misc/log --run-dir=td/misc '--pid-file=td/misc/$' --mon-allow-pool-delete --mon-osd-backfillfull-ratio .99 --public-addr
too many arguments: [--erasure-code-dir,lib,--plugin-dir,lib,--mon-osd-backfillfull-ratio,.99]
usage: ceph-mon -i monid [flags]
  --debug_mon n
        debug monitor level (e.g. 10)
        build fresh monitor fs
        force a sync from another mon by wiping local data (BE CAREFUL)
        mandatory safeguard for --force-sync
        compact the monitor store
  --osdmap <filename>
        only used when --mkfs is provided: load the osdmap from <filename>
  --inject-monmap <filename>
        write the <filename> monmap to the local monitor store and exit
  --extract-monmap <filename>
        extract the monmap from the local monitor store and exit
  --mon-data <directory>
        where the mon store and keyring are located
  --conf/-c FILE    read configuration from the given configuration file
  --id/-i ID        set ID portion of my name
  --name/-n TYPE.ID set name
  --cluster NAME    set cluster name (default: ceph)
  --version         show version and quit

  -d                run in foreground, log to stderr.
  -f                run in foreground, log to usual location.
  --debug_ms N      set message debug level (e.g. 1)
../qa/standalone/ run_mon:  return 1
../qa/standalone/mon/ TEST_mon_add_to_single_mon:  return 1
../qa/standalone/mon/ run:  return 1

I know you are expert at these.
Further help would be greatly appreciated.


This comment has been minimized.


wjwithagen commented Jul 29, 2017

That was bad advice above.
There are probably invalid options on the CLI.
You'd have to experiment to find the one(s) that is in error.


This comment has been minimized.


xiexingguo commented Jul 29, 2017

@wjwithagen Thanks. Still working on it:-(


This comment has been minimized.


dzafman commented Aug 1, 2017

@xiexingguo @wjwithagen @tchaikov See my pull request with a revamp of #16709

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment