You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cloudstack.apache.org by Asmita Vagyani <As...@sigma-systems.com> on 2013/01/21 12:58:25 UTC

deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext>
</deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.


RE: deployVirtualMachine API issue

Posted by Rajesh Battala <ra...@citrix.com>.
>From the error looks like the zoneid provided is not existing in the db. Check whether the id exists or not in the db and use the existing zone id to deploy the vm 

-----Original Message-----
From: Pranav Saxena [mailto:pranav.saxena@citrix.com] 
Sent: Monday, January 21, 2013 5:36 PM
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi Asmita ,

Not very sure , but It seems like the backslash (\) appended to the zone ID in the URL is creating a problem for you . Can you try executing it by removing the slash  ? 

Regards,
Pranav

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.


RE: deployVirtualMachine API issue

Posted by Pranav Saxena <pr...@citrix.com>.
Hi Asmita ,

Not very sure , but It seems like the backslash (\) appended to the zone ID in the URL is creating a problem for you . Can you try executing it by removing the slash  ? 

Regards,
Pranav

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.


Re: deployVirtualMachine API issue

Posted by Rohit Yadav <bh...@apache.org>.
Can you check if the keypair you're using is correct? login via UI and
use the secret/api keys in cloudmonkey and try deploying vm, the way
you're creating the url may be incorrect, if it works via cloudmonkey,
you can try with the url cloudmonkey creates from it's log.

Regards.

On Mon, Jan 21, 2013 at 4:25 AM, Asmita Vagyani
<As...@sigma-systems.com> wrote:
> I removed \ and executed , still gives same error:
>
>
> curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"
>
>
> <?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>
>
>
>
> Thanks and Regards.
>
> Asmita Patil Vagyani.
> Tech Lead,  Sigma Software Solutions, Pune,
> T: +91-20-25661992 / 93 / 94. Extn. : 286
>
>
> -----Original Message-----
> From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com]
> Sent: 21 January 2013 PM 05:52
> To: 'cloudstack-users@incubator.apache.org'
> Subject: RE: deployVirtualMachine API issue
>
> You all were right.
>
> New issue:
> [root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"
>
> Response:
> <?xml version="1.0" encoding="UTF-8"?>
>         <deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
>         <errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
>         <errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>
>
> Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg
>
> Thanks and Regards.
>
> Asmita Patil Vagyani.
>
>
> -----Original Message-----
> From: Sailaja Mada [mailto:sailaja.mada@citrix.com]
> Sent: 21 January 2013 PM 05:39
> To: cloudstack-users@incubator.apache.org
> Subject: RE: deployVirtualMachine API issue
>
> Hi,
>
> It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\)
>
> Can you recheck that.
>
> Thanks,
> Sailaja.M
>
> -----Original Message-----
> From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com]
> Sent: Monday, January 21, 2013 5:28 PM
> To: 'cloudstack-users@incubator.apache.org'
> Subject: deployVirtualMachine API issue
>
> Hi all,
>
> We are trying to execute the command below:
>
> curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409
>
>
> I get the following exception-
>
> <?xml version="1.0" encoding="UTF-8"?>
> <deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
>                 <errorcode>431</errorcode>
>                 <cserrorcode>9999</cserrorcode>
>                 <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>
>
> Thanks and Regards.
>
> Asmita Patil Vagyani.
>
>
>
>
>

RE: deployVirtualMachine API issue

Posted by Pranav Saxena <pr...@citrix.com>.
As far as I know , account and domain are optional parameters but when they are used , they have to be used together . 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: Tuesday, January 22, 2013 2:02 PM
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi Asmita,

Keypair input works fine if provided along with account and domain name.  API call that you tried is  to deploy a VM without using a keypair .  

Likitha,
Do we mandate to provide the Account/Domain name to deploy a VM  with key pair ? 

Thanks,
Sailaja.M


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Tuesday, January 22, 2013 1:30 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

Hi Sailaja,

