Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AF7BD200B71 for ; Wed, 31 Aug 2016 22:41:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AD9FA160AB4; Wed, 31 Aug 2016 20:41:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC628160AA7 for ; Wed, 31 Aug 2016 22:41:36 +0200 (CEST) Received: (qmail 60579 invoked by uid 500); 31 Aug 2016 20:41:35 -0000 Mailing-List: contact user-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mesos.apache.org Delivered-To: mailing list user@mesos.apache.org Received: (qmail 60569 invoked by uid 99); 31 Aug 2016 20:41:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 20:41:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 643AF185F16 for ; Wed, 31 Aug 2016 20:41:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.429 X-Spam-Level: * X-Spam-Status: No, score=1.429 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4YZl9wQS64oS for ; Wed, 31 Aug 2016 20:41:34 +0000 (UTC) Received: from mail-it0-f47.google.com (mail-it0-f47.google.com [209.85.214.47]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id E284C5F1B8 for ; Wed, 31 Aug 2016 20:41:33 +0000 (UTC) Received: by mail-it0-f47.google.com with SMTP id e124so30755671ith.0 for ; Wed, 31 Aug 2016 13:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=ugirEauzALMp60GjWJ7cSYudNPW0h7uoIzkNSBVpmQ8=; b=F+1/paPW8ko9ZNtAYOrHoTPtvBDo0vn0oTDjCuJnJnYAFfweibMQuPe9kZK+ZXdzxc BMh6+Uu0lYiY+BCm29k99RSHf/0cGg7GaSoQjV5H9QP4l3Hf4K42TWpiL5pU4nAp+EeG XTXHmpDvJ3JugKtwwJaEEJYLZseGJ5A9d9if0uJlURKzR4Yy6gdxK6SvzqcR9P+J/LJE Yq+m6bVv4Dvyt5mDUhqIvDWBIN+BsIkJ9OyYlO9agUUL36nMlSv4lhmRvWWaV7nn8/Cd Si4dO+9cm2LoBZLAChgAFMyW34hnjLWDmVlvKCjS6MUdKmFf2xdP/ptZJWRJ2onRmVQo bq9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ugirEauzALMp60GjWJ7cSYudNPW0h7uoIzkNSBVpmQ8=; b=YsxFoUUh7qeoYRQxwi8WOa0HATme4sMULxtwHjnYNSe17tJTIIUfZGQnFMWUgx3AyF adqQ8h2W/bU+lg4mkcfFnPTjBzV/HnzgN/N8Ga43lT4mE3HD/pWSG51JMkI7XZarbDi8 /hZsL8BTE2cVV7Iwiy8rkFLDC7xRt2N7nrRpc63IVg4IM133dL4+dd+AZLyMAT8Xxot+ HxaOYMt7DQfXnU7TdzXcu/VI0HZ+M0Ib8WqpBE0bjAiVkB+KpB5jh2iv+QNjflDsGdCb MRVqxWzT2S9LAOl8u4Udh44+KmOpsMtnHS31D9fv5wZa3hvP8iTqb/QcDJl3Adhlejgu sNEg== X-Gm-Message-State: AE9vXwNEs/Nv40/i90YKKDy6GOVep2TSV8mho6BP5ZdWmuIATes5KIzAt9GBe2R9UWyXhSFaQj+n0RxH7SMoaA== X-Received: by 10.36.189.3 with SMTP id x3mr563839ite.18.1472676092986; Wed, 31 Aug 2016 13:41:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.111.131 with HTTP; Wed, 31 Aug 2016 13:41:12 -0700 (PDT) In-Reply-To: References: From: Haripriya Ayyalasomayajula Date: Wed, 31 Aug 2016 13:41:12 -0700 Message-ID: Subject: Re: missing documentation: view_frameworks, view_tasks etc in mesos 1.0 To: user@mesos.apache.org Content-Type: multipart/alternative; boundary=94eb2c0e3cde644da9053b641f3a archived-at: Wed, 31 Aug 2016 20:41:37 -0000 --94eb2c0e3cde644da9053b641f3a Content-Type: text/plain; charset=UTF-8 Well, I had to turn on auth for run_tasks, I had different set of configuration there. I had some syntax issue with the above mentioned configurations in my original file, fixed them and it works file. Is there a way the flags view_executors etc can be added to the existing documentation? On Wed, Aug 31, 2016 at 1:26 AM, haosdent wrote: > Because your types are ANY, have you consider disable auth via don't > specify `--acl` flag when you launch Mesos master? > > > > On Wed, Aug 31, 2016 at 3:00 AM, Haripriya Ayyalasomayajula < > aharipriya92@gmail.com> wrote: > >> Hi all, >> >> I've upgraded my mesos cluster to 1.0. >> I have spark and Marathon registered as frameworks and have no problem >> running jobs. >> I am unable to see any frameworks nor any tasks on the web UI. >> >> I found out that the following fields have been added to acls. >> view_frameworks, view_tasks, view_executors, access_sandboxes, >> access_mesos_logs >> and there are no examples related to these in: http://mesos.apache.org/do >> cumentation/latest/authorization/ >> Can someone help me understand where I'm going wrong? >> >> Looking at the JIRA https://issues.apache.org/jira/browse/MESOS-5746 >> I tried to come up with this json configuration, but that doesn't seem to >> work either. >> Here is my mesos_acls.json file: >> >> "get_endpoints": [ { >> >> "principals": { "type": "ANY" }, >> >> "paths": { "type": "ANY" } } >> >> ], >> >> >> "view_frameworks": [ { >> >> "principals": { "type": "ANY" }, >> >> "users": { "type": "ANY" } } >> >> ], >> >> >> "view_tasks": [ { >> >> "principals": { "type": "ANY" }, >> >> "users": { "type": "ANY" } } >> >> ], >> >> "view_executors": [ { >> >> "principals": { "type": "ANY" }, >> >> "users": { "type": "ANY" } } >> >> ], >> >> "access_sandboxes": [ { >> >> "principals": { "type": "ANY" }, >> >> "users": { "type": "ANY" } } >> >> ], >> >> "access_mesos_logs": [ { >> >> "principals": { "type": "ANY" }, >> >> "logs": { "type": "ANY" } } >> >> ], >> >> >> >> -- >> Regards, >> Haripriya Ayyalasomayajula >> >> > > > -- > Best Regards, > Haosdent Huang > -- Regards, Haripriya Ayyalasomayajula --94eb2c0e3cde644da9053b641f3a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Well, I had to turn on auth for run_tasks, I had different= set of configuration there.
I had some syntax issue with the above men= tioned configurations in my original file, fixed them and it works file.
Is there a way the flags view_executors etc can be added to the exi= sting documentation?

On Wed, Aug 31, 2016 at 1:26 AM, haosdent <haosdent@gmai= l.com> wrote:
Because your types are ANY, have you consider disable auth via don'= t specify `--acl` flag when you launch Mesos master?

=C2= =A0

On Wed, Aug 31, 2016 at 3:00 AM, Haripriya Ayyalasomay= ajula <aharipriya92@gmail.com> wrote:
Hi all,

I've upgra= ded my mesos cluster to 1.0.
I have spark and Marathon registered= as frameworks and have no problem running jobs.
I am unable to see any frameworks nor any tasks on the web UI.
<= div>
I found out that the following fields have been added to= acls.
=C2=A0view_frameworks, view_tasks, view_executors, access_= sandboxes, access_mesos_logs
and there are no examples related to= these in:=C2=A0http://mesos.apache.org/documentation/l= atest/authorization/
Can someone help me understand wher= e I'm going wrong?

Looking at the JIRA=C2=A0https://issues.apache.org/jira/browse/MESOS-5746
I tri= ed to come up with this json configuration, but that doesn't seem to wo= rk either.
Here is my mesos_acls.json file:

<= div>

=C2=A0=C2=A0"get_endpoints": [=C2=A0=C2=A0{

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "principals": {=C2=A0= =C2=A0"type": "ANY"=C2=A0},

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "paths": {=C2= =A0 "type": "ANY"=C2=A0=C2=A0}=C2=A0=C2=A0= }

=C2=A0=C2=A0 ],


=C2=A0=C2=A0"view_frameworks": [=C2=A0
=C2=A0{=

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "principals": {= =C2=A0=C2=A0"type": "ANY"=C2=A0},

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "users": {= =C2=A0 "type": "ANY"=C2=A0=C2=A0}=C2=A0=C2= =A0}

=C2=A0=C2=A0 ],


=C2=A0=C2=A0"v= iew_tasks": [=C2=A0
=C2=A0{

=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 "principals": {=C2=A0=C2=A0"type&quo= t;: "ANY"=C2=A0},

=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 "users": {=C2=A0 "type": "ANY"= =C2=A0=C2=A0}=C2=A0=C2=A0}

=C2= =A0=C2=A0 ],

=C2=A0"view_executors": [=C2=A0=C2=A0{

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "principal= s": {=C2=A0=C2=A0"type": "ANY"=C2=A0<= /span>},

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "users": = {=C2=A0 "type": "ANY"=C2=A0=C2=A0}=C2=A0=C2=A0}

=C2=A0=C2= =A0 ],

=C2=A0"access_sandboxes": [=C2=A0=C2=A0{

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "principals": {=C2=A0=C2=A0"type": "ANY"=C2=A0},

= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "users": {=C2=A0 "= type": "ANY"=C2=A0=C2=A0}=C2=A0=C2=A0}

=C2=A0=C2=A0 ],

=C2=A0"access_mesos_logs": [=C2=A0=C2=A0{

= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "principals": {=C2=A0=C2=A0"type": "ANY"=C2=A0},

=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "logs": {=C2=A0 "type= ": "ANY"=C2=A0=C2=A0}=C2=A0=C2=A0}

=

=C2=A0=C2=A0 ],=



--
Regards,
Haripriya Ayyalasomayajula=C2=A0



--
Best Regards,
Haosdent Huang



--
Regards,
Haripriya Ayyalasomayajula=C2=A0

--94eb2c0e3cde644da9053b641f3a--