You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/09/16 06:32:00 UTC
[jira] [Commented] (CLOUDSTACK-10056) Cannot specify root disk
controller when creating VM
[ https://issues.apache.org/jira/browse/CLOUDSTACK-10056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16168837#comment-16168837 ]
ASF subversion and git services commented on CLOUDSTACK-10056:
--------------------------------------------------------------
Commit 2ccea134ae6977c6e8a8467a7ddd3c298a080974 in cloudstack's branch refs/heads/master from [~nathanejohnson]
[ https://gitbox.apache.org/repos/asf?p=cloudstack.git;h=2ccea13 ]
CLOUDSTACK-10056: Fix vm details usage (#2248)
Fix bug where disk controller specified via vm details throws
a NumberFormatException, since "scsi" is not a number.
> Cannot specify root disk controller when creating VM
> ----------------------------------------------------
>
> Key: CLOUDSTACK-10056
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10056
> Project: CloudStack
> Issue Type: Bug
> Security Level: Public(Anyone can view this level - this is the default.)
> Components: API, KVM
> Affects Versions: 4.10.0.0
> Environment: cloudstack 4.10, kvm hosts
> Reporter: Nathan Johnson
> Assignee: Nathan Johnson
> Priority: Minor
>
> You cannot specify root disk controller when creating a vm because it throws in this section of code starting here:
> https://github.com/apache/cloudstack/blob/250c47eb62f51357a68394bc2f73e5d66af49f77/server/src/com/cloud/vm/UserVmManagerImpl.java#L3623
> {code:java}
> for (String key : customParameters.keySet()) {
> //handle double byte strings.
> vm.setDetail(key, Integer.toString(Integer.parseInt(customParameters.get(key))));
> }
> {code}
> Since the value "scsi" is non-numeric, this throws an exception when passed.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)