Uploaded image for project: 'CoreOS OCP'
  1. CoreOS OCP
  2. COS-2245

GCP related udev rules create wrong /dev/disk/by-id symlinks on some platforms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Undefined Undefined
    • None
    • openshift-4.13
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Important
    • 0
    • 8

      OpenShift 4.13 builds above rc.5 use a RHCOS version which include some udev rules related to GCP: /usr/lib/udev/rules.d/65-gce-disk-naming.rules

      However those rules are also executed on non GCP platforms resulting in wrong symlinks, especially on OpenStack:

      > ls -l /dev/disk/by-id/
      
      lrwxrwxrwx. 1 root root  9 May 31 14:55 google- -> ../../vdc
      lrwxrwxrwx. 1 root root 10 May 31 14:26 google--part1 -> ../../vda1
      lrwxrwxrwx. 1 root root 10 May 31 14:26 google--part2 -> ../../vda2
      lrwxrwxrwx. 1 root root 10 May 31 14:26 google--part3 -> ../../vda3
      lrwxrwxrwx. 1 root root 10 May 31 14:26 google--part4 -> ../../vda4
      lrwxrwxrwx. 1 root root  9 May 31 14:26 virtio-903b467d-b0e3-4079-b -> ../../vda
      lrwxrwxrwx. 1 root root 10 May 31 14:26 virtio-903b467d-b0e3-4079-b-part1 -> ../../vda1
      lrwxrwxrwx. 1 root root 10 May 31 14:26 virtio-903b467d-b0e3-4079-b-part2 -> ../../vda2
      lrwxrwxrwx. 1 root root 10 May 31 14:26 virtio-903b467d-b0e3-4079-b-part3 -> ../../vda3
      lrwxrwxrwx. 1 root root 10 May 31 14:26 virtio-903b467d-b0e3-4079-b-part4 -> ../../vda4
      lrwxrwxrwx. 1 root root  9 May 31 14:55 virtio-c1e2ecb3-a29a-48ab-9 -> ../../vdb
      lrwxrwxrwx. 1 root root  9 May 31 14:55 virtio-ea97d80c-3763-49c0-8 -> ../../vdc
      

      Those /dev/disk/by-id/google-* symlinks are in turn exposed by (among others?) the volume discovery feature of the local storage operator instead of the /dev/disk/by-id/virtio-* symlinks.

      However, those /dev/disk/by-id/google-* symlinks are not consistent between reboots and it cause issues.

      Given /dev/[sv]d* paths are also not consistent anymore with OCP 4.13 since the RHEL 9.2 rebase, it makes it hard to come with a generic method to properly configure the storage on our environments.

      The RHCOS team already sent a pull request upstream fixing this issue: https://github.com/GoogleCloudPlatform/guest-configs/pull/52.

      A new RHCOS version including this change should be released in an upcoming OCP 4.13 Z-stream update.

              Unassigned Unassigned
              dollierp@redhat.com Denis Ollier Pinas
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: