#6751 [copr] Attribute error while running ipa-managed-entries with copr repo build
Closed: fixed 7 years ago Opened 7 years ago by ksiddiqu.

Attribute error while running ipa-managed-entries with copr repo build while it was working fine with RHEL-7.3

RHEL-7.3

[root@qe-blade-11 ~]# ipa-managed-entries -l
Available Managed Entry Definitions:
UPG Definition
NGP Definition
[root@qe-blade-11 ~]# /usr/sbin/ipa-managed-entries --entry="NGP Definition" status
Plugin Disabled
[root@qe-blade-11 ~]# /usr/sbin/ipa-managed-entries --entry="NGP Definition" enable
Enabling Plugin
[root@qe-blade-11 ~]# /usr/sbin/ipa-managed-entries --entry="NGP Definition" status
Plugin Enabled
[root@qe-blade-11 ~]#

RHEL-7.4

[root@auto-hv-02-guest07 ~]# ipa-managed-entries -l
Unexpected error
AttributeError: ldap2
[root@auto-hv-02-guest07 ~]# /usr/sbin/ipa-managed-entries --entry="NGP Definition" status
Unexpected error
AttributeError: ldap2
[root@auto-hv-02-guest07 ~]# rpm -q ipa-server
ipa-server-4.4.90-201703072305.el7.x86_64
[root@auto-hv-02-guest07 ~]#

Probably already fixed in #6735 but your build doesn't have this fix. I see that build is failing, so it needs to be fixed.

FTR: from the copr build log:

+ exit 0
RPM build errors:
    Directory not found: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen
    Directory not found: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/templates
    File not found by glob: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/templates/*.tmpl
    Directory not found: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/profiles
    File not found by glob: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/profiles/*.json
    Directory not found: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/rules
    File not found by glob: /builddir/build/BUILDROOT/ipa-4.4.90-201703092305.el7.x86_64/usr/share/ipa/csrgen/rules/*.json
Child return code was: 1

Yes it lacks backport of freeipa.spec.in changes from 80be181 maybe also some others. Winking at @pvomacka ;)

Builds were green again.

Metadata Update from @pvoborni:
- Issue close_status updated to: fixed
- Issue set to the milestone: FreeIPA 4.5
- Issue status updated to: Closed (was: Open)

7 years ago

Login to comment on this ticket.

Metadata