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

package version override broken with yum #415

Closed
eputnam opened this issue Oct 26, 2017 · 1 comment
Closed

package version override broken with yum #415

eputnam opened this issue Oct 26, 2017 · 1 comment

Comments

@eputnam
Copy link
Member

eputnam commented Oct 26, 2017

migrated from JIRA

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: puppet-agent-1.10.3-1, puppetserver-2.7.2-1
  • Ruby:
  • Distribution: CentOS 7.3
  • Module version: 0.17.0

I set version in global.pp to 3.4
$version = '3.4',
the client puppet run updates the yum repo correctly to manage this version
[mongodb]
baseurl=http://repo.mongodb.org/yum/redhat/7/mongodb-org/3.4/x86_64/
enabled=1
gpgcheck=0
name=MongoDB/10gen Repository
showing the parameter is parsed and taken correctly,
however this also impacts the package name on the client install,

Output log

Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-org-server-3.4' returned 1: Error: Nothing to do
Error: /Stage[main]/Mongodb::Server::Install/Package[mongodb_server]/ensure: change from purged to 3.4 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-org-server-3.4' returned 1: Error: Nothing to do

Any additional information you'd like to impart

the package is mongodb-org-server
====================================================== N/S matched: mongodb-org ======================================================
mongodb-org.x86_64 : MongoDB open source document-oriented database system (metapackage)
mongodb-org-mongos.x86_64 : MongoDB sharded cluster query router
mongodb-org-server.x86_64 : MongoDB database server
mongodb-org-shell.x86_64 : MongoDB shell client
mongodb-org-tools.x86_64 : MongoDB tools
This package is available - with the right version coming from the correct yum repo configured by puppet from the mongodb repo
Available Packages
Name : mongodb-org-server
Arch : x86_64
Version : 3.4.5
Release : 1.el7
Size : 20 M
Repo : mongodb
Summary : MongoDB database server
URL : http://www.mongodb.org
License : AGPL 3.0
Description : MongoDB is built for scalability, performance and high availability, scaling from single server deployments to large,
: complex multi-site architectures. By leveraging in-memory computing, MongoDB provides high performance for both reads
: and writes. MongoDB’s native replication and automated failover enable enterprise-grade reliability and operational
: flexibility.
:
: MongoDB is an open-source database used by companies of all sizes, across all industries and for a wide variety of
: applications. It is an agile database that allows schemas to change quickly as applications evolve, while still
: providing the functionality developers expect from traditional databases, such as secondary indexes, a full query
: language and strict consistency.
:
: MongoDB has a rich client ecosystem including hadoop integration, officially supported drivers for 10 programming
: languages and environments, as well as 40 drivers supported by the user community.
:
: MongoDB features:
: * JSON Data Model with Dynamic Schemas
: * Auto-Sharding for Horizontal Scalability
: * Built-In Replication for High Availability
: * Rich Secondary Indexes, including geospatial
: * TTL indexes
: * Text Search
: * Aggregation Framework & Native MapReduce
:
: This package contains the MongoDB server software, default configuration files, and systemd service files.
The only way around this is to hardcode the package name in the parameters to be mongdb-org, while this will technically work, it defaults the object of not doing this as the external repos reference mongodb-org packages, the distro packages versions are mongodb-server without the -org suffix.
Reading this bug the debian package manager had this problem a long time ago, but it looks as if it's either a regression or was never addressed for yum (or I've just not understood the usage of the module).

@ekohl
Copy link
Member

ekohl commented Nov 4, 2017

I think this is because versions have to be exact. I confirmed that using 3.4.10-1 does work.

@ekohl ekohl closed this as completed Nov 4, 2017
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