This came in to the bugs.opensolaris.org triage queue (we should probably
get that page updated to refer users to defect.opensolaris.org instead) -
since it said "package manager" I assumed it was the GUI and reassigned to
JDS, but in either case someone who would be working on it probably needs
to copy out to bugzilla and close in bugtraq.

        -alan-

-------- Original Message --------
Subject: CR 6699263 Created P3 opensolaris/triage-queue packagemanager fails
with passwd: compat use
Date: Thu, 08 May 2008 05:20:22 -0600 (MDT)

*Synopsis*: packagemanager fails with passwd: compat use

*Change Request ID*: 6699263

*Synopsis*: packagemanager fails with passwd: compat use

  Product: solaris
  Category: opensolaris
  Subcategory: triage-queue
  Type: Defect
  Subtype:
  Status: 1-Dispatched
  Substatus:
  Priority: 3-Medium
  Introduced In Release:
  Introduced In Build:
  Responsible Manager: [EMAIL PROTECTED]
  Responsible Engineer:
  Keywords: opensolaris

=== *Description* ============================================================
Category
   sysadmin
Sub-Category
   pkg_commands
Description
   nsswitch.conf has
passwd: compat
/etc/passwd ends with
+user::::::
+::::::/bin/false
When using packagemanager to install openoffice (but probably any software), the
process stops after downloading, and at the "installing software" stage.  The
python error is:
Action install failed for 'etc' (pkg:/openoffice):
  ValueError: invalid literal for int():
Removing the two "plus" entries from /etc/passwd allows the process to complete.
Frequency
   Always
Regression
   No
Steps to Reproduce
   On an OpenSolaris os200805 system, change nsswitch.conf to use
passwd: compat
Add
+user::::::
+::::::/bin/false
to /etc/passwd.  Run packagemanager as root.  Select `Office', then
`openoffice'.  Click Install/Update.
Expected Result
   OpenOffice installs
Actual Result
   Process stops at "Installing Software".  Terminal shows stack trace shown in
Description.  Windows must be closed.
Error Message(s)
   Action install failed for 'etc' (pkg:/openoffice):
  ValueError: invalid literal for int():
Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.4/vendor-packages/pkg/gui/installupdate.py", line 237,
in download_stage
    self.installation_stage()
  File "/usr/lib/python2.4/vendor-packages/pkg/gui/installupdate.py", line 282,
in installation_stage
    p.execute_install(src, dest)
  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py", line 286, in
execute_install
    dest.install(self, src)
  File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py", line 59,
in install
    owner = pkgplan.image.get_user_by_name(self.attrs["owner"])
  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 994, in
get_user_by_name
    self.type != IMG_USER)
  File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 83, in
get_user_by_name
    load_passwd(dirpath)
  File "/usr/lib/python2.4/vendor-packages/pkg/portable/os_unix.py", line 135,
in load_passwd
    arr[2] = int(arr[2])
ValueError: invalid literal for int():
Test Case

Workaround
   Remove `+' entries from /etc/passwd, perform installation, and restore
/etc/passwd.
Submitter wants to work on bug
   No
Additional configuration information
   This is OpenSolaris os200805, passwd set to compat in /etc/nsswitch.conf, and
a `+' style entry with empty fields in /etc/passwd.

*** (#1 of 1): 2008-05-08 11:11:46 GMT+00:00


=== *Comments* ===============================================================

=== *Evaluation* =============================================================

=== *Suggested Fix* ==========================================================

=== *Workaround* =============================================================

=== *Justification* ==========================================================
Priority changed from [] to [3-Medium]
Use of compat limited, but changing passwd to install software could be very bad

*** (#1 of 1): 2008-05-08 11:11:46 GMT+00:00



_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to