Bug 1044913 - [RFE] Allow the task prefix to be overridden
Summary: [RFE] Allow the task prefix to be overridden
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: develop
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 0.15.3
Assignee: Raymond Mancy
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 08:55 UTC by Nick Coghlan
Modified: 2018-02-06 00:41 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-03 04:47:29 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1040258 0 unspecified CLOSED task aborts if RPM name has changed in between scheduling the recipe and harness installing the task 2021-02-22 00:41:40 UTC

Internal Links: 1040258

Description Nick Coghlan 2013-12-19 08:55:54 UTC
Currently, the Beaker task makefile takes the git repo name into account when generating tags and RPM files.

This can cause problems if a task is moved from one repo (say, beaker) to another (say, beaker-core-tasks), since uploading a task with a different RPM name from the original can cause errors in tasks that have been scheduled, but haven't actually started running yet (they end up trying to install using the wrong RPM name).

The simplest solution to this is to make it easy to force a particular prefix for tasks, instead of using the repo name.

Comment 1 Dan Callaghan 2013-12-19 23:55:12 UTC
(In reply to Nick Coghlan from comment #0)
> since uploading a task with a different
> RPM name from the original can cause errors in tasks that have been
> scheduled, but haven't actually started running yet (they end up trying to
> install using the wrong RPM name).

For reference this is bug 1040258.

Comment 2 Dan Callaghan 2014-01-08 03:17:59 UTC
Instead of keeping these annoying pointless prefixes, another possible solution would be to drop the prefixes entirely from the RPM name but add the prefixed name as a virtual Provides. We would also need a mechanism to add other prefixed names as virtual Provides too, to cover this case. Then in another few months/years we can just drop all that logic entirely.

Comment 3 Raymond Mancy 2014-01-12 22:03:25 UTC
http://gerrit.beaker-project.org/#/c/2662/

Comment 4 Nick Coghlan 2014-01-24 03:29:23 UTC
As per the email to beaker-devel-list, we need to change this to use the old name by default, since the task snapshotting behaves badly if the RPM name changes.

We can start providing the new shorter name as well, though, which will make it easier to switch the actual name in the future.

Comment 5 Nick Coghlan 2014-01-24 06:10:31 UTC
http://gerrit.beaker-project.org/2717 added a new RHTS_RPM_NAME setting to force a particular RPM name (the actual workaround needed to avoid bug 1040258 when moving to a task to a different repo)

Comment 6 Nick Coghlan 2014-02-03 04:47:29 UTC
This was fixed by http://gerrit.beaker-project.org/#/c/2730/ and included in the rhts 4.58-1 release.


Note You need to log in before you can comment on or make changes to this bug.