syspool hardcoded in apt-clone

Bug #305469 reported by anilg
4
Affects Status Importance Assigned to Milestone
Nexenta Operating System
Confirmed
Wishlist
Unassigned

Bug Description

root@kauai:~/src/misc# apt-clone upgrade
apt-clone.SystemCallError: cannot open 'syspool': dataset does not exist
root@kauai:~/src/misc# zfs list
NAME USED AVAIL REFER MOUNTPOINT
tank 127G 102G 6.83G /tank
tank/users 108G 102G 18K none
tank/users/anil 100G 102G 18K none
tank/users/anil@251108 0 - 18K -
tank/users/anil/src 100G 102G 100G /root/src
tank/users/anil/src@abclone 119M - 9.28G -

syspool is hardcoded, and thus apt-clone upgrade fails inside the zone (and apt-get upgrade wont work because of sunw* packages)

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

Since apt-clone can not snapshot a zone filesystem from within a zone, this specific problem is not easily fixed. Currently to upgrade a zones core packages (sunwcakr/...) you have to manually set the apt-clone env var and run apt-get instead.

Workaround looks something like this (sorry for bash specifics):

export APT_CLONE_ENV=1
apt-get dist-upgrade

For apt-clone to work correctly on a zone it must be run outside of the zone.
Maybe this (or another) bug should be: apt-clone has no controls to upgrade (only) a non-global zone. That still doesn't help users that only have access to their own zones though.

Revision history for this message
anilg (anil-verve) wrote :
Download full text (15.6 KiB)

Ok.. i tried this. A curses window popped up asking to confirm the upgrade, and then attempted to shotdown all zones (kauai) un successfully. It then continued with installation, failing at the package sunwcsd.

root@kauai:~# export APT_CLONE_ENV=1
root@kauai:~# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  sunwopenssl-commands sunwopensslr
The following packages will be upgraded:
  base-files bsdutils lib64z1 libc libpam-modules libpam-runtime libpam0g libssl0.9.8 lsb-base net-tools netbase nexenta-lu nexenta-sunw sunw1394 sunwaac
  sunwad810 sunwadixp sunwadpu320 sunwagp sunwamr sunwatfsr sunwatfsu sunwatheros sunwaudd sunwav1394 sunwbge sunwbip sunwcakr sunwcar sunwcdrw sunwcfcl
  sunwcfclr sunwcfpl sunwcfplr sunwchxge sunwckr sunwcnetr sunwcpc sunwcsd sunwcsl sunwcslr sunwcsr sunwcsu sunwdcaf sunwdcar sunwdmgtr sunwdmgtu sunwfchba
  sunwfchbar sunwfcip sunwfcp sunwfcprt sunwfcprtr sunwfcsm sunwfctl sunwfmd sunwfmdr sunwfss sunwgrub sunwgss sunwgssc sunwhal sunwhalr sunwhwdata sunwima
  sunwimac sunwimacr sunwimar sunwintgige sunwipc sunwipfr sunwipfu sunwiscsir sunwiscsiu sunwiwi sunwixgb sunwkey sunwkrbr sunwkrbu sunwkvm sunwlibsasl
  sunwloc sunwlsimega sunwluxop sunwmdb sunwmdbr sunwmdr sunwmdu sunwmpapi sunwmpapir sunwmpsvplr sunwmv88sx sunwnfsckr sunwnfscr sunwnfscu sunwnfsskr
  sunwnfssr sunwnfssu sunwnge sunwopenssl-libraries sunwos86r sunwpcmci sunwpcwl sunwpd sunwpiclu sunwpolkit sunwpool sunwpoolr sunwpsdcr sunwpsdir sunwrge
  sunwrmodr sunwrmodu sunwroute sunwroutr sunwrtls sunwsbp2 sunwscsa1394 sunwses sunwsi3124 sunwsmapi sunwsshcu sunwsshdr sunwsshdu sunwsshr sunwsshu
  sunwtecla sunwtnetc sunwtnetd sunwtoo sunwtsg sunwtsr sunwtsu sunwugen sunwuksp sunwukspfw sunwuprl sunwusb sunwusbs sunwwlanr sunwwlanu sunwxge sunwxwdv
  sunwzfskr sunwzfsr sunwzfsu sunwzoner sunwzoneu sysv-rc sysvinit zlib1g
151 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 5694kB/86.4MB of archives.
After this operation, 24.4MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://apt.nexenta.org hardy-unstable/main sunwopensslr 5.11.104-1 [5332kB]
Get:2 http://apt.nexenta.org hardy-unstable/main libssl0.9.8 5.11.104-1 [4236B]
Get:3 http://apt.nexenta.org hardy-unstable/main sunwopenssl-commands 5.11.104-1 [348kB]
Get:4 http://apt.nexenta.org hardy-unstable/main sunwsshr 5.11.104-1 [9732B]
Fetched 5694kB in 0s (17.0MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 19934 files and directories currently installed.)
Preparing to replace nexenta-sunw 5.11.103-1 (using .../nexenta-sunw_5.11.104-1_solaris-i386.deb) ...
Unpacking replacement nexenta-sunw ...
Setting up nexenta-sunw (5.11.104-1) ...
(Reading database ... 19934 files and directories currently installed.)
Preparing to replace nexenta-lu 5.11.103-1 (using .../nexenta-lu_5.11.104-1_solaris-i386.deb) ...
Initiating NLU protected environment ...
Unpacking replacement nexenta-lu ...
Setting up nexenta-lu (5.11.104-1) ...
(Reading database ... 19934 files a...

Revision history for this message
Tim Spriggs (tim-tajinc) wrote :

There is a known work-around but this is a good RFE for apt-clone

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.