From patchwork Fri Aug 3 14:49:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Desrochers X-Patchwork-Id: 953255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41hqgn5ZYVz9s0n; Sat, 4 Aug 2018 00:49:25 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1flbOF-0004hi-VF; Fri, 03 Aug 2018 14:49:15 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1flbOC-0004hV-Br for kernel-team@lists.ubuntu.com; Fri, 03 Aug 2018 14:49:12 +0000 Received: from mail-qk0-f200.google.com ([209.85.220.200]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1flbOC-0001Yu-2H for kernel-team@lists.ubuntu.com; Fri, 03 Aug 2018 14:49:12 +0000 Received: by mail-qk0-f200.google.com with SMTP id q3-v6so5492183qki.4 for ; Fri, 03 Aug 2018 07:49:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=H4RBRNkESHfQDlaIF69tYeZQCD9gPOEiYrb3NYMbImI=; b=nql8V5QlwiKHK35dWlbOwSsKQc/vYgSLhJiCFlOsPzme0EXWr2hAoUVWpoArqxjVwR 2WHta/xFwKx66QUnTAVejPqE0e8ad7YnFpZfwXSSS9KvgflYhB4u7bTYUxCjffMH4akB gPf3ZQjpW6eTYiaW8eY6NuSIOm+ZgCdr7P2EWQEHU0HuxFsI+oG7ArDG/rb4uL7hH9Sp UCv5aDToDGcPyufGP2F7qJ2xtQfjCogMp1GIRM/SNgIAuN3iIRN6LuZfwN8naLp7EH/8 pKoMIqyFWxBpM+keBVF7t67kmWv2unkhGE79MqMnAwIT2YbTc4lwISr+Pw8fZskvmpaO CHBA== X-Gm-Message-State: AOUpUlFI6kHNfl1zg7iAREkDti1jtB01xfO5R3uiUelUBEenbDAYLI/m BrztscinwUrjidTwzzM2RyzfKeD4yoN5p1RuKOTw53Op5IwP6jL6T+Ub5q3UYUGHKqWKmGpOaV8 0EM4mwD1WFl8Svk0kZgsPFgMx8wXKlRpwFWrubx5UDw== X-Received: by 2002:a37:9185:: with SMTP id t127-v6mr4001009qkd.182.1533307751048; Fri, 03 Aug 2018 07:49:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeSCY7pbRX9VYa8Y/gOsrRGmpPAlf/DJaJGTvApcryybb1sHRa28zci0qgoioH5h1E9SRUHUA== X-Received: by 2002:a37:9185:: with SMTP id t127-v6mr4000997qkd.182.1533307750840; Fri, 03 Aug 2018 07:49:10 -0700 (PDT) Received: from thinkpad.in.azkaban.com (modemcable048.146-83-70.mc.videotron.ca. [70.83.146.48]) by smtp.gmail.com with ESMTPSA id b20-v6sm1875059qto.1.2018.08.03.07.49.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Aug 2018 07:49:10 -0700 (PDT) From: Eric Desrochers To: kernel-team@lists.ubuntu.com Subject: [PATCH][XBC] UBUNTU: [Debian] hyper-v -- Ensure that hv-kvp-daemon.service starts before walinuxagent.service Date: Fri, 3 Aug 2018 10:49:07 -0400 Message-Id: <20180803144907.10476-1-eric.desrochers@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Paul Meyer BugLink: https://bugs.launchpad.net/bugs/1739107 The hv-kvp-daemon service starts after walinuxagent. The default dependencies make hv-kvp-daemon wait until the whole system is up before it can start, which is not necessary and blocks Azure telemetry use case. This commit changes the hv-kvp-daemon.service unit file to start it up as early as possible so that the channel for telemetry can be use. Signed-off-by: Eric Desrochers Acked-by: Marcelo Henrique Cerri Acked-by: Kamal Mostafa --- debian/linux-cloud-tools-common.hv-kvp-daemon.service | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/linux-cloud-tools-common.hv-kvp-daemon.service b/debian/linux-cloud-tools-common.hv-kvp-daemon.service index c86a812..015c96f 100644 --- a/debian/linux-cloud-tools-common.hv-kvp-daemon.service +++ b/debian/linux-cloud-tools-common.hv-kvp-daemon.service @@ -4,6 +4,11 @@ [Unit] Description=Hyper-V KVP Protocol Daemon ConditionVirtualization=microsoft +DefaultDependencies=no +After=systemd-remount-fs.service +Before=shutdown.target cloud-init-local.service walinuxagent.service +Conflicts=shutdown.target +RequiresMountsFor=/var/lib/hyperv [Service] ExecStart=/usr/sbin/hv_kvp_daemon -n