#6171 caacl-add-service: incorrect error message when service does not exists
Closed: Fixed None Opened 7 years ago by mbasti.

I used steps from #6146

[root@vm-012 ~]#  ipa caacl-add-service test_caacl --services svc/master2.ipa.test --services svc/master1.ipa.test
  ACL name: test_caacl
  Description: test caacl
  Enabled: TRUE
  Hosts: master2.ipa.test
  Services: svc/master1.ipa.test@ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
  Failed service/service groups: 
    member service: s: no such entry  <--------- *here*

There is not service s in options

Output from httpd_err log:

caacl_add_service/1(u'test_caacl', version=u'2.211', service=(u'svc/master2.ipa.test', u'svc/master1.ipa.test')): SUCCESS

It looks that client sent correct data, so this is somehow broken on server side


--services 'svc/master2.ipa.test'

It looks like this happens only for service svc/master2.ipa.test

This issues is only in error output, when service does not exists

[root@vm-058-107 ~]# ipa caacl-add-service test_caacl --services 'nonexistent/master2.ipa.test'
  ACL name: test_caacl
  Description: test caacl
  Enabled: TRUE
  Hosts: master2.ipa.test
  Services: svc/master1.ipa.test@ABC.IDM.LAB.ENG.BRQ.REDHAT.COM
  Failed service/service groups: 
    member service: n: no such entry

master:

  • af4ebac Fix ipa-caalc-add-service error message

Test:

master:

  • 572bb55 Test for caacl-add-service

Metadata Update from @mbasti:
- Issue assigned to tkrizek
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata