iad2: package-owner-aliases script needs python3 porting. #8998

Closed
opened 2020-06-09 17:26:40 +00:00 by kevin · 3 comments

The script on bastion01.iad2/bastion02.iad2 that generates the package-maintainer aliases is broken.

Traceback (most recent call last):
File "/usr/local/bin/owner-email.py", line 62, in
for project in get_pagure_projects():
File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects
data = response.json()
File "/usr/lib/python2.7/site-packages/requests/models.py", line 802, in json
return json.loads(self.text, **kwargs)
File "/usr/lib64/python2.7/json/init.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
error creating owner-alias file

Its using python2 above, but we should move it to python3 and fix it.

The script on bastion01.iad2/bastion02.iad2 that generates the package-maintainer aliases is broken. Traceback (most recent call last): File "/usr/local/bin/owner-email.py", line 62, in <module> for project in get_pagure_projects(): File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects data = response.json() File "/usr/lib/python2.7/site-packages/requests/models.py", line 802, in json return json.loads(self.text, **kwargs) File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib64/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded error creating owner-alias file Its using python2 above, but we should move it to python3 and fix it.

Traceback (most recent call last):
File "/usr/local/bin/owner-email.py", line 62, in
for project in get_pagure_projects():
File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects
data = response.json()

This looks like it failed to retrieve something from dist-git. Was this a cron
run during the outage?

> Traceback (most recent call last): > File "/usr/local/bin/owner-email.py", line 62, in <module> > for project in get_pagure_projects(): > File "/usr/local/bin/owner-email.py", line 45, in get_pagure_projects > data = response.json() This looks like it failed to retrieve something from dist-git. Was this a cron run during the outage?

I've just re-run this cron job manually and it succeeded, this was probably just a network hickup.

I've just re-run this cron job manually and it succeeded, this was probably just a network hickup.

Metadata Update from @pingou:

  • Issue close_status updated to: Invalid
  • Issue status updated to: Closed (was: Open)
**Metadata Update from @pingou**: - Issue close_status updated to: Invalid - Issue status updated to: Closed (was: Open)
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Infrastructure/fedora-infrastructure#8998
No description provided.