I too finally got his working, and the problem was it doesn't accept keypair as n input, instead if I use apikey as the name of parameter, then it works.
Strange :(

curl --globoff "http://host:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&apikey=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA&signature=482b0396526cd19d803886b4d9fd1c8f3eedaff4"

This is not consistent with other APIs in Cloudstack 4.

Thanks and Regards.

Asmita Patil Vagyani. 

-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 22 January 2013 PM 12:10
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

I tried with account and domainid , it went thru :

http://hostip:8096/client/api?command=deployVirtualMachine&serviceofferingid=9a6ff0e7-d6a3-442e-ae84-056efc03d705&templateid=4&zoneid=9412ada4-e11c-41e8-9470-ae243f46f9b5&keypair=mysshkey12&account=admin&domainid=1

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:56 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

I removed \ and executed , still gives same error:


curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"


<?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>



Thanks and Regards.

Asmita Patil Vagyani.
Tech Lead,  Sigma Software Solutions, Pune, 
T: +91-20-25661992 / 93 / 94. Extn. : 286 


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: 21 January 2013 PM 05:52
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.








RE: deployVirtualMachine API issue

Posted by Sailaja Mada <sa...@citrix.com>.
Hi Asmita,

Keypair input works fine if provided along with account and domain name.  API call that you tried is  to deploy a VM without using a keypair .  

Likitha,
Do we mandate to provide the Account/Domain name to deploy a VM  with key pair ? 

Thanks,
Sailaja.M


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Tuesday, January 22, 2013 1:30 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

Hi Sailaja,

I too finally got his working, and the problem was it doesn't accept keypair as n input, instead if I use apikey as the name of parameter, then it works.
Strange :(

curl --globoff "http://host:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&apikey=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA&signature=482b0396526cd19d803886b4d9fd1c8f3eedaff4"

This is not consistent with other APIs in Cloudstack 4.

Thanks and Regards.

Asmita Patil Vagyani. 

-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 22 January 2013 PM 12:10
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

I tried with account and domainid , it went thru :

http://hostip:8096/client/api?command=deployVirtualMachine&serviceofferingid=9a6ff0e7-d6a3-442e-ae84-056efc03d705&templateid=4&zoneid=9412ada4-e11c-41e8-9470-ae243f46f9b5&keypair=mysshkey12&account=admin&domainid=1

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:56 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

I removed \ and executed , still gives same error:


curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"


<?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>



Thanks and Regards.

Asmita Patil Vagyani.
Tech Lead,  Sigma Software Solutions, Pune, 
T: +91-20-25661992 / 93 / 94. Extn. : 286 


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: 21 January 2013 PM 05:52
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.








RE: deployVirtualMachine API issue

Posted by Asmita Vagyani <As...@sigma-systems.com>.
Hi Sailaja,

I too finally got his working, and the problem was it doesn't accept keypair as n input, instead if I use apikey as the name of parameter, then it works.
Strange :(

curl --globoff "http://host:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&apikey=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA&signature=482b0396526cd19d803886b4d9fd1c8f3eedaff4"

This is not consistent with other APIs in Cloudstack 4.

Thanks and Regards.

Asmita Patil Vagyani. 

-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 22 January 2013 PM 12:10
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

I tried with account and domainid , it went thru :

http://hostip:8096/client/api?command=deployVirtualMachine&serviceofferingid=9a6ff0e7-d6a3-442e-ae84-056efc03d705&templateid=4&zoneid=9412ada4-e11c-41e8-9470-ae243f46f9b5&keypair=mysshkey12&account=admin&domainid=1

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:56 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

I removed \ and executed , still gives same error:


curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"


<?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>



Thanks and Regards.

Asmita Patil Vagyani.
Tech Lead,  Sigma Software Solutions, Pune, 
T: +91-20-25661992 / 93 / 94. Extn. : 286 


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: 21 January 2013 PM 05:52
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.








RE: deployVirtualMachine API issue

Posted by Sailaja Mada <sa...@citrix.com>.
Hi,

I tried with account and domainid , it went thru :

http://hostip:8096/client/api?command=deployVirtualMachine&serviceofferingid=9a6ff0e7-d6a3-442e-ae84-056efc03d705&templateid=4&zoneid=9412ada4-e11c-41e8-9470-ae243f46f9b5&keypair=mysshkey12&account=admin&domainid=1

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:56 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

I removed \ and executed , still gives same error:


curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"


<?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>



Thanks and Regards.

Asmita Patil Vagyani.
Tech Lead,  Sigma Software Solutions, Pune, 
T: +91-20-25661992 / 93 / 94. Extn. : 286 


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: 21 January 2013 PM 05:52
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.






RE: deployVirtualMachine API issue

Posted by Asmita Vagyani <As...@sigma-systems.com>.
I removed \ and executed , still gives same error:


curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&signature=f13bef4d520296e258751dd27651c461e05439b9"


<?xml version="1.0" encoding="UTF-8"?><deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150"><errorcode>431</errorcode><cserrorcode>9999</cserrorcode><errortext>A key pair with name &apos;nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg&apos; was not found.</errortext></deployvirtualmachineresponse>



Thanks and Regards.

Asmita Patil Vagyani.
Tech Lead,  Sigma Software Solutions, Pune, 
T: +91-20-25661992 / 93 / 94. Extn. : 286 


-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: 21 January 2013 PM 05:52
To: 'cloudstack-users@incubator.apache.org'
Subject: RE: deployVirtualMachine API issue

You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.






RE: deployVirtualMachine API issue

Posted by Asmita Vagyani <As...@sigma-systems.com>.
You all were right.

New issue:
[root@torvm-cloudstack-mgmt ~]# curl --globoff "http://addr:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae&keypair=nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&signature=03c0d6936c5047e52ff72c5f5bfcecbe62831c4c"

Response:
<?xml version="1.0" encoding="UTF-8"?>
	<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
	<errorcode>431</errorcode><cserrorcode>9999</cserrorcode>
	<errortext>A key pair with name &apos; nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg\&apos; was not found.</errortext></deployvirtualmachineresponse>

Where is &apos; coming frm, apikey is nH_m1ItcrsMAqeyoyIFC2toSKk_-WS2M_BkWefnlgsf8nCZYFburdw-vxkYko-YIreE2HjGiCXL3MIMH1qAQlg

Thanks and Regards.

Asmita Patil Vagyani. 


-----Original Message-----
From: Sailaja Mada [mailto:sailaja.mada@citrix.com] 
Sent: 21 January 2013 PM 05:39
To: cloudstack-users@incubator.apache.org
Subject: RE: deployVirtualMachine API issue

Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.




RE: deployVirtualMachine API issue

Posted by Sailaja Mada <sa...@citrix.com>.
Hi,

It looks like "\" is appended to Zone id. (Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) 

Can you recheck that.

Thanks,
Sailaja.M

-----Original Message-----
From: Asmita Vagyani [mailto:Asmita.Vagyani@sigma-systems.com] 
Sent: Monday, January 21, 2013 5:28 PM
To: 'cloudstack-users@incubator.apache.org'
Subject: deployVirtualMachine API issue

Hi all,

We are trying to execute the command below:

curl --globoff http://address:8096/client/api?command=deployVirtualMachine&serviceofferingid=8f2e7136-a3c9-430e-8509-c171a186a625\&templateid=87ff8fc7-4709-466d-9cb2-a88fb43e6785\&zoneid=57c0c221-56ae-418e-8037-0908d0a695ae\&keypair=bXFnKCix8VhhEGunkFbzqniHwYjgVUFr7KrUbKIc_g_tH8gWgwHc3WB0Tg7m3nE7LujhYo0-PGixkjOhtb2gKA\&signature=27feedaf58de47ad355813ae142580295ba18409


I get the following exception-

<?xml version="1.0" encoding="UTF-8"?>
<deployvirtualmachineresponse cloud-stack-version="4.0.0.20121024012150">
                <errorcode>431</errorcode>
                <cserrorcode>9999</cserrorcode>
                <errortext>Unable to execute API command deployvirtualmachine due to invalid value. Object data_center(uuid: 57c0c221-56ae-418e-8037-0908d0a695ae\) does not exist.</errortext> </deployvirtualmachineresponse>

Thanks and Regards.

Asmita Patil Vagyani.