-
Bug
-
Resolution: Done
-
Normal
-
4.13.0
-
None
-
Informational
-
No
-
uShift Sprint 233, uShift Sprint 234
-
2
-
False
-
This is a clone of issue OCPBUGS-10226. The following is the description of the original issue:
—
Description of problem:
start microshift-etcd by command line:
$ /usr/bin/microshift-etcd run, got err msg:
E0314 02:59:14.477648 38239 run.go:74] "command failed" err="microshift-etcd failed to start: open /home/redhat/.microshift/data/certs/etcd-signer/etcd-peer/peer.crt: no such file or directory"
and after a while the microshift-etcd service started successfully, but above msg will misguide user
Version-Release number of selected component (if applicable):
$ microshift version
MicroShift Version: 4.13.0_0.nightly_2023_02_27_101545_20230306184058_06502006
Base OCP Version: 4.13.0-0.nightly-2023-02-27-101545
[redhat@dhcp-1-235-108 microshift]$ microshift-etcd version
MicroShift-etcd Version: unknown
How reproducible:
always
Steps to Reproduce:
1. check microshift-etcd service is stop
$ systemctl list-units | grep microshift
microshift.service loaded active running MicroShift
[redhat@localhost tmp]
$ systemctl status microshift-etcd.scope
Unit microshift-etcd.scope could not be found.
2. start microshift-etcd service, and got err msg at last:
$ /usr/bin/microshift-etcd run
{"level":"info","ts":"2023-03-14T02:59:14.474-0400","caller":"embed/etcd.go:124","msg":"configuring peer listeners","listen-peer-urls":["https://localhost:2380"]} {"level":"info","ts":"2023-03-14T02:59:14.475-0400","caller":"embed/etcd.go:486","msg":"starting with peer TLS","tls-info":"cert = /home/redhat/.microshift/data/certs/etcd-signer/etcd-peer/peer.crt, key = /home/redhat/.microshift/data/certs/etcd-signer/etcd-peer/peer.key, client-cert=, client-key=, trusted-ca = /home/redhat/.microshift/data/certs/etcd-signer/ca.crt, client-cert-auth = false, crl-file = ","cipher-suites":["TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384","TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256","TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305","TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305"]} {"level":"info","ts":"2023-03-14T02:59:14.477-0400","caller":"embed/etcd.go:375","msg":"closing etcd server","name":"localhost.localdomain","data-dir":"/home/redhat/.microshift/data/etcd","advertise-peer-urls":["https://localhost:2380"],"advertise-client-urls":["https://localhost:2379"]} {"level":"info","ts":"2023-03-14T02:59:14.477-0400","caller":"embed/etcd.go:377","msg":"closed etcd server","name":"localhost.localdomain","data-dir":"/home/redhat/.microshift/data/etcd","advertise-peer-urls":["https://localhost:2380"],"advertise-client-urls":["https://localhost:2379"]}E0314 02:59:14.477648 38239 run.go:74] "command failed" err="microshift-etcd failed to start: open /home/redhat/.microshift/data/certs/etcd-signer/etcd-peer/peer.crt: no such file or directory"
[redhat@dhcp-1-235-108 microshift]$ /usr/bin/microshift-etcd run^C
[redhat@dhcp-1-235-108 microshift]$ microshift version
MicroShift Version: 4.13.0_0.nightly_2023_02_27_101545_20230306184058_06502006
Base OCP Version: 4.13.0-0.nightly-2023-02-27-101545
[redhat@dhcp-1-235-108 microshift]$
3. waiting for a while(perhaps more than 10 minutes), the microshift-service started
$ systemctl list-units | grep microshift
microshift-etcd.scope loaded active running /usr/bin/microshift-etcd run
microshift.service loaded active running MicroShift
$ systemctl status microshift-etcd.scope
● microshift-etcd.scope - /usr/bin/microshift-etcd run
Loaded: loaded (/run/systemd/transient/microshift-etcd.scope; transient)
Transient: yes
Active: active (running) since Tue 2023-03-14 03:01:24 EDT; 42min ago
Tasks: 9 (limit: 22878)
Actual results:
as description
Expected results:
no err msg prompt
Additional info:
- clones
-
OCPBUGS-10226 Prompt unexpected err="microshift-etcd failed to start when execute 'microshift-etcd run'
- Closed
- is blocked by
-
OCPBUGS-10226 Prompt unexpected err="microshift-etcd failed to start when execute 'microshift-etcd run'
- Closed
- links to