Project

General

Profile

Bug #2249

libbrand suppresses libxml2 errors

Added by Andrew Stormont over 8 years ago. Updated almost 7 years ago.

Status:
Pending RTI
Priority:
Normal
Category:
zones
Start date:
2012-03-06
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

open_brand fails with a rather generic looking error message if the config.xml file for your brand does not pass validation by xmlValidateDocument:

andy@openindiana:~/Projects/illumos-gate$ zonecfg -z glibc
glibc: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:glibc> create
zonecfg:glibc> set brand=glibc
zonecfg:glibc> set zonepath=/opt/glibc-zone
zonecfg:glibc> verify
glibc: unknown brand.

glibc: Invalid document
zonecfg:glibc> exit

Files

libbrand-xml-errors.patch (1023 Bytes) libbrand-xml-errors.patch Andrew Stormont, 2012-03-06 06:20 PM

History

#1

Updated by Rich Lowe over 8 years ago

  • Category set to zones
  • Tags deleted (needs-triage)
#2

Updated by Andrew Stormont over 8 years ago

The patch makes libbrand print out xml parsing errors.

#3

Updated by Andrew Stormont over 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Andrew Stormont
#4

Updated by Andrew Stormont over 8 years ago

  • Status changed from In Progress to Pending RTI
  • % Done changed from 0 to 100

Also available in: Atom PDF