[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/3] tools/hotplug: Fix hostname setting in vif-nat


  • To: Diego Sueiro <Diego.Sueiro@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Thu, 27 Aug 2020 14:14:03 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/rKuChLtIkK7FwNL/12YP9ISlGT+cZVv3o1dbEmCa4c=; b=DAwZ8hWP+SmanA0nqMCUQAW8GyTD90UXLuT46G5QXgGGc6J9kqBtsBuSD+XIYvmrisiKq748avKOr3Ib5Uq35i0OLCBDgNT7RD2N1Hekve6KsDyq1WGn431t28vZEwu13m5wD4GhXRytd4d6ld2KoN3REYai6+nV/dghp5MUI4hM/oyHroWv7g8ab6LunnoIE/wY3t+qHu0OHrm5sYPATq7hQdV5y8x8SNmFRzOXJoVL77OnKRY9PzsriPWHsfK0GD6A8o0fM1S2zFOVUAOv7xZYe3A5I+EUss8/3UZSb3ghVXWzuPLGdgImtBFkqP27I/uYxjzvQmHkoWJsib1b+Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hcZ/zBjfnY1KxPcsARA4/PGsXlYSpEunz9XUs6WdCfWAAS7ctxkC6kvwx7N9/4tk+9LoNZcJnGv+1/AUViYdJmL+DDX6Z/WWybNn65/deIii+0MBqNbUMEaPkrPCoUlj0X9yS710H/B6svJVKyrCORxiEFm3iMEoz+Qah0th6BObB52C1nAKsMKb9X70WYynCUKvIK2bceUYJefVTRvWgWF8J4VIHbmQkALuUWk7ZjmESLsSTxmsSQnAwgV5EeFr8c90xKRcW4GCN1Jx8dk4l4hsjJw7b5XUcxvC06uXZa6pjOC72JdFpw2dfVzMxKhfCYRSCFesaLYqNysBcJPDVw==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Thu, 27 Aug 2020 14:14:27 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWduEpaa1KU+77L0a6GO/oAi93H6lMCt+A
  • Thread-topic: [PATCH 1/3] tools/hotplug: Fix hostname setting in vif-nat


> On 20 Aug 2020, at 11:58, Diego Sueiro <Diego.Sueiro@xxxxxxx> wrote:
> 
> Setting the hostname is failing because the "$XENBUS_PATH/domain"
> doesn't exist anymore. To fix this we set it to dom$domid
> 
> Signed-off-by: Diego Sueiro <diego.sueiro@xxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

> ---
> tools/hotplug/Linux/vif-nat | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tools/hotplug/Linux/vif-nat b/tools/hotplug/Linux/vif-nat
> index a76d9c7..2614435 100644
> --- a/tools/hotplug/Linux/vif-nat
> +++ b/tools/hotplug/Linux/vif-nat
> @@ -85,7 +85,7 @@ router_ip=$(routing_ip "$ip")
> # Split the given IP/bits pair.
> vif_ip=`echo ${ip} | awk -F/ '{print $1}'`
> 
> -hostname=$(xenstore_read "$XENBUS_PATH/domain" | tr -- '_.:/+' '-----')
> +hostname=dom$domid
> if [ "$vifid" != "1" ]
> then
>   hostname="$hostname-$vifid"
> -- 
> 2.7.4
> 
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.