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

oc_atomic_container.py ansible module is empty #11120

Closed
jclaret opened this issue Feb 3, 2019 · 1 comment
Closed

oc_atomic_container.py ansible module is empty #11120

jclaret opened this issue Feb 3, 2019 · 1 comment

Comments

@jclaret
Copy link

jclaret commented Feb 3, 2019

Description

oc_atomic_container.py ansible module file in /usr/share/ansible/openshift-ansible/roles/lib_openshift/library is empty (file size is 0)

$ ls -l /usr/share/ansible/openshift-ansible/roles/lib_openshift/library/oc_atomic_container.py 
-rw-rwxr--. 1 root root 0 Jan 17 22:52 /usr/share/ansible/openshift-ansible/roles/lib_openshift/library/oc_atomic_container.py
Steps To Reproduce
$ git clone  https://github.com/openshift/openshift-ansible.git
$ cd openshift-ansible/
$ find . -name oc_atomic_container.py -exec ls -l {} \;
-rw-rw-r--. 1 jcl jcl 0 Feb  3 19:58 ./roles/lib_openshift/library/oc_atomic_container.py

or

$ git clone https://github.com/redhat-cop/casl-ansible.git
$ cd casl-ansible
$ docker run -u `id -u` \
      -v $HOME/.ssh/id_rsa:/opt/app-root/src/.ssh/id_rsa:Z \
      -v $HOME/Documents/Customers/MINDCURV/aws:/tmp/src:Z \
      -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \
      -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \
      -e INVENTORY_DIR=/tmp/src/casl-ansible/inventory/sample.aws.killproc.net.d/inventory \
      -e PLAYBOOK_FILE=/tmp/src/casl-ansible/playbooks/openshift/end-to-end.yml \
      -e OPTS="--private-key=example.pem -u cloud-user -e aws_key_name=example" -t \
      quay.io/redhat-cop/casl-ansible

quay.io/redhat-cop/casl-ansible image is built from openshift/origin-ansible and this one includes the /usr/share/ansible/openshift-ansible/roles/lib_openshift/library directory with oc_atomic_container ansible module. Once the docker run, it runs the ansible-playbook to install Openshift and it shows the following error:

TASK [openshift_node : Install or Update node system container] ***************************************************************************************************************************************************
task path: /tmp/src/casl-ansible/galaxy/openshift-ansible/roles/openshift_node/tasks/node_system_container_install.yml:2
Sunday 03 February 2019 17:15:02 +0000 (0:00:01.843) 0:10:10.234 *******
Using module file /usr/share/ansible/openshift-ansible/roles/lib_openshift/library/oc_atomic_container.py
fatal: [34.253.232.204]: FAILED! => {
"msg": "module (oc_atomic_container) is missing interpreter line"
}
Using module file /usr/share/ansible/openshift-ansible/roles/lib_openshift/library/oc_atomic_container.py

It expects to run the playbook node_system_container_install.yml, but the ansible module does not include shebang because the file is empty. Looking at other branches, it is there. but not in the master one.

---
- name: Install or Update node system container
  oc_atomic_container:
    name: "{{ openshift_service_type }}-node"
    image: "{{ system_osn_image }}"
    values:
    - "DNS_DOMAIN={{ openshift.common.dns_domain }}"
    - "DOCKER_SERVICE={{ openshift_docker_service_name }}.service"
    - 'ADDTL_MOUNTS={{ l_node_syscon_add_mounts2 }}'
    state: latest
@vrutkovs
Copy link
Member

vrutkovs commented Feb 4, 2019

This is expected - atomic containers are not used in 4.0, see #10277

Please use release-3.11 branch to install Openshift instead of master branch

@vrutkovs vrutkovs closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants