#5073 ipa-sever-upgrade fails with "Unexpected error" if ipa is not installed
Closed: Fixed None Opened 8 years ago by pvoborni.

On rpm installation:

  Installing  : python-memcached-1.53-2.fc21.noarch                 211/213 
  Installing  : memcached-1.4.17-3.fc22.x86_64                      212/213 
  Installing  : freeipa-server-4.2.0.alpha1-0.fc22.x86_64           213/213 
Unexpected error - see /var/log/ipaupgrade.log for details:
SkipPluginModule: dogtag not selected as RA plugin
  Verifying   : freeipa-server-4.2.0.alpha1-0.fc22.x86_64             1/213 
  Verifying   : fontawesome-fonts-4.1.0-2.fc22.noarch                 2/213 
  Verifying   : memcached-1.4.17-3.fc22.x86_64

or then subsequent call of ipa-server-upgrade

# ipa-server-upgrade 
Unexpected error - see /var/log/ipaupgrade.log for details:
SkipPluginModule: dogtag not selected as RA plugin

we can see the Unexpected error.

Expected behavior:
ipa-server-upgrade should report that IPA is not installed and be silent in rpm installation.

More info:

2015-06-19T10:51:02Z DEBUG Logging to /var/log/ipaupgrade.log
2015-06-19T10:51:02Z DEBUG ipa-server-upgrade was invoked with arguments [] and options: {'skip_version_check': False, 'log_file': None, 'force': False, 'verbose': False, 'quiet': True}
2015-06-19T10:51:02Z DEBUG IPA version 4.2.0.alpha1-0.fc22
2015-06-19T10:51:02Z DEBUG   File "/usr/lib/python2.7/site-packages/ipapython/admintool.py", line 171, in execute
    return_value = self.run()
  File "/usr/lib/python2.7/site-packages/ipaserver/install/ipa_server_upgrade.py", line 44, in run
    import ipaserver.plugins.dogtag  # ensure profile backend gets loaded
  File "/usr/lib/python2.7/site-packages/ipaserver/plugins/dogtag.py", line 1273, in <module>
    raise SkipPluginModule(reason='dogtag not selected as RA plugin')

2015-06-19T10:51:02Z DEBUG The ipa-server-upgrade command failed, exception: SkipPluginModule: dogtag not selected as RA plugin
2015-06-19T10:51:02Z ERROR Unexpected error - see /var/log/ipaupgrade.log for details:
SkipPluginModule: dogtag not selected as RA plugin

master:

  • f87ba5e plugable: Move plugin base class and override logic to API
  • fe2accf ipalib: Load ipaserver plugins when api.env.in_server is True

Metadata Update from @pvoborni:
- Issue assigned to jcholast
- Issue set to the milestone: FreeIPA 4.2

6 years ago

Login to comment on this ticket.

Metadata