Temporary resource disk mounted as /mnt and no swap on rhel8 sku 8-lvm-gen2 latest
- Dominant language
- Python
- Stars
- 581
- Forks
- 397
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 9
Description
After installing the latest 8-lvm-gen2 RHEL8 on a B4ms I noticed that the /mnt/resource partition is not being mounted and that there is no swap being created. Instead it seems cloud-init has provisioned the disk like this:
```
# cat /etc/fstab |grep cloud
/dev/disk/cloud/azure_resource-part1 /mnt auto defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig 0 2
```
Please advise if this behavior is wanted and recommended or if waagent should handle the resource disk and swap. Currently it seems this is explicitly set via waagent.conf in that image. RHEL 8.1 had different defaults.
**Distro and WALinuxAgent details (please complete the following information):**
- RHEL 8.2 WALinuxAgent-2.2.46-1.el8.5.noarch
- WALinuxAgent version
```
# waagent --version
WALinuxAgent-2.2.46 running on redhat 8.2
Python: 3.6.8
Goal state agent: 2.2.49.2
```
the image is with WALinuxAgent-2.2.38-1.el8, I did run yum update afterwards.
Contributor guide
Research direction
Start with the reported /etc/fstab cloud-init entry and the image's waagent.conf, then compare how RHEL 8.2 and the stated WALinuxAgent versions provision the resource disk and swap. Use the reported RHEL 8.1 defaults as a comparison point. Done means the intended owner and recommended behavior for mounting /mnt/resource and creating swap are explicitly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, python
- Domain
- cloud, infrastructure, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100