[PATCH] nvmetcli: set up the target only after the network is configured

Chaitanya Kulkarni chaitanyak at nvidia.com
Wed Mar 1 19:06:31 PST 2023


On 2/28/2023 8:36 AM, Maurizio Lombardi wrote:
> network.target only indicates that the network stack is up, but it
> doesn't mean that the network devices have been configured.
> 
> Replace it with network-online.target, this fixes the following
> error when systemd restores the target configuration during boot:
> 
> [   19.613251] nvmet_tcp: failed to bind port socket -99
> [FAILED] Failed to start Restore NVMe kernel target configuration.
> 
> Signed-off-by: Maurizio Lombardi <mlombard at redhat.com>
> ---

I believe you have tested this thoroughly with other transports.

Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>

-ck




More information about the Linux-nvme mailing list