Bug 1320104

Summary: Add option to use different repositories while building chroot environment
Product: [Fedora] Fedora EPEL Reporter: Lukas Herbolt <lherbolt>
Component: retrace-serverAssignee: abrt <abrt-devel-list>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: dwysocha, michal.toman
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: 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:
Bug Depends On:    
Bug Blocks: 1292556    

Description Lukas Herbolt 2016-03-22 10:27:02 UTC
Description of problem:
Current release uses one big repository which contains all the packages and debug info. We need option for mock/retrace to use existing repositories which are located in different directories.

Looking at the code:


# vim /usr/lib/python2.7/site-packages/retrace/retrace_worker.py
        # create mock config file
        try:
            with open(os.path.join(task.get_savedir(), RetraceTask.MOCK_DEFAULT_CFG), "w") as mockcfg:
                mockcfg.write("config_opts['root'] = '%d'\n" % task.get_taskid())
                mockcfg.write("config_opts['target_arch'] = '%s'\n" % arch)
                mockcfg.write("config_opts['chroot_setup_cmd'] = '--skip-broken install %s abrt-addon-ccpp shadow-utils gdb rpm'\n" % " ".join(packages))
...

}

So if I read it correctly the retrace will create config which is then passed to the mock over '--configdir'.

So we need to create config which will have multiple repositories.
Ping me if you need more details...

Lukas