Project

General

Profile

Actions

Bug #40565

closed

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

Added by Laura Paduano almost 5 years ago. Updated about 3 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Testing & 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 (v1):
Crash signature (v2):

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 1 (0 open1 closed)

Is duplicate of RADOS - Bug #40577: vstart.sh can't work.Resolved06/28/2019

Actions
Actions #1

Updated by Laura Paduano almost 5 years ago

  • Description updated (diff)
Actions #2

Updated by Laura Paduano almost 5 years ago

  • Description updated (diff)
Actions #3

Updated by Kefu Chai almost 5 years 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.

Actions #4

Updated by Nathan Cutler almost 5 years ago

  • Status changed from Resolved to Duplicate
Actions #5

Updated by Nathan Cutler almost 5 years ago

  • Is duplicate of Bug #40577: vstart.sh can't work. added
Actions #6

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 151 to Testing & QA
Actions

Also available in: Atom PDF