Bug 442132

Summary: Sabayon errors when saving profiles
Product: Red Hat Enterprise Linux 5 Reporter: Charlie Wyse <cwyse>
Component: sabayonAssignee: Tomáš Bžatek <tbzatek>
Status: CLOSED ERRATA QA Contact: desktop-bugs <desktop-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.1CC: riek, tao, tsmetana
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-15 15:08:10 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch based on upstream code none

Description Charlie Wyse 2008-04-11 22:34:08 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9b5pre) Gecko/2008030509 Red Hat/3.0b5pre-0.beta4.1.el5 Minefield/3.0b5pre

Description of problem:
When trying to save a profile sabayon spits out a lot of errors.  It seems to save the profile, however I can not set that profile to any users.

Version-Release number of selected component (if applicable):
sabayon-2.12.4-5.el5

How reproducible:
Always


Steps to Reproduce:
1. Start Sabayon.
2. Create a profile.
3. Modify the profile in any way.
4. Save the profile.

Actual Results:
root@magic [:~] %sabayon                                                                                                                        [15:18:57]
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/accels'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/nautilus-scripts'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/keyrings'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/share'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/share/cursor-fonts'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome2/share/fonts'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.redhat/esc'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.gnome/gnome-vfs'
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/sessionwindow.py", line 233, in __do_save
    change.get_source ().commit_change (change, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line 117, in commit_change
    { "mandatory" : mandatory })
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 372, in add
    copy_tree (self.temp_path, src_dir, path)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in copy_tree
    raise err
OSError: [Errno 2] No such file or directory: '/tmp/sabayon-profile-storage-tGsMZV/.dbus/session-bus'
The application '-c' lost its connection to the display :1.0;
most likely the X server was shut down or you killed/destroyed
the application.
Traceback (most recent call last):
  File "/usr/lib64/python2.4/site-packages/sabayon/profilesdialog.py", line 395, in __remove_button_clicked
    self.__delete_currently_selected ()
  File "/usr/lib64/python2.4/site-packages/sabayon/profilesdialog.py", line 371, in __delete_currently_selected
    os.remove (_get_profile_path_for_name (profile_name))
OSError: [Errno 2] No such file or directory: '/etc/desktop-profiles/another.zip'


Expected Results:
It should save the profile with no error.  Then when I select a user that user should be able to boot up with said profile.

Additional info:
We receive our user list through ldap.  Each users home directory has root_squash and is mounted via autofs from a netapp filer.

Comment 1 Charlie Wyse 2008-04-11 22:35:30 UTC
If I go back into sabayon and view the profile I get the following error:

Traceback (most recent call last):
  File "/usr/sbin/sabayon-apply", line 56, in ?
    profile.apply (is_sabayon_session)
  File "/usr/lib64/python2.4/site-packages/sabayon/userprofile.py", line 389, in
apply
    s.apply (is_sabayon_session)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line
148, in apply
    self.storage.foreach (self.__apply_foreach, source = self.name)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 560, in foreach
    self.__foreach_node (node, callback, user_data, source)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 540, in
__foreach_node
    callback (item_source, item_path)
  File "/usr/lib64/python2.4/site-packages/sabayon/sources/filessource.py", line
145, in __apply_foreach
    self.storage.extract (path, self.home_dir, mandatory)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 499, in extract
    copy_tree (dst_dir, self.temp_path, path, None, overwrite)
  File "/usr/lib64/python2.4/site-packages/sabayon/storage.py", line 57, in
copy_tree
    raise err
OSError: [Errno 2] No such file or directory:
'/tmp/sabayon-temp-home-BUKyZG/.gnome2/accels'
The application '-c' lost its connection to the display :1.0;
most likely the X server was shut down or you killed/destroyed
the application.


Comment 3 ritz 2008-07-03 18:35:38 UTC
Created attachment 310947 [details]
patch based on upstream code

http://bugzilla.gnome.org/show_bug.cgi?id=476761
Bug 476761 – Profile zipfiles have duplicated files

------------------------------

I threw this in for _extra_ . This is not the bug in question.

https://bugzilla.redhat.com/show_bug.cgi?id=253996
Bugzilla Bug 253996: Sabayon ignores mandatory attribute for files

Comment 4 Matthias Clasen 2008-07-07 16:44:48 UTC
Patch available, dev ack +

Comment 6 Charlie Wyse 2008-07-07 22:11:41 UTC
Resolving this ticket as well as IT174444, everything looks to be working now. 
The messages are a bit to verbose and should be cleaned up, but that's a
separate issue.

Comment 8 Bryan Mason 2008-07-08 16:32:56 UTC
The VERIFIED status should only be used once this Bug has been tested by QE, and
 has passed the testing.  See
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_status for more
information on the lifecycle of a Bug.

Changing status to ASSIGNED...

Comment 9 RHEL Program Management 2008-07-21 23:03:36 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 18 errata-xmlrpc 2008-10-15 15:08:10 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2008-0900.html

Comment 21 Tomáš Bžatek 2011-10-04 14:48:34 UTC
*** Bug 505402 has been marked as a duplicate of this bug. ***