Actions
Bug #45279
closedcephadm bootstrap: monmaptool --create: error writing to '/tmp/monmap': (21) Is a directory
Status:
Can't reproduce
Priority:
Low
Assignee:
-
Category:
cephadm (binary)
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
1 - critical
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
Hi,
using cpehadm in order to install octopus on a ubuntu 18.04 fails asap I've tried to install first monitor.
I followed the documentation:
1. install Python3
apt install python3
(missing in the doc)
2. download cephadm
curl --silent --remote-name --location https://github.com/ceph/ceph/raw/octopus/src/cephadm/cephadm
3.
./cephadm add-repo --release octopus INFO:root:Installing repo GPG key from https://download.ceph.com/keys/release.asc... INFO:root:Installing repo file at /etc/apt/sources.list.d/ceph.list... 4.mkdir -p /etc/ceph 5./cephadm bootstrap --mon-ip 192.168.200.101 INFO:cephadm:Verifying podman|docker is present... INFO:cephadm:Verifying lvm2 is present... INFO:cephadm:Verifying time synchronization is in place... INFO:cephadm:Unit chrony.service is enabled and running INFO:cephadm:Repeating the final host check... INFO:cephadm:podman|docker (/usr/bin/docker) is present INFO:cephadm:systemctl is present INFO:cephadm:lvcreate is present INFO:cephadm:Unit chrony.service is enabled and running INFO:cephadm:Host looks OK INFO:root:Cluster fsid: 533a9582-871e-11ea-b8d4-525400fb2a5d INFO:cephadm:Verifying IP 192.168.200.101 port 3300 ... INFO:cephadm:Verifying IP 192.168.200.101 port 6789 ... INFO:cephadm:Mon IP 192.168.200.101 is in CIDR network 192.168.200.0/24 INFO:cephadm:Pulling latest docker.io/ceph/ceph:v15 container... INFO:cephadm:Extracting ceph user uid/gid from container image... INFO:cephadm:Creating initial keys... INFO:cephadm:Creating initial monmap... INFO:cephadm:Non-zero exit code 1 from /usr/bin/docker run --rm --net=host -e CONTAINER_IMAGE=docker.io/ceph/ceph:v15 -e NODE_NAME=ub-oc-osd1 -v /tmp/ceph-tmpzy64d8te:/tmp/monmap:z --entrypoint /usr/bin/monmaptool docker.io/ceph/ceph:v15 --create --clobber --fsid 533a9582-871e-11ea-b8d4-525400fb2a5d --addv ub-oc-osd1 [v2:192.168.200.101:3300,v1:192.168.200.101:6789] /tmp/monmap INFO:cephadm:/usr/bin/monmaptool:stdout /usr/bin/monmaptool: monmap file /tmp/monmap INFO:cephadm:/usr/bin/monmaptool:stdout /usr/bin/monmaptool: set fsid to 533a9582-871e-11ea-b8d4-525400fb2a5d INFO:cephadm:/usr/bin/monmaptool:stdout /usr/bin/monmaptool: writing epoch 0 to /tmp/monmap (1 monitors) INFO:cephadm:/usr/bin/monmaptool:stderr bufferlist::write_file(/tmp/monmap): failed to open file: (21) Is a directory INFO:cephadm:/usr/bin/monmaptool:stderr monmaptool: error writing to '/tmp/monmap': (21) Is a directory Traceback (most recent call last): File "./cephadm", line 4576, in <module> r = args.func() File "./cephadm", line 1120, in _default_image return func() File "./cephadm", line 2345, in command_bootstrap tmp_monmap.name: '/tmp/monmap:z', File "./cephadm", line 2140, in run self.run_cmd(), desc=self.entrypoint, timeout=timeout) File "./cephadm", line 837, in call_throws raise RuntimeError('Failed command: %s' % ' '.join(command)) RuntimeError: Failed command: /usr/bin/docker run --rm --net=host -e CONTAINER_IMAGE=docker.io/ceph/ceph:v15 -e NODE_NAME=ub-oc-osd1 -v /tmp/ceph-tmpzy64d8te:/tmp/monmap:z --entrypoint /usr/bin/monmaptool docker.io/ceph/ceph:v15 --create --clobber --fsid 533a9582-871e-11ea-b8d4-525400fb2a5d --addv ub-oc-osd1 [v2:192.168.200.101:3300,v1:192.168.200.101:6789] /tmp/monmap
Actions