git ubuntu fails to call ssh on Focal due to mismatched host ssh_config
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-ubuntu |
Fix Released
|
High
|
Robie Basak |
Bug Description
Seems to be an issue between "git ubuntu submit" and focal.
The new SSHs config file by default has an include path
19 Include /etc/ssh/
It seems git-ubuntu comes with an older ssh/git combo that fails on it.
$ git ubuntu submit --reviewer canonical-
04/09/2020 13:10:57 - ERROR:Command exited 128: git push paelzer refs/heads/bug-1847361-miss-old-
04/09/2020 13:10:57 - ERROR:stdout:
04/09/2020 13:10:57 - ERROR:stderr: /etc/ssh/
/etc/
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
04/09/2020 13:10:57 - ERROR:Unable to push refs/heads/bug-1847361-miss-old-
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Bryce Harrington: Approve
-
Diff: 1566 lines (+389/-618)36 files modifiedbin/self-test (+29/-16)
debian/bash-completion (+1/-0)
debian/changelog (+5/-0)
debian/control (+38/-0)
debian/copyright (+6/-0)
debian/extra/git-ubuntu.self-test (+3/-0)
debian/install (+9/-0)
debian/manpages (+1/-0)
debian/py3dist-overrides (+2/-0)
debian/rules (+4/-0)
debian/source/format (+1/-0)
debian/tests/control (+2/-0)
dev/null (+0/-18)
gitubuntu/__main__.py (+2/-12)
gitubuntu/build.py (+4/-12)
gitubuntu/clone.py (+2/-8)
gitubuntu/dsc.py (+1/-6)
gitubuntu/exportorig.py (+1/-6)
gitubuntu/git_repository.py (+16/-22)
gitubuntu/importer.py (+14/-19)
gitubuntu/importer_test.py (+19/-3)
gitubuntu/rich_history.py (+2/-2)
gitubuntu/source_builder_test.py (+2/-1)
gitubuntu/source_information.py (+7/-15)
gitubuntu/submit.py (+1/-6)
gitubuntu/test_fixtures.py (+21/-0)
gitubuntu/versioning.py (+5/-11)
setup.py (+1/-0)
snap-wrappers/wrappers/gbp (+1/-7)
snap-wrappers/wrappers/git-ubuntu (+1/-1)
snap-wrappers/wrappers/merge-changelogs (+3/-0)
snap-wrappers/wrappers/quilt (+1/-6)
snap-wrappers/wrappers/reconstruct-changelog (+3/-0)
snap-wrappers/wrappers/self-test (+3/-0)
snap.sh (+101/-0)
snap/snapcraft.yaml (+77/-447)
- Bryce Harrington: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 102 lines (+16/-7)9 files modifiedsnap-wrappers/wrappers/awk (+1/-1)
snap-wrappers/wrappers/gbp (+1/-1)
snap-wrappers/wrappers/git-merge-changelogs (+1/-1)
snap-wrappers/wrappers/git-reconstruct-changelog (+1/-1)
snap-wrappers/wrappers/git-ubuntu-man (+1/-1)
snap-wrappers/wrappers/git-ubuntu-self-test (+1/-1)
snap-wrappers/wrappers/quilt (+1/-1)
snap-wrappers/wrappers/ssh (+7/-0)
snap/snapcraft.yaml (+2/-0)
tags: | added: submit |
tags: | added: snap |
no longer affects: | snappy |
summary: |
- git ubuntu submit fails on focal + git ubuntu fails to call ssh on Focal |
summary: |
- git ubuntu fails to call ssh on Focal + git ubuntu fails to call ssh on Focal due to mismatched host ssh_config |
Changed in usd-importer: | |
status: | Triaged → In Progress |
assignee: | nobody → Robie Basak (racb) |
$ ssh -V
OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020
$ snap run --shell git-ubuntu current/ usr/bin/ ssh
$ which ssh
/snap/core/
$ ssh -V
OpenSSH_7.2p2 Ubuntu-4ubuntu2.8, OpenSSL 1.0.2n 7 Dec 2017
So you are using ssh from the core snap, instead of the host, with host ssh configs.
Either you need to prefer ssh from the host (or all of PATH?), or upgrade git-ubuntu to use "base: core20".