Public bug reported:

Attempting a cloud_test run on lxd platform had this issue.

(diglett) cloud-init % tox -r -e citest -- run --verbose --platform=lxd 
--os-name centos70 --rpm ~/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm 
--result /tmp/centos7-result.yaml
GLOB sdist-make: /srv/tmp/rharper/cloud-init/setup.py
citest create: /srv/tmp/rharper/cloud-init/.tox/citest
citest installdeps: -r/srv/tmp/rharper/cloud-init/integration-requirements.txt
citest inst: /srv/tmp/rharper/cloud-init/.tox/.tmp/package/1/cloud-init-19.1.zip
citest installed: 
asn1crypto==0.24.0,attrs==19.1.0,bcrypt==3.1.6,boto3==1.5.9,botocore==1.8.50,certifi==2019.6.16,cffi==1.12.3,chardet==3.0.4,cloud-init==19.1,configobj==5.0.6,cryptography==2.7,docutils==0.14,idna==2.8,Jinja2==2.10.1,jmespath==0.9.4,jsonpatch==1.23,jsonpointer==2.0,jsonschema==3.0.1,linecache2==1.0.0,MarkupSafe==1.1.1,oauthlib==3.0.1,paramiko==2.4.1,pbr==5.3.0,pkg-resources==0.0.0,pyasn1==0.4.5,pycparser==2.19,pylxd==2.2.7,PyNaCl==1.3.0,pyrsistent==0.15.2,python-dateutil==2.8.0,python-simplestreams==0.1.0,PyYAML==5.1.1,requests==2.22.0,requests-toolbelt==0.9.1,requests-unixsocket==0.1.5,s3transfer==0.1.13,six==1.12.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.25.3,ws4py==0.5.1
citest run-test-pre: PYTHONHASHSEED='2218838469'
citest runtests: commands[0] | 
/srv/tmp/rharper/cloud-init/.tox/citest/bin/python -m tests.cloud_tests run 
--verbose --platform=lxd --os-name centos70 --rpm 
/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm --result 
/tmp/centos7-result.yaml
2019-06-19 19:18:44,550 - tests.cloud_tests - DEBUG - running with args: 
Namespace(data_dir=None, deb=None, feature_override={}, os_name=['centos70'], 
platform=['lxd'], ppa=None, preserve_data=False, preserve_instance=False, 
quiet=False, repo=None, result='/tmp/centos7-result.yaml', 
rpm='/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm', script=None, 
subcmd='run', 
test_config=['/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1511485.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1611074.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1628337.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/add_apt_repositories.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/alter_completion_message.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/configure_instance_trusted_ca_certificates.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/configure_instances_ssh_keys.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/including_user_groups.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/install_arbitrary_packages.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/install_run_chef_recipes.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_apt_upgrade.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_commands.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_commands_first_boot.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/setup_run_puppet.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/writing_out_arbitrary_files.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/main/command_output_simple.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_conf.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_disable_suites.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_proxy.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_security.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_key.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_keyserver.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_list.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_ppa.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_pipelining_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_pipelining_os.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/bootcmd.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/byobu.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ca_certs.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/debug_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/debug_enable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/final_message.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/keys_to_console.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/landscape.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/locale.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/lxd_bridge.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/lxd_dir.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_chrony.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_pools.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_servers.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_timesyncd.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/package_update_upgrade_install.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/runcmd.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/seed_random_command.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/seed_random_data.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_hostname.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_hostname_fqdn.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_expire.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_list.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_list_string.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/snap.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/snappy.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_auth_key_fingerprints_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_auth_key_fingerprints_enable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_import_id.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_keys_generate.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_keys_provided.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/timezone.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/user_groups.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/write_files.yaml'],
 upgrade=False, upgrade_full=False, verbose=True)
2019-06-19 19:18:44,552 - tests.cloud_tests - DEBUG - using tmpdir: 
/tmp/cloud_test_data_tewitnzo
2019-06-19 19:18:44,560 - tests.cloud_tests - DEBUG - platform config: 
{'enabled': True, 'get_image_timeout': 300, 'create_instance_timeout': 60, 
'private_key': 'cloud_init_rsa', 'public_key': 'cloud_init_rsa.pub', 
'template_overrides': {'/var/lib/cloud/seed/nocloud-net/meta-data': {'when': 
['create', 'copy'], 'template': 'cloud-init-meta.tpl'}, 
'/var/lib/cloud/seed/nocloud-net/network-config': {'when': ['create', 'copy'], 
'template': 'cloud-init-network.tpl'}, 
'/var/lib/cloud/seed/nocloud-net/user-data': {'when': ['create', 'copy'], 
'template': 'cloud-init-user.tpl', 'properties': {'default': 
'#cloud-config\n{}\n'}}, '/var/lib/cloud/seed/nocloud-net/vendor-data': 
{'when': ['create', 'copy'], 'template': 'cloud-init-vendor.tpl', 'properties': 
{'default': '#cloud-config\n{}\n'}}}, 'template_files': {'cloud-init-meta.tpl': 
'#cloud-config\ninstance-id: {{ container.name }}\nlocal-hostname: {{ 
container.name }}\n{{ config_get("user.meta-data", "") }}\n', 
'cloud-init-network.tpl': '{% if config_get("user.network-config", "") == "" 
%}version: 1\nconfig:\n    - type: physical\n      name: eth0\n      subnets:\n 
         - type: {% if config_get("user.network_mode", "") == "link-local" 
%}manual{% else %}dhcp{% endif %}\n            control: auto{% else %}{{ 
config_get("user.network-config", "") }}{% endif %}\n', 'cloud-init-user.tpl': 
'{{ config_get("user.user-data", properties.default) }}\n', 
'cloud-init-vendor.tpl': '{{ config_get("user.vendor-data", properties.default) 
}}\n'}, 'data_dir': '/tmp/cloud_test_data_tewitnzo'}
2019-06-19 19:18:44,560 - tests.cloud_tests - INFO - setting up platform: lxd
2019-06-19 19:18:44,987 - tests.cloud_tests - DEBUG - os config: {'enabled': 
True, 'boot_timeout': 120, 'boot_clean_script': '#!/bin/bash\nrm -rf 
/var/log/cloud-init.log /var/log/cloud-init-output.log \\\n    /var/lib/cloud/ 
/run/cloud-init/ /var/log/syslog\n', 'system_ready_script': "# permit running 
or degraded state as both indicate complete boot\n[ $(systemctl 
is-system-running) = 'running' -o\n  $(systemctl is-system-running) = 
'degraded' ]\n", 'cloud_init_ready_script': "[ -f '/run/cloud-init/result.json' 
]\n", 'feature_groups': ['base', 'rhel_base'], 'features': {'apt': None, 
'byobu': None, 'landscape': None, 'lxd': None, 'ppa': None, 'rpm': True, 
'snap': None, 'hostname': False, 'apt_src_cont': None, 'apt_hist_fmt': None, 
'daylight_time': None, 'apt_up_out': None, 'engb_locale': None, 'locale_gen': 
None, 'no_ntpdate': None, 'no_file_fmt_e': True, 'ppa_file_name': None, 'sshd': 
None, 'ssh_key_fmt': None, 'syslog': None, 'ubuntu_ntp': None, 'ubuntu_repos': 
None, 'ubuntu_user': None, 'lsb_release': None, 'sudo': None}, 'mirror_url': 
'https://cloud-images.ubuntu.com/daily', 'mirror_dir': '/srv/citest/images', 
'keyring': '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg', 'version': 
None, 'sstreams_server': 'https://us.images.linuxcontainers.org:8443', 
'cache_base_image': True, 'override_templates': True, 'setup_overrides': 
{'upgrade': True}, 'user_data_overrides': {'preserve_hostname': True}, 'alias': 
'centos/7/default', 'arch': 'amd64'}
2019-06-19 19:18:44,987 - tests.cloud_tests - INFO - acquiring image for os: 
centos70
/srv/tmp/rharper/cloud-init/.tox/citest/lib/python3.7/site-packages/pylxd/models/operation.py:54:
 UserWarning: Attempted to set unknown attribute "location" on instance of 
"Operation"
  .format(key, self.__class__.__name__))
2019-06-19 19:18:45,141 - tests.cloud_tests - ERROR - stage: collect for 
platform: lxd encountered error: Unexpected error while running command.
Command: ['lxc', 'image', 'export', 
'763f3826ffd08b1747fd0568cac1758f39355c4a18b548b08fb2da9c4cceb525', 
'/tmp/cloud_test_util_x7luop8c']
Exit code: 1
Reason: -
Stdout:
Stderr: Error: open /var/lib/snapd/hostfs/tmp/cloud_test_util_x7luop8c: is a 
directory
2019-06-19 19:18:45,143 - tests.cloud_tests - ERROR - traceback:
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/stage.py", line 97, in 
run_stage
    (call_res, call_failed) = call()
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/collect.py", line 169, in 
collect_image
    with component as image:
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/stage.py", line 27, in 
__enter__
    self.instance = self.get_func()
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/__init__.py", 
line 18, in get_image
    return platform.get_image(config)
  File 
"/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/platform.py", line 
39, in get_image
    self.config.get('template_files', {}))
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/image.py", 
line 126, in update_templates
    (metadata, rootfs) = self.export_image(export_dir)
  File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/image.py", 
line 85, in export_image
    output_dir], capture=True)
  File "/srv/tmp/rharper/cloud-init/cloudinit/util.py", line 2069, in subp
    cmd=args)

2019-06-19 19:18:45,144 - tests.cloud_tests - DEBUG - collect stages: {'name': 
'collect data', 'time': 0.5917568206787109, 'errors': [], 'stages': [{'name': 
'collect for platform: lxd', 'time': 0.21356415748596191, 'errors': 
["Unexpected error while running command.\nCommand: ['lxc', 'image', 'export', 
'763f3826ffd08b1747fd0568cac1758f39355c4a18b548b08fb2da9c4cceb525', 
'/tmp/cloud_test_util_x7luop8c']\nExit code: 1\nReason: -\nStdout: \nStderr: 
Error: open /var/lib/snapd/hostfs/tmp/cloud_test_util_x7luop8c: is a 
directory"], 'stages': [], 'success': False}], 'success': False}
2019-06-19 19:18:45,153 - tests.cloud_tests - DEBUG - found test data: {}

2019-06-19 19:18:45,153 - tests.cloud_tests - DEBUG -
---- Verify summarized results:

ERROR: InvocationError for command 
'/srv/tmp/rharper/cloud-init/.tox/citest/bin/python -m tests.cloud_tests run 
--verbose --platform=lxd --os-name centos70 --rpm 
/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm --result 
/tmp/centos7-result.yaml' (exited with code 1)
__________________________________________________________________________________
 summary 
__________________________________________________________________________________
ERROR:   citest: commands failed

** Affects: cloud-init
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1833460

Title:
  cloud_tests on lxd snap error exporting image

Status in cloud-init:
  New

Bug description:
  Attempting a cloud_test run on lxd platform had this issue.

  (diglett) cloud-init % tox -r -e citest -- run --verbose --platform=lxd 
--os-name centos70 --rpm ~/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm 
--result /tmp/centos7-result.yaml
  GLOB sdist-make: /srv/tmp/rharper/cloud-init/setup.py
  citest create: /srv/tmp/rharper/cloud-init/.tox/citest
  citest installdeps: -r/srv/tmp/rharper/cloud-init/integration-requirements.txt
  citest inst: 
/srv/tmp/rharper/cloud-init/.tox/.tmp/package/1/cloud-init-19.1.zip
  citest installed: 
asn1crypto==0.24.0,attrs==19.1.0,bcrypt==3.1.6,boto3==1.5.9,botocore==1.8.50,certifi==2019.6.16,cffi==1.12.3,chardet==3.0.4,cloud-init==19.1,configobj==5.0.6,cryptography==2.7,docutils==0.14,idna==2.8,Jinja2==2.10.1,jmespath==0.9.4,jsonpatch==1.23,jsonpointer==2.0,jsonschema==3.0.1,linecache2==1.0.0,MarkupSafe==1.1.1,oauthlib==3.0.1,paramiko==2.4.1,pbr==5.3.0,pkg-resources==0.0.0,pyasn1==0.4.5,pycparser==2.19,pylxd==2.2.7,PyNaCl==1.3.0,pyrsistent==0.15.2,python-dateutil==2.8.0,python-simplestreams==0.1.0,PyYAML==5.1.1,requests==2.22.0,requests-toolbelt==0.9.1,requests-unixsocket==0.1.5,s3transfer==0.1.13,six==1.12.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.25.3,ws4py==0.5.1
  citest run-test-pre: PYTHONHASHSEED='2218838469'
  citest runtests: commands[0] | 
/srv/tmp/rharper/cloud-init/.tox/citest/bin/python -m tests.cloud_tests run 
--verbose --platform=lxd --os-name centos70 --rpm 
/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm --result 
/tmp/centos7-result.yaml
  2019-06-19 19:18:44,550 - tests.cloud_tests - DEBUG - running with args: 
Namespace(data_dir=None, deb=None, feature_override={}, os_name=['centos70'], 
platform=['lxd'], ppa=None, preserve_data=False, preserve_instance=False, 
quiet=False, repo=None, result='/tmp/centos7-result.yaml', 
rpm='/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm', script=None, 
subcmd='run', 
test_config=['/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1511485.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1611074.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/bugs/lp1628337.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/add_apt_repositories.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/alter_completion_message.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/configure_instance_trusted_ca_certificates.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/configure_instances_ssh_keys.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/including_user_groups.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/install_arbitrary_packages.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/install_run_chef_recipes.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_apt_upgrade.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_commands.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/run_commands_first_boot.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/setup_run_puppet.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/examples/writing_out_arbitrary_files.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/main/command_output_simple.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_conf.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_disable_suites.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_primary.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_proxy.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_security.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_key.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_keyserver.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_list.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_configure_sources_ppa.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_pipelining_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/apt_pipelining_os.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/bootcmd.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/byobu.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ca_certs.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/debug_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/debug_enable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/final_message.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/keys_to_console.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/landscape.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/locale.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/lxd_bridge.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/lxd_dir.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_chrony.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_pools.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_servers.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ntp_timesyncd.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/package_update_upgrade_install.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/runcmd.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/seed_random_command.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/seed_random_data.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_hostname.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_hostname_fqdn.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_expire.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_list.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/set_password_list_string.yaml',
 '/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/snap.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/snappy.yaml', 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_auth_key_fingerprints_disable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_auth_key_fingerprints_enable.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_import_id.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_keys_generate.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/ssh_keys_provided.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/timezone.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/user_groups.yaml',
 
'/srv/tmp/rharper/cloud-init/tests/cloud_tests/testcases/modules/write_files.yaml'],
 upgrade=False, upgrade_full=False, verbose=True)
  2019-06-19 19:18:44,552 - tests.cloud_tests - DEBUG - using tmpdir: 
/tmp/cloud_test_data_tewitnzo
  2019-06-19 19:18:44,560 - tests.cloud_tests - DEBUG - platform config: 
{'enabled': True, 'get_image_timeout': 300, 'create_instance_timeout': 60, 
'private_key': 'cloud_init_rsa', 'public_key': 'cloud_init_rsa.pub', 
'template_overrides': {'/var/lib/cloud/seed/nocloud-net/meta-data': {'when': 
['create', 'copy'], 'template': 'cloud-init-meta.tpl'}, 
'/var/lib/cloud/seed/nocloud-net/network-config': {'when': ['create', 'copy'], 
'template': 'cloud-init-network.tpl'}, 
'/var/lib/cloud/seed/nocloud-net/user-data': {'when': ['create', 'copy'], 
'template': 'cloud-init-user.tpl', 'properties': {'default': 
'#cloud-config\n{}\n'}}, '/var/lib/cloud/seed/nocloud-net/vendor-data': 
{'when': ['create', 'copy'], 'template': 'cloud-init-vendor.tpl', 'properties': 
{'default': '#cloud-config\n{}\n'}}}, 'template_files': {'cloud-init-meta.tpl': 
'#cloud-config\ninstance-id: {{ container.name }}\nlocal-hostname: {{ 
container.name }}\n{{ config_get("user.meta-data", "") }}\n', 
'cloud-init-network.tpl': '{% if config_get("user.network-config", "") == "" 
%}version: 1\nconfig:\n    - type: physical\n      name: eth0\n      subnets:\n 
         - type: {% if config_get("user.network_mode", "") == "link-local" 
%}manual{% else %}dhcp{% endif %}\n            control: auto{% else %}{{ 
config_get("user.network-config", "") }}{% endif %}\n', 'cloud-init-user.tpl': 
'{{ config_get("user.user-data", properties.default) }}\n', 
'cloud-init-vendor.tpl': '{{ config_get("user.vendor-data", properties.default) 
}}\n'}, 'data_dir': '/tmp/cloud_test_data_tewitnzo'}
  2019-06-19 19:18:44,560 - tests.cloud_tests - INFO - setting up platform: lxd
  2019-06-19 19:18:44,987 - tests.cloud_tests - DEBUG - os config: {'enabled': 
True, 'boot_timeout': 120, 'boot_clean_script': '#!/bin/bash\nrm -rf 
/var/log/cloud-init.log /var/log/cloud-init-output.log \\\n    /var/lib/cloud/ 
/run/cloud-init/ /var/log/syslog\n', 'system_ready_script': "# permit running 
or degraded state as both indicate complete boot\n[ $(systemctl 
is-system-running) = 'running' -o\n  $(systemctl is-system-running) = 
'degraded' ]\n", 'cloud_init_ready_script': "[ -f '/run/cloud-init/result.json' 
]\n", 'feature_groups': ['base', 'rhel_base'], 'features': {'apt': None, 
'byobu': None, 'landscape': None, 'lxd': None, 'ppa': None, 'rpm': True, 
'snap': None, 'hostname': False, 'apt_src_cont': None, 'apt_hist_fmt': None, 
'daylight_time': None, 'apt_up_out': None, 'engb_locale': None, 'locale_gen': 
None, 'no_ntpdate': None, 'no_file_fmt_e': True, 'ppa_file_name': None, 'sshd': 
None, 'ssh_key_fmt': None, 'syslog': None, 'ubuntu_ntp': None, 'ubuntu_repos': 
None, 'ubuntu_user': None, 'lsb_release': None, 'sudo': None}, 'mirror_url': 
'https://cloud-images.ubuntu.com/daily', 'mirror_dir': '/srv/citest/images', 
'keyring': '/usr/share/keyrings/ubuntu-cloudimage-keyring.gpg', 'version': 
None, 'sstreams_server': 'https://us.images.linuxcontainers.org:8443', 
'cache_base_image': True, 'override_templates': True, 'setup_overrides': 
{'upgrade': True}, 'user_data_overrides': {'preserve_hostname': True}, 'alias': 
'centos/7/default', 'arch': 'amd64'}
  2019-06-19 19:18:44,987 - tests.cloud_tests - INFO - acquiring image for os: 
centos70
  
/srv/tmp/rharper/cloud-init/.tox/citest/lib/python3.7/site-packages/pylxd/models/operation.py:54:
 UserWarning: Attempted to set unknown attribute "location" on instance of 
"Operation"
    .format(key, self.__class__.__name__))
  2019-06-19 19:18:45,141 - tests.cloud_tests - ERROR - stage: collect for 
platform: lxd encountered error: Unexpected error while running command.
  Command: ['lxc', 'image', 'export', 
'763f3826ffd08b1747fd0568cac1758f39355c4a18b548b08fb2da9c4cceb525', 
'/tmp/cloud_test_util_x7luop8c']
  Exit code: 1
  Reason: -
  Stdout:
  Stderr: Error: open /var/lib/snapd/hostfs/tmp/cloud_test_util_x7luop8c: is a 
directory
  2019-06-19 19:18:45,143 - tests.cloud_tests - ERROR - traceback:
    File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/stage.py", line 97, in 
run_stage
      (call_res, call_failed) = call()
    File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/collect.py", line 169, 
in collect_image
      with component as image:
    File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/stage.py", line 27, in 
__enter__
      self.instance = self.get_func()
    File "/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/__init__.py", 
line 18, in get_image
      return platform.get_image(config)
    File 
"/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/platform.py", line 
39, in get_image
      self.config.get('template_files', {}))
    File 
