You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# An example for creating container in project other than default
- hosts: localhostconnection: localtasks:
- name: Create a started container in project mytestprojectcommunity.general.lxd_container:
name: mycontainerignore_volatile_options: truestate: startedsource:
protocol: simplestreamstype: imagemode: pullserver: https://images.linuxcontainers.orgalias: ubuntu/20.04/cloudprofiles: ["default"]wait_for_ipv4_addresses: truetimeout: 600
Now im getting the error:
TASK [Create a started container in project mytestproject] ********************************************************************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"actions": [], "changed": false, "msg": "Failed getting remote image info: Failed getting image: The requested image couldn't be found for fingerprint \"ubuntu/20.04/cloud\""}
when i run the example with the fingerprint, all seems to be ok
- hosts: localhostconnection: localtasks:
- name: Create a started containercommunity.general.lxd_container:
name: mycontainerignore_volatile_options: truestate: startedsource:
type: imagemode: pull# Provides current (and older) Ubuntu images with listed fingerprintsserver: https://cloud-images.ubuntu.com/releases# Protocol used by 'ubuntu' remote (as shown by 'lxc remote list')protocol: simplestreams# This provides an Ubuntu 14.04 LTS amd64 image from 20150814.fingerprint: e9a8bdfab6dcprofiles: ["default"]wait_for_ipv4_addresses: truetimeout: 600
- hosts: localhostconnection: localtasks:
- name: Create a started containercommunity.general.lxd_container:
name: mycontainerignore_volatile_options: truestate: startedsource:
type: imagemode: pull# Provides current (and older) Ubuntu images with listed fingerprintsserver: https://cloud-images.ubuntu.com/releases# Protocol used by 'ubuntu' remote (as shown by 'lxc remote list')protocol: simplestreams# This provides an Ubuntu 14.04 LTS amd64 image from 20150814.fingerprint: e9a8bdfab6dcprofiles: ["default"]wait_for_ipv4_addresses: truetimeout: 600
Expected Results
Container gets created
Actual Results
TASK [Create a started container in project mytestproject] ********************************************************************************************************************************************************************************************fatal: [localhost]: FAILED! => {"actions": [], "changed": false, "msg": "Failed getting remote image info: Failed getting image: The requested image couldn't be found for fingerprint \"ubuntu/20.04/cloud\""}
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
I'm currently trying to create a LXD container via Ansible on a virtual machine.
The Machine is running Ubuntu 22.04.
I copied the example from https://docs.ansible.com/ansible/latest/collections/community/general/lxd_container_module.html
Now im getting the error:
when i run the example with the fingerprint, all seems to be ok
Issue Type
Bug Report
Component Name
lxd_container
Ansible Version
Community.general Version
Configuration
OS / Environment
Ubuntu 22.04 LTS
Steps to Reproduce
Expected Results
Container gets created
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: