Community
 
 
 

CloudPlatform 4.x

284 abonnés
 
Avatar
Administrator

VM with Custom - Compute Offering

Avatar

VM with Custom - Compute Offering

Hello,

       I am unable create a Virtual Machine while  connecting via api call using Customized compute offering. It generates an error " Unable to verify user credentials ". Even if I am using right api and secret key. Same keys working for non customized offering. 

 

Request to cloudstack :

 

apiKey=njvsbc4XgcJy4LietGzvPxAIaVBE5LXFt7PvoORRcxog9Uc5R97Bo2Cmx2s9NgSSpMSyoBlal_4_8GTSkPjeSQ&command=deployVirtualMachine&details%5B0%5D.cpunumber=2&details%5B0%5D.cpuspeed=1000&details%5B0%5D.memory=1024&networkids=7444fc22-20ca-4065-9875-cbcbe91cfa42&response=json&serviceofferingid=d6b264db-3c3d-4cca-8698-4d6b66a46e35&templateid=2dfa0a67-d3eb-4cbd-b7f8-e26bec871b52&zoneid=6197512c-037f-4146-8e10-517be3d881f5&signature=T9mOyRuKO9KzG4mQpXsx%2B4gTO1o%3D

 

Error :

   {"deployvirtualmachineresponse":{"uuidList":[],"errorcode":401,"errortext":"unable to verify user credentials and/or request signature"}}


Mohanapriya R MEMBERS 13 November 2015 - 13:12 PM
9 commentaires
0

Vous devez vous connecter pour laisser un commentaire.

 
 

Previous 9 commentaires

Avatar
Administrator
Avatar

VM with Custom - Compute Offering

Hello Mohanapriya
,

Please con you confirm the Cloud Platform version in use?

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES 16 November 2015 - 07:12 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

CloudStack 4.5


Mohanapriya R MEMBERS 17 November 2015 - 07:32 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

Hello, 

 

I got the same error message for a couple days ago:

http://discussions.citrix.com/topic/372854-trying-to-add-cloudplatform-to-citrix-studio-errorcode401-errortext-unable-to-verify-user-credentials-andor-request-signature-command/

 

Please check that the time is correct on the citrix cloudplatform managment server, domain controller and your client etc

 

Regards

Robert


Robert Flåten MEMBERS 17 November 2015 - 11:33 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

@Robert Thankyou. But I am not mapping  any time in url. CloudStack call in working for non-customized offering . Incase of customized it fails. 


Mohanapriya R MEMBERS 17 November 2015 - 12:54 PM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

Hi Mohanapriya,

 

Is the API call generated from CloudPlatform UI client or you are running it from different client? 

 

Is the signature generated specifically for the above API call? 


Jithin Raju CITRIX EMPLOYEES 08 December 2015 - 20:19 PM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

Its running from different api client. But signature is the problem. I formed command string as same as CloudStack. 

 

Request in CloudStack :

http://192.168.1.162:8080/client/api?command=deployVirtualMachine&response=json&zoneid=af3ed220-7e36-4459-a6ea-9587a18246c0&templateid=10dff609-d818-4193-b6ce-27d54f365d71&hypervisor=KVM&serviceofferingid=a1613485-8cdf-4d84-8b97-8c2695128a2f&details%5B0%5D.cpuNumber=3&details%5B0%5D.cpuSpeed=1500&details%5B0%5D.memory=512&iptonetworklist%5B0%5D.networkid=7efa5852-7e1f-4a26-9351-00f9d863aa3e&_=1449562629188

Request while passing through our application :

apiKey=lGMCRQI6maiFCDsKuZAHI63u1upxCrUnNrWbXAnUZZE_qyEv7ozK_yNzYvNfXgX5x5mRcedIKynzSyLA5hf8yg&command=deployVirtualMachine&details%5B0%5D.cpuNumber=3&details%5B0%5D.cpuSpeed=1500&details%5B0%5D.memory=512&hypervisor=KVM&iptonetworklist%5B0%5D.networkid=7efa5852-7e1f-4a26-9351-00f9d863aa3e&response=json&serviceofferingid=a1613485-8cdf-4d84-8b97-8c2695128a2f&templateid=10dff609-d818-4193-b6ce-27d54f365d71&zoneid=af3ed220-7e36-4459-a6ea-9587a18246c0&signature=mNWU89ICwKzfcA8yUZ1qeamDU%2B4%3D


Mohanapriya R MEMBERS 10 December 2015 - 05:31 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

Hello Mohanapriya,

 

Looks like the API call is not contructed with proper authorization? You may use the scrpt from following link to generate it.

 

https://abhisekbasu.wordpress.com/2013/11/19/how-to-generate-signature-for-cloudstack-api/

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES 10 December 2015 - 07:51 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

hi Abhisek,

          By using that signature Generation only i got that Signature. If authorization is the problem it wont work for other features. But it working fine for other features except this custom Service offering. Thing which i noticed in custom parameters like cpuNumber, cpuSpeed - Speed and Number both first letter starts with uppercase. We cant find request parameters upper case in CloudStack. But why they did for this alone ? 


Mohanapriya R MEMBERS 10 December 2015 - 11:45 AM
Actions pour les commentaires Permalien
Avatar
Administrator
Avatar

Hello Mohanapriya,

 

This one looks interesting and needs more troubleshooting. Please create a support case with our technical support team.

 

Regards,

 

Abhisek


Abhisek Basu CITRIX EMPLOYEES 11 December 2015 - 07:10 AM
Actions pour les commentaires Permalien

Top Contributors