[jira] [Commented] (CLOUDSTACK-3432) UCS:API: associatesUscProfileToBlade fails with authentication error.

2013-08-01 Thread Amogh Vasekar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13727269#comment-13727269
 ] 

Amogh Vasekar commented on CLOUDSTACK-3432:
---

Hi,
The response suggests a profile by the name "profile-for-blade-4" already 
exists in the UCS. Can you please try after deleting the profile from the UI?

> UCS:API: associatesUscProfileToBlade fails with authentication error.
> -
>
> Key: CLOUDSTACK-3432
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3432
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.2.0
> Environment: Master with UCS and Baremetal
>Reporter: Parth Jagirdar
>Assignee: Amogh Vasekar
>Priority: Blocker
>
> associatesUscProfileToBlade fails with authentication error.
> Refer to request and response below.
> Request is 
> http://10.223.132.160:8080/client/api?command=associatesUcsProfileToBlade&ucsmanagerid=14&profiledn=org-root/ls-UCS_Testing&bladeid=26&response=json&sessionkey=AgmkzfbrMK3YEVyj1qPahEtaPk4%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1373411256093
> Response is
> { "associateucsprofiletobladeresponse" : 
> {"uuidList":[],"errorcode":530,"cserrorcode":,"errortext":"ucs call 
> failed:\nsubmitted doc: inHierarchical=\"true\"> key=\"org-root/ls-profile-for-blade-26\"> statsPolicyName=\"default\" mgmtFwPolicyName=\"\" status=\"\" 
> dynamicConPolicyName=\"\" usrLbl=\"\" hostFwPolicyName=\"\" 
> vconProfileName=\"\" agentPolicyName=\"\" biosProfileName=\"\" 
> powerPolicyName=\"\" extIPState=\"none\" scrubPolicyName=\"\" 
> localDiskPolicyName=\"\" mgmtAccessPolicyName=\"\" identPoolName=\"\" 
> solPolicyName=\"\" bootPolicyName=\"\" srcTemplName=\"\" uuid=\"\" 
> dn=\"org-root/ls-profile-for-blade-26\" descr=\"\" 
> maintPolicyName=\"\"> pnDn=\"sys/chassis-1/blade-2\" 
> />\nresponse:  cookie=\"\" response=\"yes\" errorCode=\"552\" 
> invocationResult=\"service-unavailable\" errorDescr=\"Authorization 
> required\"> \n"} }
> is cookie missing?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (CLOUDSTACK-3432) UCS:API: associatesUscProfileToBlade fails with authentication error.

2013-08-02 Thread angeline shen (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13728092#comment-13728092
 ] 

angeline shen commented on CLOUDSTACK-3432:
---

Verifiedbuild

Associate profile to blade:  org-root/ls-simpleProfile   succeeds

2013-08-02 13:38:13,077 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) 
===START===  10.216.133.70 -- GET  
command=associateUcsProfileToBlade&response=json&sessionkey=TNL5%2FuKPp8B7zw%2B28T10DXjx5HY%3D&ucsmanagerid=e17249fa-edfe-460c-a6e5-67e539976789&profiledn=org-root%2Fls-simpleProfile&bladeid=abc01993-7959-4392-8a68-5737a855c1f5&_=1375476505297
2013-08-02 13:38:13,114 DEBUG [cloud.async.AsyncJobManagerImpl] 
(catalina-exec-22:null) submit async job-41 = [ 
d95ea087-4dda-4a66-a531-3923477b33f2 ], details: AsyncJobVO {id:41, userId: 2, 
accountId: 2, sessionKey: null, instanceType: None, instanceId: null, cmd: 
org.apache.cloudstack.api.AssociateUcsProfileToBladeCmd, cmdOriginator: null, 
cmdInfo: 
{"response":"json","bladeid":"abc01993-7959-4392-8a68-5737a855c1f5","sessionkey":"TNL5/uKPp8B7zw+28T10DXjx5HY\u003d","profiledn":"org-root/ls-simpleProfile","cmdEventType":"UCS.ASSOCIATEPROFILE","ctxUserId":"2","httpmethod":"GET","_":"1375476505297","ctxAccountId":"2","ctxStartEventId":"133","ucsmanagerid":"e17249fa-edfe-460c-a6e5-67e539976789"},
 cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0, 
processStatus: 0, resultCode: 0, result: null, initMsid: 7662288766739, 
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-08-02 13:38:13,116 DEBUG [cloud.api.ApiServlet] (catalina-exec-22:null) 
===END===  10.216.133.70 -- GET  
command=associateUcsProfileToBlade&response=json&sessionkey=TNL5%2FuKPp8B7zw%2B28T10DXjx5HY%3D&ucsmanagerid=e17249fa-edfe-460c-a6e5-67e539976789&profiledn=org-root%2Fls-simpleProfile&bladeid=abc01993-7959-4392-8a68-5737a855c1f5&_=1375476505297
2013-08-02 13:38:13,120 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-41:job-41 = [ d95ea087-4dda-4a66-a531-3923477b33f2 ]) Executing 
org.apache.cloudstack.api.AssociateUcsProfileToBladeCmd for job-41 = [ 
d95ea087-4dda-4a66-a531-3923477b33f2 ]
2013-08-02 13:38:13,219 DEBUG [ucs.manager.UcsManagerImpl] 
(Job-Executor-41:job-41 = [ d95ea087-4dda-4a66-a531-3923477b33f2 ]) association 
response is   
   
2013-08-02 13:38:15,228 DEBUG [ucs.manager.UcsManagerImpl] 
(Job-Executor-41:job-41 = [ d95ea087-4dda-4a66-a531-3923477b33f2 ]) association 
response is   
   




...

2013-08-02 13:40:51,004 DEBUG [agent.manager.DirectAgentAttache] 
(DirectAgent-296:null) Seq 1-1785333041: Response Received: 
2013-08-02 13:40:51,004 DEBUG [agent.transport.Request] (DirectAgent-296:null) 
Seq 1-1785333041: Processing:  { Ans: , MgmtId: 7662288766739, via: 1, Ver: v1, 
Flags: 10, 
[{"com.cloud.agent.api.UnsupportedAnswer":{"result":false,"details":"Unsupported
 command issued:com.cloud.agent.api.GetHostStatsCommand.  Are you sure you got 
the right type of server?","wait":0}}] }
2013-08-02 13:40:51,008 DEBUG [agent.transport.Request] (StatsCollector-2:null) 
Seq 1-1785333041: Received:  { Ans: , MgmtId: 7662288766739, via: 1, Ver: v1, 
Flags: 10, { UnsupportedAnswer } }
2013-08-02 13:40:51,008 WARN  [agent.manager.AgentManagerImpl] 
(StatsCollector-2:null) Unsupported Command: Unsupported command 
issued:com.cloud.agent.api.GetHostStatsCommand.  Are you sure you got the right 
type of server?
2013-08-02 13:40:51,008 DEBUG [agent.manager.AgentManagerImpl] 
(StatsCollector-2:null) Details from executing class 
com.cloud.agent.api.GetHostStatsCommand: Unsupported command 
issued:com.cloud.agent.api.GetHostStatsCommand.  Are you sure you got the right 
type of server?
2013-08-02 13:40:51,008 WARN  [cloud.server.StatsCollector] 
(StatsCollector-2:null) Received invalid host stats for host: 1
2013-08-02 13:40:51,995 DEBUG [ucs.manager.UcsManagerImpl] 
(Job-Executor-41:job-41 = [ d95ea087-4dda-4a66-a531-3923477b33f2 ]) association 
response is   
   
2013-08-02 13:40:52,376 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) 
===START===  10.216.133.70 -- GET  
command=queryAsyncJobResult&jobId=d95ea087-4dda-4a66-a531-3923477b33f2&response=json&sessionkey=TNL5%2FuKPp8B7zw%2B28T10DXjx5HY%3D&_=1375476664605
2013-08-02 13:40:52,398 DEBUG [cloud.api.ApiServlet] (catalina-exec-14:null) 
===END===  10.216.133.70 -- GET  
command=queryAsyncJobResult&jobId=d95ea087-4dda-4a66-a531-3923477b33f2&response=json&sessionkey=TNL5%2FuKPp8B7zw%2B28T10DXjx5HY%3D&_=1375476664605
2013-08-02 13:40:54,009 DEBUG [ucs.manager.UcsManagerImpl] 
(Job-Executor-41:job-41 = [ d95ea087-4dda-4a66-a531-3923477b33f2 ]) association 
response is   
   
2013-08-02 13:40:55,384 DEBUG [cloud.api.ApiServlet] (catalina-exec-8:null) 
===START===  10.216.133.70 -- GET  
command=queryAsyncJobResult&jobId=d95ea087-4dda-4a66-a531-3923477b33f2&response=json&sessionkey=TNL5%2FuKPp8B7zw%2

[jira] [Commented] (CLOUDSTACK-3432) UCS:API: associatesUscProfileToBlade fails with authentication error.

2013-07-11 Thread Amogh Vasekar (JIRA)

[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-3432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13706494#comment-13706494
 ] 

Amogh Vasekar commented on CLOUDSTACK-3432:
---

Works now. Sample response



> UCS:API: associatesUscProfileToBlade fails with authentication error.
> -
>
> Key: CLOUDSTACK-3432
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3432
> Project: CloudStack
>  Issue Type: Bug
>  Security Level: Public(Anyone can view this level - this is the 
> default.) 
>  Components: API
>Affects Versions: 4.2.0
> Environment: Master with UCS and Baremetal
>Reporter: Parth Jagirdar
>Assignee: Amogh Vasekar
>Priority: Blocker
>
> associatesUscProfileToBlade fails with authentication error.
> Refer to request and response below.
> Request is 
> http://10.223.132.160:8080/client/api?command=associatesUcsProfileToBlade&ucsmanagerid=14&profiledn=org-root/ls-UCS_Testing&bladeid=26&response=json&sessionkey=AgmkzfbrMK3YEVyj1qPahEtaPk4%3D&fetchLatest=false&sortBy=usage&page=0&pagesize=8&_=1373411256093
> Response is
> { "associateucsprofiletobladeresponse" : 
> {"uuidList":[],"errorcode":530,"cserrorcode":,"errortext":"ucs call 
> failed:\nsubmitted doc: inHierarchical=\"true\"> key=\"org-root/ls-profile-for-blade-26\"> statsPolicyName=\"default\" mgmtFwPolicyName=\"\" status=\"\" 
> dynamicConPolicyName=\"\" usrLbl=\"\" hostFwPolicyName=\"\" 
> vconProfileName=\"\" agentPolicyName=\"\" biosProfileName=\"\" 
> powerPolicyName=\"\" extIPState=\"none\" scrubPolicyName=\"\" 
> localDiskPolicyName=\"\" mgmtAccessPolicyName=\"\" identPoolName=\"\" 
> solPolicyName=\"\" bootPolicyName=\"\" srcTemplName=\"\" uuid=\"\" 
> dn=\"org-root/ls-profile-for-blade-26\" descr=\"\" 
> maintPolicyName=\"\"> pnDn=\"sys/chassis-1/blade-2\" 
> />\nresponse:  cookie=\"\" response=\"yes\" errorCode=\"552\" 
> invocationResult=\"service-unavailable\" errorDescr=\"Authorization 
> required\"> \n"} }
> is cookie missing?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira