canonical / canonical/cloud-init

unable to use /dev/disk/by-path for cc_disk_setup

Open
#3,969 2 comments 0 reactions 0 assignees View on GitHub
bug launchpad
Dominant language
Python
Stars
3.8k
Forks
1.1k
Avg merge
2d 23h
Merged PRs (30d)
18

Description

This bug was originally filed in Launchpad as [LP: #1969518](https://bugs.launchpad.net/cloud-init/+bug/1969518)

Launchpad details

affected_projects = []

assignee = None
assignee_name = None
date_closed = None
date_created = 2022-04-19T18:27:53.694266+00:00
date_fix_committed = None
date_fix_released = None
id = 1969518
importance = low
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1969518
milestone = None
owner = bgermain1689
owner_name = Brendan Germain
private = False
status = triaged
submitter = bgermain1689
submitter_name = Brendan Germain
tags = []
duplicates = []

_Launchpad user **Brendan Germain(bgermain1689)** wrote on 2022-04-19T18:27:53.694266+00:00_

fs_setup:
- device: /dev/disk/by-path/pci-0000:18:00.0-nvme-1

or

fs_setup:
- device: /dev/disk/by-path/pci-0000:18:00.0-nvme-1-part1

yields:

cc_disk_setup.py[WARNING]: Partition '0-nvme-1' from dotted device name '/dev/disk/by-path/pci-0000:18:00.0-nvme-1' overrides 'partition' key

cc_disk_setup.py[WARNING]: Partition '0-nvme-1-part1' from dotted device name '/dev/disk/by-path/pci-0000:18:00.0-nvme-1-part1' overrides 'partition' key

the dots in these device paths do not indicate a partition and it seems there is no way to disable the partition auto detection.

you should be able to use any of the /dev/disk/ paths. by-id by-partuuid by-path by-uuid

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.