Skip to content

Fix MongoDB installation on RedHat family#606

Merged
root-expert merged 65 commits intovoxpupuli:masterfrom
hdep:fix_centos
Aug 20, 2021
Merged

Fix MongoDB installation on RedHat family#606
root-expert merged 65 commits intovoxpupuli:masterfrom
hdep:fix_centos

Conversation

@hdep
Copy link
Copy Markdown
Contributor

@hdep hdep commented Feb 12, 2021

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@hdep hdep changed the title Fix centos WIP - Fix centos Feb 18, 2021
@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Mar 1, 2021

Currently blocked :
Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install mongodb-org-server' returned 1: Error: Nothing to do

So seems that the mongodb repository doesn't get installed

@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Mar 2, 2021

Current status :

  • mongodb get installed 3.6 by default
  • mongodb doesn't start New main PID 1145 does not belong to service, and PID file is not owned by root. Refusing.

@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Mar 3, 2021

Currently stuck, because i'm not able to find a proper systemd init wscript for mongos daemon. Any help appreciated.

@kenyon
Copy link
Copy Markdown
Member

kenyon commented Mar 5, 2021

Currently stuck, because i'm not able to find a proper systemd init wscript for mongos daemon. Any help appreciated.

@hdep I see something here, but also: https://jira.mongodb.org/browse/SERVER-3748

@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Aug 17, 2021

Hello, thanks a lot @ZloeSabo !
I'll look to merge the PR.

@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Aug 17, 2021

I just merged the PR.
Should I do something special to run acceptance tests on this PR ?

@ZloeSabo
Copy link
Copy Markdown
Contributor

ZloeSabo commented Aug 17, 2021

Now bigger part of the pipeline is green, but there are still a couple of issues:

camptocamp/systemd:

  1. does not support puppet5, so that's why CI / Puppet 5 (Ruby 2.4) is failing. Seems that puppet5 does not support the deferred functions that module requires.
  2. it's actually deprecated and suggests using puppet/systemd instead.

Ubuntu: I just didn't check on 16.04. It's in EOL already, so I'd suggest removing it from the pipeline and add 20.04 instead. But if a maintainer in charge of this repo suggests fixing 16.04, we can take a look.

Copy link
Copy Markdown
Member

@root-expert root-expert left a comment

Choose a reason for hiding this comment

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

Puppet 5 failures can be ignored.

Support for Ubuntu 16.04 can be dropped since it's EoL. Let's add Ubuntu 20.04 and see if it passes.

Comment thread .fixtures.yml Outdated
Comment thread .github/workflows/ci.yml Outdated
Comment thread .sync.yml Outdated
Comment thread manifests/mongos.pp Outdated
Comment thread manifests/mongos/params.pp
Comment thread metadata.json Outdated
hdep and others added 5 commits August 18, 2021 09:42
Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
Co-authored-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
@root-expert
Copy link
Copy Markdown
Member

Can you also pick the changes from PRs #616 and #617?

Signed-off-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
Signed-off-by: Christos Papageorgiou <christos.papageorgioy@gmail.com>
@hdep
Copy link
Copy Markdown
Contributor Author

hdep commented Aug 18, 2021

@root-expert I think we are good now ?

@root-expert
Copy link
Copy Markdown
Member

Yes! Let's wait for the tests. In the meantime, can you update the title to something more appropriate?

@hdep hdep changed the title WIP - Fix centos - HELP WANTED Fix centos Aug 18, 2021
@root-expert
Copy link
Copy Markdown
Member


if $service_manage {
if $facts['os']['family'] == 'RedHat' {
systemd::unit_file { 'mongos.service':
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we only manage it on redhat?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

First My work was only to fix the module for RedHat. Secondly I think other distro has the needed file in the package.

Comment thread templates/mongos/RedHat/mongos.service-dropin.epp
Comment thread manifests/globals.pp
Comment thread manifests/mongos.pp Outdated
@root-expert root-expert added the bug Something isn't working label Aug 19, 2021
@root-expert root-expert changed the title Fix centos Fix MongoDB installation on RedHat family Aug 19, 2021
@hdep hdep closed this Aug 19, 2021
@hdep hdep reopened this Aug 19, 2021
@root-expert root-expert merged commit aa1a7ed into voxpupuli:master Aug 20, 2021
@hdep hdep mentioned this pull request Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants