voxpupuli / puppet-mongodb

mongodb installation
Apache License 2.0
92 stars 451 forks source link

Error in execution of yum when installing MongoDB Enterprise version 3.4.15 #467

Open efan1 opened 6 years ago

efan1 commented 6 years ago

Affected Puppet, Ruby, OS and module versions/distributions

How to reproduce (e.g Puppet code you use)

Using the mongodb module, enable the enterprise repository and set the version parameter to 3.4.14 Here is how my manifest has been written $bind_ip = ['127.0.0.1', $::facts['ipaddress']] class { 'mongodb::globals': use_enterprise_repo => true, version => '3.4.15', } -> class {'mongodb::client': } -> class {'mongodb::server': config => '/etc/mongod.conf', bind_ip => $bind_ip, quiet => false, }

What are you seeing

After initiating a Puppet run, the following error is displayed Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-3.4.15' returned 1: Error: Nothing to do Error: /Stage[main]/Mongodb::Client/Package[mongodb_client]/ensure: change from 'purged' to '3.4.15' failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-3.4.15' returned 1: Error: Nothing to do

What behaviour did you expect instead

I was expecting a successful catalog run with the mongod service installed and the version of mongodb enterprise at 3.4.15

Output log

Info: Using configured environment 'mongodb_install' Info: Retrieving pluginfacts Info: Retrieving plugin Info: Retrieving locales Info: Loading facts Info: Caching catalog for simssplds277 Info: Applying configuration version 'louapplpl10s06.rsc.humad.com-mongodb_install-25ad6c71d6b' Error: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-3.4.15' returned 1: Error: Nothing to do Error: /Stage[main]/Mongodb::Client/Package[mongodb_client]/ensure: change from 'purged' to '3.4.15' failed: Could not update: Execution of '/bin/yum -d 0 -e 0 -y install mongodb-3.4.15' returned 1: Error: Nothing to do Notice: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Config/File[/etc/mongod.conf]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Config/File[/var/lib/mongodb]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Config/File[/var/lib/mongodb]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Config/File[/var/run/mongodb/mongod.pid]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Config/File[/var/run/mongodb/mongod.pid]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Config/File[/root/.mongorc.js]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Config/File[/root/.mongorc.js]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Service/Service[mongodb]: Skipping because of failed dependencies Notice: /Stage[main]/Mongodb::Server::Service/Mongodb_conn_validator[mongodb]: Dependency Package[mongodb_client] has failures: true Warning: /Stage[main]/Mongodb::Server::Service/Mongodb_conn_validator[mongodb]: Skipping because of failed dependencies Notice: Applied catalog in 6.89 seconds

Any additional information you'd like to impart

This error only occurs when I specify the version parameter of 3.4.15. If only the use_enterprise_repo is set to true, it will default install 2.6.12

ekohl commented 4 years ago

Closing this due to the age of this issue. Apologies for not getting to it.