Skip to content

Fix placement icon color and improve parent-child orchestration#1054

Merged
cgalibern merged 3 commits into
opensvc:mainfrom
cvaroqui:main
Jun 25, 2026
Merged

Fix placement icon color and improve parent-child orchestration#1054
cgalibern merged 3 commits into
opensvc:mainfrom
cvaroqui:main

Conversation

@cvaroqui

Copy link
Copy Markdown
Member

No description provided.

cvaroqui added 3 commits June 25, 2026 11:12
The red color was over-alarming.
Test case:

-

	root@dev2n1:~/dev/om3# om relative1 config show
	[DEFAULT]
	id = 5b025eea-c70c-4d19-b0a6-6c26c27267c0
	children = relative2 relative3
	nodes = *
	orchestrate = ha

	[fs#1]
	type = flag

	[app#1]
	start = /usr/bin/sleep 10

-

	root@dev2n1:~/dev/om3# om relative2 config show
	[DEFAULT]
	id = 985af049-ce59-466b-811a-a5fdb23636e5
	parents = relative1
	nodes = *
	orchestrate = ha

	[fs#1]
	type = flag

	[app#1]
	stop = /usr/bin/sleep 10

-

	root@dev2n1:~/dev/om3# om relative3 config show
	[DEFAULT]
	id = 9221ef4b-02ca-493a-a990-9ac195072c4e
	parents = relative1
	nodes = *
	orchestrate = ha

	[fs#1]
	type = flag

-
	root@dev2n1:~/dev/om3# om relative[123] switch -w
	Objects ~ rel*                  dev2n1                    dev2n2             dev2n3
	 relative1     up   no    1/1 | O^ wait children >placed@ X stopped >placed@ X wait children >placed
	@
	 relative2     up^  no    1/1 | X^                        O                  X
	 relative3     up^  no    1/1 | X^                        O                  X

The orchestration hangs at this point, because relative[23] have
switched before relative1 could acknowledge the moment relative[23]
were both stopped.

This patch adds a isAnyParentWaitingChilren() function to create
this missing synchronisation step.
@cgalibern cgalibern merged commit 13d12d8 into opensvc:main Jun 25, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants