Actions
Bug #9537
openCatalogRefreshException on zone installation
Start date:
2018-05-14
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Description
I was installing zone as described in https://wiki.openindiana.org/oi/Building+in+zones and first attempt failed with CatalogRefreshException
, subsequent attempt (uninstall remnant & install anew) passed:
newman@lenovo:~/ws/oi-userland$ pfexec zfs create -o compression=on -o mountpoint=/zones rpool/zones newman@lenovo:~/ws/oi-userland$ pfexec zfs create -o sync=disabled -o atime=off rpool/zones/build newman@lenovo:~/ws/oi-userland$ sudo dladm create-vnic -l e1000g0 vnic0 newman@lenovo:~/ws/oi-userland$ sudo zonecfg -z build build: No such zone configured Use 'create' to begin configuring a new zone. zonecfg:build> create zonecfg:build> set autoboot=true zonecfg:build> set zonepath=/zones/build/build zonecfg:build> set ip-type=exclusive zonecfg:build> add net zonecfg:build:net> set physical=vnic0 zonecfg:build:net> end zonecfg:build> exit newman@lenovo:~/ws/oi-userland$ sudo zoneadm -z build install A ZFS file system has been created for this zone. Sanity Check: Looking for 'entire' incorporation. Image: Preparing at /zones/build/build/root. Traceback (most recent call last): File "/usr/bin/pkg", line 5444, in handle_errors __ret = func(*args, **kwargs) File "/usr/bin/pkg", line 5346, in main_func return func(api_inst, pargs) File "/usr/bin/pkg", line 3459, in copy_publishers_from api_inst.refresh() File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 2989, in refresh pubs=pubs, immediate=immediate) File "/usr/lib/python2.7/vendor-packages/pkg/client/api.py", line 3013, in __refresh progtrack=self.__progresstracker) File "/usr/lib/python2.7/vendor-packages/pkg/client/image.py", line 3346, in refresh_publishers raise e CatalogRefreshException pkg: This is an internal error in pkg(5) version 68d85e0b. Please log a Service Request about this issue including the information above and this message. ERROR: failed to create image zfs destroy rpool/zones/build/build failed: the dataset still has dependents rm: Unable to remove directory /zones/build/build/root: Device busy zoneadm: zone 'build': '/usr/bin/rm -rf' failed with exit code 2. zoneadm: build: cleaning up zonepath failed: Empty document
I have three publishers (if that's relevant):
PUBLISHER TYPE STATUS P LOCATION openindiana.org origin online F http://pkg.openindiana.org/hipster/ hipster-encumbered origin online F http://pkg.openindiana.org/hipster-encumbered/ localhostoih origin online F http://sfe.opencsw.org/localhostoih/
Updated by Alexander Pyhalov over 5 years ago
You could be unlucky enough to try refreshing repository during jenkins build job. This is a long standing infrastructure issue - when repository index is rebuilt, there's a brief moment of repository uavailability when pkg server is restarted.
Actions