Error: Metadata tarball is missing metadata.yaml

I have created yaml file for image creation using distrobuilder. after distrobuilder build-lxd name command output two files which are rootfs.squashfs and lxd.tar.xz. but when i import lxc image it gives following error.

root@dev:/distrobu# lxc image import rootfs.squashfs lxd.tar.xz  --alias new-image
Error: Metadata tarball is missing metadata.yaml

I have also created dummy metadata.yaml file in the same directory but still its not working.
dummy metadata.yaml is as follows.

architecture: "x86_64"
properties:
    architecture: "x86_64"
    description: "Debian Buster (20200708)"
    os: "debian"
    release: "buster"

Other way around, metadata tarball always goes first.

@stgraber
Hi,
thanks for the reply but unfortunately I couldn’t follow you please elaborate your answer. there is no a tarrball of the metadata only metadata file. and I also ran

root@dev-api:/distrobu# lxc image import metadata.yaml rootfs.squashfs lxd.tar.xz --alias new-image
Error: Unsupported compression

You need lxc image import lxd.tar.xz rootfs.squashfs --alias new-image