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

Bad owner or permissions on /root/.ssh/config #94

Open
vireshk opened this issue Oct 12, 2021 · 1 comment
Open

Bad owner or permissions on /root/.ssh/config #94

vireshk opened this issue Oct 12, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@vireshk
Copy link
Contributor

vireshk commented Oct 12, 2021

Running ./rust-vmm-ci/test_run.py locally fails for vhost-device repository.

Commands I ran:

$ docker run --device=/dev/kvm -it --security-opt seccomp=unconfined --volume /home/vireshk/vhost-device:/vhost-device --volume ~/.ssh:/root/.ssh rustvmm/dev:v13

cd vhost-device; ./rust-vmm-ci/test_run.py

Failure Message:

test_commit-format (main.TestsContainer) ... =============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.8.10, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
rootdir: /vhost-device
plugins: timeout-1.4.2
collected 1 item

rust-vmm-ci/integration_tests/test_commit_format.py F [100%]

==================================================================================================== FAILURES =====================================================================================================
_______________________________________________________________________________________________ test_commit_format ________________________________________________________________________________________________

def test_commit_format():
    """
    Checks commit message format for the current PR's commits.

    Checks if commit messages follow the 50/72 git commit rule
    [https://www.midori-global.com/blog/2018/04/02/git-50-72-rule]
    and if commits are signed.
    """
    # Fetch the upstream repository.
    fetch_base_cmd = "git fetch {} {}".format(REMOTE, BASE_BRANCH)
    try:
        subprocess.run(fetch_base_cmd, shell=True, check=True)
    except subprocess.CalledProcessError:
      raise NameError(
            "The name of the base branch or remote is invalid. "
            "See test documentation for more details."
        ) from None

E NameError: The name of the base branch or remote is invalid. See test documentation for more details.

rust-vmm-ci/integration_tests/test_commit_format.py:42: NameError
---------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------
Bad owner or permissions on /root/.ssh/config
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
============================================================================================= short test summary info =============================================================================================
FAILED rust-vmm-ci/integration_tests/test_commit_format.py::test_commit_format - NameError: The name of the base branch or remote is invalid. See test documentation for more details.
================================================================================================ 1 failed in 0.03s ================================================================================================
ERROR

@vireshk
Copy link
Contributor Author

vireshk commented Oct 12, 2021

FWIW, on the local system:

$ ls -la ~/.ssh/config
-rw------- 1 vireshk vireshk 188 Oct 5 2017 /home/vireshk/.ssh/config

Same from within docker instance:

root@d2ac617cf894:/vhost-device# ls -la ~/.ssh/config
-rw------- 1 1000 1000 188 Oct 5 2017 /root/.ssh/config

@andreeaflorescu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants