Skip to content

Conversation

@diLLec
Copy link

@diLLec diLLec commented Mar 12, 2018

The changes of this PR are fixing the initial setup procedure of the module. With startup options a wfc-timeout can be specified, so that the service enable does not hang an indefinite amount of time. Further the the initial ressource up needs a --force parameter (this may be an update in procedure for versions > 8.4).

This change will make startup {} parameters of a ressource manageble
by putting the startup block into the ressource definition. This makes
one able to configure parameters like wfc-timeout (waiting for conn.
timeout). The parameters are managed like the disk_ and net_parameters.
@ekohl
Copy link
Member

ekohl commented Mar 12, 2018

The puppet code looks correct, but I can't judge the DRBD config since I've never used it.

As the drbd user-guide states, the initial role select on the
first node, needs to be done with "--force". Otherwise the role change
will error out

drbd: State change failed: Need access to UpToDate data

reference: http://docs.linbit.com/docs/users-guide-8.4/#s-first-time-up

Further to that, version after 8.4 don't have a WFConnection state -
this state has been renamed to "Connecting".
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

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

I can't judge the --force because I don't know drbd that well but otherwise it looks correct

$fs_type = 'ext4',
$mkfs_opts = '',
$disk = undef,
$startup_parameters = undef,
Copy link
Member

Choose a reason for hiding this comment

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

Could this be Optional[Hash[String, String]] $startup_parameters = undef instead?

}

startup {
<% if @startup_parameters -%>
Copy link
Member

Choose a reason for hiding this comment

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

Like `disk_parameters, I think this whole block should be hidden if no parameters are present.

@vox-pupuli-tasks
Copy link

Dear @diLLec, thanks for the PR!

This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase?

You can find my sourcecode at voxpupuli/vox-pupuli-tasks

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants