Bug #203

Fails to create a whole-root zone

Added by Jérôme Warnier about 1 year ago. Updated about 1 year ago.

Status:Resolved Start:06/20/2010
Priority:High Due date:
Assigned to:- % Done:

100%

Category:- Spent time: -
Target version:-

Description

On NCP 3.0 RC1, I cannot successfully create a whole-root zone. I attach the full log, but here is a meaningful extract:

root@plouf:~/debian# zoneadm -z bcp-dev1 install
DEBUG: zoneadm -z global list -p: 0:global:running:/::native:shared
DEBUG: zoneadm -z bcp-dev1 list -p: -:bcp-dev1:incomplete:/zones/bcp-dev1:cdd19db6-a97a-6cb0-e796-dc8ec58bfe47:native:shared
Local Zone Path: /zones/bcp-dev1/root
     __                    _          _____                      
  /\ \ \_____  _____ _ __ | |_ __ _  / _  / ___  _ __   ___  ___ 
 /  \/ / _ \ \/ / _ \ '_ \| __/ _` | \// / / _ \| '_ \ / _ \/ __|
/ /\  /  __/>  <  __/ | | | || (_| |  / //\ (_) | | | |  __/\__ \
\_\ \/ \___/_/\_\___|_| |_|\__\__,_| /____/\___/|_| |_|\___||___/

This operation will take some time.
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Retrieving Packages
I: Validating Packages
[..]
I: Configuring sunwhal...
I: Configuring sunwcdrw...
I: Base system installed successfully.
cp: cannot stat `/lib/svc/method/elatte-sysidtool-system': No such file or directory
cp exited with value 1
cp: cannot stat `/var/svc/manifest/system/elatte-sysidtool.xml': No such file or directory
cp exited with value 1
cp: cannot stat `/lib/svc/method/elatte-sysidtool-net': No such file or directory
cp exited with value 1

whole-root-zone.txt (37.3 KB) Jérôme Warnier, 06/20/2010 01:02 pm


Related issues

duplicates Bug #173 Follow-up to bug #347937 (sysevent svc missing in zones) Feedback 05/14/2010

History

Updated by Jérôme Warnier about 1 year ago

Actually, it works. Creating (and installing) the zone is ok, but the zone is somewhat non-functional, as installing any daemon package (examples: apache2, postfix, mysql-server) fails. The postinst of those packages call invoke-rc.d, where it freezes.

Updated by Jérôme Warnier about 1 year ago

Jérôme Warnier wrote:

Actually, it works. Creating (and installing) the zone is ok, but the zone is somewhat non-functional, as installing any daemon package (examples: apache2, postfix, mysql-server) fails. The postinst of those packages call invoke-rc.d, where it freezes.

More info: there are SMF manifest installed, and svcs -av shows those services as offline. Disabling/enabling/restarting does not get them to work and logs in /var/svc/log/ do not show anything useful, nor does anything in /var/log.

Updated by Jérôme Warnier about 1 year ago

Indeed, it all comes from the missing sysevent:

root@bcp-dev1:~# svcs -xv
svc:/network/npiv_config:default (?)
 State: offline since Sun Jun 20 23:45:46 2010
Reason: Dependency svc:/system/sysevent is absent.
   See: http://sun.com/msg/SMF-8000-E2
Impact: 16 dependent services are not running:
        svc:/system/filesystem/local:default
        svc:/network/apache2:default
        svc:/milestone/multi-user:default
        svc:/system/intrd:default
        svc:/milestone/multi-user-server:default
        svc:/system/zones:default
        svc:/system/system-log:default
        svc:/network/inetd:default
        svc:/network/inetd-upgrade:default
        svc:/system/cron:default
        svc:/system/dbus:default
        svc:/system/hal:default
        svc:/network/ssh:default
        svc:/system/boot-archive-update:default
        svc:/network/shares/group:default
        svc:/system/sac:default

Updated by Jérôme Warnier about 1 year ago

This seems actually to be a duplicate of #173.

Updated by Phillip Steinbachs about 1 year ago

In NCP 3.0 RC3, it is necessary to edit /usr/bin/createzone and replace the string 'elatte-unstable' with 'hardy-unstable'. You also need to change the @source_files array to the following (replacing elatte with nexenta):

/lib/svc/method/nexenta-sysidtool-system
/var/svc/manifest/system/nexenta-sysidtool.xml
/lib/svc/method/nexenta-sysidtool-net

You should then proceed with the modifications listed in #173. After creating a fresh zone in this manner, it was necessary to run 'zlogin -S zone' and 'pwconv', which then allowed the normal 'zlogin zone' to work.

Updated by Jérôme Warnier about 1 year ago

  • Priority changed from Normal to High

Phillip Steinbachs wrote:

In NCP 3.0 RC3, it is necessary to edit /usr/bin/createzone and replace the string 'elatte-unstable' with 'hardy-unstable'. You also need to change the @source_files array to the following (replacing elatte with nexenta):

[...]

You should then proceed with the modifications listed in #173. After creating a fresh zone in this manner, it was necessary to run 'zlogin -S zone' and 'pwconv', which then allowed the normal 'zlogin zone' to work.

Shouldn't we submit a patch? It seems trivial to fix to me, though really serious as a bug.

Updated by Bas van Oostveen about 1 year ago

Fix is described in detail here: http://www.thermetics.net/2010/08/19/fixing-nexenta-zones/

Updated by Anil Gulecha about 1 year ago

Bas van Oostveen wrote:

Fix is described in detail here: http://www.thermetics.net/2010/08/19/fixing-nexenta-zones/

This issue is under fix (sunwcsd and nexenta-zones packages). We'll upload a respin on NCP3 (3.0.1) soon.

~Anil

Updated by Phillip Steinbachs about 1 year ago

Anil Gulecha wrote:

Bas van Oostveen wrote:

Fix is described in detail here: http://www.thermetics.net/2010/08/19/fixing-nexenta-zones/

This issue is under fix (sunwcsd and nexenta-zones packages). We'll upload a respin on NCP3 (3.0.1) soon.

~Anil

Anil,

The nexenta-zones package appears ok, but the "[ zonename = global ] || sleep 3600 & exit 0" change does not work in the global zone. That is meant to go in each zone that gets created. If you install your sunwcsd package as is, the machine will not boot up properly (sysevent will get placed into maintenance mode).

You could change the line to the following and it should work ok for both global/non-global zones:

if [ `zonename` = global ]; then
           continue
else
           sleep 3600 & exit 0
fi

Updated by Anil Gulecha about 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

These fixes available as of 3.0.1. You still need to reconfigure sunwcsd once zone is installed. Zlogin and missing smf issues are fixed.

~Anil

Also available in: Atom PDF