PDC is no more
Signed-off-by: Patrik Polakovič <patrik@alphamail.org>
This commit is contained in:
parent
a70461ccad
commit
0c93bda207
1 changed files with 3 additions and 78 deletions
|
@ -78,12 +78,9 @@ $ koji unblock-pkg TAGNAME PACKAGENAME
|
|||
Navigate to [.title-ref]#https://src.fedoraproject.org/# and check
|
||||
package owner.
|
||||
. If the package is orphaned, then give the package to the requestor
|
||||
using the [.title-ref]#give-package# script from the
|
||||
https://pagure.io/releng[Release Engineering Repo].
|
||||
+
|
||||
....
|
||||
$ ./scripts/distgit/give-package --package=PACKAGENAME --custodian=REQUESTOR
|
||||
....
|
||||
through the web interface.
|
||||
|
||||
Settings -> Give Project
|
||||
+
|
||||
[NOTE]
|
||||
.Note
|
||||
|
@ -91,75 +88,3 @@ $ ./scripts/distgit/give-package --package=PACKAGENAME --custodian=REQUESTOR
|
|||
This script requires the user to be a member of the group
|
||||
[.title-ref]#cvsadmin# in FAS.
|
||||
====
|
||||
|
||||
==== Update Product Definition Center (PDC)
|
||||
|
||||
[NOTE]
|
||||
.Note
|
||||
====
|
||||
If there are more than one tag to be unblocked then the PDC update step
|
||||
should be completed for each tag and package.
|
||||
====
|
||||
|
||||
. Log into the https://pdc.fedoraproject.org/[Fedora PDC instance] using
|
||||
a FAS account.
|
||||
. Check PDC for the entry for the [.title-ref]#PACKAGENAME# in each
|
||||
[.title-ref]#TAG# that was unblocked in a previous step.
|
||||
+
|
||||
____
|
||||
....
|
||||
https://pdc.fedoraproject.org/rest_api/v1/component-branch-slas/?branch=TAG&global_component=PACKAGENAME
|
||||
....
|
||||
|
||||
[NOTE]
|
||||
.Note
|
||||
====
|
||||
If no information is returned by this query then it is not in PDC and is
|
||||
likely not yet a branch. The requestor should use the
|
||||
[.title-ref]#fedpkg request-branch# utility to ask for a branch.
|
||||
====
|
||||
____
|
||||
. If the package existed within PDC then obtain a token from the PDC
|
||||
site while logged in by navigating to the
|
||||
[.title-ref]#https://pdc.fedoraproject.org/rest_api/v1/auth/token/obtain/#
|
||||
URL with the Firefox web browser.
|
||||
. Press F12 once the page has loaded and select the tab labeled
|
||||
[.title-ref]#Network#. Refresh the web page and find the line whose
|
||||
string in the file column matches
|
||||
[.title-ref]#/rest_api/v1/auth/token/obtain/#.
|
||||
. Right click on specified line and select Copy>Copy as cURL. Paste this
|
||||
into a terminal session and add [.title-ref]#-H "Accept:
|
||||
application/json"#. It should look something similar to the below:
|
||||
+
|
||||
____
|
||||
....
|
||||
$ curl 'https://pdc.fedoraproject.org/rest_api/v1/auth/token/obtain/' \
|
||||
-H 'Host: pdc.fedoraproject.org' \
|
||||
-H .0) Gecko/20100101 Firefox/57.0' \
|
||||
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
|
||||
-H 'Accept-Language: en-US,en;q=0.5' \
|
||||
--compressed \
|
||||
-H 'Cookie: csrftoken=CSRF_TOKEN_HASH; SERVERID=pdc-web01; mellon-saml-sesion-cookie=SAML_SESSION_HASH; sessionid=SESSION_ID_HASH' \
|
||||
-H 'Connection: keep-alive' \
|
||||
-H 'Upgrade-Insecure-Requests: 1' \
|
||||
-H 'Cache-Control: max-age=0' \
|
||||
-H "Accept: application/json"
|
||||
....
|
||||
____
|
||||
. Using the token obtained from the previous step run the
|
||||
[.title-ref]#adjust-eol.py# script from the
|
||||
https://pagure.io/releng[Release Engineering Repo].
|
||||
+
|
||||
____
|
||||
....
|
||||
$ PYTHONPATH=scripts/pdc/ scripts/pdc/adjust-eol.py fedora MYTOKEN PACKAGENAME rpm TAG default -y
|
||||
....
|
||||
|
||||
[NOTE]
|
||||
.Note
|
||||
====
|
||||
The local machine will have configuration information in the
|
||||
[.title-ref]#/etc/pdc.d/# directory. This is why _fedora_ can be passed
|
||||
as an argument instead of the full API endpoint URL.
|
||||
====
|
||||
____
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue