Bug 1398398 - Adding JDBC driver to EAP7 via CFME UI with wrong arguments should not show successful UI message
Summary: Adding JDBC driver to EAP7 via CFME UI with wrong arguments should not show s...
Keywords:
Status: CLOSED DUPLICATE of bug 1383637
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.7.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: GA
: cfme-future
Assignee: Heiko W. Rupp
QA Contact: Vojta Prusa
URL:
Whiteboard: middleware
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-24 17:10 UTC by Vojta Prusa
Modified: 2016-12-09 18:57 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-07 15:08:59 UTC
Category: ---
Cloudforms Team: Middleware
Target Upstream Version:


Attachments (Terms of Use)
cfme logs/evm.log (5.10 MB, text/plain)
2016-11-24 17:10 UTC, Vojta Prusa
no flags Details

Description Vojta Prusa 2016-11-24 17:10:58 UTC
Created attachment 1223940 [details]
cfme logs/evm.log

Description of problem:
For negative scenario of test cases "Adding datasource to EAP7 via CFME UI" i got successful message in UI 'JDBC Driver "qweqwe" has been installed on this server.' instead of failing message.

EAP7 server.log:
2016-11-24 11:23:41,673 INFO  [org.hawkular.agent.monitor.cmd.AbstractResourcePathCommand] (OkHttp http://vprusa-docker-hs.bc.jonqe.lab.eng.bos.redhat.com:8080/hawkular/command-gateway/feed/d1160558-8f47-42a6-bfd9-7233f406b669) HAWKMONITOR010065: Received request to perform [Add] on a [JDBC Driver] given by inventory path [/t;hawkular/f;d1160558-8f47-42a6-bfd9-7233f406b669/r;EAP7-1~~]
2016-11-24 11:23:41,777 WARN  [org.jboss.as.connector.subsystems.datasources] (OkHttp http://vprusa-docker-hs.bc.jonqe.lab.eng.bos.redhat.com:8080/hawkular/command-gateway/feed/d1160558-8f47-42a6-bfd9-7233f406b669) WFLYJCA0003: Unable to instantiate driver class "qweqwe": java.lang.ClassNotFoundException: qweqwe from [Module "qweqwe:main" from local module loader @12f40c25 (finder: local module finder @3ada9e37 (roots: /home/hudson/jboss-eap7-standalone/modules,/home/hudson/jboss-eap7-standalone/modules/system/layers/base,/home/hudson/jboss-eap7-standalone/modules/system/add-ons/hawkular-agent))]
2016-11-24 11:23:41,778 ERROR [org.jboss.as.controller.management-operation] (OkHttp http://vprusa-docker-hs.bc.jonqe.lab.eng.bos.redhat.com:8080/hawkular/command-gateway/feed/d1160558-8f47-42a6-bfd9-7233f406b669) WFLYCTL0013: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "qweqwe")
]) - failure description: "WFLYJCA0034: Unable to instantiate driver class \"qweqwe\". See log (WARN) for more details"

CFME evm.log:
[----] E, [2016-11-24T11:23:41.877643 #3104:6f2451c] ERROR -- : MIQ(ManageIQ::Providers::Hawkular::MiddlewareManager#add_middleware_jdbc_driver) error callback was called, reason: Could not perform [Add] on a [JDBC Driver] given by inventory path [/t;hawkular/f;d1160558-8f47-42a6-bfd9-7233f406b669/r;EAP7-1~~] requested on [2016-11-24T16:23Z]: org.hawkular.dmr.api.OperationFailureException: Could not perform operation [add]: WFLYJCA0034: Unable to instantiate driver class "qweqwe". See log (WARN) for more details




Version-Release number of selected component (if applicable):
Hawkular Services: 	Running	0.21.0.Final-redhat-1 (commit b7c207f5b74a5f96d77d25231118e80c4540b32c)	
Hawkular Metrics: 	Running	0.21.5.Final-redhat-1	
Hawkular Alerts: 	Running	1.3.2.Final-redhat-1	
Hawkular Inventory:	Running	1.1.1.Final-redhat-1

CFME: Version 5.7.0.12-rc2.20161123111642_a4a65ce 

How reproducible:

Steps to Reproduce:
Follow https://polarion.engineering.redhat.com/polarion/#/project/JBossON4/workitem?id=JBossON4-9538


Actual results:


Expected results:


Additional info:
I suppose message 'JDBC Driver "qweqwe" has been installed on this server.'
appears for CMFE log message:
[org.hawkular.agent.monitor.cmd.AbstractResourcePathCommand] (OkHttp http://vprusa-docker-hs.bc.jonqe.lab.eng.bos.redhat.com:8080/hawkular/command-gateway/feed/d1160558-8f47-42a6-bfd9-7233f406b669) HAWKMONITOR010065: Received request to perform [Add] on a [JDBC Driver] given by inventory path [/t;hawkular/f;d1160558-8f47-42a6-bfd9-7233f406b669/r;EAP7-1~~]
but then the installation fails, is it possible to first wait for result of driver installation on EAP7 before showing this message? Or change it to 'JDBC Driver "qweqwe" is being installed on this server.'

Comment 2 Hayk Hovsepyan 2016-12-06 09:18:48 UTC
Similar BZ was logged: https://bugzilla.redhat.com/show_bug.cgi?id=1383637

Comment 3 Dave Johnson 2016-12-06 16:52:13 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

Comment 4 Vojta Prusa 2016-12-07 15:08:59 UTC
duplicated severity https://bugzilla.redhat.com/show_bug.cgi?id=1383637

*** This bug has been marked as a duplicate of bug 1383637 ***


Note You need to log in before you can comment on or make changes to this bug.