"/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/image.py", line 
126, in update_templates
      (metadata, rootfs) = self.export_image(export_dir)
    File 
"/srv/tmp/rharper/cloud-init/tests/cloud_tests/platforms/lxd/image.py", line 
85, in export_image
      output_dir], capture=True)
    File "/srv/tmp/rharper/cloud-init/cloudinit/util.py", line 2069, in subp
      cmd=args)

  2019-06-19 19:18:45,144 - tests.cloud_tests - DEBUG - collect stages: 
{'name': 'collect data', 'time': 0.5917568206787109, 'errors': [], 'stages': 
[{'name': 'collect for platform: lxd', 'time': 0.21356415748596191, 'errors': 
["Unexpected error while running command.\nCommand: ['lxc', 'image', 'export', 
'763f3826ffd08b1747fd0568cac1758f39355c4a18b548b08fb2da9c4cceb525', 
'/tmp/cloud_test_util_x7luop8c']\nExit code: 1\nReason: -\nStdout: \nStderr: 
Error: open /var/lib/snapd/hostfs/tmp/cloud_test_util_x7luop8c: is a 
directory"], 'stages': [], 'success': False}], 'success': False}
  2019-06-19 19:18:45,153 - tests.cloud_tests - DEBUG - found test data: {}

  2019-06-19 19:18:45,153 - tests.cloud_tests - DEBUG -
  ---- Verify summarized results:

  ERROR: InvocationError for command 
'/srv/tmp/rharper/cloud-init/.tox/citest/bin/python -m tests.cloud_tests run 
--verbose --platform=lxd --os-name centos70 --rpm 
/home/rharper/cloud-init-19.1+44.g12efb6d3-1.el7.noarch.rpm --result 
/tmp/centos7-result.yaml' (exited with code 1)
  
__________________________________________________________________________________
 summary 
__________________________________________________________________________________
  ERROR:   citest: commands failed

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1833460/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to