[Hype-V][Azure]cloud-init failed to create user if "/mnt/cdrom/secure" does not exist
Bug #1696295 reported by
Hongjiang Zhang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Hongjiang Zhang |
Bug Description
On Azure, cloud-init (head) fails to mount cdrom /dev/cd0 on FreeBSD if the directory /mnt/cdrom/secure does not exist. In fact, "mount" should not depends on any directory. The quick fix is to use "util.mount_cd" to test whether cdrom is available or not.
Related branches
~redriver/cloud-init:fix-mount-issue-for-frbsd-on-Azure
- Scott Moser: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 59 lines (+18/-9)2 files modifiedcloudinit/sources/DataSourceAzure.py (+7/-8)
tests/unittests/test_datasource/test_azure.py (+11/-1)
Changed in cloud-init: | |
assignee: | nobody → Hongjiang Zhang (redriver) |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
The patch is ready for review: https:/ /code.launchpad .net/~redriver/ cloud-init/ +git/cloud- init/+ref/ fix-mount- issue-for- frbsd-on- Azure.