New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: cluster mode is not enabled #2932

Closed
pchevallereau opened this Issue Nov 10, 2017 · 11 comments

Comments

Projects
None yet
4 participants
@pchevallereau

pchevallereau commented Nov 10, 2017

Issue type: Bug report

My Rundeck detail

  • Rundeck version: 2.9.4
  • install type: deb
  • OS Name/version: ubuntu 16.04 server
  • DB Type/version: mariadb

Hi guys,
i have problem with the rundeck cluster, when i try to takeover scheduled job from an rundeck instance to another, this happend:

</result><takeoverSchedule>
 <self>
  **<server uuid='' />**
  </self>
  <server all='true' />
  <job id='c07e1748-109e-40d3-9004-4b43f2a3bc38' />
  <jobs total='0'>
    **<successful count='0' />**
    <failed count='0' />
  </jobs>
</takeoverSchedule><result success='true' apiversion='20'>
  <message>No action performed, cluster mode is not enabled.</message>

In this response from the api we see the server uuid field "empty". But the two rundeck instances have a server UUID in /etc/rundeck/framework.properties file.
In my curl post i send this data:

If you have something for initialize the server uuid when the rundeck engine is started up or any ideas to fix that?

Thanks
Have a good day.

Actual Behavior

How to reproduce Behavior

@djalai

This comment has been minimized.

Show comment
Hide comment
@djalai

djalai Nov 13, 2017

Hi,

I don't know if you did this already but you must also set rundeck.clusterMode.enabled=true in the rundeck-config.properties file.

you can also see this issue #1152 for some details on how to set it up.

hope it helps

djalai commented Nov 13, 2017

Hi,

I don't know if you did this already but you must also set rundeck.clusterMode.enabled=true in the rundeck-config.properties file.

you can also see this issue #1152 for some details on how to set it up.

hope it helps

@pchevallereau

This comment has been minimized.

Show comment
Hide comment
@pchevallereau

pchevallereau Nov 13, 2017

Hi,

This parameter is set in the rundeck-config.properties file. But it's don't work. @djalai

pchevallereau commented Nov 13, 2017

Hi,

This parameter is set in the rundeck-config.properties file. But it's don't work. @djalai

@andrewmeissner

This comment has been minimized.

Show comment
Hide comment
@andrewmeissner

andrewmeissner Nov 14, 2017

I also have this problem. I can't get the ServerUUID back in a REST call nor am I able to schedule jobs to the machine. It's not until after someone logs into rundeck do all of these configurations become available. I need to be able to automate the scheduling of jobs, to a new node, but can't because of this bug. :(

andrewmeissner commented Nov 14, 2017

I also have this problem. I can't get the ServerUUID back in a REST call nor am I able to schedule jobs to the machine. It's not until after someone logs into rundeck do all of these configurations become available. I need to be able to automate the scheduling of jobs, to a new node, but can't because of this bug. :(

@pchevallereau

This comment has been minimized.

Show comment
Hide comment
@pchevallereau

pchevallereau Nov 15, 2017

Hi @andrewmeissner,

I don't know if it's possible to set the ServerUUID with a post on a api rest?
but maybe it's a solution to correct this bug.

pchevallereau commented Nov 15, 2017

Hi @andrewmeissner,

I don't know if it's possible to set the ServerUUID with a post on a api rest?
but maybe it's a solution to correct this bug.

@djalai

This comment has been minimized.

Show comment
Hide comment
@djalai

djalai Nov 15, 2017

Hi @pchevallereau,

if what you want is to enable the cluster mode when the rundeck app is already started, i think it's not possible for now.
When you want to enable the cluster mode, you have to set the 2 params mentionned in the previous messages (rundeck.server.uuid and rundeck.clusterMode.enabled) then restart the rundeck app.

If you did that and the problem persist you can try to see if the server uuid is available when using another endpoint (ex: https://[MY_RUNDECK_HOST]/api/17/project/[PROJECT]/jobs).

djalai commented Nov 15, 2017

Hi @pchevallereau,

if what you want is to enable the cluster mode when the rundeck app is already started, i think it's not possible for now.
When you want to enable the cluster mode, you have to set the 2 params mentionned in the previous messages (rundeck.server.uuid and rundeck.clusterMode.enabled) then restart the rundeck app.

If you did that and the problem persist you can try to see if the server uuid is available when using another endpoint (ex: https://[MY_RUNDECK_HOST]/api/17/project/[PROJECT]/jobs).

@pchevallereau

This comment has been minimized.

Show comment
Hide comment
@pchevallereau

pchevallereau Nov 15, 2017

Hi @djalai,

I don't want to enable cluster mode when the rundeck app is started, but only scheduled some job on a second rundeck instance recently started up.

When i restart rundeck on one server of my cluster, the uuid never appear.

Thanks.

pchevallereau commented Nov 15, 2017

Hi @djalai,

I don't want to enable cluster mode when the rundeck app is started, but only scheduled some job on a second rundeck instance recently started up.

When i restart rundeck on one server of my cluster, the uuid never appear.

Thanks.

@gschueler

This comment has been minimized.

Show comment
Hide comment
@gschueler

gschueler Nov 15, 2017

Member

it sounds like from @andrewmeissner "It's not until after someone logs into rundeck do all of these configurations become available"
that the cluster mode setting is not getting enabled at startup, this sounds like a bug

Member

gschueler commented Nov 15, 2017

it sounds like from @andrewmeissner "It's not until after someone logs into rundeck do all of these configurations become available"
that the cluster mode setting is not getting enabled at startup, this sounds like a bug

@gschueler gschueler added the bug label Nov 15, 2017

@andrewmeissner

This comment has been minimized.

Show comment
Hide comment
@andrewmeissner

andrewmeissner Nov 15, 2017

@gschueler I just discovered I'm able to programmatically work around it by importing a junk job via the REST api into a project. This seems to "wake it up" so to speak and I can retrieve the serverUUID from the /system/info endpoint and do cluster operations via the /scheduler/* endpoints. I think I can use this workaround until the bug is fixed. :)

andrewmeissner commented Nov 15, 2017

@gschueler I just discovered I'm able to programmatically work around it by importing a junk job via the REST api into a project. This seems to "wake it up" so to speak and I can retrieve the serverUUID from the /system/info endpoint and do cluster operations via the /scheduler/* endpoints. I think I can use this workaround until the bug is fixed. :)

@pchevallereau

This comment has been minimized.

Show comment
Hide comment
@pchevallereau

pchevallereau Nov 16, 2017

@andrewmeissner, Thanks for this workaround :)
we only have to wait the next release with the fixed bug to push rundeck in production

@gschueler Thanks for watching

pchevallereau commented Nov 16, 2017

@andrewmeissner, Thanks for this workaround :)
we only have to wait the next release with the fixed bug to push rundeck in production

@gschueler Thanks for watching

@gschueler gschueler added this to the 2.10.x milestone Nov 17, 2017

gschueler added a commit that referenced this issue Nov 20, 2017

@gschueler gschueler closed this in ecc52d7 Nov 20, 2017

gschueler added a commit that referenced this issue Nov 20, 2017

Merge pull request #2954 from rundeck/issue/2932
fix #2932 initialize cluster mode settings in bootstrap
@andrewmeissner

This comment has been minimized.

Show comment
Hide comment
@andrewmeissner

andrewmeissner Nov 21, 2017

Just downloaded 2.10.1 and tested. Thanks for fixing, @gschueler !

andrewmeissner commented Nov 21, 2017

Just downloaded 2.10.1 and tested. Thanks for fixing, @gschueler !

@pchevallereau

This comment has been minimized.

Show comment
Hide comment
@pchevallereau

pchevallereau Nov 21, 2017

Nice @andrewmeissner, i try this next week !

Thanks @gschueler

pchevallereau commented Nov 21, 2017

Nice @andrewmeissner, i try this next week !

Thanks @gschueler

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