AW: AW: API deploy virtualmachine failed with custom offering
Hi! Yes, it works using the UI... I'll probably set up an older ACS version and compare... Ciao Martin -Ursprüngliche Nachricht- Von: Yiping Zhang [mailto:yzh...@marketo.com] Gesendet: Mittwoch, 23. März 2016 20:12 An: users@cloudstack.apache.org Betreff: Re: AW: API deploy virtualmachine failed with custom offering That syntax worked for me (CS 4.5.1, cloudmonkey 5.3.1). Can you create a VM in UI, using the same zone/domain/template/network/serviceoffering selections as used in your API call? I suspect that your combined selections are not valid, for example: template/network is not available to the selected zone, or something similar to that effect. Yiping On 3/23/16, 9:28 AM, "Martin Emrich" <martin.emr...@empolis.com> wrote: >Hi! > >Sorry, same effect: > >(local) > deploy virtualmachine >zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 >serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a >details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].Memory=512 >name=test1 Error 401 Authentication error errorcode = 401 errortext = >unable to verify user credentials and/or request signature >uuidList: > >(BTW: testing now on my litte test cloud running 4.7.1, cloudmonkey is >5.3.2) > >Thanks, > >Martin > >-Ursprüngliche Nachricht- >Von: Patrick Miller [mailto:patrick.mil...@sungardas.com] >Gesendet: Mittwoch, 23. März 2016 16:50 >An: users@cloudstack.apache.org >Betreff: Re: API deploy virtualmachine failed with custom offering > >Martin: >If you look at the ui test for memory >details%5B0%5D.memory=512 Notice there is no "M" megabytes is implied. > >Please try: >deploy virtualmachine zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 >serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a >details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].memory=512 >name=test1 > >Just removing the "M" from 512. > >Hope this helps. > >Patrick > >Patrick Miller ▪ Senior Systems Engineer ▪ Sungard Availability >Services >2481 Deerwood Dr, San Ramon, Ca 94583 ▪ Office: 925-831-7738 >patrick.mil...@sungardas.com <patrick.mil...@sungard.com> ▪ >www.sungardas.com > > >CONFIDENTIALITY: This e-mail (including any attachments) may contain >confidential, proprietary and privileged information, and unauthorized >disclosure or use is prohibited. If you received this e-mail in error, please >notify the sender and delete this e-mail from your system. > >On Wed, Mar 23, 2016 at 8:14 AM, Martin Emrich ><martin.emr...@empolis.com> >wrote: > >> Hi! >> >> I also tried with [0], but it fails, too. >> >> The command line: >> >> (local) > deploy virtualmachine >> zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >> domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >> templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >> networkids=42b962bf-27f1-434b-bd14-239a909a206e >> serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a >> details[0].cpuNumber=2 details[0].cpuSpeed=1000 >> details[0].Memory=512M >> name=test1 >> Error 401 Authentication error >> errorcode = 401 >> errortext = unable to verify user credentials and/or request >> signature >> uuidList: >> >> From the cloudmonkey log: >> >> 2016-03-23 15:09:23,953 - connectionpool.py:207 - [INFO] Starting new >> HTTP connection (1): localhost >> 2016-03-23 15:09:23,984 - connectionpool.py:387 - [DEBUG] "GET >> /client/api?networkids=42b962bf-27f1-434b-bd14-239a909a206e= >> 6 >> ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9oj4BbFevrrNL92dHA3N_em >> a >> WHirVzFLxhKenCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8VYxjGtPLJg=test >> 1 >> %5B0%5D.cpuSpeed=1000=2016-03-23T14%3A19%3A23%2B& >> s >> ignatureversion=3=9c667177-4f6e-4d51-b841-2b83f5e851ac >> % >> 5B0%5D.cpuNumber=2=deployVirtualMachine=14c5e883-c >> 6 >> c3-4fed-83d5-451d1064dcad=json=VDammkzNSFJI25IZNRz >> M >> X9I0K7U%3D=8aab1d01-1ec3-4eec-85ab-6caba370288a >> a >> ils%5B0%5D.Memory=512M >> HTTP/1.1" 401 137 >> 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Request sent: >> http://localhost:8080/client/api?networkids=42b962bf-27f1-434b-bd14-2 >> 3 >> 9a909a206e=6ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9o >> j >> 4BbFevrrNL92dHA3N_emaWHirVzFL
Re: AW: API deploy virtualmachine failed with custom offering
That syntax worked for me (CS 4.5.1, cloudmonkey 5.3.1). Can you create a VM in UI, using the same zone/domain/template/network/serviceoffering selections as used in your API call? I suspect that your combined selections are not valid, for example: template/network is not available to the selected zone, or something similar to that effect. Yiping On 3/23/16, 9:28 AM, "Martin Emrich" <martin.emr...@empolis.com> wrote: >Hi! > >Sorry, same effect: > >(local) > deploy virtualmachine zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 >serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a details[0].cpuNumber=2 >details[0].cpuSpeed=1000 details[0].Memory=512 name=test1 >Error 401 Authentication error >errorcode = 401 >errortext = unable to verify user credentials and/or request signature >uuidList: > >(BTW: testing now on my litte test cloud running 4.7.1, cloudmonkey is 5.3.2) > >Thanks, > >Martin > >-Ursprüngliche Nachricht- >Von: Patrick Miller [mailto:patrick.mil...@sungardas.com] >Gesendet: Mittwoch, 23. März 2016 16:50 >An: users@cloudstack.apache.org >Betreff: Re: API deploy virtualmachine failed with custom offering > >Martin: >If you look at the ui test for memory >details%5B0%5D.memory=512 Notice there is no "M" megabytes is implied. > >Please try: >deploy virtualmachine zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 >serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a >details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].memory=512 >name=test1 > >Just removing the "M" from 512. > >Hope this helps. > >Patrick > >Patrick Miller ▪ Senior Systems Engineer ▪ Sungard Availability Services >2481 Deerwood Dr, San Ramon, Ca 94583 ▪ Office: 925-831-7738 >patrick.mil...@sungardas.com <patrick.mil...@sungard.com> ▪ www.sungardas.com > > >CONFIDENTIALITY: This e-mail (including any attachments) may contain >confidential, proprietary and privileged information, and unauthorized >disclosure or use is prohibited. If you received this e-mail in error, please >notify the sender and delete this e-mail from your system. > >On Wed, Mar 23, 2016 at 8:14 AM, Martin Emrich <martin.emr...@empolis.com> >wrote: > >> Hi! >> >> I also tried with [0], but it fails, too. >> >> The command line: >> >> (local) > deploy virtualmachine >> zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac >> domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 >> templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad >> networkids=42b962bf-27f1-434b-bd14-239a909a206e >> serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a >> details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].Memory=512M >> name=test1 >> Error 401 Authentication error >> errorcode = 401 >> errortext = unable to verify user credentials and/or request signature >> uuidList: >> >> From the cloudmonkey log: >> >> 2016-03-23 15:09:23,953 - connectionpool.py:207 - [INFO] Starting new >> HTTP connection (1): localhost >> 2016-03-23 15:09:23,984 - connectionpool.py:387 - [DEBUG] "GET >> /client/api?networkids=42b962bf-27f1-434b-bd14-239a909a206e=6 >> ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9oj4BbFevrrNL92dHA3N_ema >> WHirVzFLxhKenCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8VYxjGtPLJg=test1 >> %5B0%5D.cpuSpeed=1000=2016-03-23T14%3A19%3A23%2B >> ignatureversion=3=9c667177-4f6e-4d51-b841-2b83f5e851ac% >> 5B0%5D.cpuNumber=2=deployVirtualMachine=14c5e883-c6 >> c3-4fed-83d5-451d1064dcad=json=VDammkzNSFJI25IZNRzM >> X9I0K7U%3D=8aab1d01-1ec3-4eec-85ab-6caba370288a >> ils%5B0%5D.Memory=512M >> HTTP/1.1" 401 137 >> 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Request sent: >> http://localhost:8080/client/api?networkids=42b962bf-27f1-434b-bd14-23 >> 9a909a206e=6ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9oj >> 4BbFevrrNL92dHA3N_emaWHirVzFLxhKenCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8 >> VYxjGtPLJg=test1%5B0%5D.cpuSpeed=1000=2016-03-23T >> 14%3A19%3A23%2B=3=9c667177-4f6e-4d51-b841- >> 2b83f5e851ac%5B0%5D.cpuNumber=2=deployVirtualMachine >> emplateid=14c5e883-c6c3-4fed-83d5-451d1064dcad=json >> =VDammkzNSFJI25IZNRzMX9I0K7U%3D=8aab1d01-1ec3-4eec-8 >> 5ab-6caba370288a%5B0%5D.Memory=512M >> 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Response received: >> {"deployvirtual
AW: API deploy virtualmachine failed with custom offering
Hi! Sorry, same effect: (local) > deploy virtualmachine zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].Memory=512 name=test1 Error 401 Authentication error errorcode = 401 errortext = unable to verify user credentials and/or request signature uuidList: (BTW: testing now on my litte test cloud running 4.7.1, cloudmonkey is 5.3.2) Thanks, Martin -Ursprüngliche Nachricht- Von: Patrick Miller [mailto:patrick.mil...@sungardas.com] Gesendet: Mittwoch, 23. März 2016 16:50 An: users@cloudstack.apache.org Betreff: Re: API deploy virtualmachine failed with custom offering Martin: If you look at the ui test for memory details%5B0%5D.memory=512 Notice there is no "M" megabytes is implied. Please try: deploy virtualmachine zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].memory=512 name=test1 Just removing the "M" from 512. Hope this helps. Patrick Patrick Miller ▪ Senior Systems Engineer ▪ Sungard Availability Services 2481 Deerwood Dr, San Ramon, Ca 94583 ▪ Office: 925-831-7738 patrick.mil...@sungardas.com <patrick.mil...@sungard.com> ▪ www.sungardas.com CONFIDENTIALITY: This e-mail (including any attachments) may contain confidential, proprietary and privileged information, and unauthorized disclosure or use is prohibited. If you received this e-mail in error, please notify the sender and delete this e-mail from your system. On Wed, Mar 23, 2016 at 8:14 AM, Martin Emrich <martin.emr...@empolis.com> wrote: > Hi! > > I also tried with [0], but it fails, too. > > The command line: > > (local) > deploy virtualmachine > zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac > domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 > templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad > networkids=42b962bf-27f1-434b-bd14-239a909a206e > serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a > details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].Memory=512M > name=test1 > Error 401 Authentication error > errorcode = 401 > errortext = unable to verify user credentials and/or request signature > uuidList: > > From the cloudmonkey log: > > 2016-03-23 15:09:23,953 - connectionpool.py:207 - [INFO] Starting new > HTTP connection (1): localhost > 2016-03-23 15:09:23,984 - connectionpool.py:387 - [DEBUG] "GET > /client/api?networkids=42b962bf-27f1-434b-bd14-239a909a206e=6 > ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9oj4BbFevrrNL92dHA3N_ema > WHirVzFLxhKenCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8VYxjGtPLJg=test1 > %5B0%5D.cpuSpeed=1000=2016-03-23T14%3A19%3A23%2B > ignatureversion=3=9c667177-4f6e-4d51-b841-2b83f5e851ac% > 5B0%5D.cpuNumber=2=deployVirtualMachine=14c5e883-c6 > c3-4fed-83d5-451d1064dcad=json=VDammkzNSFJI25IZNRzM > X9I0K7U%3D=8aab1d01-1ec3-4eec-85ab-6caba370288a > ils%5B0%5D.Memory=512M > HTTP/1.1" 401 137 > 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Request sent: > http://localhost:8080/client/api?networkids=42b962bf-27f1-434b-bd14-23 > 9a909a206e=6ff469a6-d975-11e5-98dc-001e8c29bd11=M5-9oj > 4BbFevrrNL92dHA3N_emaWHirVzFLxhKenCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8 > VYxjGtPLJg=test1%5B0%5D.cpuSpeed=1000=2016-03-23T > 14%3A19%3A23%2B=3=9c667177-4f6e-4d51-b841- > 2b83f5e851ac%5B0%5D.cpuNumber=2=deployVirtualMachine > emplateid=14c5e883-c6c3-4fed-83d5-451d1064dcad=json > =VDammkzNSFJI25IZNRzMX9I0K7U%3D=8aab1d01-1ec3-4eec-8 > 5ab-6caba370288a%5B0%5D.Memory=512M > 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Response received: > {"deployvirtualmachineresponse":{"uuidList":[],"errorcode":401,"errort > ext":"unable to verify user credentials and/or request signature"}} > 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] Error: 401 > Authentication error > 2016-03-23 15:09:23,985 - requester.py:49 - [DEBUG] END > Request > > This is the corresponding line in the cloudstack management log: > > 2016-03-23 15:09:23,963 DEBUG [c.c.a.ApiServlet] > (catalina-exec-10:ctx-57c16d4d) (logid:e9a26d51) ===START=== > 0:0:0:0:0:0:0:1 -- GET > networkids=42b962bf-27f1-434b-bd14-239a909a206e=6ff469a6-d975 > -11e5-98dc-001e8c29bd11=M5-9oj4BbFevrrNL92dHA3N_emaWHirVzFLxhKe > nCT8z8dMpzb1PmeeAJv2ICmNuSsnj6tl371T8VYxjGtPLJg=test1%5B0 > %5D.cpuSpeed=1000=2016-03-23T14%3A19%3A23%2B > ion=3=9c667177-4f6e-4d5
Re: API deploy virtualmachine failed with custom offering
a370288a%5B0%5D.Memory=512M > > If I just change "Memory" to "memory", I get this (I know, there's also > another network ID): > > (local) > deploy virtualmachine > zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac > domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 > templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad > networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 > serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a > details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].Memory=512M > name=test1 > Error 401 Authentication error > errorcode = 401 > errortext = unable to verify user credentials and/or request signature > uuidList: > > (local) > deploy virtualmachine > zoneid=9c667177-4f6e-4d51-b841-2b83f5e851ac > domainid=6ff469a6-d975-11e5-98dc-001e8c29bd11 > templateid=14c5e883-c6c3-4fed-83d5-451d1064dcad > networkids=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23 > serviceofferingid=8aab1d01-1ec3-4eec-85ab-6caba370288a > details[0].cpuNumber=2 details[0].cpuSpeed=1000 details[0].memory=512M > name=test1 > Error 431: Invalid memory value, specify a value between 32 and 2147483647 > MB > cserrorcode = 4350 > errorcode = 431 > errortext = Invalid memory value, specify a value between 32 and > 2147483647 MB > uuidList: > > So it looks like the key is only being validated when the commands are > validated successfully: If the call would be valid, it fails at the key > check, otherwise it is rejected, too. > > Creating a VM via the Web GUI works fine, here's a request from the > management.log: > > 2016-03-23 15:10:03,242 DEBUG [c.c.a.ApiServlet] > (catalina-exec-12:ctx-1c7c46b2) (logid:2387765e) ===START=== 172.24.187.83 > -- GET > command=deployVirtualMachine=json=9c667177-4f6e-4d51-b841-2b83f5e851ac=14c5e883-c6c3-4fed-83d5-451d1064dcad=XenServer=8aab1d01-1ec3-4eec-85ab-6caba370288a%5B0%5D.cpuNumber=2%5B0%5D.cpuSpeed=1000%5B0%5D.memory=512%5B0%5D.networkid=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23=test2=test2&_=1458742213708 > 2016-03-23 15:10:03,260 DEBUG [c.c.u.AccountManagerImpl] > (catalina-exec-12:ctx-1c7c46b2 ctx-e288c668) (logid:2387765e) Access > granted to Acct[f191fec4-d975-11e5-98dc-001e8c29bd11-admin] to > org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$83782f89@580c534b > by AffinityGroupAccessChecker > > There's no signature at all, but the _ is probably some kind of session > ID... > > Ciao > > Martin > > > > -Ursprüngliche Nachricht- > Von: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] > Gesendet: Mittwoch, 23. März 2016 15:28 > An: users@cloudstack.apache.org > Betreff: RE: API deploy virtualmachine failed with custom offering > > Hi Martin, > > The details argument for this API is a map, CloudMonkey simply wraps given > arguments and creates a HTTP request so for maps it's always been a syntax > like map[0].key=value. The usage of maps has been documented here: > > https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Argumentpassing > > This has not changed since 4.1/4.2. You may also debug by tailing > cloudmonkey logs if you get further issues: tail -f ~/.cloudmonkey/log > > Though I think it's a good idea to automatically add this weird syntax so > users can pass maps directly as map.key=value (your syntax). I'll see what > I can do to fix this :) > > Regards. > > Regards, > > Rohit Yadav > > rohit.ya...@shapeblue.com > www.shapeblue.com > 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue > > -Original Message- > From: Martin Emrich [mailto:martin.emr...@empolis.com] > Sent: Wednesday, March 23, 2016 2:50 PM > To: users@cloudstack.apache.org > Subject: API deploy virtualmachine failed with custom offering > > HI! > > I try to deploy a virtual machine with a custom offering via the API. But > I get "401 unable to verify user credentials and/or request signature". > First I thought my signing code is wonky (although it worked fine for over > a year now)... But if I use cloudmonkey I get the same: > > (local) > deploy virtualmachine > zoneid=e99e796c-4e5c-4549-a0d7-ddd3d8526c06 > domainid=5b6fbb96-db68-11e3-86e7-0030487e0d0c name=martin1 > serviceofferingid=d16eb08f-ad36-496e-a7bd-b5e43f104ce6 > details.cpuSpeed=1000 details.Memory=1024MB details.cpuNumber=2 > networkids=0ba76ecd-39cf-403e-bbf7-68e4c44e43ac > templateid=dc3c32ca-21a2-46a4-83f1-229d83b0588d > Error 401 Authentication error > errorcode = 401 > errortext = unable to verify user credentials and/or request signature > uuidList: > (local) > > > It only happens when I specify the details[0] values, so maybe there's > something wrong regarding the square braces []? > > I use ACS 4.8.0, and I remember that it worked some time ago with 4.4.3. > > Thanks for any hints! > > Regards > > Martin > >
AW: API deploy virtualmachine failed with custom offering
ise it is rejected, too. Creating a VM via the Web GUI works fine, here's a request from the management.log: 2016-03-23 15:10:03,242 DEBUG [c.c.a.ApiServlet] (catalina-exec-12:ctx-1c7c46b2) (logid:2387765e) ===START=== 172.24.187.83 -- GET command=deployVirtualMachine=json=9c667177-4f6e-4d51-b841-2b83f5e851ac=14c5e883-c6c3-4fed-83d5-451d1064dcad=XenServer=8aab1d01-1ec3-4eec-85ab-6caba370288a%5B0%5D.cpuNumber=2%5B0%5D.cpuSpeed=1000%5B0%5D.memory=512%5B0%5D.networkid=9cb521cf-4e31-4e4e-9cc3-0594c0d86b23=test2=test2&_=1458742213708 2016-03-23 15:10:03,260 DEBUG [c.c.u.AccountManagerImpl] (catalina-exec-12:ctx-1c7c46b2 ctx-e288c668) (logid:2387765e) Access granted to Acct[f191fec4-d975-11e5-98dc-001e8c29bd11-admin] to org.apache.cloudstack.quota.vo.ServiceOfferingVO$$EnhancerByCGLIB$$83782f89@580c534b by AffinityGroupAccessChecker There's no signature at all, but the _ is probably some kind of session ID... Ciao Martin -Ursprüngliche Nachricht- Von: Rohit Yadav [mailto:rohit.ya...@shapeblue.com] Gesendet: Mittwoch, 23. März 2016 15:28 An: users@cloudstack.apache.org Betreff: RE: API deploy virtualmachine failed with custom offering Hi Martin, The details argument for this API is a map, CloudMonkey simply wraps given arguments and creates a HTTP request so for maps it's always been a syntax like map[0].key=value. The usage of maps has been documented here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Argumentpassing This has not changed since 4.1/4.2. You may also debug by tailing cloudmonkey logs if you get further issues: tail -f ~/.cloudmonkey/log Though I think it's a good idea to automatically add this weird syntax so users can pass maps directly as map.key=value (your syntax). I'll see what I can do to fix this :) Regards. Regards, Rohit Yadav rohit.ya...@shapeblue.com www.shapeblue.com 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue -Original Message- From: Martin Emrich [mailto:martin.emr...@empolis.com] Sent: Wednesday, March 23, 2016 2:50 PM To: users@cloudstack.apache.org Subject: API deploy virtualmachine failed with custom offering HI! I try to deploy a virtual machine with a custom offering via the API. But I get "401 unable to verify user credentials and/or request signature". First I thought my signing code is wonky (although it worked fine for over a year now)... But if I use cloudmonkey I get the same: (local) > deploy virtualmachine zoneid=e99e796c-4e5c-4549-a0d7-ddd3d8526c06 domainid=5b6fbb96-db68-11e3-86e7-0030487e0d0c name=martin1 serviceofferingid=d16eb08f-ad36-496e-a7bd-b5e43f104ce6 details.cpuSpeed=1000 details.Memory=1024MB details.cpuNumber=2 networkids=0ba76ecd-39cf-403e-bbf7-68e4c44e43ac templateid=dc3c32ca-21a2-46a4-83f1-229d83b0588d Error 401 Authentication error errorcode = 401 errortext = unable to verify user credentials and/or request signature uuidList: (local) > It only happens when I specify the details[0] values, so maybe there's something wrong regarding the square braces []? I use ACS 4.8.0, and I remember that it worked some time ago with 4.4.3. Thanks for any hints! Regards Martin
RE: API deploy virtualmachine failed with custom offering
Hi Martin, The details argument for this API is a map, CloudMonkey simply wraps given arguments and creates a HTTP request so for maps it's always been a syntax like map[0].key=value. The usage of maps has been documented here: https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+cloudmonkey+CLI#CloudStackcloudmonkeyCLI-Argumentpassing This has not changed since 4.1/4.2. You may also debug by tailing cloudmonkey logs if you get further issues: tail -f ~/.cloudmonkey/log Though I think it's a good idea to automatically add this weird syntax so users can pass maps directly as map.key=value (your syntax). I'll see what I can do to fix this :) Regards. Regards, Rohit Yadav rohit.ya...@shapeblue.com www.shapeblue.com 53 Chandos Place, Covent Garden, London WC2N 4HSUK @shapeblue -Original Message- From: Martin Emrich [mailto:martin.emr...@empolis.com] Sent: Wednesday, March 23, 2016 2:50 PM To: users@cloudstack.apache.org Subject: API deploy virtualmachine failed with custom offering HI! I try to deploy a virtual machine with a custom offering via the API. But I get "401 unable to verify user credentials and/or request signature". First I thought my signing code is wonky (although it worked fine for over a year now)... But if I use cloudmonkey I get the same: (local) > deploy virtualmachine zoneid=e99e796c-4e5c-4549-a0d7-ddd3d8526c06 domainid=5b6fbb96-db68-11e3-86e7-0030487e0d0c name=martin1 serviceofferingid=d16eb08f-ad36-496e-a7bd-b5e43f104ce6 details.cpuSpeed=1000 details.Memory=1024MB details.cpuNumber=2 networkids=0ba76ecd-39cf-403e-bbf7-68e4c44e43ac templateid=dc3c32ca-21a2-46a4-83f1-229d83b0588d Error 401 Authentication error errorcode = 401 errortext = unable to verify user credentials and/or request signature uuidList: (local) > It only happens when I specify the details[0] values, so maybe there's something wrong regarding the square braces []? I use ACS 4.8.0, and I remember that it worked some time ago with 4.4.3. Thanks for any hints! Regards Martin
API deploy virtualmachine failed with custom offering
HI! I try to deploy a virtual machine with a custom offering via the API. But I get "401 unable to verify user credentials and/or request signature". First I thought my signing code is wonky (although it worked fine for over a year now)... But if I use cloudmonkey I get the same: (local) > deploy virtualmachine zoneid=e99e796c-4e5c-4549-a0d7-ddd3d8526c06 domainid=5b6fbb96-db68-11e3-86e7-0030487e0d0c name=martin1 serviceofferingid=d16eb08f-ad36-496e-a7bd-b5e43f104ce6 details.cpuSpeed=1000 details.Memory=1024MB details.cpuNumber=2 networkids=0ba76ecd-39cf-403e-bbf7-68e4c44e43ac templateid=dc3c32ca-21a2-46a4-83f1-229d83b0588d Error 401 Authentication error errorcode = 401 errortext = unable to verify user credentials and/or request signature uuidList: (local) > It only happens when I specify the details[0] values, so maybe there's something wrong regarding the square braces []? I use ACS 4.8.0, and I remember that it worked some time ago with 4.4.3. Thanks for any hints! Regards Martin