使用 michaeltchapman/galera 时获取依赖周期

Getting dependency cycle when using michaeltchapman/galera

我已经安装了 https://forge.puppet.com/michaeltchapman/galera 并且我在这个清单中使用了我这样写的...

  class { '::galera':
    galera_servers => $galera_servers,
    galera_master  => $galera_master,
    vendor_type    => $vendor_type,
    root_password  => $root_password,
    status_password => $root_password,
  }

当我在我的节点上 运行 puppet agent -t 时,我得到这个错误:

Error: Could not apply complete catalog: Found 1 dependency cycle:
(Anchor[mysql::server::start] => Package[rsync] => Class[Mysql::Server::Install] => Package[mysql-server] => Class[Mysql::Server::Install] => File[/var/run/mariadb] => Class[Galera::Repo] => Class[Mysql::Server] => Anchor[mysql::server::start])
Cycle graph written to /var/opt/lib/pe-puppet/state/graphs/cycles.dot.

可能是什么原因造成的。我假设我的代码非常简单,这不是问题所在,而且我也怀疑像 galera 模块这样广泛使用的模块中是否存在错误。谁能帮帮我?

这是安装后的样子:

# puppet module install -d michaeltchapman-galera
Debug: Runtime environment: puppet_version=3.7.4 (Puppet Enterprise 3.7.2), ruby_version=1.9.3, run_mode=user, default_encoding=UTF-8
Notice: Preparing to install into /etc/puppetlabs/puppet/environments/production/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=michaeltchapman-galera&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-stdlib&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-stdlib&module_groups=base+pe_only&limit=20&offset=20
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-stdlib&module_groups=base+pe_only&limit=20&offset=40
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-apt&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-apt&module_groups=base+pe_only&limit=20&offset=20
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-mysql&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-mysql&module_groups=base+pe_only&limit=20&offset=20
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=nanliu-staging&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppet-staging&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=bodepd-create_resources&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-firewall&module_groups=base+pe_only
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-firewall&module_groups=base+pe_only&limit=20&offset=20
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-xinetd&module_groups=base+pe_only
Info: Resolving dependencies ...
Info: Preparing to install ...
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/michaeltchapman-galera-0.1.0.tar.gz
Debug: Executing 'gzip -dc /var/opt/lib/pe-puppet/puppet-module/cache/michaeltchapman-galera20160720-20773-swxz7d | tar xof -'
Debug: Executing 'find . -type d -exec chmod 755 {} +'
Debug: Executing 'find . -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 0:0 .'
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/puppetlabs-mysql-3.8.0.tar.gz
Debug: Executing 'gzip -dc /var/opt/lib/pe-puppet/puppet-module/cache/puppetlabs-mysql20160720-20773-1758gut | tar xof -'
Debug: Executing 'find . -type d -exec chmod 755 {} +'
Debug: Executing 'find . -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 0:0 .'
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/puppet-staging-1.0.7.tar.gz
Debug: Executing 'gzip -dc /var/opt/lib/pe-puppet/puppet-module/cache/puppet-staging20160720-20773-7ocepo | tar xof -'
Debug: Executing 'find . -type d -exec chmod 755 {} +'
Debug: Executing 'find . -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 0:0 .'
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/puppetlabs-xinetd-2.0.0.tar.gz
Debug: Executing 'gzip -dc /var/opt/lib/pe-puppet/puppet-module/cache/puppetlabs-xinetd20160720-20773-1h85h2q | tar xof -'
Debug: Executing 'find . -type d -exec chmod 755 {} +'
Debug: Executing 'find . -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 0:0 .'
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/files/puppetlabs-stdlib-4.12.0.tar.gz
Debug: Executing 'gzip -dc /var/opt/lib/pe-puppet/puppet-module/cache/puppetlabs-stdlib20160720-20773-xtaaqd | tar xof -'
Debug: Executing 'find . -type d -exec chmod 755 {} +'
Debug: Executing 'find . -type f -exec chmod a-wst {} +'
Debug: Executing 'chown -R 0:0 .'
Notice: Installing -- do not interrupt ...
/etc/puppetlabs/puppet/environments/production/modules
└─┬ michaeltchapman-galera (v0.1.0)
  ├── puppetlabs-apt (v1.4.2) [/etc/puppetlabs/puppet/modules/core]
  ├── puppetlabs-firewall (v1.7.0) [/etc/puppetlabs/puppet/modules/core]
  ├─┬ puppetlabs-mysql (v3.8.0)
  │ └── puppet-staging (v1.0.7)
  ├── puppetlabs-stdlib (v4.2.1 -> v4.12.0) [/etc/puppetlabs/puppet/modules/core]
  └── puppetlabs-xinetd (v2.0.0)

谢谢

我刚试了master分支,依赖循环错误被纠正了。