Bug 947570

Summary: anaconda runs out of memory with 768mb guests with the default software selection
Product: [Fedora] Fedora Reporter: Reartes Guillermo <rtguille>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: anaconda-maint-list, g.kaviyarasu, jonathan, mkolman, sbueno, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-04 15:27:36 UTC Type: Bug
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
anaconda-tb-xxx file
none
anaconda.log
none
program.log
none
storage.log
none
syslog file
none
anaconda.log, no cash with slub_debug=-
none
syslog file, works, same as above. none

Description Reartes Guillermo 2013-04-02 18:27:30 UTC
Created attachment 730928 [details]
anaconda-tb-xxx file

Description of problem:

When using 768mb ram size on KVM guests, anaconda crashes most of the time. 

Version-Release number of selected component (if applicable):
F19a TC3

How reproducible:
most of the time

Steps to Reproduce:

0. Reach the Main Hub, leave defaults at the Welcome Screen
1. Enter Keyboard and change it to Spanish.
2. Enter Date & Time and select America/Argentina/Buenos_Aires
2. Wait i nthe Main Hub to the default Software Selection dependencies to be resolved.
3. Anaconda will crash. (most of the time)

Actual results:
anaconda crashes

Expected results:
no crash, or a notification that the avaiable ram is not enough

Additional info:
anaconda 19.14 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/subprocess.py", line 1143, in _execute_child
    self.pid = os.fork()
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 81, in _run_program
    preexec_fn=chroot, cwd=root, env=env)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 116, in execWithRedirect
    return _run_program(argv, stdin=stdin, stdout=stdout, root=root, env_prune=env_prune)[0]
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 317, in _run_systemctl
    ret = execWithRedirect("systemctl", [command, service_name])
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 331, in service_running
    ret = _run_systemctl("status", service)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/kickstart.py", line 1218, in setup
    if not iutil.service_running(NTP_SERVICE) and \
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/datetime_spoke.py", line 410, in execute
    self.data.timezone.setup(self.data)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 121, in _runSpoke
    action.execute()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 386, in _on_spoke_clicked
    self._runSpoke(spoke)
OSError: [Errno 12] Cannot allocate memory

Comment 1 Reartes Guillermo 2013-04-02 18:27:53 UTC
Created attachment 730929 [details]
anaconda.log

Comment 2 Reartes Guillermo 2013-04-02 18:28:22 UTC
Created attachment 730931 [details]
program.log

>> 15:19:39,724 INFO program: Running... systemctl status chronyd.service
>> 15:19:40,144 ERR program: Error running systemctl: Cannot allocate memory

Comment 3 Reartes Guillermo 2013-04-02 18:28:45 UTC
Created attachment 730932 [details]
storage.log

Comment 4 Reartes Guillermo 2013-04-02 18:29:31 UTC
Created attachment 730934 [details]
syslog file

Comment 5 Reartes Guillermo 2013-04-02 18:33:21 UTC
I put the first time i encounter it, because the error is in Spanish (translated). I do not believe that it is a good thing to localize the anaconda exceptions. When ABRT is repaired and start working again, how will it handle these different bug-reports of the same issue but in different languages?

anaconda 19.14 exception report
Traceback (most recent call first):
  File "/usr/lib64/python2.7/subprocess.py", line 1143, in _execute_child
    self.pid = os.fork()
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 81, in _run_program
    preexec_fn=chroot, cwd=root, env=env)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 116, in execWithRedirect
    return _run_program(argv, stdin=stdin, stdout=stdout, root=root, env_prune=env_prune)[0]
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 317, in _run_systemctl
    ret = execWithRedirect("systemctl", [command, service_name])
  File "/usr/lib64/python2.7/site-packages/pyanaconda/iutil.py", line 331, in service_running
    ret = _run_systemctl("status", service)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/spokes/datetime_spoke.py", line 442, in refresh
    ntp_working = has_active_network and iutil.service_running(NTP_SERVICE)
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 104, in _runSpoke
    action.refresh()
  File "/usr/lib64/python2.7/site-packages/pyanaconda/ui/gui/hubs/__init__.py", line 386, in _on_spoke_clicked
    self._runSpoke(spoke)
OSError: [Errno 12] No se pudo asignar memoria

Comment 6 Chris Lumens 2013-04-04 13:58:33 UTC
What happens if you boot with slub_debug=- ?

Comment 7 Reartes Guillermo 2013-04-04 15:01:58 UTC
Created attachment 731640 [details]
anaconda.log, no cash with slub_debug=-

I did not crash.
So most likely beta will work (i will re-test, just to be sure).

Comment 8 Reartes Guillermo 2013-04-04 15:04:14 UTC
Created attachment 731641 [details]
syslog file, works, same as above.

Comment 9 Chris Lumens 2013-04-04 15:27:36 UTC
Okay, great.  We've got other bugs tracking OOM conditions in anaconda in general, so I'm going to close this one.