Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 634A510A72 for ; Thu, 18 Jul 2013 23:36:48 +0000 (UTC) Received: (qmail 86424 invoked by uid 500); 18 Jul 2013 23:36:48 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 86410 invoked by uid 500); 18 Jul 2013 23:36:48 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 86403 invoked by uid 500); 18 Jul 2013 23:36:48 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 86399 invoked by uid 99); 18 Jul 2013 23:36:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jul 2013 23:36:48 +0000 Date: Thu, 18 Jul 2013 23:36:48 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-3426) UCS: Session cookie refresh must be supported. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-3426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713095#comment-13713095 ] ASF subversion and git services commented on CLOUDSTACK-3426: ------------------------------------------------------------- Commit 1c8555eed187c0f291c2be2d5ae8111d44e19c96 in branch refs/heads/4.2 from [~frank.zhang] [ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=1c8555e ] CLOUDSTACK-3426 UCS: Session cookie refresh must be supported. add missing plugins/hypervisors/ucs/src/com/cloud/ucs/structure/UcsCookie.java > UCS: Session cookie refresh must be supported. > ---------------------------------------------- > > Key: CLOUDSTACK-3426 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-3426 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the default.) > Components: API, Management Server > Affects Versions: 4.2.0 > Environment: Master with UCS and Baremetal > Reporter: Parth Jagirdar > Assignee: Amogh Vasekar > Priority: Blocker > > A stale cookie will raise authentication error and subsequent API calls will fail. > We need a mechanism to refresh cookie based on recommendations below. > While executing listUCSProfiles:: > { "listucsprofileresponse" : {"uuidList":[],"errorcode":530,"cserrorcode":9999,"errortext":"ucs call failed:\nsubmitted doc:\nresponse: \n"} } > Here is the description from UCS API programming guide. (Full version here:: http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/api/overview.html#wp1127584) > Failed Requests > The response to a failed request includes XML attributes for errorCode and errorDescr. The following is an example of a response to a failed request: > cookie="" > response="yes" > errorCode="103" > invocationResult="unidentified-fail" > errorDescr="can't create; object already exists."> > > From forums (http://developer.cisco.com/web/unifiedcomputing/community/-/message_boards/message/2774526?p_p_auth=iBnpvD2j) > And from here (http://developer.cisco.com/web/unifiedcomputing/blogroll/-/blogs/ucs-xml-api-hello-world) > We have an authentication cookie but this cookie will expire in two hours, the output from the aaaLogin recommends a cookie refresh every 10 minutes. To refresh the authentication cookie use the aaaRefresh method. > So basically we need a mechanism for cookie refresh. Which we do not have for now. > When I tried to add a new manager (so that cookie is fresh ??) ListProfiles succeeded. -- 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