Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription manager breaks our spawners #2132

Closed
fedora-copr-github-bot opened this issue Nov 18, 2022 · 1 comment · Fixed by #3426
Closed

Subscription manager breaks our spawners #2132

fedora-copr-github-bot opened this issue Nov 18, 2022 · 1 comment · Fixed by #3426
Assignees
Labels

Comments

@fedora-copr-github-bot
Copy link
Collaborator

fedora-copr-github-bot commented Nov 18, 2022

Original issue: https://pagure.io/copr/copr/issue/2132
Opened: 2022-03-22 16:08:23
Opened by: praiskup

It looks this happens in all the clouds now, but not 100% (occasionally some machine starts, and is successful with the subscription):


2022-03-22 16:08:00,532 [ERROR] subscription-manager:2142:MainThread @cli.py:61 - Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/subscription_manager/cli_command/register.py", line 222, in _do_command
    owner_key = service.determine_owner_key(
  File "/usr/lib64/python3.10/site-packages/rhsmlib/services/register.py", line 180, in determine_owner_key
    owners = self.cp.getOwnerList(username)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 1383, in getOwnerList
    owners = self.conn.request_get(method)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 920, in request_get
    return self._request("GET", method, headers=headers, cert_key_pairs=cert_key_pairs)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 945, in _request
    result = super(Restlib, self)._request(request_type, method,
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 805, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 883, in validateResponse
    raise RemoteServerException(response['status'],
rhsm.connection.RemoteServerException: Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
2022-03-22 16:08:06,492 [ERROR] subscription-manager:2144:MainThread @connection.py:833 - Response: 502
2022-03-22 16:08:06,492 [ERROR] subscription-manager:2144:MainThread @connection.py:834 - JSON parsing error: Expecting value: line 1 column 1 (char 0)
2022-03-22 16:08:06,492 [ERROR] subscription-manager:2144:MainThread @cli.py:60 - Error during registration: Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
2022-03-22 16:08:06,492 [ERROR] subscription-manager:2144:MainThread @cli.py:61 - Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/subscription_manager/cli_command/register.py", line 222, in _do_command
    owner_key = service.determine_owner_key(
  File "/usr/lib64/python3.10/site-packages/rhsmlib/services/register.py", line 180, in determine_owner_key
    owners = self.cp.getOwnerList(username)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 1383, in getOwnerList
    owners = self.conn.request_get(method)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 920, in request_get
    return self._request("GET", method, headers=headers, cert_key_pairs=cert_key_pairs)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 945, in _request
    result = super(Restlib, self)._request(request_type, method,
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 805, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 883, in validateResponse
    raise RemoteServerException(response['status'],
rhsm.connection.RemoteServerException: Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
2022-03-22 16:08:12,462 [ERROR] subscription-manager:2146:MainThread @connection.py:833 - Response: 502
2022-03-22 16:08:12,463 [ERROR] subscription-manager:2146:MainThread @connection.py:834 - JSON parsing error: Expecting value: line 1 column 1 (char 0)
2022-03-22 16:08:12,463 [ERROR] subscription-manager:2146:MainThread @cli.py:60 - Error during registration: Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
2022-03-22 16:08:12,463 [ERROR] subscription-manager:2146:MainThread @cli.py:61 - Server error attempting a GET to /subscription/users/copr-team/owners returned status 502
Traceback (most recent call last):
  File "/usr/lib64/python3.10/site-packages/subscription_manager/cli_command/register.py", line 222, in _do_command
    owner_key = service.determine_owner_key(
  File "/usr/lib64/python3.10/site-packages/rhsmlib/services/register.py", line 180, in determine_owner_key
    owners = self.cp.getOwnerList(username)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 1383, in getOwnerList
    owners = self.conn.request_get(method)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 920, in request_get
    return self._request("GET", method, headers=headers, cert_key_pairs=cert_key_pairs)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 945, in _request
    result = super(Restlib, self)._request(request_type, method,
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 805, in _request
    self.validateResponse(result, request_type, handler)
  File "/usr/lib64/python3.10/site-packages/rhsm/connection.py", line 883, in validateResponse
    raise RemoteServerException(response['status'],
rhsm.connection.RemoteServerException: Server error attempting a GET to /subscription/users/copr-team/owners returned status 502


praiskup commented at 2022-03-22 17:16:05:

I filled a Red Hat support case 03178902 for this.


praiskup commented at 2022-03-22 17:46:26:

This happened for the second time, and it blocked all users for a long time while only a subset of users depends on it. We should rework it:

  1. the subscription management task should be asynchronous from the spawning playbook, it takes an unreasonable amount of time anyway. @msuchy did the discussion with S-M folks went somewhere?
  2. only EL8 builds should be "blocked" ... and they could wait till the async process finishes?
  3. perhaps fail the whole build if it 2. takes too much time? Or try 3 times, on at most three different builders?
@xsuchy xsuchy added this to CPT Kanban Jan 3, 2023
@praiskup praiskup moved this to Someday in future in CPT Kanban Mar 14, 2023
@praiskup
Copy link
Member

Triage: We should have "on demand" subscription (if the current task is for RHEL).

@praiskup praiskup moved this from Someday in future to Needs triage in CPT Kanban Sep 2, 2024
@praiskup praiskup moved this from Needs triage to In 3 months in CPT Kanban Sep 4, 2024
@nikromen nikromen moved this from In 3 months to In Progress in CPT Kanban Sep 16, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Sep 26, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Sep 29, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Sep 29, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Sep 30, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Sep 30, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 4, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 4, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 4, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 4, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 8, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 15, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 15, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 15, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 15, 2024
FrostyX added a commit to FrostyX/copr that referenced this issue Oct 15, 2024
@nikromen nikromen moved this from In Progress to Done in CPT Kanban Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants