Project

General

Profile

Actions

Bug #49590

closed

Error: error parsing host port: invalid port number: strconv.Atoi: parsing " 9093": invalid syntax

Added by Michael Fritch about 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
cephadm (binary)
Target version:
-
% Done:

0%

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

Description

a/mgfritch-2021-03-02_23:06:05-rados:cephadm-wip-mgfritch-testing-2021-03-02-1408-distro-basic-smithi/5928333/
a/mgfritch-2021-03-02_23:06:05-rados:cephadm-wip-mgfritch-testing-2021-03-02-1408-distro-basic-smithi/5928365/

2021-03-03T00:26:16.847 INFO:tasks.workunit.client.0.smithi152.stderr:+ sudo /home/ubuntu/cephtest/clone.client.0/qa/workunits/cephadm/../../../src/cephadm/cephadm --image quay.ceph.io/ceph-ci/ceph:master logs --fsid 00000000-0000-0000-0000-0000deadbeef --name container.alertmanager.a -- --no-pager -n 100
2021-03-03T00:26:17.102 INFO:tasks.workunit.client.0.smithi152.stdout:-- Logs begin at Wed 2021-03-03 00:11:49 UTC, end at Wed 2021-03-03 00:26:16 UTC. --
2021-03-03T00:26:17.102 INFO:tasks.workunit.client.0.smithi152.stdout:Mar 03 00:26:09 smithi152 systemd[1]: Starting Ceph container.alertmanager.a for 00000000-0000-0000-0000-0000deadbeef...
2021-03-03T00:26:17.103 INFO:tasks.workunit.client.0.smithi152.stdout:Mar 03 00:26:10 smithi152 bash[55320]: Error: error parsing host port: invalid port number: strconv.Atoi: parsing " 9093": invalid syntax
2021-03-03T00:26:17.103 INFO:tasks.workunit.client.0.smithi152.stdout:Mar 03 00:26:10 smithi152 systemd[1]: ceph-00000000-0000-0000-0000-0000deadbeef@container.alertmanager.a.service: Control process exited, code=exited status=125
2021-03-03T00:26:17.103 INFO:tasks.workunit.client.0.smithi152.stdout:Mar 03 00:26:10 smithi152 systemd[1]: ceph-00000000-0000-0000-0000-0000deadbeef@container.alertmanager.a.service: Failed with result 'exit-code'.
2021-03-03T00:26:17.103 INFO:tasks.workunit.client.0.smithi152.stdout:Mar 03 00:26:10 smithi152 systemd[1]: Failed to start Ceph container.alertmanager.a for 00000000-0000-0000-0000-0000deadbeef.
Actions #1

Updated by Michael Fritch about 3 years ago

  • Pull request ID set to 39822
Actions #2

Updated by Michael Fritch about 3 years ago

  • Status changed from In Progress to Fix Under Review
Actions #3

Updated by Michael Fritch about 3 years ago

introduced by usage of shlex in https://github.com/ceph/ceph/pull/39730

quoted args are passed to podman:

'-p 9093:9093' '-p 9094:9094'

full output of unit.run file:

cat /var/lib/ceph/00000000-0000-0000-0000-0000deadbeef/container.alertmanager.a/unit.run 
set -e
# container.alertmanager.a
! /usr/bin/podman rm -f ceph-00000000-0000-0000-0000-0000deadbeef-container.alertmanager.a 2> /dev/null
! /usr/bin/podman rm -f --storage ceph-00000000-0000-0000-0000-0000deadbeef-container.alertmanager.a 2> /dev/null
/usr/bin/podman run --rm --ipc=host --init --name ceph-00000000-0000-0000-0000-0000deadbeef-container.alertmanager.a '-p 9093:9093' '-p 9094:9094' -d --log-driver journald --conmon-pidfile /run/ceph-00000000-0000-0000-0000-0000deadbeef@container.alertmanager.a.service-pid --cidfile /run/ceph-00000000-0000-0000-0000-0000deadbeef@container.alertmanager.a.service-cid -e CONTAINER_IMAGE=docker.io/prom/alertmanager:v0.20.0 -e NODE_NAME=host1 -e CEPH_USE_RANDOM_NONCE=1 -v /var/lib/ceph/00000000-0000-0000-0000-0000deadbeef/container.alertmanager.a/etc/alertmanager:/etc/alertmanager docker.io/prom/alertmanager:v0.20.0

Actions #4

Updated by Sebastian Wagner about 3 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #5

Updated by Sebastian Wagner almost 3 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF