Project

General

Profile

Bug #40577

vstart.sh can't work.

Added by jianpeng ma 8 months ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature:

Description

When firstly do_cmake.sh, it will create a ceph.conf .in build dir.
plugin dir = lib
erasure code dir = lib
When do ../src/vstart.sh -n, it print the following message:

ceph-mgr dashboard not built - disabling.
global_init: error reading config file.
global_init: error reading config file.
global_init: error reading config file.
global_init: error reading config file.
global_init: error reading config file.
dirname: missing operand
Try 'dirname --help' for more information.

From debug, code "asok_dir=`dirname $($CEPH_BIN/ceph-conf -c $conf_fn --show-config-value admin_socket)`" cause erro and make vstart.sh return.
So i simple code: "/bin/ceph-conf -c ceph.conf --show-config-value admin_socket"
global_init: error reading config file.

By git bisect, i found commit b1289290247fcd724c9f794716176089342f1110 cause this bug.

BTY: if remove ceph.conf, no problem occur. I think in ceph.conf no infos about admin_socket which cause dirname with null. If ceph.conf contain admin_socket, this bug not occur.


Related issues

Duplicated by mgr - Bug #40565: mgr/dashboard: dashboard Jenkins job fails with "global_init: error reading config file. dirname: missing operand" Duplicate 06/27/2019

History

#1 Updated by Nathan Cutler 8 months ago

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

#2 Updated by Nathan Cutler 8 months ago

  • Duplicated by Bug #40565: mgr/dashboard: dashboard Jenkins job fails with "global_init: error reading config file. dirname: missing operand" added

Also available in: Atom PDF