From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 757E7205C7E2 for ; Thu, 1 Aug 2024 04:48:17 -0400 (EDT) (envelope-from josh@sysmgr.org) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 8C576CA1E98; Thu, 1 Aug 2024 04:48:17 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1722502097; b=A6JQMAZLICl4E1tn+oLZYdxZ+aj32/pR7XAQKgkkJd3t7dz/+t OERvTCR8v23XUi8hrzOKcotWJpbp/qvj9adAL9Dtww0sHm38khKpoqGLr0EcpEvE UDBfNzMuLP4SnC4mmIWNOS4Geq8jpl+rdbhk4aCQV8Slnoi5ixGs6It6GNHJSEzG 3beKd8u0zFRkIFN9sOcAVeAqDwrWSkSa64QRDQyXTo2yYhLsQ56ntsl8IENiveSq rXg++Rl/Sycd/qm0xAOB84qPEuRDpshRhAn3YR+rTqj1j82muFIUugeprn+HeIRA OEz0tRJPLBHR37wnHvTJhrwrzpZkZ9ZRVVrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=arcseal; t=1722502097; bh=ti0kEe6qxN5p7XP8BS+gm/Fm5vpdogCQzkx UDbTEpjc=; b=rPe+Pp98w1TfDDK3O2tctocV89M6acKYNhD/Q0FlWVXxErhARVN jhY/8DkoXCEloJfaWMNe4J0h06Z2q2kkqE8BZlS+jdmLleUlZ2g1y4BDEcFGXpvX /tMCiFgnGT6oLf9gqAJgrx/lOCCY8a0wX/ScR1m7IwAIWe+qkJr7WdGsI9ilvAmd 2ft407Y2DLCy1vNyiE5RZ0snCTi/PuZ+0h5CnOSyz2DC4Q91hfopkD2wj77zaaxU 3zGId0U1T6VqcgVzl7cTkqnvcXNEsdM1ND5seJMtRtlpsGJH0sHZBjiG2fB+Ptk2 7YDzybF9iEwUb3c9Ye/2s56oOM7+N+MqQ7A== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=pass (2048-bit rsa key sha256) header.d=sysmgr.org header.i=@sysmgr.org header.b=K0xFNC/v header.a=rsa-sha256 header.s=google x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sysmgr.org; iprev=pass smtp.remote-ip=209.85.210.170 (mail-pf1-f170.google.com); spf=pass smtp.mailfrom=josh@sysmgr.org smtp.helo=mail-pf1-f170.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=nfJl1k0t; x-me-sender=none; x-ptr=pass smtp.helo=mail-pf1-f170.google.com policy.ptr=mail-pf1-f170.google.com; x-return-mx=pass header.domain=sysmgr.org policy.is_org=yes (MX Records found: alt2.aspmx.l.google.com,alt3.aspmx.l.google.com,alt4.aspmx.l.google.com,alt1.aspmx.l.google.com,aspmx.l.google.com); x-return-mx=pass smtp.domain=sysmgr.org policy.is_org=yes (MX Records found: alt2.aspmx.l.google.com,alt3.aspmx.l.google.com,alt4.aspmx.l.google.com,alt1.aspmx.l.google.com,aspmx.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=none (No BIMI records found); dkim=pass (2048-bit rsa key sha256) header.d=sysmgr.org header.i=@sysmgr.org header.b=K0xFNC/v header.a=rsa-sha256 header.s=google x-bits=2048; dmarc=pass policy.published-domain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=sysmgr.org; iprev=pass smtp.remote-ip=209.85.210.170 (mail-pf1-f170.google.com); spf=pass smtp.mailfrom=josh@sysmgr.org smtp.helo=mail-pf1-f170.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=nfJl1k0t; x-me-sender=none; x-ptr=pass smtp.helo=mail-pf1-f170.google.com policy.ptr=mail-pf1-f170.google.com; x-return-mx=pass header.domain=sysmgr.org policy.is_org=yes (MX Records found: alt2.aspmx.l.google.com,alt3.aspmx.l.google.com,alt4.aspmx.l.google.com,alt1.aspmx.l.google.com,aspmx.l.google.com); x-return-mx=pass smtp.domain=sysmgr.org policy.is_org=yes (MX Records found: alt2.aspmx.l.google.com,alt3.aspmx.l.google.com,alt4.aspmx.l.google.com,alt1.aspmx.l.google.com,aspmx.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=-100 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeekgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeggfhgjhfffkffuvfgtgfesthhqredttddtjeenucfh rhhomhepfdflohhshhhurgcuofdrucevlhhulhhofidfuceojhhoshhhsehshihsmhhgrh drohhrgheqnecuggftrfgrthhtvghrnhepledtjeefjeeiuddtffdvffehfeehvefhtdev hfelueegteeludehieejhfdutedvnecuffhomhgrihhnpehshihsmhhgrhdrohhrghenuc fkphepvddtledrkeehrddvuddtrddujedtnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehinhgvthepvddtledrkeehrddvuddtrddujedtpdhhvghlohepmhgrihhlqd hpfhduqdhfudejtddrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoehjohhshhes shihshhmghhrrdhorhhgqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeouggvvh gvlhhophgvrheslhhishhtshdrihhllhhumhhoshdrohhrgheq X-ME-VSScore: -100 X-ME-VSCategory: clean Received-SPF: pass (sysmgr.org: Sender is authorized to use 'josh@sysmgr.org' in 'mfrom' identity (mechanism 'include:_spf.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="josh@sysmgr.org"; helo=mail-pf1-f170.google.com; client-ip=209.85.210.170 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for ; Thu, 1 Aug 2024 04:48:16 -0400 (EDT) (envelope-from josh@sysmgr.org) Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-70eaf5874ddso5119756b3a.3 for ; Thu, 01 Aug 2024 01:48:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sysmgr.org; s=google; t=1722502094; x=1723106894; darn=lists.illumos.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ti0kEe6qxN5p7XP8BS+gm/Fm5vpdogCQzkxUDbTEpjc=; b=K0xFNC/vlwHy1rup4fThNr1hLo96Pems58iT6UBMplQh+ZBZoC9e0sAscx/vozClnz oZrGmvhyulIe6fx4PmcI/4rqKGmz2Cw/HEZF3xfyK8wkXwma5WEpqApppeg3LXHkqGMT zVoeOK4flpz7f8+yLgInwKXVcD10XQOAzeHr+I7O1vBmGK/jUFx/atEhd0Khm02GhmbI fvYNZFiZmpBW/GlrW4wHP3+B9EB6cJiJzY0tfpTiZqsWrmurQFgdjcQjK78Y/QYnLfk+ oUXBQI43/r4j9eriyRv+a4i/ESem79i4HZBexF6z638xvCs11UGCwokd6ecOpNI7w39J rwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722502094; x=1723106894; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ti0kEe6qxN5p7XP8BS+gm/Fm5vpdogCQzkxUDbTEpjc=; b=nfJl1k0tlw4lW+xJLCPBQcbJb6gCmKDcwsIFIq754EDz3hVfuilg2YPC6Fu1nCxHYY XBTNS8udBgP3U+wzGH1PIG79ny7dP9HLGXcmSp8zvw8MiN5SEtzvw/KV/6fUwNlhYGBc +3R6gLxq0PjmB6HWB762jV87/NzoWqJzwRrJKo/88k4vZl3n3SbmfLGQJ7EVfb6mSy+f NICnSXCs0WLLpEtc+m6u3ylMTN+pP7DBH/+TidPqPd9S7cpjZNTL59jkMjfklBor/Hbk 9uecb3tNr+t7OC95NzPxe6gY59Apx2YkWRNF84SxPuWuBFi+6ffLuUYPqCN83TkcQCXz QWAQ== X-Gm-Message-State: AOJu0YwiDE1HASSGCXEpP/74cEC3j5/t1qnvVdojddRHkHCR0yc3hbV5 449umG7WsTjC1Z69MpprTt2aUdfYRcV41uiRPFcWZen+xVeSyOo3CyA707nLrhDgfab/QEgfQXG KkrLPZkde7O5OA2evh9G677e97WlTzhGgHGPypMmTMtKywKrEhzc= X-Google-Smtp-Source: AGHT+IE3SaNCfofi+JVQvaZBJ5WVpiwTIq08iiWhT5L7YuvV89yHQm0oxpfSpb8uldAXDiTArlV+rW4IvVbjBuHj4dA= X-Received: by 2002:a05:6a20:1592:b0:1c1:c3ff:1f43 with SMTP id adf61e73a8af0-1c68d219093mr2570674637.43.1722502094421; Thu, 01 Aug 2024 01:48:14 -0700 (PDT) MIME-Version: 1.0 References: <3D043DE2-817C-4A22-9BB6-A673FAAFDC58@blackdot.be> In-Reply-To: From: "Joshua M. Clulow" Date: Thu, 1 Aug 2024 01:48:02 -0700 Message-ID: Subject: Re: [developer] Review - 15665 svc:/network/loopback exits successfully even if it fails To: illumos-developer Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is an admin Topicbox-Message-UUID: cee88c98-4fe2-11ef-b7ee-95f4038c7b06 On Wed, 31 Jul 2024 at 02:45, Peter Tribble wrote= : > On Tue, Jul 30, 2024 at 11:46=E2=80=AFPM Gordon Ross wrote: >> Optional dependency does that in SMF, right? > Well no, that's a rather different case. That is the "I don't care if it'= s enabled or not, > but if it is I'll have a hard dependency on it". That's not what "optional_all" does. As per smf(7): optional_all Satisfied if the cited services are running (online or degraded) or do not run without administrative action (disabled, maintenance, not present, or offline waiting for dependencies which do not start without administrative action). Note, most critically, if a service is in the maintenance state, it will not run without administrative action. This allows a dependency with the "optional_all" group to proceed with starting up. > What we're after here is the "I do care that it's enabled, and must run a= fter it, but I'm > prepared to live with errors". That's what "optional_all" does. It's effectively just for startup sequencing; i.e., "as long as you believe you're going to start the service, I'll wait, but if that changes just start me straight away". I think the important thing to recognise is that dependencies aren't considering what's marked enabled or disabled, they're considering the _state_ of services and potentially the _next state_ for services in transition (e.g., being started or stopped). It's a subtle but important distinction because there _is_ a state called "disabled" as well, but that's separate from whether the service is marked as being enabled or disabled by the administrator. After you mark a service as disabled, it might not hit the "disabled" state for quite some time, depending on what state it was in to begin with. The keen reader will note that "not present" is also not a state, but it's treated like one in the mental model: it's the state implicitly assumed for services we don't appear to have on the system. Obviously services that do not exist will not be able to run without some administrative action either. I agree that the degraded state is interesting in the limit, but I do not believe it is necessary to implement more of it merely to get the behaviour you're asking for here. Cheers. --=20 Joshua M. Clulow http://blog.sysmgr.org