something is not right with hawkular-services websockets
by John Mazzitelli
There is something wrong with Hawkular-Services, specifically, the websocket stuff.
I'm having a hard time getting its embedded agent to create and maintain its websocket - many times it gets closed with an odd reason code of 1006 (no other explanation). In addition, sometimes (a lot of times) when I try to connect to it via websockets using a third-party tool, I'm getting the same behavior (code 1006).
The end result is we can't send messages to the embedded agent over that command-gateway stuff. It is very unstable, unlike the previous hawkular server distro (which was very reliable and always worked). I don't know what changed, but something did when we moved to hawkular-services builds.
As part of this, I'm also suspecting there is a problem with the ActiveMQ message bus stuff - I'm not convinced messages are always flowing correctly - but that could just be a result of the cmdgw stuff and how subscribers are removed when websocket clients are disconnected.
7 years, 9 months
Inventory and alerts release for tomorrow's H-Services
by Juraci Paixão Kröhling
Team,
There were a couple of commits last week on Alerts and Inventory that
fixes the auth and H-Tenant headers. Would it be possible to have a
release of those components by today, so that tomorrow's H-Services
incorporates those fixes?
- Juca.
7 years, 9 months
Hawkular Services 0.0.1.Final
by Juraci Paixão Kröhling
Team,
The first release of Hawkular Services is out: 0.0.1.Final . This should
be seen as a base distribution for adjusting the current Hawkular
clients to work with the authentication, authorization and tenancy changes.
The plan is to have one release per week, every Tuesday. If you want to
catch the release train, I'd suggest to have your component ready by Friday.
The distribution can be downloaded here:
https://repository.jboss.org/nexus/service/local/repositories/releases/co...
As the previous distributions, the Agent has to be configured with an
user. This can be accomplished by:
- Adding an user via bin/add-user.sh like:
./bin/add-user.sh -a -u <theusername> -p <thepassword>
- Changing the Agent's credential on standalone.xml to the credentials
from the previous step
- Juca.
7 years, 9 months
Hawkular Organization - Repositories - Vote
by Stefan Negrea
Hello Everybody,
Based on the emails and discussions from the past few weeks, I created a
community poll to finalize the decision on unmaintained Hawkular
repositories. The current Github org has a significant number of projects
that no longer receive development. For a full list of projects please see
[1], projects below red line are not active.
Please vote on what to do with repos below the red line and future repos
that will no longer be developed by Hawkular:
1) Move to new Hawkular-Archive organization
2) Keep in Hawkular organization marked as "obsolete"
Voting will be open until Monday, May 31st, 7:00 am (US Central).
Doodle Poll - http://doodle.com/poll/vnaqgppvunhaweks
Please contact me if you have any questions about the two options or have
any comments/feedback.
[1]
https://docs.google.com/spreadsheets/d/1IzoBP9glz3GgkcwTRF6cobQCylUaZFLhF...
Thank you,
Stefan Negrea
Software Engineer
7 years, 9 months
Any objections to using gitbooks?
by Gary Brown
Hi
Wondering if gitbooks was ever considered for the documentation? Seems ideal as we can version each book with the component(s) it relates to, and users can download a pdf version for use offline.
Was thinking about experimenting with it for the updated APM docs?
Any objections?
Regards
Gary
7 years, 9 months
Corrections and suggestions on Explorer for android client
by Anuj Garg
Hello everyone,
A tree structure of the explorer is approx ready for the android client and
I was curious if i am wrong somewhere.
First of all, All feeds are collected by call to
/inventory/feeds
feed call for resources
/inventory/feeds/{feed}/resources
call for rec resources and metrics
/inventory/feeds/{feed}/resources/{resid}/recursiveChildren
/inventory/{feed}/resources/{resid}/metrics
Am I missing something?
Thanks
Anuj Garg
7 years, 9 months
CORS Filter in commons?
by Thomas Segismont
Hi everyone,
When Hawkular servers were secured by Keycloack, it was possible to
configure allowed origins for CORS requests. Now we no longer have a common
solution.
Standalone Metrics has JAX-RS filters and config parameters to configure
allowed headers and origins (this was developed for Openshift Metrics
IIRC). The hawkular-metrics-component does not have them currently, because
it used to be deployed along with Keycloack...
So is there interest in sharing the Metrics solution in commons? For those
who wonder what CORS support brings, it allows to develop your own web
pages (dashboard or hawkular-charts) on top of Hawkular servers.
Otherwise I will simply add the filters back to the Metrics component.
Regards,
--
Thomas Segismont
JBoss ON Engineering Team
7 years, 9 months
Invalid persona exception
by Gareth Healy
I am trying to get hawkular working with a simple camel app (
https://github.com/fabric8io/ipaas-quickstarts/tree/master/quickstart/cdi...).
I've got the following config:
-javaagent:/deployments/bin/hawkular-btm-agent-rest-0.8.0.Final.jar
-Dhawkular-btm.uri=http://172.17.0.2:8080/hawkular/btm
-Dhawkular-btm.config.refresh=10
-Dhawkular-btm.username=jdoe
-Dhawkular-btm.password=password
-Dhawkular-btm.tenantId=d189128c-2a7b-11e6-b67b-9e71128cae77
-Dhawkular-btm.config=/deployments/lib/cdi-camel-jetty.jar/btm-org-apache-camel.json
-Dhawkular-btm.log.level=FINEST
I can see the rules loaded and working when i hit the endpoint:
FINEST: [BusinessTransactionPublisherRESTClient]
[Thread[pool-1-thread-2,5,main]] Publish btxns
[tenant=d189128c-2a7b-11e6-b67b-9e71128cae77][url=
http://172.17.0.2:8080/hawkular/btm/fragments]: [BusinessTransaction
[id=312ffe46-392a-4e61-b476-a6eb974f24e8, startTime=1465073191501,
name=null, principal=null, hostName=373b52df563f, hostAddress=172.17.0.3,
nodes=[Component [componentType=JettyHttpEndpoint9, getOperation()=null,
getIn()=null, getOut()=null, getNodes()=[], getBaseTime()=32847207863876,
getDuration()=11775543, getFault()=null, getFaultDescription()=null,
getDetails()={btm_source=org.apache.camel}, getCorrelationIds()=[],
getIssues()=[]]], properties={}]]
FINEST: [BusinessTransactionPublisherRESTClient]
[Thread[pool-1-thread-2,5,main]] Status code is: 500
FINER: [BusinessTransactionPublisherRESTClient]
[Thread[pool-1-thread-2,5,main]] Failed to publish business transaction
fragments: status=[500]
But the server is returning an error, stating "AccessDeniedException:
Invalid persona.":
1576144 [default task-13] ERROR org.jboss.as.ejb3.invocation -
WFLYEJB0034: EJB Invocation failed on component PersonaServiceImpl for
method public abstract org.hawkular.accounts.api.model.Persona
org.hawkular.accounts.api.PersonaService.getCurrent()
javax.ejb.EJBException: org.hawkular.accounts.api.AccessDeniedException:
Invalid persona.
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:187)
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:277)
at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327)
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:138)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:66)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
at
org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636)
at
org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356)
at
org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:195)
at
org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at
org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)
at org.hawkular.accounts.api.PersonaService$$$view130.getCurrent(Unknown
Source)
at sun.reflect.GeneratedMethodAccessor491.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.jboss.weld.util.reflection.Reflections.invokeAndUnwrap(Reflections.java:436)
at
org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:127)
at
org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:56)
at
org.jboss.weld.bean.proxy.InjectionPointPropagatingEnterpriseTargetBeanInstance.invoke(InjectionPointPropagatingEnterpriseTargetBeanInstance.java:67)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:100)
at
org.hawkular.accounts.api.internal.impl.PersonaService$599410865$Proxy$_$$_Weld$EnterpriseProxy$.getCurrent(Unknown
Source)
at sun.reflect.GeneratedMethodAccessor491.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
at
org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:78)
at
org.jboss.weld.injection.producer.ProducerMethodProducer.produce(ProducerMethodProducer.java:99)
at
org.jboss.weld.injection.producer.AbstractMemberProducer.produce(AbstractMemberProducer.java:161)
at
org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:181)
at
org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
at
org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:101)
at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
at
org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:742)
at
org.jboss.weld.bean.builtin.InstanceImpl.getBeanInstance(InstanceImpl.java:179)
at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:99)
at
org.hawkular.btm.server.security.hwkaccs.HawkularAccountsSecurityProvider.getTenantId(HawkularAccountsSecurityProvider.java:39)
at
org.hawkular.btm.server.rest.BusinessTransactionHandler.addBusinessTransactions(BusinessTransactionHandler.java:92)
at
org.hawkular.btm.server.rest.BusinessTransactionHandler$Proxy$_$$_WeldClientProxy.addBusinessTransactions(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139)
at
org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)
at
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)
at
org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:395)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:202)
at
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at
io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
at
io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
at
io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
at
org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
org.keycloak.adapters.undertow.UndertowAuthenticatedActionsHandler.handleRequest(UndertowAuthenticatedActionsHandler.java:66)
at
io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
at
io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
at
io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:33)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51)
at
io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
at
io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
at
io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56)
at
io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
at
io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
at
io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
at
io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
org.keycloak.adapters.undertow.ServletPreAuthActionsHandler.handleRequest(ServletPreAuthActionsHandler.java:69)
at
io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
at
io.undertow.server.handlers.MetricsHandler.handleRequest(MetricsHandler.java:62)
at
io.undertow.servlet.core.MetricsChainHandler.handleRequest(MetricsChainHandler.java:59)
at
io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:284)
at
io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:263)
at
io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
at
io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:174)
at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:793)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.hawkular.accounts.api.AccessDeniedException: Invalid persona.
at
org.hawkular.accounts.api.internal.impl.PersonaServiceImpl.getCurrent(PersonaServiceImpl.java:195)
at sun.reflect.GeneratedMethodAccessor508.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
at
org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93)
at
org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
at
org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64)
at
org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at
org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51)
at
org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at
org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275)
... 109 more
I presume its to do with the username/password options i set on the client,
but not sure what i should be using if not the default user.
I get this error with Alpha11 release, as well as very latest Alpha13.
Any pointers would be helpful.
Cheers.
7 years, 9 months
need peer review of commons PR
by John Mazzitelli
I just submitted this PR:
https://github.com/hawkular/hawkular-commons/pull/71
This adds some more cmdgw stuff so we can support deploying and undeploying apps to a EAP domain. I need that merged so I can get the agent to be able to use it.
How are we going to work releases for commons now? Now there is so much in here, I suspect we are going to want to do releases of commons very frequently. Can anyone do a release on demand? Or is someone handling release duties for the commons repo?
7 years, 10 months