Project

General

Profile

Actions

Bug #44502

closed

mgr/dashboard: 'dashboard ac-user-create' is not idempotent

Added by Sage Weil about 4 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Urgent
Category:
General - Configuration
Target version:
% Done:

0%

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

Description

2020-03-07T15:12:41.196 INFO:teuthology.orchestra.run.smithi137.stderr:INFO:cephadm:Non-zero exit code 17 from /bin/podman run --rm --net=host -e CONTAINER_IMAGE=quay.io/ceph-ci/ceph:f7e57709a70012f57105c919d9d28c9c454d3ba5 -e NODE_NAME=smithi137 -v /var/log/ceph/dc231be0-6085-11ea-9a34-001a4aab830c:/var/log/ceph:z
 -v /tmp/ceph-tmpktpe2zce:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp6xjdjrab:/etc/ceph/ceph.conf:z --entrypoint /usr/bin/ceph quay.io/ceph-ci/ceph:f7e57709a70012f57105c919d9d28c9c454d3ba5 dashboard ac-user-create admin 3pjswr2wq1 administrator --force-password
2020-03-07T15:12:41.196 INFO:teuthology.orchestra.run.smithi137.stderr:INFO:cephadm:/usr/bin/ceph:stderr Error EEXIST: User 'admin' already exists
2020-03-07T15:12:41.202 INFO:teuthology.orchestra.run.smithi137.stderr:Traceback (most recent call last):
2020-03-07T15:12:41.202 INFO:teuthology.orchestra.run.smithi137.stderr:  File "/home/ubuntu/cephtest/cephadm", line 3700, in <module>
2020-03-07T15:12:41.202 INFO:teuthology.orchestra.run.smithi137.stderr:    r = args.func()
2020-03-07T15:12:41.202 INFO:teuthology.orchestra.run.smithi137.stderr:  File "/home/ubuntu/cephtest/cephadm", line 2072, in command_bootstrap
2020-03-07T15:12:41.202 INFO:teuthology.orchestra.run.smithi137.stderr:    '--force-password'])
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:  File "/home/ubuntu/cephtest/cephadm", line 1922, in cli
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:    ).run(timeout=timeout)
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:  File "/home/ubuntu/cephtest/cephadm", line 1679, in run
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:    self.run_cmd(), desc=self.entrypoint, timeout=timeout)
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:  File "/home/ubuntu/cephtest/cephadm", line 516, in call_throws
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:    raise RuntimeError('Failed command: %s' % ' '.join(command))
2020-03-07T15:12:41.203 INFO:teuthology.orchestra.run.smithi137.stderr:RuntimeError: Failed command: /bin/podman run --rm --net=host -e CONTAINER_IMAGE=quay.io/ceph-ci/ceph:f7e57709a70012f57105c919d9d28c9c454d3ba5 -e NODE_NAME=smithi137 -v /var/log/ceph/dc231be0-6085-11ea-9a34-001a4aab830c:/var/log/ceph:z -v /tmp/ceph-tmpktpe2zce:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp6xjdjrab:/etc/ceph/ceph.conf:z --entrypoint /usr/bin/ceph quay.io/ceph-ci/ceph:f7e57709a70012f57105c919d9d28c9c454d3ba5 dashboard ac-user-create admin 3pjswr2wq1 administrator --force-password

/a/sage-2020-03-07_14:00:00-rados-master-distro-basic-smithi/4834652

all of these CLI commands need to be idempotent, so that if the CLI experiences a connection interruption and resends the command to the mon/mgr it will still succeed.


Related issues 2 (1 open1 closed)

Related to Dashboard - Bug #44806: mgr/dashboard: check if all CLI commands are idempotentNew

Actions
Copied to Dashboard - Backport #44796: octopus: mgr/dashboard: 'dashboard ac-user-create' is not idempotentResolvedTatjana DehlerActions
Actions

Also available in: Atom PDF