#6026 ipa commands not showing expected error messages
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1351758

Description of problem:

I'm not the same error messages on failed selinuxusermap commands that I saw in
previous versions.  It does show 0 changes but, it used to give more details in
the "Failed" section of the output but does not at the moment.

Example:  ipa selinuxusermap-add-hostgroup to add a dup used to show:

  Rule name: testselinuxusermap2
  SELinux User: unconfined_u:s0-s0:c0.c1023
  Enabled: TRUE
  Host Groups: dev_hosts
  Failed hosts/hostgroups:
    member host:
    member host group: dev_hosts: This entry is already a member
-------------------------
Number of members added 0
-------------------------

I'm currently seeing:

  Rule name: testselinuxusermap2
  SELinux User: unconfined_u:s0-s0:c0.c1023
  Enabled: TRUE
  Host Groups: dev_hosts
  Failed hosts/hostgroups:
-------------------------
Number of members added 0
-------------------------


Version-Release number of selected component (if applicable):

ipa-server-4.4.0-0.el7.2.alpha1.x86_64

How reproducible:
always but, I'm unsure how many commands may be affected.  I found this on
selinuxusermap testing.

Steps to Reproduce:
1.  ipa-server-install
2.  ipa selinuxusermap-add --selinuxuser="unconfined_u:s0-s0:c0.c1023" testmap
3.  ipa selinuxusermap-add-host testmap --hosts=$(hostname)
4.  ipa selinuxusermap-add-host testmap --hosts=$(hostname)

Actual results:
[root@rhel7-1 ~]# ipa selinuxusermap-add-host testmap --hosts=$(hostname)
  Rule name: testmap
  SELinux User: unconfined_u:s0-s0:c0.c1023
  Enabled: TRUE
  Hosts: master.testrelm.test
  Failed hosts/hostgroups:
-------------------------
Number of members added 0
-------------------------
...............
No failed hosts shown.


Expected results:
It should list a message about the failed add-host.  That is what was expected
from previous versions.


Additional info:

master:

  • cdf8b66 frontend: copy command arguments to output params on client
  • 90704df Show full error message for selinuxusermap-add-hostgroup

Metadata Update from @pvoborni:
- Issue assigned to frenaud
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata