Closed
Bug 1388323
Opened 8 years ago
Closed 7 years ago
Cannot mark 52esr as shipped: HTTPError: 401 Client Error: Authorization Required for url: https://ship-it.mozilla.org/csrf_token
Categories
(Release Engineering :: Release Automation, enhancement, P1)
Release Engineering
Release Automation
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mtabara, Unassigned)
References
Details
(Whiteboard: [releaseduty])
Both mark release as shipped[1] and publish to Balrog[2] builder jobs failed today for unauthorized access to Shipit/Database.
I strongly suspect that this is fallback from key rotations and we missed some uplifts during mergeday. Might be a problem with the merge script too. For example this config change[3] landed on central/beta but not sure it actually got to release/esr52 as it's currently missing from there[4].
I haven't looked but most likely Balrog builder configs happens for the same reason since we killed the LDAP account and went for dedicated accounts.
To workaround this for 55.0 both operations were completed manually.
[1]: https://tools.taskcluster.net/groups/UFVbfJ1DRGeWhqEC-WJDcw/tasks/yr8mAcRpSNObgtm_qtjdyg/details
[2]: https://tools.taskcluster.net/groups/UFVbfJ1DRGeWhqEC-WJDcw/tasks/JRywvYoaT8uTd3yUqZirAQ/details
[3]: https://hg.mozilla.org/mozilla-central/diff/36f12c9341cd/testing/mozharness/configs/releases/postrelease_firefox_esr52.py
[4]: https://hg.mozilla.org/releases/mozilla-esr52/file/tip/testing/mozharness/configs/releases/postrelease_firefox_esr52.py
Reporter | ||
Updated•7 years ago
|
Priority: -- → P3
Whiteboard: [releaseduty]
Reporter | ||
Updated•7 years ago
|
Assignee: nobody → mtabara
Reporter | ||
Comment 1•7 years ago
|
||
Happened again in 52.4.0esr:
ship-it: https://tools.taskcluster.net/groups/SnKnTav4TkqxHUf6jcRF8Q/tasks/ffzF98lbSs2J9913AFZEwQ/details
balrog: https://tools.taskcluster.net/groups/SnKnTav4TkqxHUf6jcRF8Q/tasks/K88-l5dNTemzj8coi7s8aA/details
Assignee: mtabara → nobody
Reporter | ||
Updated•7 years ago
|
Priority: P3 → P1
Comment 2•7 years ago
|
||
Happened in 52.4.1esr too:
* ship-it: https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-esr52-noarch/release-mozilla-esr52-firefox_mark_as_shipped-bm74-build1-build7.txt.gz
* balrog: https://archive.mozilla.org/pub/firefox/tinderbox-builds/mozilla-esr52-noarch/release-mozilla-esr52-firefox_schedule_publishing_in_balrog-bm73-build1-build3.txt.gz
In my opinion, the ship-it issue looks creds-related. However, balrog is more like a bug in the client. I filed a separate bug (bug 1407174). Let's track the work there.
In case the logs disappear before we fix this issue, here's the stacktrace:
> 01:42:41 INFO - [mozharness: 2017-10-10 08:42:41.658074Z] Running mark-as-shipped step.
> 01:42:41 INFO - Running main action method: mark_as_shipped
> 01:42:41 INFO - Mark the release as shipped with 2017-10-10 08:42:41 timestamp
> /builds/slave/rel-m-esr52-fx_mark_as_shipped/build/venv/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> SNIMissingWarning
> /builds/slave/rel-m-esr52-fx_mark_as_shipped/build/venv/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
> InsecurePlatformWarning
> 01:42:41 INFO - [mozharness: 2017-10-10 08:42:41.927495Z] Finished mark-as-shipped step (failed)
> 01:42:41 FATAL - Uncaught exception: Traceback (most recent call last):
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/scripts/mozharness/base/script.py", line 2034, in run
> 01:42:41 FATAL - self.run_action(action)
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/scripts/mozharness/base/script.py", line 1973, in run_action
> 01:42:41 FATAL - self._possibly_run_method(method_name, error_if_missing=True)
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/scripts/mozharness/base/script.py", line 1913, in _possibly_run_method
> 01:42:41 FATAL - return getattr(self, method_name)()
> 01:42:41 FATAL - File "scripts/scripts/release/postrelease_mark_as_shipped.py", line 106, in mark_as_shipped
> 01:42:41 FATAL - status='shipped', shippedAt=shipped_at)
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/build/venv/lib/python2.7/site-packages/shipitapi/shipitapi.py", line 110, in update
> 01:42:41 FATAL - url_template_vars=url_template_vars).content
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/build/venv/lib/python2.7/site-packages/shipitapi/shipitapi.py", line 61, in request
> 01:42:41 FATAL - res.raise_for_status()
> 01:42:41 FATAL - File "/builds/slave/rel-m-esr52-fx_mark_as_shipped/build/venv/lib/python2.7/site-packages/requests/models.py", line 909, in raise_for_status
> 01:42:41 FATAL - raise HTTPError(http_error_msg, response=self)
> 01:42:41 FATAL - HTTPError: 401 Client Error: Authorization Required for url: https://ship-it.mozilla.org/csrf_token
> 01:42:41 FATAL - Running post_fatal callback...
> 01:42:41 FATAL - Exiting -1
See Also: → 1407174
Summary: publish to balrog and mark release as shipped builders failed for 52.3.0esr → Cannot mark 52esr as shipped: HTTPError: 401 Client Error: Authorization Required for url: https://ship-it.mozilla.org/csrf_token
Comment 4•7 years ago
|
||
Rail, would you mind manually marking 52.4.1 as shipped?
Flags: needinfo?(rail)
Comment 5•7 years ago
|
||
:jcristau reminded me we can just click on a button on the web interface, which I just did.
Flags: needinfo?(rail)
Comment 6•7 years ago
|
||
(In reply to Johan Lorenzo [:jlorenzo] from comment #5)
> :jcristau reminded me we can just click on a button on the web interface,
> which I just did.
thanks Johan, I'm just going through the list of stuff with my name along side it now. Is there anything else to do here? I seem to recall that we will have to do this for the next esr too? Perhaps I am to put that in releasewarrior notes.
Comment 7•7 years ago
|
||
For 52.4.1 ...
mark as shipped failed in the same way - http://mozilla-release-logs.s3.amazonaws.com/mozilla-esr52/firefox-52.4.1esr/build1/firefox_mozilla-esr52_mark_release_as_shipped-all-BUm20cbMRE2Ox-jHfAURzQ-0. Looks like we need to land https://hg.mozilla.org/mozilla-central/rev/36f12c9341cd on esr52. There's nothing else on bug 1383121 that I can see.
schedule publishing in balrog also failed - http://mozilla-release-logs.s3.amazonaws.com/mozilla-esr52/firefox-52.4.1esr/build1/firefox_mozilla-esr52_schedule_publishing_in_balrog-all-SGKxbgFnRAeRsIJozC0v3A-0. A fix has already landed for this (https://hg.mozilla.org/releases/mozilla-esr52/rev/e6a35d68f4e7) via bug 1407174.
Comment 8•7 years ago
|
||
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•