Red Hat Bugzilla – Bug 987993
[oVirt] [foreman] Adding default config fails
Last modified: 2013-09-23 03:27:38 EDT
Description of problem:
Adding anew provider of type foreman which is unconfigured fails
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Go to external providers
2. Add a new foreman provider, don't fill other fields
3. Click OK
An error is returned:
Error while executing action AddProvider: Failed to communicate with the external provider.
The provider should be added successfully
Since the provider communication can wtop working in any point in it's life, it makes little sense to block it specifically on add.
Did you set a username and password?
The error there is a bit misleading if that's the case...
We should either make a better message there, or require those fields for the foreman provider, as it requires credentials.
Also please attach the log, if something there is relevant.
(In reply to Oved Ourfali from comment #1)
> Did you set a username and password?
> The error there is a bit misleading if that's the case...
No I didn't check the "Authentication required" checkbox.
> We should either make a better message there, or require those fields for
> the foreman provider, as it requires credentials.
I'm not sure a better message is the way, if those fields are mandatory then they should be required by the dialog and you shouldn't be able to hit OK (those fields should light up) - and the checkbox should be checked and greyed out.
> Also please attach the log, if something there is relevant.
This is what you see in the log:
2013-07-25 08:58:31,130 INFO [org.ovirt.engine.core.bll.provider.AddProviderCommand] (ajp--127.0.0.1-8702-5) Running command: AddProviderCommand internal: false. Entities affected : ID: aaa00000-0000-0000-0000-123456789aaa Type: System
2013-07-25 08:58:31,134 ERROR [org.ovirt.engine.core.bll.provider.AddProviderCommand] (ajp--127.0.0.1-8702-5) Command org.ovirt.engine.core.bll.provider.AddProviderCommand throw Vdc Bll exception. With error message VdcBLLException: Username may not be null (Failed with VDSM error PROVIDER_FAILURE and code 5050)
2013-07-25 08:58:31,136 ERROR [org.ovirt.engine.core.bll.provider.AddProviderCommand] (ajp--127.0.0.1-8702-5) Transaction rolled-back for command: org.ovirt.engine.core.bll.provider.AddProviderCommand.
2013-07-25 08:58:31,145 INFO [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp--127.0.0.1-8702-5) Correlation ID: 14846596, Call Stack: null, Custom Event ID: -1, Message: Failed to add provider for. (User: admin@internal)
as RC is built, moving to ON_QA (hopefully did not catch incorrect bugs when doing this)
closing as this should be in 3.3 (doing so in bulk, so may be incorrect)