Unable to create snapshot or image using packer, we have tried using all the plugins that is available in ionos github and the one which is in hashicorp. I have added the output details below, it is not even allowing to make snapshot for basic shell provisioner.
We have debian 10 in our infra and it is now EOL (End of life), we need to upgrade to debian 11. But the issue with the plugin is the blocker for us.
What should we do here to solve this issue? and how can we proceed and what is the alternative for this.
Thanks in advance
packer conf for creating the image (credentials are masked)
{
"variables": {
"username": "{{env `PACKER_PROFITBRICKS_USERNAME`}}",
"password": "{{env `PACKER_PROFITBRICKS_PASSWORD`}}"
},
"builders": [
{
"image": "Debian-11",
"type": "profitbricks",
"username": "{{user `username`}}",
"password": "{{user `password`}}",
"cores": 2,
"location": "de/fra",
"disk_size": "15",
"snapshot_name": "backup-xxxxxx",
"ssh_username": "xxxxx",
"ssh_password": "xxxxxxxx",
"ssh_private_key_file": "./rsa",
"communicator": "ssh"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"apt-get update",
"apt-get -y install python3-apt lsb-release distro-info-data"
]
}
]
}
Output
packer git:(update_to_debian_11) ✗ packer build -debug bkp_image.json
Debug mode enabled. Builds will not be parallelized.
profitbricks: output will be in this color.
==> profitbricks: Pausing after run of step 'StepCreateSSHKey'. Press enter to continue.
==> profitbricks: Creating Virtual Data Center...
==> profitbricks: {"msg": "Not Found"}
==> profitbricks: Removing Virtual Data Center...
==> profitbricks: Pausing before cleanup of step 'StepCreateSSHKey'. Press enter to continue.
Build 'profitbricks' finished after 2 seconds 857 milliseconds.
==> Wait completed after 2 seconds 857 milliseconds
==> Builds finished. The artifacts of successful builds are:
--> profitbricks: A snapshot was created: 'backup-v1.1.0-rc1'
➜ packer git:(update_to_debian_11) ✗
➜ packer git:(update_to_debian_11) ✗ packer plugins installed
/Users/c.chandran/.config/packer/plugins/github.com/hashicorp/ansible/packer-plugin-ansible_v1.1.1_x5.0_darwin_amd64
/Users/c.chandran/.config/packer/plugins/github.com/ionos-cloud/ionoscloud/packer-plugin-ionoscloud_v1.0.0_x5.0_darwin_amd64
/Users/c.chandran/.config/packer/plugins/github.com/hashicorp/oneandone/packer-plugin-oneandone_v1.0.1_x5.0_darwin_amd64
/Users/c.chandran/.config/packer/plugins/github.com/hashicorp/profitbricks/packer-plugin-profitbricks_v1.0.2_x5.0_darwin_amd64
➜ packer git:(update_to_debian_11) ✗
ionos plugins tried
github.com/ionos-cloud/ionoscloud/packer-pluginionoscloud_v1.0.0_x5.0_darwin_amd64
github.com/hashicorp/oneandone/packer-plugin-oneandone_v1.0.1_x5.0_darwin_amd64
github.com/hashicorp/profitbricks/packer-plugin-profitbricks_v1.0.2_x5.0_darwin_amd64