Return-Path: X-Original-To: apmail-felix-users-archive@minotaur.apache.org Delivered-To: apmail-felix-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA4B1182DD for ; Thu, 3 Dec 2015 17:50:52 +0000 (UTC) Received: (qmail 48081 invoked by uid 500); 3 Dec 2015 17:50:46 -0000 Delivered-To: apmail-felix-users-archive@felix.apache.org Received: (qmail 48021 invoked by uid 500); 3 Dec 2015 17:50:45 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Received: (qmail 48009 invoked by uid 99); 3 Dec 2015 17:50:45 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Dec 2015 17:50:45 +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 345C21A5CF3 for ; Thu, 3 Dec 2015 17:50:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.001 X-Spam-Level: *** X-Spam-Status: No, score=3.001 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=3, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=liferay-com.20150623.gappssmtp.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 faHasdbPB1z4 for ; Thu, 3 Dec 2015 17:50:33 +0000 (UTC) Received: from mail-yk0-f170.google.com (mail-yk0-f170.google.com [209.85.160.170]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2BFCA20ECF for ; Thu, 3 Dec 2015 17:50:32 +0000 (UTC) Received: by ykfs79 with SMTP id s79so95409300ykf.1 for ; Thu, 03 Dec 2015 09:50:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=liferay-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6JAucGVQ5NE9Sdh1LnIuvRbue12JiSsC4DCH9nk97p4=; b=dnmWkk1hY2hajdvuyuAsjkGqRjjnWkarEneoMpO0HBaP/SVKLrP+B7q3zop5MYRmce 8yDs0DZxLSOzUrjnxlimFGAqqL8U9Mh5GQJ7J7hWaCF8px0SZ53pukUne7e/rBX2tSKq B/MzN5yTtL9eiwsEKfm9m8Cz3cXVE9vbZ2i8lqg2vgT4K+PS9oTRneEGvO9OP90TyPYn 58nbxxEm70+mvUuM6JHvYkU7dqy4NzuzkCCw46B5Zy68MlZYJ3BGasvZt3S1JZfYfZPE X36sLFiBdGscEtXhsrnogLLlJbV/sB/NGkXMnbqhfKUGlRMYjHxmAVAzW4mCg/RzwlSW 34RA== 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:date :message-id:subject:from:to:content-type; bh=6JAucGVQ5NE9Sdh1LnIuvRbue12JiSsC4DCH9nk97p4=; b=O7sQSYEn8jeRJzybEUlTr/BX3njCRPzQ9SiPF30SnCtNdyXz2+cFNO8FeefVaqgDgX +Tusqhwifh6PTalHos9TVt1Sh1ULjoKqZSNJBHncoLihmdFpH5zI1ojroey9M952EPnk HCxhY/NzJenXEgJG2tWcyQLu/uW6b9ar7R5iGwOGeVQ8/1W4sQQJ7e4ta7dwwwPZPOlx c8KuzqaReMx/X4c5HMg5M4NaHjC+k221F+znRcwMG19isDOLO+uW2jyiVVlCklzSYFGz sdNntVlkTunTNAAgJ4mNpV2s+yJSbF6CCVlEJ5QHbHVVKMiLvpqEZivGYPMZX4JuSUpl k40g== X-Gm-Message-State: ALoCoQlzXLVenveOyG4KPX1OONYyZD55rXUx9WUDgfyTJq+D9TFktB78evTwJRFMcOtYG6mo6iRA MIME-Version: 1.0 X-Received: by 10.13.193.6 with SMTP id c6mr7895293ywd.326.1449165030693; Thu, 03 Dec 2015 09:50:30 -0800 (PST) Received: by 10.129.98.214 with HTTP; Thu, 3 Dec 2015 09:50:30 -0800 (PST) In-Reply-To: <870CF870-6CF3-42E0-8606-65E32FCF3FA9@yahoo.com> References: <870CF870-6CF3-42E0-8606-65E32FCF3FA9@yahoo.com> Date: Thu, 3 Dec 2015 12:50:30 -0500 Message-ID: Subject: Re: scr:info missing info From: Raymond Auge To: felix users Content-Type: multipart/alternative; boundary=001a114e8240e0569205260206dd --001a114e8240e0569205260206dd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Dec 3, 2015 at 12:31 PM, David Jencks wrote: > well, to me it did state that quite plainly: > > >>>> Configuration Policy: require > but that's not showing that it's "waiting" for something... only that one is required... Does it have any right now? In your configuration list maybe all you need is: ----------------- ... Configuration Policy: require ... Component Configuration: none ----------------- That's not redundant. It's a) indicating that it does indeed need something before it does anything b) it doesn't have anything right now. I'd be totally satisfied with that. At least it would allow for a quick scan of the output to observe that it's just not configured!! > I look forward to your suggestions. > > thanks > david jencks > > > On Dec 3, 2015, at 9:12 AM, Raymond Auge > wrote: > > > > The point is that it took me and a technical support person about 15 > > minutes to figure out (this is not a module I wrote) why the component > > wasn't "activating". > > > > If scr:info had inferred that "hey, this thing won't do anything until = it > > receives at least ONE configuration" it would have really helped us, an= d > I > > would have had more encouraging response than ... I guess you need to > infer > > from the obscure messaging that it's in a "waiting" state. > > > > I'll see what I can come up with. > > > > - Ray > > > > On Thu, Dec 3, 2015 at 11:56 AM, David Jencks > > wrote: > > > >> Hi Ray, > >> > >> You are confusing a lot of terms :-) > >> > >> =E2=80=9Cenabled=E2=80=9D is a component description state. If the co= mponent is > disabled, > >> whether there are CA configurations for it and required dependencies > >> present or missing is completely irrelevant because DS isn=E2=80=99t e= ven > looking > >> at that yet. > >> > >> Once the component is enabled, then there=E2=80=99s a chance that you = might bet > >> one or more instances of the component=E2=80=A6.. component configurat= ions, not > to > >> be confused with CA configurations. > >> > >> Depending on the configuration policy=E2=80=A6. > >> ignored >> one component configuration. This will be satisfied if all > the > >> required references are satisfied and result in (one or more) instance= s > >> depending on the scope, immediate setting, and whether there are any > users > >> of the exposed service (if any) > >> > >> optionsl >> one or more component configurations depending on CA > >> configurations. Each one will be satisfied or not depending on it=E2= =80=99s > >> references, and again instances depend on scope, etc etc. You can see > >> whether the one configuration is configured from CA by looking at the > >> properties for a pid/factory pid. > >> > >> required >> 0 or more component configurations, one per CA > configuration. > >> Each one will be satisfied or not depending on its references etc etc. > >> > >> So, there are a lot of moving parts here. I=E2=80=99m not sure it=E2= =80=99s practical > to > >> explain the entire DS model in the output of scr:info, which I think i= s > >> what you=E2=80=99re aiming for. However I=E2=80=99m happy to consider= suggestions that > are > >> actually in line with the model. I haven=E2=80=99t been able to figur= e out > >> improvements to what is there that actually seem to me to provide more > >> information without being very redundant and more confusing. Maybe yo= u > >> will have better luck. > >> > >> thanks > >> david jencks > >> > >>> On Dec 3, 2015, at 8:19 AM, Raymond Auge > >> wrote: > >>> > >>> Furthermore in looking at the > >>> > >>> scr:list | grep > >>> > >>> it produces > >>> > >>> [com.liferay.portal.http.tunnel.extender.HttpTunnelExtender] [ 60] > >> [true] > >>> > >>> which seems to indicate that it's enabled... which it's not really. > >>> > >>> - Ray > >>> > >>> On Thu, Dec 3, 2015 at 11:10 AM, Raymond Auge < > raymond.auge@liferay.com> > >>> wrote: > >>> > >>>> The point is that if you start with no configuration, and you view t= he > >>>> component scr:info it's hard for a less knowledgeable person to > >> recognize > >>>> that it's missing a configuration? > >>>> > >>>> I would hope to see something like this: > >>>> > >>>> -------------------------------- > >>>> g! scr:info com.liferay.portal.http.tunnel.extender.HttpTunnelExtend= er > >>>> *** Bundle: com.liferay.portal.http.tunnel.extender (60) > >>>> Component Description: > >>>> Name: com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>> Default State: enabled > >>>> Activation: immediate > >>>> Configuration Policy: require > >>>> Activate Method: activate > >>>> Deactivate Method: deactivate > >>>> Modified Method: modified > >>>> Configuration Pid: > >>>> > >> > [com.liferay.portal.http.tunnel.configuration.HttpTunnelExtenderConfigura= tion] > >>>> Services: Service Scope: null > >>>> Properties: > >>>> Component Configuration: > >>>> State: missing > >>>> g! > >>>> -------------------------------- > >>>> > >>>> make sense now? > >>>> > >>>> > >>>> On Thu, Dec 3, 2015 at 11:03 AM, David Jencks < > david.a.jencks@gmail.com > >>> > >>>> wrote: > >>>> > >>>>> It looks pretty blatant to me that the reason there are no componen= t > >>>>> configurations is that there is no CA configuration. What kind of > >>>>> notification do you want? > >>>>> > >>>>> thanks > >>>>> david jencks > >>>>> > >>>>>> On Dec 3, 2015, at 7:57 AM, Raymond Auge > >>>>> wrote: > >>>>>> > >>>>>> Hey all, > >>>>>> > >>>>>> It seems that scr:info report is not clearly indicating when a > >> required > >>>>>> configuration is not available. It is showing good info when the > >>>>> component > >>>>>> has a configuration: > >>>>>> > >>>>>> Here is the report WITH required configuration: > >>>>>> ---------------------------------- > >>>>>> g! scr:info > com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>>>> *** Bundle: com.liferay.portal.http.tunnel.extender (60) > >>>>>> Component Description: > >>>>>> Name: com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>>>> Default State: enabled > >>>>>> Activation: immediate > >>>>>> Configuration Policy: require > >>>>>> Activate Method: activate > >>>>>> Deactivate Method: deactivate > >>>>>> Modified Method: modified > >>>>>> Configuration Pid: > >>>>>> > >>>>> > >> > [com.liferay.portal.http.tunnel.configuration.HttpTunnelExtenderConfigura= tion] > >>>>>> Services: Service Scope: null > >>>>>> Properties: > >>>>>> Component Configuration: > >>>>>> ComponentId: 1936 > >>>>>> State: active > >>>>>> Properties: > >>>>>> component.id =3D 1936 > >>>>>> component.name =3D > >>>>>> com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>>>> hostsAllowed =3D [127.0.0.1] > >>>>>> service.pid =3D > >>>>>> > >>>>> > >> > com.liferay.portal.http.tunnel.configuration.HttpTunnelExtenderConfigurat= ion > >>>>>> g! > >>>>>> ---------------------------------- > >>>>>> > >>>>>> And here is the report when NO required configuration is available= : > >>>>>> > >>>>>> ---------------------------------- > >>>>>> g! scr:info > com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>>>> *** Bundle: com.liferay.portal.http.tunnel.extender (60) > >>>>>> Component Description: > >>>>>> Name: com.liferay.portal.http.tunnel.extender.HttpTunnelExtender > >>>>>> Default State: enabled > >>>>>> Activation: immediate > >>>>>> Configuration Policy: require > >>>>>> Activate Method: activate > >>>>>> Deactivate Method: deactivate > >>>>>> Modified Method: modified > >>>>>> Configuration Pid: > >>>>>> > >>>>> > >> > [com.liferay.portal.http.tunnel.configuration.HttpTunnelExtenderConfigura= tion] > >>>>>> Services: Service Scope: null > >>>>>> Properties: > >>>>>> g! > >>>>>> ---------------------------------- > >>>>>> > >>>>>> As you can see it's not clear at all that the component is missing > the > >>>>>> configuration it requires. > >>>>>> > >>>>>> Can we fix this? > >>>>>> > >>>>>> -- > >>>>>> *Raymond Aug=C3=A9* > >>>>>> (@rotty3000) > >>>>>> Senior Software Architect *Liferay, Inc.* > >>>>>> (@Liferay) > >>>>>> Board Member & EEG Co-Chair, OSGi Alliance > >>>>> (@OSGiAlliance) > >>>>> > >>>>> > >>>>> -------------------------------------------------------------------= -- > >>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > >>>>> For additional commands, e-mail: users-help@felix.apache.org > >>>>> > >>>>> > >>>> > >>>> > >>>> -- > >>>> *Raymond Aug=C3=A9* > >>>> (@rotty3000) > >>>> Senior Software Architect *Liferay, Inc.* > >>>> (@Liferay) > >>>> Board Member & EEG Co-Chair, OSGi Alliance > >>>> (@OSGiAlliance) > >>>> > >>> > >>> > >>> > >>> -- > >>> *Raymond Aug=C3=A9* > >>> (@rotty3000) > >>> Senior Software Architect *Liferay, Inc.* > >>> (@Liferay) > >>> Board Member & EEG Co-Chair, OSGi Alliance > >> (@OSGiAlliance) > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > >> For additional commands, e-mail: users-help@felix.apache.org > >> > >> > > > > > > -- > > *Raymond Aug=C3=A9* > > (@rotty3000) > > Senior Software Architect *Liferay, Inc.* > > (@Liferay) > > Board Member & EEG Co-Chair, OSGi Alliance > (@OSGiAlliance) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org > > --=20 *Raymond Aug=C3=A9* (@rotty3000) Senior Software Architect *Liferay, Inc.* (@Liferay) Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance= ) --001a114e8240e0569205260206dd--