Skip to content

mgr/orchestrator: fix placement of '1' activating dry-run bug#36441

Merged
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:cephadm-46819
Aug 4, 2020
Merged

mgr/orchestrator: fix placement of '1' activating dry-run bug#36441
sebastian-philipp merged 1 commit intoceph:masterfrom
Daniel-Pivonka:cephadm-46819

Conversation

@Daniel-Pivonka
Copy link

when applying a placement of '1' for mon, mgr, rbd-mirror, crash, alertmanager, grafana, node-exporter, prometheus, or mds a dry-run was activated

[ceph: root@vm-00 /]# ceph orch apply mgr 1
####################
SERVICESPEC PREVIEWS
####################
+---------+------+--------+-------------+
|SERVICE  |NAME  |ADD_TO  |REMOVE_FROM  |
+---------+------+--------+-------------+
|mgr      |mgr   |        |             |
+---------+------+--------+-------------+
################
OSDSPEC PREVIEWS
################
+---------+------+------+------+----+-----+
|SERVICE  |NAME  |HOST  |DATA  |DB  |WAL  |
+---------+------+------+------+----+-----+
+---------+------+------+------+----+-----+

The '1' was being interpreted as 'true' for the dry-run flag, rearranging the order of flags makes the '1' interpreted as the placement.

Fixes: https://tracker.ceph.com/issues/46819
Signed-off-by: Daniel-Pivonka dpivonka@redhat.com

@Daniel-Pivonka Daniel-Pivonka requested a review from a team as a code owner August 3, 2020 19:45
Copy link
Contributor

@mgfritch mgfritch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for most of the commands the general order appears to be:
orch <command> <service_type> [placement] [dry-run] [format] [unmanaged]

lgtm!

@mgfritch mgfritch requested a review from jschmid1 August 3, 2020 20:16
when applying a placement of '1' for mon, mgr, rbd-mirror, crash, alertmanager, grafana, node-exporter, prometheus, or mds a dry-run was activated

Fixes: https://tracker.ceph.com/issues/46819
Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label Aug 4, 2020
@sebastian-philipp
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants