Project

General

Profile

Bug #40565

mgr/dashboard: dashboard Jenkins job fails with "global_init: error reading config file. dirname: missing operand"

Added by Laura Paduano 10 months ago. Updated 9 months ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
dashboard/qa
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

e.g. here: https://jenkins.ceph.com/view/all/job/ceph-dashboard-pull-requests/366/console
or here: https://jenkins.ceph.com/view/all/job/ceph-dashboard-pull-requests/363/console

Ran into the dirname error on my local env when running vstart:

RGW=1 ../src/vstart.sh -n -x                     
/root/src/ceph/build/bin/ceph-conf: error while loading shared libraries: libssl3.so: cannot open shared object file: No such file or directory dirname: missing operand Try 'dirname --help' for more information.

Added set -x to the e2e test script, output of the Jenkins job is now:

+ cd src/pybind/mgr/dashboard
+ timeout 7200 ./run-frontend-e2e-tests.sh
+ BASE_URL=
+ DEVICE=
+ REMOTE=false
+ getopts d:r: flag
+ '[' '' == '' ']'
++ command -v google-chrome
+ '[' -x /usr/bin/google-chrome ']'
+ DEVICE=chrome
++ pwd
+ DASH_DIR=/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/src/pybind/mgr/dashboard
+ cd ../../../../build
++ pwd
+ BUILD_DIR=/home/jenkins-build/build/workspace/ceph-dashboard-pull-requests/build
+ '[' '' == '' ']'
+ MGR=2
+ RGW=1
+ ../src/vstart.sh -n -d
global_init: error reading config file.
dirname: missing operand
Try 'dirname --help' for more information.
Build step 'Execute shell' marked build as failure

Related issues

Duplicates RADOS - Bug #40577: vstart.sh can't work. Resolved 06/28/2019

History

#1 Updated by Laura Paduano 10 months ago

  • Description updated (diff)

#2 Updated by Laura Paduano 10 months ago

  • Description updated (diff)

#3 Updated by Kefu Chai 9 months ago

  • Status changed from New to Resolved
  • Pull request ID set to 28776

tl;dr:

fixed by https://github.com/ceph/ceph/pull/28776

long story,

we run do_cmake.sh to build the tree. this script prepares a minimal ceph.conf so we can run the unit tests. apparently, the ceph.conf is not valid anymore after https://github.com/ceph/ceph/pull/28634.

but what makes the problem more obscure is that, vstart.sh tries to read ceph.conf to cleanup the asock dir, even if "-n" (--new) is specified. if the ceph.conf does not parse. vstart.sh just fails with error message of

global_init: error reading config file. dirname: missing operand

in https://github.com/ceph/ceph/pull/28776, we always add a "[global]" header for the settings. the header name appeases the updated ceph.conf parser.

#4 Updated by Nathan Cutler 9 months ago

  • Status changed from Resolved to Duplicate

#5 Updated by Nathan Cutler 9 months ago

  • Duplicates Bug #40577: vstart.sh can't work. added

Also available in: Atom PDF