ansible / ansible

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.
https://www.ansible.com/
GNU General Public License v3.0
63k stars 23.92k forks source link

Issue running ansible-test #68728

Closed carchi8py closed 4 years ago

carchi8py commented 4 years ago
SUMMARY

We've been using the stable branch of ansible 2.9 for a while for testing without issue, today i switched to the latest version of dev and got the following error

[root@scspa1821006005 ontap]# ansible-test sanity --docker=default

ERROR: Command "git submodule status --recursive" returned exit status 1.
>>> Standard Error
You need to run this command from the toplevel of the working tree.
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE

How to reproduce this git clone https://github.com/ansible-collections/netapp.git cd ansible_collections/netapp/ontap ansible-test sanity --docker=default

and you'll get the error.

[root@scspa1821006005 ontap]# ansible-test sanity --docker=default
ERROR: Command "git submodule status --recursive" returned exit status 1.
>>> Standard Error
You need to run this command from the toplevel of the working tree.
EXPECTED RESULTS
ACTUAL RESULTS
ansibot commented 4 years ago

Files identified in the description: None

If these files are incorrect, please update the component name section of the description or use the !component bot command.

click here for bot help

mattclay commented 4 years ago

What distribution and version are you testing with? What version of git?

anshulbehl commented 4 years ago

I am facing similar issue locally as well

[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly changing source of code and can
become unstable at any point.
ansible 2.10.0.dev0
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/abehl/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /home/abehl/work/src/anshul_ansible/ansible/lib/ansible
  executable location = /home/abehl/work/src/anshul_ansible/ansible/bin/ansible
  python version = 2.7.17 (default, Oct 21 2019, 17:20:57) [GCC 9.2.1 20190827 (Red Hat 9.2.1-1)]

Error I see is as below, it is not same but I think the issue is similar

RROR: Command "git ls-files -z --cached --others --exclude-standard" returned exit status 128.
>>> Standard Error
fatal: not a git repository: /home/tadej/xlab/sensu/ansible_collections/sensu/sensu_go/.git/worktrees/release
 abehl@ansh  ~/.ansible/collections/ansible_collections/netapp/ontap  git --version
git version 2.21.0
mattclay commented 4 years ago

@anshulbehl That appears to be an unrelated issue. I'm not able to reproduce it yet, or the issue reported by @carchi8py either.

anshulbehl commented 4 years ago

@carchi8py Can you also provide details from your system as well, I am facing a separate issue from what you are facing

mattclay commented 4 years ago

@carchi8py I was able to repro the issue using git version 1.7.1 in a centos:6 docker container.

mattclay commented 4 years ago

I've put together an integration test that reproduces this in our centos7-test-container and will work on a fix.

carchi8py commented 4 years ago

Sorry for the delay i'm using [root@scspa1821006001 ~]# git --version git version 1.8.3.1 [root@scspa1821006001 ~]# cat /etc/os-release NAME="Red Hat Enterprise Linux Server" VERSION="7.6 (Maipo)" ID="rhel" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="7.6" PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server" HOME_URL="https://www.redhat.com/" BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7" REDHAT_BUGZILLA_PRODUCT_VERSION=7.6 REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux" REDHAT_SUPPORT_PRODUCT_VERSION="7.6"