Lxc issue with charmcraft

I deployed the development setup for juju and charmed operator SDK by following dev-setup .

OS ubuntu 18.04
lxd version 4.17
charmcraft version 1.2.1

While running charmcraft pack command getting below error:

ubuntu@canonicalsetup:~/aman/charm-jaeger$ charmcraft pack -v                                                                                 
2021-08-27 12:20:57,909  charmcraft                               DEBUG    Starting charmcraft version 1.2.1                                  
2021-08-27 12:20:57,909  charmcraft.main                          DEBUG    Raw pre-parsed sysargs: args={'help': False, 'verbose': True, 'quie
t': False, 'project_dir': None} filtered=['pack']                                                                                             
2021-08-27 12:20:57,919  charmcraft.main                          DEBUG    General parsed sysargs: command='pack' args=[]                     
2021-08-27 12:20:57,921  charmcraft.main                          DEBUG    Command parsed sysargs: Namespace(bases_index=None, destructive_mod
e=False, entrypoint=None, force=False, requirement=None)                                                                                      
2021-08-27 12:20:57,922  charmcraft.commands.pack                 DEBUG    Working arguments: {'from': PosixPath('/home/ubuntu/aman/charm-jaeg
er'), 'destructive_mode': False, 'entrypoint': None, 'requirement': [], 'bases_indices': None, 'force': False}                                
2021-08-27 12:20:57,922  charmcraft.metadata                      DEBUG    Parsing '/home/ubuntu/aman/charm-jaeger/metadata.yaml'             
2021-08-27 12:20:57,929  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc --project default profile show local:default
2021-08-27 12:20:58,090  charmcraft.commands.build                DEBUG    Building for 'bases[0]' as host matches 'build-on[0]'.             
2021-08-27 12:20:58,091  charmcraft.commands.build                INFO     Packing charm 'jaeger-k8s_ubuntu-18.04-amd64.charm'...             
2021-08-27 12:20:58,100  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc remote list --format=yaml                   
2021-08-27 12:20:58,248  craft_providers.lxd.remotes              DEBUG    Remote 'craft-com.ubuntu.cloud-buildd' already exists.             
2021-08-27 12:20:58,248  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc project list local: --format=yaml           
2021-08-27 12:20:58,402  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc --project charmcraft list local: --format=ya
ml                                                                                                                                            
2021-08-27 12:20:58,720  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc --project charmcraft list local: --format=ya
ml                                                                                                                                            
2021-08-27 12:20:58,999  craft_providers.lxd.lxc                  DEBUG    Executing on host: lxc --project charmcraft start local:charmcraft-
jaeger-k8s-2077969-0-0-amd64                                                                                                                  
2021-08-27 12:20:59,330  charmcraft                               ERROR    charmcraft internal error! LXDError: Failed to start 'charmcraft-ja
eger-k8s-2077969-0-0-amd64'.                                                                                                                  
* Command that failed: 'lxc --project charmcraft start local:charmcraft-jaeger-k8s-2077969-0-0-amd64'                                        
* Command exit code: 1                                                                                                                        
* Command standard error output: b"Error: Failed preparing container for start: Failed to run: zfs mount default/containers/charmcraf[11/1123]
aft-jaeger-k8s-2077969-0-0-amd64: cannot open 'default/containers/charmcraft_charmcraft-jaeger-k8s-2077969-0-0-amd64': dataset does not exist\
nTry `lxc info --show-log local:charmcraft-jaeger-k8s-2077969-0-0-amd64` for more info\n" (full execution logs in /home/ubuntu/snap/charmcraft
/common/charmcraft-log-cdx91636)
Traceback (most recent call last):
  File "/snap/charmcraft/603/lib/craft_providers/lxd/lxc.py", line 961, in start
    self._run_lxc(
  File "/snap/charmcraft/603/lib/craft_providers/lxd/lxc.py", line 79, in _run_lxc
    return subprocess.run(lxc_cmd, check=check, **kwargs)
  File "/snap/charmcraft/603/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['lxc', '--project', 'charmcraft', 'start', 'local:charmcraft-jaeger-k8s-2077969-0-0-amd64']' returned
 non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/snap/charmcraft/603/lib/charmcraft/main.py", line 347, in main
    retcode = dispatcher.run()
  File "/snap/charmcraft/603/lib/charmcraft/main.py", line 332, in run
    return self.command.run(self.parsed_args)
  File "/snap/charmcraft/603/lib/charmcraft/commands/pack.py", line 124, in run
    self._pack_charm(parsed_args)
  File "/snap/charmcraft/603/lib/charmcraft/commands/pack.py", line 155, in _pack_charm
    builder.run(parsed_args.bases_index, destructive_mode=build_args.destructive_mode)
  File "/snap/charmcraft/603/lib/charmcraft/commands/build.py", line 357, in run
    charm_name = self.pack_charm_in_instance(
  File "/snap/charmcraft/603/lib/charmcraft/commands/build.py", line 412, in pack_charm_in_instance
    with launched_environment(
  File "/snap/charmcraft/603/usr/lib/python3.8/contextlib.py", line 113, in __enter__
    return next(self.gen)
  File "/snap/charmcraft/603/lib/charmcraft/providers.py", line 253, in launched_environment
    instance = lxd.launch(
  File "/snap/charmcraft/603/lib/craft_providers/lxd/launcher.py", line 170, in launch
    instance.start()
  File "/snap/charmcraft/603/lib/craft_providers/lxd/lxd_instance.py", line 441, in start
    self.lxc.start(
  File "/snap/charmcraft/603/lib/craft_providers/lxd/lxc.py", line 968, in start
    raise LXDError(
craft_providers.lxd.errors.LXDError: Failed to start 'charmcraft-jaeger-k8s-2077969-0-0-amd64'.
* Command that failed: 'lxc --project charmcraft start local:charmcraft-jaeger-k8s-2077969-0-0-amd64'
* Command exit code: 1
* Command standard error output: b"Error: Failed preparing container for start: Failed to run: zfs mount default/containers/charmcraft_charmcr
aft-jaeger-k8s-2077969-0-0-amd64: cannot open 'default/containers/charmcraft_charmcraft-jaeger-k8s-2077969-0-0-amd64': dataset does not exist\
nTry `lxc info --show-log local:charmcraft-jaeger-k8s-2077969-0-0-amd64` for more info\n"

Without that lxc info --show-log output, it’s going to be quite hard to figure out what’s going on here.

Unfortunately, I deleted my instance over which the issue occurred. If in the coming days, I face the same issue, then I will update of “lxc info --show-log” output.