#10326 bodhi CLI cannot authenticate against Ipsilon and claims to get error 500
Closed: Insufficient data 3 years ago by kevin. Opened 3 years ago by abbra.

I am trying to submit a side-tag through bodhi and it fails to auth me first:

$ bodhi updates new --notes-file ~/tmp/bodhi-update --user abbra --from-tag f36-build-side-47612
Password:
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 260, in send_request
    output = func(method, **kwargs)
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 88, in _decorator
    raise LoginRequiredError(
fedora.client.LoginRequiredError: https://bodhi.fedoraproject.org/updates/ requires a logged in user

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 117, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 280, in save
    return self.send_request('updates/', verb='POST', auth=True,
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 262, in send_request
    raise AuthError()
fedora.client.AuthError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bodhi/client/__init__.py", line 452, in new
    resp = client.save(**update)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 142, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 276, in save
    kwargs['csrf_token'] = self.csrf()
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 117, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 616, in csrf
    self.login(self.username, self.password)
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 303, in login
    response = openid_login(
  File "/usr/lib/python3.10/site-packages/fedora/client/openidproxyclient.py", line 132, in openid_login
    raise ServerError(FEDORA_OPENID_API, response.status_code,
fedora.client.ServerError: ServerError(https://id.fedoraproject.org/api/v1/, 500, Error returned from our POST to ipsilon.)

According to @aurelie, Ipsilon says login was successful, yet bodhi claims it got back error 500.


Metadata Update from @mohanboddu:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: medium-gain, medium-trouble, ops

3 years ago

Pinging @abompard for noggin/auth check and @asaleh to check on bodhi side. Maybe related to #9927

So far, couldn't reproduce with my account.

I keep seeing this even today:

$ bodhi updates request --user abbra FEDORA-2021-218ec2d434 testing
Password: 
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 260, in send_request
    output = func(method, **kwargs)
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 88, in _decorator
    raise LoginRequiredError(
fedora.client.LoginRequiredError: https://bodhi.fedoraproject.org/updates/FEDORA-2021-218ec2d434/request requires a logged in user

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 117, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 297, in request
    return self.send_request(f'updates/{update}/request',
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 262, in send_request
    raise AuthError()
fedora.client.AuthError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/bodhi", line 33, in <module>
    sys.exit(load_entry_point('bodhi-client==5.7.0', 'console_scripts', 'bodhi')())
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.10/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/__init__.py", line 263, in wrapper
    method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/__init__.py", line 688, in request
    resp = client.request(update, state)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 142, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 300, in request
    'csrf_token': self.csrf()})
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 117, in wrapper
    result = method(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/bodhi/client/bindings.py", line 616, in csrf
    self.login(self.username, self.password)
  File "/usr/lib/python3.10/site-packages/fedora/client/openidbaseclient.py", line 303, in login
    response = openid_login(
  File "/usr/lib/python3.10/site-packages/fedora/client/openidproxyclient.py", line 132, in openid_login
    raise ServerError(FEDORA_OPENID_API, response.status_code,
fedora.client.ServerError: ServerError(https://id.fedoraproject.org/api/v1/, 500, Error returned from our POST to ipsilon.)

I have second factor (a token) defined on my account, so I am entering password+token-value.

Metadata Update from @zlopez:
- Issue tagged with: bodhi

3 years ago

Can you try again now? @abompard fixed a openid mapping thing... wonder if it might be related here.

Please re-open if you are still seeing this.

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

3 years ago

Log in to comment on this ticket.

Metadata
Boards 1
ops Status: Backlog