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

Insufficient information when build override fails #548

Closed
ingvagabund opened this issue Sep 10, 2015 · 4 comments
Closed

Insufficient information when build override fails #548

ingvagabund opened this issue Sep 10, 2015 · 4 comments
Labels
API Issues related to Bodhi's REST API

Comments

@ingvagabund
Copy link

Hi

When I override e.g. go-compilers-1-2.fc23 from https://bodhi.fedoraproject.org/overrides/new, all I get is:
"Unable to save buildroot override: build go-compilers-1-2.fc23 not in tag f23-override."

Is there a way to get more information what is the real problem? Have not checked if this is not working only for this particular build. What does it mean it is not in tag f23-override? The override form is exactly what tags the build with f23-override. I am the PoC and administrator for go-compilers package.

Thanks
Jan

@ralphbean
Copy link
Contributor

I found the traceback in the logs:

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bodhi/services/overrides.py", line 201, in save_override
    expiration_date=data['expiration_date'],
  File "/usr/lib/python2.7/site-packages/bodhi/models/models.py", line 2061, in new
    old_build.override.expire()
  File "/usr/lib/python2.7/site-packages/bodhi/models/models.py", line 2119, in expire
    self.build.nvr, strict=True)
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1556, in __call__
    return self.__func(self.__name,args,opts)
  File "/usr/lib/python2.7/site-packages/koji/__init__.py", line 1918, in _callMethod
    raise err
TagError: build go-compilers-1-1.fc23 not in tag f23-override

The problematic code path on the bodhi server is here: https://github.com/fedora-infra/bodhi/blob/develop/bodhi/models/models.py#L2083-L2091

@ralphbean ralphbean added the API Issues related to Bodhi's REST API label Sep 10, 2015
@ingvagabund
Copy link
Author

Will it help if I first manually expire previous override?

@ingvagabund
Copy link
Author

$ bodhi --expire-override=go-compilers-1-1.fc22
Traceback (most recent call last):
  File "/usr/bin/bodhi", line 537, in <module>
    main()
  File "/usr/bin/bodhi", line 441, in main
    }, auth=True)
  File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 355, in send_request
    output = func(method, auth_params, **kwargs)
  File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 84, in _decorator
    output = func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/fedora/client/openidbaseclient.py", line 301, in _authed_post
    response = self._session.post(url, params=params, data=data, **kwargs)
  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 377, in post
    return self.request('POST', url, data=data, **kwargs)
TypeError: request() got an unexpected keyword argument 'req_params'

@lmacken
Copy link
Contributor

lmacken commented Oct 8, 2015

I believe this issue has been resolved. Please re-open if you still hit this problem. Thanks!

@lmacken lmacken closed this as completed Oct 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Issues related to Bodhi's REST API
Projects
None yet
Development

No branches or pull requests

3 participants