Skip to content
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

mesos::masters::options and mesos::slave::options conflict on machine that is both master and slave #45

Closed
ianburrell opened this issue Oct 20, 2015 · 1 comment

Comments

@ianburrell
Copy link

We are running the mesos slave on the mesos master machine. The config looks like:

  class { '::mesos::master':
    options => {
      quorum => 2,
      quiet => true,
     },
  }

  class { '::mesos::slave':
    options => {
      gc_disk_headroom => '0.1',
      quiet => true,
    },
}

This causes an error:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Mesos::Property[quiet] is already declared; cannot redeclare at /etc/puppet/environments/production/modules/mesos/manifests/master.pp:61 on node lindevspark1.vw.rentrak.com

The cause is that mesos::master and mesos::slave use mesos::property for options with the option names. The resource names conflict even though they are separate config files. It looks like the static mesos::property are prefixes (master_work_dir, slave_work_dir).

It looks likes mesos_hash_parser can already add prefix, but it is also applied to the file. Would need to way to override the "file" with the hash name.

@deric
Copy link
Owner

deric commented Nov 24, 2015

Fixed in #48. Thanks Ian!

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

No branches or pull requests

2 participants