[Bug 1980157] [NEW] Syslog error /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR

Reynaldo Abimael Aceves Chamosa 1980157 at bugs.launchpad.net
Tue Jun 28 23:00:34 UTC 2022


Public bug reported:

For Ubuntu 20.04 and 22.04 I could see the following error in syslog
when I create an instance in GCP GCE, this is not affecting production
but should be fixed to avoid confusion.

root at instance-1:~# grep Failed /var/log/syslog 
Jun 28 20:00:49 instance-1 systemd-udevd[224]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument
Jun 28 20:00:49 instance-1 systemd-udevd[490]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument
Jun 28 20:00:49 instance-1 systemd-udevd[500]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument

root at instance-1:~# ls -li /lib/udev/rules.d/99-gce.rules /usr/lib/udev/rules.d/99-gce.rules
73450 -rw-r--r-- 1 root root 284 Jul 29  2021 /lib/udev/rules.d/99-gce.rules
73450 -rw-r--r-- 1 root root 284 Jul 29  2021 /usr/lib/udev/rules.d/99-gce.rules

root at instance-1:~# dpkg -S 99-gce.rules
google-compute-engine: /lib/udev/rules.d/99-gce.rules

root at instance-1:~# lsb_release -rd
Description:    Ubuntu 22.04 LTS
Release:        22.04

root at instance-1:~# apt-cache policy google-compute-engine
google-compute-engine:
  Installed: 20211028.00-0ubuntu1
  Candidate: 20211028.00-0ubuntu1
  Version table:
 *** 20211028.00-0ubuntu1 500
        500 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

This may be related but do not know why it was not fixed for later releases.
https://github.com/GoogleCloudPlatform/compute-image-packages/issues/783


What you expected to happen: The errors should not appear as the code needs to be adjusted to avoid this messages to appear.

What happened instead: The errors are still showing in syslog even on
new instances with Ubuntu 22.04.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: google-compute-engine 20211028.00-0ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-1010.15-gcp 5.15.35
Uname: Linux 5.15.0-1010-gcp x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Jun 28 22:52:54 2022
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: gce-compute-image-packages
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: gce-compute-image-packages (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy uec-images

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gce-compute-image-packages in
Ubuntu.
https://bugs.launchpad.net/bugs/1980157

Title:
  Syslog error /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR

Status in gce-compute-image-packages package in Ubuntu:
  New

Bug description:
  For Ubuntu 20.04 and 22.04 I could see the following error in syslog
  when I create an instance in GCP GCE, this is not affecting production
  but should be fixed to avoid confusion.

  root at instance-1:~# grep Failed /var/log/syslog 
  Jun 28 20:00:49 instance-1 systemd-udevd[224]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument
  Jun 28 20:00:49 instance-1 systemd-udevd[490]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument
  Jun 28 20:00:49 instance-1 systemd-udevd[500]: sda: /usr/lib/udev/rules.d/99-gce.rules:5 Failed to write ATTR{/sys/devices/pci0000:00/0000:00:03.0/virtio0/host0/target0:0:1/0:0:1:0/block/sda/queue/scheduler}, ignoring: Invalid argument

  root at instance-1:~# ls -li /lib/udev/rules.d/99-gce.rules /usr/lib/udev/rules.d/99-gce.rules
  73450 -rw-r--r-- 1 root root 284 Jul 29  2021 /lib/udev/rules.d/99-gce.rules
  73450 -rw-r--r-- 1 root root 284 Jul 29  2021 /usr/lib/udev/rules.d/99-gce.rules

  root at instance-1:~# dpkg -S 99-gce.rules
  google-compute-engine: /lib/udev/rules.d/99-gce.rules

  root at instance-1:~# lsb_release -rd
  Description:    Ubuntu 22.04 LTS
  Release:        22.04

  root at instance-1:~# apt-cache policy google-compute-engine
  google-compute-engine:
    Installed: 20211028.00-0ubuntu1
    Candidate: 20211028.00-0ubuntu1
    Version table:
   *** 20211028.00-0ubuntu1 500
          500 http://us-central1.gce.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
          100 /var/lib/dpkg/status

  This may be related but do not know why it was not fixed for later releases.
  https://github.com/GoogleCloudPlatform/compute-image-packages/issues/783

  
  What you expected to happen: The errors should not appear as the code needs to be adjusted to avoid this messages to appear.

  What happened instead: The errors are still showing in syslog even on
  new instances with Ubuntu 22.04.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: google-compute-engine 20211028.00-0ubuntu1
  ProcVersionSignature: Ubuntu 5.15.0-1010.15-gcp 5.15.35
  Uname: Linux 5.15.0-1010-gcp x86_64
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Tue Jun 28 22:52:54 2022
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   LANG=C.UTF-8
   SHELL=/bin/bash
  SourcePackage: gce-compute-image-packages
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gce-compute-image-packages/+bug/1980157/+subscriptions




More information about the foundations-bugs mailing list