New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Once a fabric is deleted cannot create a new fabric with the same name #197

Closed
ypujante opened this Issue Jan 17, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@ypujante
Member

ypujante commented Jan 17, 2013

From the forum: http://glu.977617.n3.nabble.com/Once-a-fabric-is-deleted-cannot-create-a-new-fabric-with-the-same-name-td4025360.html


So I created a fabric named fcp_pfqa, then I realized the fabric name in glu should be all caps, so i edit the fabric and change the name to FCP_PFQA. Then after the rename when I try to select that fabric im get errors saying "could not find fabric fcp_pfqa". That is one problem. Then i asummed deleting the fabric would delete the entry in the DB and I could just create a new fabric name. But I was wrong, when I enter all the details at the add new fabric page and then click on create I get the following error message :


Error 500: Executing action [save] of controller [org.linkedin.glu.console.controllers.FabricController] caused exception: org.linkedin.glu.console.provisioner.services.storage.SystemStorageException: org.springframework.validation.BeanPropertyBindingResult: 1 errors Field error in object 'org.linkedin.glu.console.domain.DbCurrentSystem' on field 'fabric': rejected value [fcp_pfqa]; codes [org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error,dbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.error.fabric,dbCurrentSystem.fabric.validator.error.java.lang.String,dbCurrentSystem.fabric.validator.error,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid,dbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.invalid.fabric,dbCurrentSystem.fabric.validator.invalid.java.lang.String,dbCurrentSystem.fabric.validator.invalid,validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,validator.invalid.fabric,validator.invalid.java.lang.String,validator.invalid]; arguments [fabric,class org.linkedin.glu.console.domain.DbCurrentSystem,fcp_pfqa]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]
Servlet: grails
URI: /console/grails/fabric/save.dispatch
Exception Message: org.springframework.validation.BeanPropertyBindingResult: 1 errors Field error in object 'org.linkedin.glu.console.domain.DbCurrentSystem' on field 'fabric': rejected value [fcp_pfqa]; codes [org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error,dbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.error.fabric,dbCurrentSystem.fabric.validator.error.java.lang.String,dbCurrentSystem.fabric.validator.error,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid,dbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.invalid.fabric,dbCurrentSystem.fabric.validator.invalid.java.lang.String,dbCurrentSystem.fabric.validator.invalid,validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,validator.invalid.fabric,validator.invalid.java.lang.String,validator.invalid]; arguments [fabric,class org.linkedin.glu.console.domain.DbCurrentSystem,fcp_pfqa]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]
Caused by: org.springframework.validation.BeanPropertyBindingResult: 1 errors Field error in object 'org.linkedin.glu.console.domain.DbCurrentSystem' on field 'fabric': rejected value [fcp_pfqa]; codes [org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error,dbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.error.fabric,dbCurrentSystem.fabric.validator.error.java.lang.String,dbCurrentSystem.fabric.validator.error,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid,dbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.invalid.fabric,dbCurrentSystem.fabric.validator.invalid.java.lang.String,dbCurrentSystem.fabric.validator.invalid,validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,validator.invalid.fabric,validator.invalid.java.lang.String,validator.invalid]; arguments [fabric,class org.linkedin.glu.console.domain.DbCurrentSystem,fcp_pfqa]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]
Class: FabricController
At Line: [272]

Code Snippet:

With the stack trace :


org.linkedin.glu.console.provisioner.services.storage.SystemStorageException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'org.linkedin.glu.console.domain.DbCurrentSystem' on field 'fabric': rejected value [fcp_pfqa]; codes [org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.error,dbCurrentSystem.fabric.validator.error.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.error.fabric,dbCurrentSystem.fabric.validator.error.java.lang.String,dbCurrentSystem.fabric.validator.error,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.fabric,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid.java.lang.String,org.linkedin.glu.console.domain.DbCurrentSystem.fabric.validator.invalid,dbCurrentSystem.fabric.validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,dbCurrentSystem.fabric.validator.invalid.fabric,dbCurrentSystem.fabric.validator.invalid.java.lang.String,dbCurrentSystem.fabric.validator.invalid,validator.invalid.org.linkedin.glu.console.domain.DbCurrentSystem.fabric,validator.invalid.fabric,validator.invalid.java.lang.String,validator.invalid]; arguments [fabric,class org.linkedin.glu.console.domain.DbCurrentSystem,fcp_pfqa]; default message [Property [{0}] of class [{1}] with value [{2}] does not pass custom validation]

    at org.linkedin.glu.console.provisioner.services.storage.SystemStorageImpl$_saveCurrentSystem_closure1.doCall(SystemStorageImpl.groovy:92) 

    at org.linkedin.glu.console.provisioner.services.storage.SystemStorageImpl$_saveCurrentSystem_closure1.call(SystemStorageImpl.groovy) 

    at $Proxy18.doInTransaction(Unknown Source) 

    at org.linkedin.glu.console.provisioner.services.storage.SystemStorageImpl.saveCurrentSystem(SystemStorageImpl.groovy:68) 

    at org.linkedin.glu.orchestration.engine.system.SystemStorage$saveCurrentSystem.call(Unknown Source) 

    at org.linkedin.glu.orchestration.engine.system.SystemServiceImpl.saveCurrentSystem(SystemServiceImpl.groovy:145) 

    at org.linkedin.glu.orchestration.engine.system.SystemService$saveCurrentSystem.call(Unknown Source) 

    at org.linkedin.glu.orchestration.engine.system.AuditedSystemService.saveCurrentSystem(AuditedSystemService.groovy:37) 

    at org.linkedin.glu.orchestration.engine.system.SystemService$saveCurrentSystem$3.call(Unknown Source) 

    at org.linkedin.glu.console.controllers.FabricController$_closure12_closure29_closure30.doCall(FabricController.groovy:282) 

    at $Proxy18.doInTransaction(Unknown Source) 

    at org.linkedin.glu.console.controllers.FabricController$_closure12_closure29.doCall(FabricController.groovy:273) 

    at org.linkedin.glu.console.controllers.FabricController$_closure12_closure29.doCall(FabricController.groovy) 

    at org.linkedin.glu.console.controllers.ControllerBase.withLock(ControllerBase.groovy:117) 

    at org.linkedin.glu.console.controllers.FabricController$_closure12.doCall(FabricController.groovy:272) 

    at org.linkedin.glu.console.controllers.FabricController$_closure12.doCall(FabricController.groovy) 

    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1351) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473) 

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) 

    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:516) 

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) 

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) 

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) 

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) 

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) 

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 

    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285) 

    at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359) 

    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275) 

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) 

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) 

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:343) 

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272) 

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:83) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1322) 

    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:473) 

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) 

    at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:479) 

    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) 

    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:929) 

    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:403) 

    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184) 

    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:864) 

    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) 

    at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247) 

    at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151) 

    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:114) 

    at org.eclipse.jetty.server.Server.handle(Server.java:352) 

    at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:596) 

    at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1068) 

    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:805) 

    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218) 

    at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:426) 

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:508) 

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.access$000(SelectChannelEndPoint.java:34) 

    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40) 

    at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:451) 

    at java.lang.Thread.run(Thread.java:662) 

We are using a MySQL DB. Is there a problem with something I am doing, or is this a potential bug?
Help is greatly appreciated!
Thanks!

@ypujante

This comment has been minimized.

Member

ypujante commented Jan 17, 2013

From the forum:

The problem is that even though the fabric gets deleted from the fabric table it is still referenced in the db_current_system table. Deleting that row resolved the issue.

@ypujante

This comment has been minimized.

Member

ypujante commented Jan 21, 2013

Fixed in 4.6.2

@ypujante ypujante closed this Jan 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment