canonical / canonical/cloud-init

ephemeral0 of /dev/sda1 triggers 'did not find entry for sda1 in /sys/block'

Open
#2,420 15 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: #1263294](https://bugs.launchpad.net/cloud-init/+bug/1263294)

Launchpad details

affected_projects = ['tripleo']

assignee = None
assignee_name = None
date_closed = None
date_created = 2013-12-21T09:33:20.994335+00:00
date_fix_committed = None
date_fix_released = None
id = 1263294
importance = medium
is_complete = False
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1263294
milestone = None
owner = lifeless
owner_name = Robert Collins
private = False
status = triaged
submitter = lifeless
submitter_name = Robert Collins
tags = []
duplicates = [1314922]

_Launchpad user **Robert Collins(lifeless)** wrote on 2013-12-21T09:33:20.994335+00:00_

This is due to line 227 of ./cloudinit/config/cc_mounts.py::

short_name = os.path.basename(device)
sys_path = "/sys/block/%s" % short_name

if not os.path.exists(sys_path):
LOG.debug("did not find entry for %s in /sys/block", short_name)
return None

The sys path for /dev/sda1 is /sys/block/sda/sda1.

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.