[
https://issues.apache.org/jira/browse/CLOUDSTACK-9251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15115874#comment-15115874
]
Tomasz Zieba commented on CLOUDSTACK-9251:
------------------------------------------
Ok, I have understood the workaround but we have implemented few features which
use the custom offering.
Custom offering works without any problems in ACS4.5.2 and that's why upgrade
to ACS 4.7.1 is for us impossible.
I think that I have found the source of the problem.
When you are creating Instance and choose custom offering, you can start
instance with custom offering without any problems.
The function validateCustomParameters gets the following data ( named as
customParameters):
{cpuNumber=2, cpuSpeed=1500, memory=2048}
BUT
when you are changing offering on stopped instance the same function get the
following data ( named as customParameters):
{0={cpuNumber=2, cpuSpeed=2000, memory=2048}}
That's why validation is wrong. The functions inside method
validateCustomParameters can't get cpu count properly and method throws
Exception.
I'm sorry but I'm not java developer but maybe you can check the reason of this
situation.
Source file: server/src/com/cloud/vm/UserVmManagerImpl.java
> error while change instance offering to custom offering
> -------------------------------------------------------
>
> Key: CLOUDSTACK-9251
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9251
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: API
> Affects Versions: 4.7.0, 4.7.1
> Environment: ACS 4.7.1 -
> https://dist.apache.org/repos/dist/dev/cloudstack/4.7.1/
> Reporter: Tomasz Zieba
>
> Changing compute offering to custom offering end with:
> Step to reproduce:
> 1. Create and run new instance with offering eg. 1 core / 1GB
> 2. Create Custom Offering eg 2 core / 2 GB
> 3. Stop the instance
> 4. Try to change offering of the instance
> 5. Error: Invalid cpu cores value, specify a value between 1 and 2147483647
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)