Errors from simp-environment when installing

Description

Problems when installing new simp-environment-skeleton:
1) I am getting error about a bad param in simp_rpm_helper
2) it is renaming stuff under /var/simp/environments.
3) A selinux message may be a problem

Here is the error:

warning: /var/simp/environments/simp/FakeCA/togen saved as /var/simp/environments/simp/FakeCA/togen.rpmsave
warning: /var/simp/environments/simp/FakeCA/ca.cnf saved as /var/simp/environments/simp/FakeCA/ca.cnf.rpmsave
libsemanage.semanage_direct_remove_key: Removing last simp-environment module (no other simp-environment module exists at another priority).
simp_rpm_helper ERROR: invalid option: --preserve

Usage: simp_rpm_helper -d DIR -s SECTION -S STATUS [options]

-d, --rpm_dir DIR The fully qualified path to the directory
into which the module's RPM source material
is installed.
-s, --rpm_section SECTION The section of the RPM from which the
script is being called: 'pre', 'preun'
'post', 'postun', 'posttrans'
-S, --rpm_status STATUS The status code passed to the RPM section.
When --rpm_section is 'posttrans', should
be '2' for an upgrade and '1' for an
initial install.
-f, --config CONFIG_FILE The configuration file overriding defaults.
Default: /etc/simp/adapter_conf.yaml
-t, --target_dir DIR The fully qualified path to the parent
directory of the module Git repository.
This repository will be created/updated
using materials found in --rpm_dir.
Default:
/usr/share/simp/git/puppet_modules
-w, --work_dir DIR The fully qualified path for a temporary
work directory.
Default: /var/lib/simp-adapter
-v, --verbose Print out debug info when processing.
-h, --help Help Message
warning: %postun(simp-environment-6.3.0-0.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package simp-environment-6.3.0-0.el7.noarch
Cleanup : simp-adapter-0.1.1-0.el7.noarch 194/195

Acceptance Criteria

None

Activity

Show:
Jeanne Greulich
May 21, 2019, 5:09 PM

I did the following: recompiled iso with liz’s change, remove dep for selinux-policy from old simp-rsync P.I.T. module, made simp-environment rely on selinux-policy

Got the following errors:

warning: /var/simp/environments/simp/FakeCA/togen saved as /var/simp/environments/simp/FakeCA/togen.rpmsave
warning: /var/simp/environments/simp/FakeCA/ca.cnf saved as /var/simp/environments/simp/FakeCA/ca.cnf.rpmsave
libsemanage.semanage_direct_remove_key: Removing last simp-environment module (no other simp-environment module exists at another priority).
simp_rpm_helper ERROR: 'target_dir' must be an absolute path
warning: %postun(simp-environment-6.3.0-0.el7.noarch) scriptlet failed, exit status 1
Non-fatal POSTUN scriptlet failure in rpm package simp-environment-6.3.0-0.el7.noarch

Done
Your pinned fields
Click on the next to a field label to start pinning.