[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-08-29 Thread James Page
This has been resolved in the latest upstream releases.

** Changed in: ceph (Ubuntu)
   Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-08-20 Thread Martin Pitt
** Changed in: systemd (Ubuntu)
   Status: Incomplete => Won't Fix

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-07-09 Thread James Page
Hi Martin

Thanks for the detailed response on different ways to tackle this issue;
I'll review and see what we can do with upstream to resolve this.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-24 Thread Martin Pitt
While we can technically put /dev/disks/by-path back for ATA devices in
Ubuntu, that still won't help upstream ceph on other distros, and I
believe this approach is buggy anyway. is_partition() currently looks a
bit underdefined/buggy to me, as it's not uncommon to have file systems
on unpartitioned block devices (i. e. mounting /dev/sdb directly); this
will also completely miss devmapper or other "virtual" devices. To mimic
the current behaviou,  one could do something like

  return not os.path.exists('/sys/block/%s' % os.path.basename(dev))

as devices will be there (like /sys/block/sdb), and partitions under
that (like /sys/block/sdb/sdb2). But again, that's not really what you
want there: Judging by how is_partition() is being used in
verify_not_in_use(), it should probably be called is_filesystem() and
query udev (CLI example: udevadm info --name=/dev/sda2 | grep ID_FS) or
blkid.

There are a couple of options how to rewrite these functions, including
reading /sys/block/, /proc/partitions, asking blkid, querying udevadm,
or querying udisks.

If you want a list of block devices with mountable file systems which
are present, and don't want to use any extra libraries, then perhaps the
simplest thing is

  udevadm trigger --dry-run --verbose --property-
match=ID_FS_USAGE=filesystem

(this doesn't need any root privileges). If you want all block devices,
then

  udevadm trigger --dry-run --verbose --subsystem-match=block

will give a list, including device-mapper (and also loopback, etc.).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-24 Thread James Page
Raising a task for ceph as well as this is the key impact I'm currently
aware of.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-24 Thread James Page
Easiest to refer to the code that uses this:

List all devices and partitions:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/ceph/saucy/view/head:/src/ceph-disk#L179

Check whether a given device is a partition or a full disk:
http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/ceph/saucy/view/head:/src/ceph-disk#L222

** Also affects: ceph (Ubuntu)
   Importance: Undecided
   Status: New

** Changed in: ceph (Ubuntu)
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ceph/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-24 Thread Martin Pitt
> The tools use the /dev/disk/by-path tree to detect whether specific
devices are already in use or not;

The by-path for ATA devices was removed because it was possible for the
same device to have multiple different by-path names; what does "in use"
mean in that context?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-24 Thread James Page
Martin

I picked it up because it causes problems with the tooling that ceph
uses to prepare disks for use in a ceph cluster.

The tools use the /dev/disk/by-path tree to detect whether specific
devices are already in use or not; so it would be nice if it could be
restored!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-23 Thread Martin Pitt
I bisected this down to
http://git.kernel.org/cgit/linux/hotplug/udev.git/commit/?id=481dcf7c8f;
reverting it makes the by-path/ reappear, but disabling it for ATA
devices (which only have a SCSI driver, but are not physically SCSI) was
quite deliberate. Is this causing actual problems, or did you just
happen to notice it?

** Changed in: systemd (Ubuntu)
   Importance: Medium => Low

** Changed in: systemd (Ubuntu)
   Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1193705] Re: [udev] /dev/disk/by-path missing

2013-06-23 Thread Martin Pitt
** Summary changed:

- /dev/disk/by-path missing in saucy cloud image
+ [udev] /dev/disk/by-path missing

** Changed in: systemd (Ubuntu)
   Status: New => Triaged

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1193705

Title:
  [udev] /dev/disk/by-path missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1193705/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs