Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1131417639 for ; Wed, 22 Jul 2015 20:25:09 +0000 (UTC) Received: (qmail 8440 invoked by uid 500); 22 Jul 2015 20:25:04 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 8389 invoked by uid 500); 22 Jul 2015 20:25:04 -0000 Mailing-List: contact dev-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.apache.org Delivered-To: mailing list dev@aurora.apache.org Received: (qmail 8377 invoked by uid 99); 22 Jul 2015 20:25:03 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 20:25:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 38C051A7673 for ; Wed, 22 Jul 2015 20:25:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.14 X-Spam-Level: *** X-Spam-Status: No, score=3.14 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, KAM_LOTSOFHASH=0.25, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id qOpA-7ule7FC for ; Wed, 22 Jul 2015 20:24:52 +0000 (UTC) Received: from nm38-vm8.bullet.mail.ne1.yahoo.com (nm38-vm8.bullet.mail.ne1.yahoo.com [98.138.229.152]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id AE04320E8F for ; Wed, 22 Jul 2015 20:24:51 +0000 (UTC) Received: from [127.0.0.1] by nm38.bullet.mail.ne1.yahoo.com with NNFMP; 22 Jul 2015 20:22:38 -0000 Received: from [98.138.101.131] by nm38.bullet.mail.ne1.yahoo.com with NNFMP; 22 Jul 2015 20:18:50 -0000 Received: from [98.139.215.140] by tm19.bullet.mail.ne1.yahoo.com with NNFMP; 22 Jul 2015 20:18:50 -0000 Received: from [98.139.212.240] by tm11.bullet.mail.bf1.yahoo.com with NNFMP; 22 Jul 2015 20:18:50 -0000 Received: from [127.0.0.1] by omp1049.mail.bf1.yahoo.com with NNFMP; 22 Jul 2015 20:18:50 -0000 X-Yahoo-Newman-Property: ymail-4 X-Yahoo-Newman-Id: 98707.49118.bm@omp1049.mail.bf1.yahoo.com X-YMail-OSG: zD1RUdIVM1nlZTRvjb2yfOXHLf2TlhJuHKqRCLnX87M9Bd5CWlKuLmbIsK687fT L.jOa8dGgYdvux7lCOTV7urssAwoQlKldU64h7BHyEMMYSlfMMRIC2N_aChCKsSdgtX3y8ZxL2mt 28m7h1v6WJA1g9sUhNURXamTzrvr5qxkb2A4uOiwe0u.Nm9hBEEZR3iAYOzdU9h9wV3xGoR5Se4p wUnFtpzXReJYpbMzJLcJf4a2.dNF3_yC37dI1VXwZ72cCVPaZO6kizbFpS2yORW7IY23Sp3klaIg zp5seh4KW9kwqQkljcFOOIClnsyfNjaMfwl.jGa0Va2jfJOy816mdjEN4qtkCQEnpXlEw8Z_pB6n eREAQs4E_D.zkM54pStbpJ6AOImWVqKFsYBgsci098HXNTgsZTjAwuwrVizI9Bi3NlHofVkHVzNo GT6lHzl6dobYeQQvBueJL4QicWhi_.SEtOWqVUGzbUIko2UMoZhy5Iob2KCsbHkeA24B9ZIr0YfI ERaKlHLY2OEKpw7Tc6KjC Received: by 76.13.27.49; Wed, 22 Jul 2015 20:18:49 +0000 Date: Wed, 22 Jul 2015 20:18:49 +0000 (UTC) From: meghdoot bhattacharya Reply-To: meghdoot bhattacharya To: "dev@aurora.apache.org" Message-ID: <191515313.705024.1437596329186.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: http auth and aurora tutorial MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_705023_1254048136.1437596329180" ------=_Part_705023_1254048136.1437596329180 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Kevin what is the fix for this?Not sure what is causing this but we are not= icing this as well and the odd thing is some of us has 192.X.X.X registered= and but we are finding cases where 127.0.1.1 is there as well. Thx From: Kevin Sweeney To: dev@aurora.apache.org=20 Sent: Monday, July 6, 2015 6:23 PM Subject: Re: http auth and aurora tutorial =20 I just reproduced this as well - the issue appears to be that the scheduler is registering in ZooKeeper with an IP address of 127.0.1.1, but the netrc file is configured for 192.168.33.7. vagrant@aurora:~$ PEX_INTERPRETER=3D1 aurora Python 2.7.6 (default, Jun 22 2015, 17:58:13) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. (InteractiveConsole) >>> from kazoo.client import KazooClient >>> from twitter.common.zookeeper.serverset import get_serverset_hosts, ServiceInstance >>> client =3D KazooClient() >>> client.start() >>> hosts =3D get_serverset_hosts('/aurora/scheduler', client) >>> [ServiceInstance.to_dict(host) for host in hosts] [{'status': 'ALIVE', 'additionalEndpoints': {u'http': {'host': u'*127.0.1.1= *', 'port': 8081}}, 'serviceEndpoint': {'host': u'*127.0.1.1*', 'port': 8081}}] On Mon, Jul 6, 2015 at 10:43 AM, Bill Farner wrote: > I got as far as creating a job following the tutorial [1] and didn't > encounter any issues. > > The client is configured for basic auth, just in a non-obvious way with a > .netrc file [2].=C2=A0 This is certainly confusing when the clusters.json > plainly suggests that there is no auth happening [3].=C2=A0 This is the r= esult > of our move to push authentication down from the application layer, which > is what the client-side clusters.json entry is for. > > Hopefully this clear things up, and if you're encountering any errors you > think might be related please report back! > > [1] > > https://github.com/apache/aurora/blob/14e7b84f4303968029c3803e9b096908f34= 99d57/docs/tutorial.md#creating-the-job > [2] > > https://github.com/apache/aurora/blob/be75c36f6ce0b2ca6cc7a910b64e2bb9ca4= 0953d/examples/vagrant/provision-dev-cluster.sh#L92-L99 > [3] > > https://github.com/apache/aurora/blob/056c35b169874023760edca4fcc222c1ad2= 1d8b1/examples/vagrant/clusters.json#L5 > > -=3DBill > > On Sun, Jul 5, 2015 at 6:01 PM, Mauricio Garavaglia < > mauriciogaravaglia@gmail.com> wrote: > > > Hi, > > the vagrant setup seems to enable http_authentication_mechanism=3DBASIC= in > > /examples/vagrant/upstart/aurora-scheduler.conf but, AFAIK, the aurora > CLI > > client doesn't support authentication yet. This affects the tutorial > since > > this is not considered and is not pretty obvious why it doesn't work. > Would > > it make sense to get rid of the authentication in the upstart script? > > > ------=_Part_705023_1254048136.1437596329180--