Project

General

Profile

Actions

Bug #4138

closed

Update fails if /opt is mounted from other disk

Added by Predrag Zečević almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PKG (Image Packaging System)
Target version:
-
Start date:
2013-09-16
Due date:
2013-12-10
% Done:

0%

Estimated time:
1.00 h
Difficulty:
Medium
Tags:
pkg

Description

Hi,

i am currently running OI from /hipster and have /opt mounted from another pool (not rpool):

$ zfs list | grep /opt
pz500/opt                                        17.8G   159G  17.8G  /opt

That triggered failure of BE update:

pfexec pkg update -v --be-name OI_151_181_hipster_20130915
...
Update Phase                               1269/4414Action upgrade failed for 'opt/os-tests/tests/poll_test' (pkg://openindiana.org/system/test/ostest):
 TypeError: 'NoneType' object is not callable
 The running system has not been modified. Modifications were only made to a clone of the running system.  This clone is mounted at /var/tmp/tmpedIk5N should you wish to inspect it.
pkg: An unexpected error happened during update: 'NoneType' object is not callable
Traceback (most recent call last):
  File "/usr/bin/pkg", line 5975, in handle_errors
    __ret = func(*args, **kwargs)
  File "/usr/bin/pkg", line 5958, in main_func
    pargs=pargs, **opts)
  File "/usr/bin/pkg", line 2344, in update
    reject_list=reject_pats, update_index=update_index)
  File "/usr/bin/pkg", line 1604, in __api_op
    ret_code = __api_execute_plan(_op, _api_inst)
  File "/usr/bin/pkg", line 1290, in __api_execute_plan
    api_inst.execute_plan()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/api.py", line 2177, in execute_plan
    self._img.imageplan.execute()
  File "/usr/lib/python2.6/vendor-packages/pkg/client/imageplan.py", line 2984, in execute
    p.execute_update(src, dest)
  File "/usr/lib/python2.6/vendor-packages/pkg/client/pkgplan.py", line 462, in execute_update
    dest.install(self, src)
  File "/usr/lib/python2.6/vendor-packages/pkg/actions/file.py", line 214, in install
    stream = self.data()
TypeError: 'NoneType' object is not callable

pkg: This is an internal error in pkg(5) version 1ff317412fe4+.  Please log a
Service Request about this issue including the information above and this
message.

I have found that 2 installations/packages made trouble:

pkg:/system/test/ostest  # installed into /opt/os-tests
pkg:/system/dtrace/tests # installed into /opt/SUNWdtrt

After removal of those (only tests/diags), pkg update went fine...

Regards.


Related issues

Related to OpenIndiana Distribution - Bug #4258: Pkg fails updating in Hipster, when /opt (without onbld) is mounted on separate datasetClosedOI PKG2013-10-222013-12-10

Actions
Actions #1

Updated by Ken Mays over 7 years ago

  • Category set to PKG (Image Packaging System)
  • Assignee set to OI PKG
  • Tags changed from needs-triage to pkg
Actions #2

Updated by Ken Mays over 7 years ago

  • Due date set to 2013-12-10

Please update to newer pkg5 release in hipster and retest your issue.
Similar/Duplicate issue like 4258. Consolidating tickets to 4258 (more info there).

Actions #3

Updated by Ken Mays over 7 years ago

  • Status changed from New to Closed
  • Estimated time set to 1.00 h
Actions

Also available in: Atom PDF