| Summary: | have to manually delete directories when lorax aborts and needs restart | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Karsten Hopp <karsten> |
| Component: | lorax | Assignee: | Martin Gracik <mgracik> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | anaconda-maint-list, bcl, dmach, mgracik |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-20 11:31:32 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
The installroot directory is not created anymore. This was changed in the new version. |
Description of problem: lorax aborted with the following error: File "/usr/lib/python2.7/site-packages/pylorax/yumhelper.py", line 61, in install logger.error(msg.format(pattern, e)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xfc' in position 38: ordinal not in range(128) after setting LANG=C and starting pungi with --force, lorax aborts with a different error: Traceback (most recent call last): File "/usr/bin/pungi", line 218, in <module> main() File "/usr/bin/pungi", line 122, in main mypungi.doBuildinstall() File "/usr/lib/python2.7/site-packages/pypungi/__init__.py", line 845, in doBuildinstall workdir=workdir, outputdir=outputdir) File "/usr/lib/python2.7/site-packages/pylorax/__init__.py", line 192, in run self.yum = yumhelper.LoraxYumHelper(ybo) File "/usr/lib/python2.7/site-packages/pylorax/yumhelper.py", line 47, in __init__ os.makedirs(installroot) File "/usr/lib64/python2.7/os.py", line 157, in makedirs mkdir(name, mode) OSError: [Errno 17] File exists: '/tmp/kh/work/ppc64/yumroot/installroot' several options: - lorax removes that directory on startup - protect os.makedirs in lorax/LoraxYumHelper by 'try:' - pungi passes that --force option to lorax and lorax should then do the right thing Version-Release number of selected component (if applicable): lorax-0.7-1.fc16 Steps to Reproduce: 1. export LANG=de_DE.UTF-8 2. run pungi -B 3. watch pungi abort and re-run it with pungi -B --force