Failed to read "/sys/bus/pci/devices/0000:05:00.0/vpd": open /sys/bus/pci/devices/0000:05:00.0/vpd: permission denied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Alberto Donato |
Bug Description
This is using 3.2.0~beta4-
The controller can not refresh its networking/hardware configuration:
2022-05-13 10:21:54 twisted.
2022-05-13 10:21:54 twisted.
Traceback (most recent call last):
File "/usr/lib/
File "/snap/
return target()
File "/snap/
task()
File "/snap/
task()
--- <exception caught here> ---
File "/snap/
result = inContext.theWork()
File "/snap/
File "/snap/
return self.currentCon
File "/snap/
return func(*args,**kw)
File "/snap/
return func(*args, **kwargs)
File "/snap/
result = func(*args, **kwargs)
File "/snap/
return func_outside_
File "/snap/
return func(*args, **kwargs)
File "/usr/lib/
return func(*args, **kwds)
File "/snap/
File "/snap/
File "/snap/
for network in get_all_
File "/snap/
for interface in get_all_
File "/snap/
for name, ipaddr in get_ip_
File "/snap/
output = call_and_
File "/snap/
raise ExternalProcess
ERROR: Failed to retrieve PCI information: Failed to read "/sys/bus/
Related branches
- Björn Tillenius: Approve
- MAAS Lander: Pending (unittests) requested
-
Diff: 54 lines (+9/-9)2 files modifiedsrc/host-info/go.mod (+3/-3)
src/host-info/go.sum (+6/-6)
Changed in maas: | |
milestone: | none → 3.2.0 |
assignee: | nobody → Alberto Donato (ack) |
importance: | Undecided → High |
status: | New → Triaged |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.2.0 → 3.2.0-beta5 |
status: | Fix Committed → Fix Released |
It seems like the vpd file can't be read from within a container. This is the file on the container:
maas-dev:~> sudo find /sys -name vpd pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:02.0/ 0000:05: 00.0/vpd pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:04.0/ 0000:06: 00.0/vpd
-rw------- 1 nobody nogroup 0 May 13 10:17 /sys/devices/
-rw------- 1 nobody nogroup 0 May 16 08:01 /sys/devices/
maas-dev:~> sudo less /sys/devices/ pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:02.0/ 0000:05: 00.0/vpd pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:02.0/ 0000:05: 00.0/vpd: Permission denied
/sys/devices/
From the host, the file looks like this (and can be read):
salvia:~> sudo sudo find /sys -name vpd | xargs ls -l pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:02.0/ 0000:05: 00.0/vpd pci0000: 00/0000: 00:01.2/ 0000:02: 00.0/0000: 03:04.0/ 0000:06: 00.0/vpd
-rw------- 1 root root 0 maj 12 09:00 /sys/devices/
-rw------- 1 root root 0 maj 12 09:00 /sys/devices/