ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alejandro Fernandez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14259) Save on Repositories dialog box not working
Date Tue, 08 Dec 2015 23:19:11 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-14259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alejandro Fernandez updated AMBARI-14259:
-----------------------------------------
    Fix Version/s: 2.2.0

> Save on Repositories dialog box not working
> -------------------------------------------
>
>                 Key: AMBARI-14259
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14259
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: trunk, 2.2.0
>            Reporter: jun aoki
>            Assignee: Alejandro Fernandez
>             Fix For: 2.2.0
>
>         Attachments: screenshot-1.png
>
>
> Currently a build from trunk does not let you Save repositories.
> Javascript console shows a 500 error on a PUT request
>  http://host:8080/api/v1/stacks/PHD/versions/3.3/repository_versions/1
> ambari-server.log complains "Upgrade pack can't be changed for repository version which
has a state of CURRENT"
> {code}
> 07 Dec 2015 14:21:18,433 ERROR [qtp-ambari-client-19] AbstractResourceProvider:339 -
Caught AmbariException when modifying a resource
> org.apache.ambari.server.AmbariException: Upgrade pack can't be changed for repository
version which has a state of CURRENT on cluster PUSH--for_PLGN_2_0_PHD_3_3_Ambari_trunk----partition_2-jaoki
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$5.invoke(RepositoryVersionResourceProvider.java:277)
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$5.invoke(RepositoryVersionResourceProvider.java:251)
>         at org.apache.ambari.server.controller.internal.AbstractResourceProvider.invokeWithRetry(AbstractResourceProvider.java:451)
>         at org.apache.ambari.server.controller.internal.AbstractResourceProvider.modifyResources(AbstractResourceProvider.java:332)
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider.updateResourcesAuthorized(RepositoryVersionResourceProvider.java:251)
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$654264b.CGLIB$updateResourcesAuthorized$6(<generated>)
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$654264b$$FastClassByGuice$$fa9609fe.invoke(<generated>)
>         at com.google.inject.internal.cglib.proxy.$MethodProxy.invokeSuper(MethodProxy.java:228)
>         at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
>         at org.apache.ambari.server.orm.AmbariJpaLocalTxnInterceptor.invoke(AmbariJpaLocalTxnInterceptor.java:68)
>         at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:72)
>         at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:52)
>         at org.apache.ambari.server.controller.internal.RepositoryVersionResourceProvider$$EnhancerByGuice$$654264b.updateResourcesAuthorized(<generated>)
>         at org.apache.ambari.server.controller.internal.AbstractAuthorizedResourceProvider.updateResources(AbstractAuthorizedResourceProvider.java:300)
>         at org.apache.ambari.server.controller.internal.ClusterControllerImpl.updateResources(ClusterControllerImpl.java:310)
>         at org.apache.ambari.server.api.services.persistence.PersistenceManagerImpl.update(PersistenceManagerImpl.java:104)
>         at org.apache.ambari.server.api.handlers.UpdateHandler.persist(UpdateHandler.java:43)
>         at org.apache.ambari.server.api.handlers.BaseManagementHandler.handleRequest(BaseManagementHandler.java:72)
>         at org.apache.ambari.server.api.services.BaseRequest.process(BaseRequest.java:135)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:106)
>         at org.apache.ambari.server.api.services.BaseService.handleRequest(BaseService.java:75)
>         at org.apache.ambari.server.api.services.RepositoryVersionService.updateRepositoryVersion(RepositoryVersionService.java:130)
>         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:497)
>         at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
>         at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
>         at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
>         at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
>         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>         at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137)
>         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>         at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
>         at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
>         at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
>         at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
> {code}
> [The latest logic|https://github.com/apache/ambari/blob/fe65472acbd4c76e9be7e3d29e24e1f747438a8d/ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java#L267-L279]
has a logic to prevent Repositories information from getting changed.
> This is also a blocker for a user case where other vendors want to add a repository to
the CURRENT repo.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message