[ERROR ] Command '['systemd-run', '--scope', 'yum', '-y', '--disablerepo=*', '--enablerepo=mongodb-org-4.0', 'install', 'mongodb-org']' failed with return code: 1
[ERROR ] stdout: Running scope as unit: run-r07e0b6afaa14482595e7e36c97202fe1.scope
Error:
Problem: package mongodb-org-4.0.18-1.el8.x86_64 requires mongodb-org-server = 4.0.18, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides python2 needed by mongodb-org-server-4.0.18-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[ERROR ] retcode: 1
[ERROR ] Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-r07e0b6afaa14482595e7e36c97202fe1.scope
Error:
Problem: package mongodb-org-4.0.18-1.el8.x86_64 requires mongodb-org-server = 4.0.18, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides python2 needed by mongodb-org-server-4.0.18-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
[ERROR ] Command '['systemd-run', '--scope', 'yum', '-y', 'install', 'policycoreutils-python']' failed with return code: 1
[ERROR ] stdout: Running scope as unit: run-rc39844862aab438a92700ad13bd72ea4.scope
SaltStack repo for RHEL/CentOS 8 2.0 kB/s | 557 B 00:00
Failed to download metadata for repo 'saltstack'
Ignoring repositories: saltstack
Last metadata expiration check: 0:00:01 ago on Sun May 10 22:34:37 2020.
No match for argument: policycoreutils-python
Error: Unable to find a match: policycoreutils-python
[ERROR ] retcode: 1
[ERROR ] Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-rc39844862aab438a92700ad13bd72ea4.scope
SaltStack repo for RHEL/CentOS 8 2.0 kB/s | 557 B 00:00
Failed to download metadata for repo 'saltstack'
Ignoring repositories: saltstack
Last metadata expiration check: 0:00:01 ago on Sun May 10 22:34:37 2020.
No match for argument: policycoreutils-python
Error: Unable to find a match: policycoreutils-python
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] Command '['systemd-run', '--scope', 'systemctl', 'start', 'mongod.service']' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r44ab2491f0b04e63af7d098d218bbd03.scope
Job for mongod.service failed because the control process exited with error code.
See "systemctl status mongod.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for mongod.service failed because the control process exited with error code.
See "systemctl status mongod.service" and "journalctl -xe" for details.
[ERROR ] Command '['systemd-run', '--scope', 'systemctl', 'start', 'mongod.service']' failed with return code: 1
[ERROR ] stderr: Running scope as unit: run-r00b53ceca0744c02962249f6e805cb83.scope
Job for mongod.service failed because the control process exited with error code.
See "systemctl status mongod.service" and "journalctl -xe" for details.
[ERROR ] retcode: 1
[ERROR ] Job for mongod.service failed because the control process exited with error code.
See "systemctl status mongod.service" and "journalctl -xe" for details.
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
[ERROR ] {'mongos': True}
local:
----------
ID: mongodb server package repo
Function: pkgrepo.managed
Name: mongodb-org-4.0
Result: True
Comment: Configured package repo 'mongodb-org-4.0'
Started: 22:34:26.694044
Duration: 3716.061 ms
Changes:
----------
repo:
mongodb-org-4.0
----------
ID: mongodb server package installed
Function: pkg.installed
Name: mongodb-org
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-r07e0b6afaa14482595e7e36c97202fe1.scope
Error:
Problem: package mongodb-org-4.0.18-1.el8.x86_64 requires mongodb-org-server = 4.0.18, but none of the providers can be installed
- cannot install the best candidate for the job
- nothing provides python2 needed by mongodb-org-server-4.0.18-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Started: 22:34:30.425588
Duration: 3123.919 ms
Changes:
----------
ID: mongodb server selinux packages
Function: pkg.installed
Name: policycoreutils-python
Result: False
Comment: Error occurred installing package(s). Additional info follows:
errors:
- Running scope as unit: run-rc39844862aab438a92700ad13bd72ea4.scope
SaltStack repo for RHEL/CentOS 8 2.0 kB/s | 557 B 00:00
Failed to download metadata for repo 'saltstack'
Ignoring repositories: saltstack
Last metadata expiration check: 0:00:01 ago on Sun May 10 22:34:37 2020.
No match for argument: policycoreutils-python
Error: Unable to find a match: policycoreutils-python
Started: 22:34:33.549978
Duration: 5775.722 ms
Changes:
----------
ID: mongodb server selinux packages
Function: pkg.installed
Name: selinux-policy-targeted
Result: True
Comment: All specified packages are already installed
Started: 22:34:39.325995
Duration: 17.352 ms
Changes:
----------
ID: mongodb server firewalld service
Function: service.running
Name: firewalld
Result: True
Comment: The service firewalld is already running
Started: 22:34:39.343989
Duration: 31.656 ms
Changes:
----------
ID: mongodb server user and group present
Function: group.present
Name: mongod
Result: True
Comment: New group mongod created
Started: 22:34:39.376587
Duration: 293.429 ms
Changes:
----------
gid:
1001
members:
name:
mongod
passwd:
x
----------
ID: mongodb server user and group present
Function: user.present
Name: mongod
Result: True
Comment: New user mongod created
Started: 22:34:39.671715
Duration: 529.036 ms
Changes:
----------
fullname:
mongoDB user
gid:
1001
groups:
- mongod
home:
homephone:
name:
mongod
other:
passwd:
x
roomnumber:
shell:
/bin/bash
uid:
1001
workphone:
----------
ID: mongodb server tools pypip package
Function: pkg.installed
Name: python2-pip
Result: True
Comment: The following packages were installed/updated: python2-pip
Started: 22:34:40.201085
Duration: 33328.931 ms
Changes:
----------
python2:
----------
new:
2.7.16-12.module_el8.1.0+219+cf9e6ac9
old:
python2-libs:
----------
new:
2.7.16-12.module_el8.1.0+219+cf9e6ac9
old:
python2-pip:
----------
new:
9.0.3-14.module_el8.1.0+219+cf9e6ac9
old:
python2-pip-wheel:
----------
new:
9.0.3-14.module_el8.1.0+219+cf9e6ac9
old:
python2-setuptools:
----------
new:
39.0.1-11.module_el8.1.0+219+cf9e6ac9
old:
python2-setuptools-wheel:
----------
new:
39.0.1-11.module_el8.1.0+219+cf9e6ac9
old:
----------
ID: mongodb server tools pymongo package
Function: pip.installed
Name: pymongo
Result: True
Comment: All packages were successfully installed
Started: 22:35:20.622001
Duration: 3799.319 ms
Changes:
----------
pymongo==3.10.1:
Installed
----------
ID: mongodb server mongod logpath
Function: file.directory
Name: /var/log/mongodb
Result: True
Comment: Directory /var/log/mongodb updated
Started: 22:35:24.424140
Duration: 5.041 ms
Changes:
----------
/var/log/mongodb:
New Dir
----------
ID: mongodb server mongod logpath
Function: selinux.fcontext_policy_present
Name: /var/log/mongodb(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongod datapath
Function: file.directory
Name: /var/lib/mongodb/mongod
Result: True
Comment: Directory /var/lib/mongodb/mongod updated
Started: 22:35:31.854484
Duration: 2.997 ms
Changes:
----------
/var/lib/mongodb/mongod:
New Dir
----------
ID: mongodb server mongod datapath
Function: selinux.fcontext_policy_present
Name: /var/lib/mongodb(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongod config
Function: file.managed
Name: /etc/mongod.conf
Result: True
Comment: File /etc/mongod.conf updated
Started: 22:35:31.858515
Duration: 43.031 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: mongodb server mongod config
Function: selinux.fcontext_policy_present
Name: /etc/mongod.conf(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongod logrotate add
Function: file.managed
Name: /etc/logrotate.d/mongodb_mongod
Result: True
Comment: File /etc/logrotate.d/mongodb_mongod updated
Started: 22:35:31.902492
Duration: 48.966 ms
Changes:
----------
diff:
New file
mode:
0440
----------
ID: mongodb server mongod logrotate add
Function: selinux.fcontext_policy_present
Name: /etc/logrotate.d/mongodb_mongod(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongod pidpath add
Function: file.directory
Name: /var/run/mongodb
Result: True
Comment: Directory /var/run/mongodb updated
Started: 22:35:31.954090
Duration: 4.237 ms
Changes:
----------
/var/run/mongodb:
New Dir
----------
ID: mongodb server mongod pidpath add
Function: selinux.fcontext_policy_present
Name: /var/run/mongodb
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongod transparent huge pages
Function: file.managed
Name: /etc/init.d/disable-transparent-hugepages
Result: True
Comment: File /etc/init.d/disable-transparent-hugepages updated
Started: 22:35:31.959665
Duration: 52.201 ms
Changes:
----------
diff:
New file
mode:
0755
----------
ID: mongodb server mongod transparent huge pages
Function: cmd.run
Name: echo never >/sys/kernel/mm/transparent_hugepage/enabled
Result: True
Comment: Command "echo never >/sys/kernel/mm/transparent_hugepage/enabled" run
Started: 22:35:32.012503
Duration: 12.974 ms
Changes:
----------
pid:
12753
retcode:
0
stderr:
stdout:
----------
ID: mongodb server mongod systemd service file
Function: file.managed
Name: /usr/lib/systemd/system/mongod.service
Result: True
Comment: File /usr/lib/systemd/system/mongod.service updated
Started: 22:35:32.025904
Duration: 44.103 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: mongodb server mongod systemd service file
Function: firewalld.service
Name: mongod
Result: True
Comment: 'mongod' was configured.
Started: 22:35:32.071279
Duration: 3256.807 ms
Changes:
----------
ports:
----------
new:
- 27018/tcp
old:
----------
ID: mongodb server mongod service running
Function: selinux.fcontext_policy_applied
Name: /var/lib/mongodb/mongod
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongod datapath, mongodb.server.config.mongodb server mongod logpath, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongod logrotate add, mongodb.server.config.mongodb server mongod config, mongodb.server.config.mongodb server mongod pidpath add
Started: 22:35:35.330679
Duration: 0.004 ms
Changes:
----------
ID: mongodb server mongod service running
Function: selinux.fcontext_policy_applied
Name: /var/log/mongodb
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongod datapath, mongodb.server.config.mongodb server mongod logpath, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongod logrotate add, mongodb.server.config.mongodb server mongod config, mongodb.server.config.mongodb server mongod pidpath add
Started: 22:35:35.331725
Duration: 0.004 ms
Changes:
----------
ID: mongodb server mongod service running
Function: selinux.fcontext_policy_applied
Name: /var/run/mongodb
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongod datapath, mongodb.server.config.mongodb server mongod logpath, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongod logrotate add, mongodb.server.config.mongodb server mongod config, mongodb.server.config.mongodb server mongod pidpath add
Started: 22:35:35.332810
Duration: 0.003 ms
Changes:
----------
ID: mongodb server mongod service running
Function: selinux.fcontext_policy_applied
Name: /etc/mongod.conf
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongod datapath, mongodb.server.config.mongodb server mongod logpath, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongod logrotate add, mongodb.server.config.mongodb server mongod config, mongodb.server.config.mongodb server mongod pidpath add
Started: 22:35:35.333834
Duration: 0.003 ms
Changes:
----------
ID: mongodb server mongod service running
Function: selinux.fcontext_policy_applied
Name: /etc/logrotate.d/mongodb_mongod
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongod datapath, mongodb.server.config.mongodb server mongod logpath, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongod logrotate add, mongodb.server.config.mongodb server mongod config, mongodb.server.config.mongodb server mongod pidpath add
Started: 22:35:35.334872
Duration: 0.003 ms
Changes:
----------
ID: mongodb server mongod service running
Function: cmd.run
Name: firewall-cmd --add-service mongod --permanent
Result: True
Comment: Command "firewall-cmd --add-service mongod --permanent" run
Started: 22:35:35.335116
Duration: 274.212 ms
Changes:
----------
pid:
12988
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongod service running
Function: cmd.run
Name: firewall-cmd --add-port=27018/tcp --permanent
Result: True
Comment: Command "firewall-cmd --add-port=27018/tcp --permanent" run
Started: 22:35:35.610284
Duration: 266.836 ms
Changes:
----------
pid:
12989
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongod service running
Function: cmd.run
Name: firewall-cmd --reload
Result: True
Comment: Command "firewall-cmd --reload" run
Started: 22:35:35.877751
Duration: 1841.463 ms
Changes:
----------
pid:
12990
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongod service running
Function: service.running
Name: mongod
Result: False
Comment: Job for mongod.service failed because the control process exited with error code.
See "systemctl status mongod.service" and "journalctl -xe" for details.
Started: 22:35:37.816257
Duration: 101.165 ms
Changes:
----------
ID: mongodb server shell etc mongorc add
Function: file.managed
Name: /etc/mongorc.js
Result: True
Comment: File /etc/mongorc.js updated
Started: 22:35:37.918545
Duration: 49.673 ms
Changes:
----------
diff:
New file
group:
mongod
mode:
0644
user:
mongod
----------
ID: mongodb server mongos logpath
Function: file.directory
Name: /var/log/mongodb
Result: True
Comment: The directory /var/log/mongodb is in the correct state
Started: 22:35:37.969302
Duration: 2.561 ms
Changes:
----------
ID: mongodb server mongos logpath
Function: selinux.fcontext_policy_present
Name: /var/log/mongodb(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongos config
Function: file.managed
Name: /etc/mongos.conf
Result: True
Comment: File /etc/mongos.conf updated
Started: 22:35:37.973918
Duration: 24.099 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: mongodb server mongos config
Function: selinux.fcontext_policy_present
Name: /etc/mongos.conf(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongos logrotate add
Function: file.managed
Name: /etc/logrotate.d/mongodb_mongos
Result: True
Comment: File /etc/logrotate.d/mongodb_mongos updated
Started: 22:35:38.000128
Duration: 50.923 ms
Changes:
----------
diff:
New file
mode:
0440
----------
ID: mongodb server mongos logrotate add
Function: selinux.fcontext_policy_present
Name: /etc/logrotate.d/mongodb_mongos(/.*)?
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongos pidpath add
Function: file.directory
Name: /var/run/mongodb
Result: True
Comment: The directory /var/run/mongodb is in the correct state
Started: 22:35:38.052711
Duration: 1.833 ms
Changes:
----------
ID: mongodb server mongos pidpath add
Function: selinux.fcontext_policy_present
Name: /var/run/mongodb
Result: False
Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'mongodb.server.config'
Reason: 'selinux' __virtual__ returned False
Changes:
----------
ID: mongodb server mongos transparent huge pages
Function: file.managed
Name: /etc/init.d/disable-transparent-hugepages
Result: True
Comment: onlyif execution failed, bad type passed
unless condition is true
Started: 22:35:38.055488
Duration: 32.318 ms
Changes:
----------
ID: mongodb server mongos transparent huge pages
Function: cmd.run
Name: echo never >/sys/kernel/mm/transparent_hugepage/enabled
Result: True
Comment: onlyif condition is false
Started: 22:35:38.088224
Duration: 1.275 ms
Changes:
----------
ID: mongodb server mongos systemd service file
Function: file.managed
Name: /usr/lib/systemd/system/mongos.service
Result: True
Comment: File /usr/lib/systemd/system/mongos.service updated
Started: 22:35:38.089788
Duration: 42.895 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: mongodb server mongos systemd service file
Function: firewalld.service
Name: mongos
Result: True
Comment: 'mongos' was configured.
Started: 22:35:38.133531
Duration: 3708.856 ms
Changes:
----------
ports:
----------
new:
- 28017/tcp
old:
----------
ID: mongodb server mongos service running
Function: selinux.fcontext_policy_applied
Name: /var/log/mongodb
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongos pidpath add, mongodb.server.config.mongodb server mongos logrotate add, mongodb.server.config.mongodb server mongos config, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongos logpath
Started: 22:35:41.844788
Duration: 0.004 ms
Changes:
----------
ID: mongodb server mongos service running
Function: selinux.fcontext_policy_applied
Name: /var/run/mongodb
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongos pidpath add, mongodb.server.config.mongodb server mongos logrotate add, mongodb.server.config.mongodb server mongos config, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongos logpath
Started: 22:35:41.845961
Duration: 0.005 ms
Changes:
----------
ID: mongodb server mongos service running
Function: selinux.fcontext_policy_applied
Name: /etc/mongos.conf
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongos pidpath add, mongodb.server.config.mongodb server mongos logrotate add, mongodb.server.config.mongodb server mongos config, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongos logpath
Started: 22:35:41.847116
Duration: 0.004 ms
Changes:
----------
ID: mongodb server mongos service running
Function: selinux.fcontext_policy_applied
Name: /etc/logrotate.d/mongodb_mongos
Result: False
Comment: One or more requisite failed: mongodb.server.config.mongodb server mongos pidpath add, mongodb.server.config.mongodb server mongos logrotate add, mongodb.server.config.mongodb server mongos config, mongodb.server.config.mongodb server selinux packages, mongodb.server.config.mongodb server mongos logpath
Started: 22:35:41.848168
Duration: 0.003 ms
Changes:
----------
ID: mongodb server mongos service running
Function: cmd.run
Name: firewall-cmd --add-service mongos --permanent
Result: True
Comment: Command "firewall-cmd --add-service mongos --permanent" run
Started: 22:35:41.848468
Duration: 323.276 ms
Changes:
----------
pid:
13490
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongos service running
Function: cmd.run
Name: firewall-cmd --add-port=28017/tcp --permanent
Result: True
Comment: Command "firewall-cmd --add-port=28017/tcp --permanent" run
Started: 22:35:42.172525
Duration: 310.252 ms
Changes:
----------
pid:
13491
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongos service running
Function: cmd.run
Name: firewall-cmd --reload
Result: True
Comment: Command "firewall-cmd --reload" run
Started: 22:35:42.483517
Duration: 1831.397 ms
Changes:
----------
pid:
13492
retcode:
0
stderr:
stdout:
success
----------
ID: mongodb server mongos service running
Function: service.running
Name: mongos
Result: False
Comment: Service mongos has been enabled, and is dead
Started: 22:35:44.316314
Duration: 245.919 ms
Changes:
----------
mongos:
True
Summary for local
-------------
Succeeded: 31 (changed=26)
Failed: 22