Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 602AC10145 for ; Wed, 16 Oct 2013 04:59:07 +0000 (UTC) Received: (qmail 53240 invoked by uid 500); 16 Oct 2013 04:59:02 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 53047 invoked by uid 500); 16 Oct 2013 04:59:00 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 52982 invoked by uid 99); 16 Oct 2013 04:58:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 04:58:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [208.91.199.217] (HELO us2.outbound.mailhostbox.com) (208.91.199.217) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 04:58:54 +0000 Received: from localhost (ec2-75-101-146-23.compute-1.amazonaws.com [75.101.146.23]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: tsp@v0g0n.org) by us2.outbound.mailhostbox.com (Postfix) with ESMTPSA id 2930F26801D; Wed, 16 Oct 2013 04:58:29 +0000 (GMT) Date: Wed, 16 Oct 2013 10:28:27 +0530 From: Prasanna Santhanam To: users@cloudstack.apache.org Cc: "dev@cloudstack.apache.org" , Rohit Yadav Subject: Re: [cloudmonkey] username / password support Message-ID: <20131016045827.GA2840@cloud-2.local> Mail-Followup-To: users@cloudstack.apache.org, "dev@cloudstack.apache.org" , Rohit Yadav References: <20131016042649.GA1854@cloud-2.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CTCH-RefID: str=0001.0A020201.525E1CF9.005D,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CTCH-SenderID: tsp@apache.org X-CTCH-SenderID-TotalMessages: 1 X-CTCH-SenderID-TotalSpam: 0 X-CTCH-SenderID-TotalSuspected: 0 X-CTCH-SenderID-TotalBulk: 0 X-CTCH-SenderID-TotalConfirmed: 0 X-CTCH-SenderID-TotalRecipients: 0 X-CTCH-SenderID-TotalVirus: 0 X-CTCH-SenderID-BlueWhiteFlag: 0 X-Scanned-By: MIMEDefang 2.72 on 172.16.214.9 X-Virus-Checked: Checked by ClamAV on apache.org I prefer requests too. May be we can later switch over all of cloudmonkey to use requests just like marvin. I tested out the changes with a user account and everything works fine. But startup of cloudmonkey seems to force one to put in the username, passwd in cloudmonkey/config. On Wed, Oct 16, 2013 at 04:51:23AM +0000, Chiradeep Vittal wrote: > Sorry, urllib2 and cookiejar looked just too painful. > > On 10/15/13 9:26 PM, "Prasanna Santhanam" wrote: > > > > >I fixed this temporarily by adding the requests as a dependency. But > >may be we could do the login using urllib2 itself to avoid the > >requests dependency. > > > >+1 to username,password login. I need to add that to marvin too. > > > >On Wed, Oct 16, 2013 at 11:38:40AM +0800, Ryan Lei wrote: > >> I was unable to run cloudmonkey after applying your update. > >> My commands were: > >> > >> $ git checkout username_password_support > >> $ git pull > >> $ python setup.py build > >> $ python setup.py install > >> $ cloudmonkey > >> > >> Then I got this import error: > >> Import error in cloudmonkey.requester : No module named requests > >> > >> Switching back to master branch runs fine, however. > >> > >> > >> > >>------------------------------------------------------------------------- > >>------------------ > >> Yu-Heng (Ryan) Lei, Associate Researcher > >> Chunghwa Telecom Laboratories / Cloud Computing Laboratory > >> > >>ryanlei@cht.com.tw >>YpVkiWo8SsDdf3ZqO9AIuAPTzRnFYCUi-z4YljtI_hyVKkNHfn9F1Bn-vUWJnQ4.&URL=mail > >>to%3aryanlei%40cht.com.tw> > >> or > >> ryanlei750328@gmail.com > >> > >> > >> > >> On Wed, Oct 16, 2013 at 11:23 AM, Chiradeep Vittal < > >> Chiradeep.Vittal@citrix.com> wrote: > >> > >> > Hi folks, > >> > > >> > I modified cloudmonkey to work off of username and password. Feedback > >>and > >> > testing required. > >> > The code is in the branch username_password_support > >> > http://goo.gl/5xTgo5 > >> > > >> > Thanks > >> > -- > >> > Chiradeep > >> > > > > >-- > >Prasanna., > > > >------------------------ > >Powered by BigRock.com > > -- Prasanna., ------------------------ Powered by BigRock.com