You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2022/09/28 11:34:56 UTC

[GitHub] [cloudstack] ccycv opened a new issue, #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

ccycv opened a new issue, #6780:
URL: https://github.com/apache/cloudstack/issues/6780

   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
   
   
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   UI
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.17.0, 4.17.1
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   ~~~
   NA
   ~~~
   ##### OS / ENVIRONMENT
   <!--
   Information about the environment if relevant, N/A otherwise
   -->
   Ubuntu 20.04, CentOS 7.9
   
   ##### SUMMARY
   ~~~
   If I try to edit any settings under instance, I always get the same error, no matter if is not related to CPU.
   ~~~
   ##### STEPS TO REPRODUCE
   
   ~~~
   There are no specific steps, just try to edit or add new value.
   ~~~
   
   
   
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   No error
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   2022-09-28 11:31:07,972 ERROR [c.c.a.ApiServer] (qtp1462044018-8587:ctx-4c809300 ctx-86f28f31) (logid:09b4a52b) unhandled exception executing api command: [Ljava.lang.String;@768c17d5
   com.cloud.utils.exception.CloudRuntimeException: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647
           at org.apache.cloudstack.api.command.user.vm.UpdateVMCmd.execute(UpdateVMCmd.java:271)
           at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:163)
           at com.cloud.api.ApiServer.queueCommand(ApiServer.java:776)
           at com.cloud.api.ApiServer.handleRequest(ApiServer.java:600)
           at com.cloud.api.ApiServlet.processRequestInContext(ApiServlet.java:327)
           at com.cloud.api.ApiServlet$1.run(ApiServlet.java:145)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:55)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:102)
           at org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:52)
           at com.cloud.api.ApiServlet.processRequest(ApiServlet.java:142)
           at com.cloud.api.ApiServlet.doGet(ApiServlet.java:96)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:645)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:750)
           at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1450)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
           at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
           at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:763)
           at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
           at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
           at org.eclipse.jetty.server.Server.handle(Server.java:516)
           at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
           at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
           at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
           at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
           at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
           at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
           at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
           at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
           at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
           at java.base/java.lang.Thread.run(Thread.java:829)
   Caused by: com.cloud.exception.InvalidParameterValueException: Invalid cpu speed value, specify a value between 1 and 2147483647
           at com.cloud.vm.UserVmManagerImpl.validateCustomParameters(UserVmManagerImpl.java:1179)
           at com.cloud.vm.UserVmManagerImpl.verifyVmLimits(UserVmManagerImpl.java:2661)
           at com.cloud.vm.UserVmManagerImpl.updateVirtualMachine(UserVmManagerImpl.java:2767)
           ... 58 more
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ccycv commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
ccycv commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1260941230

   > @ccycv I just tried adding a `keyboard` setting in 4.17.1.0 and it worked without hiccup. Than I added `cpu.corespersocket` again without hiccup. Can you share your service-offering for this VM? Maybe the itch is there.
   
   I just tested again, this occurs only if you have "cpuSpeed".


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1262311088

   @ccycv can you please specify the offering here (or the cli you used. I can not reproduce this so far.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ccycv commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
ccycv commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1260774929

   
   ![image](https://user-images.githubusercontent.com/23322009/192769039-cdaca118-91c1-4641-b1f6-e4bc4af78dd9.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1260922491

   @ccycv I just tried adding a `keyboard` setting in 4.17.1.0 and it worked without hiccup. Than I added `cpu.corespersocket` again without hiccup. 
   Can you share your service-offering for this VM? Maybe the itch is there.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] weizhouapache closed issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
weizhouapache closed issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug
URL: https://github.com/apache/cloudstack/issues/6780


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1260971341

   > > @ccycv I just tried adding a `keyboard` setting in 4.17.1.0 and it worked without hiccup. Than I added `cpu.corespersocket` again without hiccup. Can you share your service-offering for this VM? Maybe the itch is there.
   > 
   > I just tested again, this occurs only if you have "cpuSpeed".
   
   right, so you have an offering that allows for that?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] ccycv commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
ccycv commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1261153600

   > > > @ccycv I just tried adding a `keyboard` setting in 4.17.1.0 and it worked without hiccup. Than I added `cpu.corespersocket` again without hiccup. Can you share your service-offering for this VM? Maybe the itch is there.
   > > 
   > > 
   > > I just tested again, this occurs only if you have "cpuSpeed".
   > 
   > right, so you have an offering that allows for that?
   
   Yes, if I deploy with such offering or set the CPU speed at deploy.  


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [cloudstack] DaanHoogland commented on issue #6780: Failed to update VM, due to: Invalid cpu speed value, specify a value between 1 and 2147483647 - UI bug

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #6780:
URL: https://github.com/apache/cloudstack/issues/6780#issuecomment-1261903651

   > > > > @ccycv I just tried adding a `keyboard` setting in 4.17.1.0 and it worked without hiccup. Than I added `cpu.corespersocket` again without hiccup. Can you share your service-offering for this VM? Maybe the itch is there.
   > > > 
   > > > 
   > > > I just tested again, this occurs only if you have "cpuSpeed".
   > > 
   > > 
   > > right, so you have an offering that allows for that?
   > 
   > Yes, if I deploy with such offering or set the CPU speed at deploy.
   
   ok, i'll give it some more try
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org