[OmniOS-discuss] pkg update fails with ImageNotFoundExeption
Paul
paul at subsignal.org
Wed Apr 19 07:19:15 UTC 2017
Hi all,
I tried to upgrade 151020 and "pkg update" failed with a python exception:
root at omnios:/root# pkg update
Packages to update: 309
Create boot environment: Yes
Create backup boot environment: No
DOWNLOAD PKGS FILES XFER (MB) SPEED
Completed 309/309 2867/2867 93.2/93.2 514k/s
pkg: An unexpected error happened during update: No image rooted at '/tmp/tmp4TusBd'
Traceback (most recent call last):
File "/usr/bin/pkg", line 6346, in handle_errors
__ret = func(*args, **kwargs)
File "/usr/bin/pkg", line 6332, in main_func
pargs=pargs, **opts)
File "/usr/bin/pkg", line 2147, in update
reject_list=reject_pats, update_index=update_index)
File "/usr/bin/pkg", line 1856, in __api_op
ret_code = __api_execute_plan(_op, _api_inst)
File "/usr/bin/pkg", line 1435, in __api_execute_plan
api_inst.execute_plan()
File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 2608, in
execute_plan
self.__be_name)
File "/usr/lib/python2.6/vendor-packages/pkg/client/bootenv.py", line 439, in
init_image_recovery
img.find_root(self.clone_dir, exact_match=True)
File "/usr/lib/python2.6/vendor-packages/pkg/client/image.py", line 524, in
find_root
exact_match, startd, d)
ImageNotFoundException: No image rooted at '/tmp/tmp4TusBd'
pkg: This is an internal error in pkg(5) version 1473694678. Please log a
Service Request about this issue including the information above and this
message.
(Note: line numbers above might be off by one, since I added a print()...)
root at omnios:/root# beadm list
BE Active Mountpoint Space Policy Created
omnios - - 23.4M static 2016-12-18 22:08
omniosvar - - 23.0K static 2016-12-18 22:08
omnios-1 NR / 3.67G static 2017-01-08 18:00
omnios-2 - /tmp/tmpN5q20r 129K static 2017-04-05 20:01
omnios-3 - /tmp/tmpIljvPO 129K static 2017-04-05 20:08
omnios-4 - /tmp/tmp4TusBd 134K static 2017-04-19 08:13
root at omnios:/root# zfs list -r rpool/ROOT
NAME USED AVAIL REFER MOUNTPOINT
rpool/ROOT 2.99G 1.02G 23K legacy
rpool/ROOT/omnios 23.4M 1.02G 1.72G /
rpool/ROOT/omnios-1 2.97G 1.02G 1.90G /
rpool/ROOT/omnios-2 129K 1.02G 1.84G /tmp/tmpN5q20r
rpool/ROOT/omnios-3 129K 1.02G 1.84G /tmp/tmpIljvPO
rpool/ROOT/omnios-4 134K 1.02G 1.90G /tmp/tmp4TusBd
rpool/ROOT/omniosvar 23K 1.02G 23K legacy
I tried to look at /usr/lib/python2.6/vendor-packages/pkg/client/image.py with
pdb but I'm missing too much of the bigger picture to make any sense of the
errors. It looks like the new BE is created correctly though. Maybe someone
knows the steps to manually finish the process? I would like to try the new BE
and see if the error persists. Any thoughts?
thanks
Paul
More information about the OmniOS-discuss
mailing list