create-update asks for password (?) and then "authentication failed"
See original GitHub issueI just released cockpit-ostree 178 with packit, creating this koji build: https://koji.fedoraproject.org/koji/taskinfo?taskID=36198029
Now I wanted to release it:
❱❱❱ PYTHONPATH=~/tmp/packit/ python3 -m packit.cli.packit_base create-update --dist-git-branch f30
Koji builds for package cockpit-ostree and koji tag f30-updates-candidate:
- cockpit-ostree-178-1.fc30
Password:
Hmm, what password? I already have a kerberos token:
❱❱❱ klist
Ticket cache: KEYRING:persistent:1000:1000
Default principal: cockpit@FEDORAPROJECT.ORG
[...]
So I entered my Fedora password again, then:
ERROR Authentication failed
Unexpected exception occurred,
please fill an issue here:
https://github.com/packit-service/packit/issues
Once again with --debug
:
❱❱❱ PYTHONPATH=~/tmp/packit/ python3 -m packit.cli.packit_base --debug create-update --dist-git-branch f30
10:07:18.136 packit_base.py DEBUG logging set to DEBUG
10:07:18.136 local_project.py DEBUG working_dir is set and git_repo is not: let's discover...
10:07:18.137 local_project.py DEBUG it's a git repo!
10:07:18.142 local_project.py DEBUG remote url of the repo is https://github.com/cockpit-project/cockpit-ostree.git
10:07:18.143 local_project.py DEBUG Parsed namespace and repo name from url: cockpit-project/cockpit-ostree
10:07:18.144 config.py DEBUG The local config file '/home/martin/upstream/cockpit-ostree/.packit.yaml' not found.
10:07:18.144 config.py DEBUG The local config file '/home/martin/upstream/cockpit-ostree/.packit.yml' not found.
10:07:18.144 config.py DEBUG The local config file '/home/martin/upstream/cockpit-ostree/.packit.json' not found.
10:07:18.144 config.py DEBUG Local package config found: /home/martin/upstream/cockpit-ostree/packit.yaml
10:07:18.147 config.py DEBUG Package config:
{
"specfile_path": "cockpit-ostree.spec",
"synced_files": [
"cockpit-ostree.spec"
],
"upstream_project_name": "cockpit-ostree",
"downstream_package_name": "cockpit-ostree",
"actions": {
"post-upstream-clone": "make cockpit-ostree.spec",
"create-archive": "make dist-gzip"
}
}
10:07:18.148 utils.py DEBUG can't obtain upstream_ref: 'upstream_ref'
10:07:18.148 api.py DEBUG create bodhi update, builds=(), dg_branch=f30, type=enhancement
10:07:18.148 base_git.py DEBUG command handler = RunCommandType.local
10:07:18.149 distgit.py DEBUG Using dist-git repo https://src.fedoraproject.org/rpms/cockpit-ostree.git
10:07:18.149 distgit.py DEBUG About to create a Bodhi update of type enhancement from f30
10:07:30.889 distgit.py DEBUG Koji builds for package cockpit-ostree:
- f29-updates-candidate
- f30-updates-candidate
- f28-updates-candidate
- f29-updates-testing
- f30-updates-testing
- f28-updates-testing
- f29-updates
- f30-updates
- f28-updates
- f29-override
- f30-override
- f28-override
- f29-updates-testing-pending
- f30-updates-testing-pending
- f28-updates-testing-pending
- f29-updates-pending
- f30-updates-pending
- f28-updates-pending
Koji builds for package cockpit-ostree and koji tag f30-updates-candidate:
- cockpit-ostree-178-1.fc30
10:07:30.890 local_project.py DEBUG Url https://src.fedoraproject.org/rpms/cockpit-ostree.git parsed. Resulting scheme: https
10:07:30.891 utils.py DEBUG Cloning repo: https://src.fedoraproject.org/rpms/cockpit-ostree.git -> /tmp/tmpzq3l93or
Username:
That’s weird, why now username in addition? I enter my Fedora credentials again, then
ERROR Authentication failed Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 244, in send_request output = func(method, **kwargs) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 89, in _decorator ‘{0} requires a logged in user’.format(output.url)) 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.7/site-packages/bodhi/client/bindings.py”, line 109, in wrapper result = method(*args, **kwargs) File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 266, in save data=kwargs) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 246, 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.7/site-packages/bodhi/client/bindings.py”, line 109, in wrapper result = method(*args, **kwargs) File “/usr/lib/python3.7/site-packages/bodhi/client/bindings.py”, line 576, in csrf self.login(self.username, self.password) File “/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py”, line 293, in login openid_insecure=self.openid_insecure) File “/usr/lib/python3.7/site-packages/fedora/client/openidproxyclient.py”, line 138, in openid_login raise AuthError(output[‘message’]) fedora.client.AuthError: Authentication failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/martin/tmp/packit/packit/cli/utils.py", line 58, in covered_func
func(config=config, *args, **kwargs)
File "/home/martin/tmp/packit/packit/cli/create_update.py", line 76, in create_update
update_type=update_type,
File "/home/martin/tmp/packit/packit/api.py", line 395, in create_update
update_type=update_type,
File "/home/martin/tmp/packit/packit/distgit.py", line 329, in create_bodhi_update
result = b.save(builds=koji_builds, notes=rendered_note, type=update_type)
File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 134, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 261, in save
kwargs['csrf_token'] = self.csrf()
File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 134, in wrapper
result = method(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/bodhi/client/bindings.py", line 576, in csrf
self.login(self.username, self.password)
File "/usr/lib/python3.7/site-packages/fedora/client/openidbaseclient.py", line 293, in login
openid_insecure=self.openid_insecure)
File "/usr/lib/python3.7/site-packages/fedora/client/openidproxyclient.py", line 138, in openid_login
raise AuthError(output['message'])
fedora.client.AuthError: Authentication failed
08:08:28.497 local_project.py DEBUG Cleaning: /tmp/tmpzq3l93or
For doing automated releases, asking for a password interactively isn’t acceptable.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
I briefly checked bodhi issue tracker and none of the issues is fixed, so it seems that printing the description is the way
I’ve done an update last week and it’s really not convenient.