shinesolutions / packer-aem

Adobe Experience Manager (AEM) machine images builder using Packer
Apache License 2.0
20 stars 20 forks source link

[AMZ2] Data device disappears during AMI baking #259

Open mbloch1986 opened 2 years ago

mbloch1986 commented 2 years ago

Describe the bug When baking an AMI with Amazon Linux 2 the data device disappears during the AMI baking process.

At the beginning of the ami baking process:

[root@ip-10-11-20-121 ~]# ls -l /dev/xvdb
lrwxrwxrwx 1 root root 7 Feb 14 05:43 /dev/xvdb -> nvme1n1

After the mounting attempt in the AMI baking process:

[root@ip-10-11-20-121 ~]# ls -l /dev/xvdb
ls: cannot access /dev/xvdb: No such file or directory

[root@ip-10-11-20-121 ~]# ls -l /dev/nvme1n1
ls: cannot access /dev/nvme1n1: No such file or directory

this is happening across all components.

To Reproduce Steps to reproduce the behavior:

  1. Start AMI baking using Amazon Linux 2
  2. Wait until the AMI baking failed.
  3. The Inspec test to validate if the data device is mounted to /mnt/ebs1 will fail

Expected behavior AMI baking should pass and the data device should be mounted at /mnt/ebs1

Environment (please complete the following information if relevant):