You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Kirk Jantzer <ki...@gmail.com> on 2013/07/22 14:53:55 UTC

CloudMonkey Error 431 when trying to deploy VM

cloudmonkey> deployVirtualMachine
zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478 displayname=CentOSTest1
name=CentOSTest1
HTTP Error 431:

cloudmonkey> api deployVirtualMachine
zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478 displayname=CentOSTest1
name=CentOSTest1
HTTP Error 431:

cloudmonkey> deploy virtualmachine
zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b
serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478
HTTP Error 431:


ACS4.1. Also, I don't see anything in .cloudmonkey/log
or .cloudmonkey/history

-- 
Regards,

Kirk Jantzer
http://about.met/kirkjantzer

Re: CloudMonkey Error 431 when trying to deploy VM

Posted by Rohit Yadav <bh...@apache.org>.
Thanks for bringing the issue Kirk, I'll see why it fails to print the
errortext and will post a fix next weekend.

Cheers.

On Mon, Jul 22, 2013 at 9:09 PM, Kirk Jantzer <ki...@gmail.com>wrote:

> *doh* fixed it.
>
> found the logs, forgot i set these :-P
> 'set history_file /usr/share/cloudmonkey_history'
> 'set log_file /var/log/cloudmonkey'
>
> however, that was still no help (the error line didn't get back the api
> error):
>
> 2013-07-22 07:29:32,612 - requester.py:44 - [DEBUG] ======== START Request
> ========
> 2013-07-22 07:29:32,612 - requester.py:44 - [DEBUG] Requesting
> command=deployVirtualMachine, args={'templateid':
> 'bfcf8294-b28d-4935-99bc-eba7339cd2b', 'diskOfferingid':
> '86d4cfd3-eb4f-4740-b6c3-6bb936951478', 'serviceofferingid':
> '7089b886-4bb1-4e19-b7ff-539add31bbfe', 'zoneid':
> '69e8cc76-65cf-4971-a7a1-3acb1040c5e2'}
> 2013-07-22 07:29:32,613 - requester.py:44 - [DEBUG] Request sent: http://
>
> <master>:8080/client/api?apiKey=gcVnG3Yk2yx6U_c4-03tqplgrIHPC1K-bxVBrCyK97xDrhZJjIrN5dJXtvUou5hY-_MQZURSeu_maZKzLR3ZBg&command=deployVirtualMachine&diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478&response=json&serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe&templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b&zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2&signature=7xtTrW8dyfUthj5wCbXTM8pobao%3D
> 2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] Response received: None
> 2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] HTTP Error 431:
> 2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] ======== END Request
> ========
>
> If I put the request URL in a browser, I get the following:
>
> { "deployvirtualmachineresponse" :
> {"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API
> command deployvirtualmachine due to invalid value. Invalid parameter
> templateid value=bfcf8294-b28d-4935-99bc-eba7339cd2b due to incorrect
> long value format, or entity does not exist or due to incorrect
> parameter annotation for the field in api cmd class."} }
>
> Turns out my templateid was missing a character. NO clue how that happened.
> Thanks anyways :-)
>
>
>
>
>
> On Mon, Jul 22, 2013 at 8:53 AM, Kirk Jantzer <kirk.jantzer@gmail.com
> >wrote:
>
> > cloudmonkey> deployVirtualMachine
> > zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> > templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
> > serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> > diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478
> displayname=CentOSTest1
> > name=CentOSTest1
> > HTTP Error 431:
> >
> > cloudmonkey> api deployVirtualMachine
> > zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> > templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
> > serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> > diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478
> displayname=CentOSTest1
> > name=CentOSTest1
> > HTTP Error 431:
> >
> > cloudmonkey> deploy virtualmachine
> > zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> > templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b
> > serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> > diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478
> > HTTP Error 431:
> >
> >
> > ACS4.1. Also, I don't see anything in .cloudmonkey/log
> > or .cloudmonkey/history
> >
> > --
> > Regards,
> >
> > Kirk Jantzer
> > http://about.met/kirkjantzer
> >
>
>
>
> --
> Regards,
>
> Kirk Jantzer
> c: (678) 561-5475
> http://about.met/kirkjantzer
>

Re: CloudMonkey Error 431 when trying to deploy VM

Posted by Kirk Jantzer <ki...@gmail.com>.
*doh* fixed it.

found the logs, forgot i set these :-P
'set history_file /usr/share/cloudmonkey_history'
'set log_file /var/log/cloudmonkey'

however, that was still no help (the error line didn't get back the api
error):

2013-07-22 07:29:32,612 - requester.py:44 - [DEBUG] ======== START Request
========
2013-07-22 07:29:32,612 - requester.py:44 - [DEBUG] Requesting
command=deployVirtualMachine, args={'templateid':
'bfcf8294-b28d-4935-99bc-eba7339cd2b', 'diskOfferingid':
'86d4cfd3-eb4f-4740-b6c3-6bb936951478', 'serviceofferingid':
'7089b886-4bb1-4e19-b7ff-539add31bbfe', 'zoneid':
'69e8cc76-65cf-4971-a7a1-3acb1040c5e2'}
2013-07-22 07:29:32,613 - requester.py:44 - [DEBUG] Request sent: http://
<master>:8080/client/api?apiKey=gcVnG3Yk2yx6U_c4-03tqplgrIHPC1K-bxVBrCyK97xDrhZJjIrN5dJXtvUou5hY-_MQZURSeu_maZKzLR3ZBg&command=deployVirtualMachine&diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478&response=json&serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe&templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b&zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2&signature=7xtTrW8dyfUthj5wCbXTM8pobao%3D
2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] Response received: None
2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] HTTP Error 431:
2013-07-22 07:29:32,629 - requester.py:44 - [DEBUG] ======== END Request
========

If I put the request URL in a browser, I get the following:

{ "deployvirtualmachineresponse" :
{"errorcode":431,"cserrorcode":9999,"errortext":"Unable to execute API
command deployvirtualmachine due to invalid value. Invalid parameter
templateid value=bfcf8294-b28d-4935-99bc-eba7339cd2b due to incorrect
long value format, or entity does not exist or due to incorrect
parameter annotation for the field in api cmd class."} }

Turns out my templateid was missing a character. NO clue how that happened.
Thanks anyways :-)





On Mon, Jul 22, 2013 at 8:53 AM, Kirk Jantzer <ki...@gmail.com>wrote:

> cloudmonkey> deployVirtualMachine
> zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
> serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478 displayname=CentOSTest1
> name=CentOSTest1
> HTTP Error 431:
>
> cloudmonkey> api deployVirtualMachine
> zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b hypervisor=XenServer
> serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478 displayname=CentOSTest1
> name=CentOSTest1
> HTTP Error 431:
>
> cloudmonkey> deploy virtualmachine
> zoneid=69e8cc76-65cf-4971-a7a1-3acb1040c5e2
> templateid=bfcf8294-b28d-4935-99bc-eba7339cd2b
> serviceofferingid=7089b886-4bb1-4e19-b7ff-539add31bbfe
> diskOfferingid=86d4cfd3-eb4f-4740-b6c3-6bb936951478
> HTTP Error 431:
>
>
> ACS4.1. Also, I don't see anything in .cloudmonkey/log
> or .cloudmonkey/history
>
> --
> Regards,
>
> Kirk Jantzer
> http://about.met/kirkjantzer
>



-- 
Regards,

Kirk Jantzer
c: (678) 561-5475
http://about.met/kirkjantzer