#9862 API request for repositories of user orphan times out
Closed: Fixed 2 years ago by kevin. Opened 3 years ago by scfc.

The API request to list all the repositories of the user orphan consistently fails after 60 s with "HTTP/1.1 504 Gateway Timeout". This is probably another form of issue #9431.

(Background: I want to list all installed packages that have been orphaned, i. e. are in danger of being retired. For already retired packages, this can be done (with a grain of salt and somewhat untested) by dnf --repo=rawhide list extras. If there is an existing equivalent for orphaned packages, I'd rather use that than the API request :-).)


Metadata Update from @mobrien:
- Issue tagged with: medium-gain, medium-trouble, ops

3 years ago

You may be able to find what you are looking for at https://src.fedoraproject.org/extras/

The data is re-generated every 30 minutes (iirc) and it'll be one (big) request instead of a bunch of small one :)

It's also the data-source that's used by other tooling in our infra to sync things, for example to bugzilla.

Metadata Update from @mohanboddu:
- Issue priority set to: Waiting on Assignee (was: Needs Review)

3 years ago

@scfc is that extras file sufficent to your needs?

@kevin: Yes; I ended up with:

curl -s https://src.fedoraproject.org/extras/pagure_poc.json | jq -r '.rpms | to_entries[] | select(.value.fedora == "orphan") | .key' | LANG= xargs -r rpm -q --queryformat '%{NAME}\n' | grep -v '^package .* is not installed$' | sort -u

which appears to be DWIM.

Great. Let us know if there's anymore we can do from here.

I guess Ideally this wouldn't timeout, but thats an upstream issue really...

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done