Closed sundarrd closed 2 years ago
Collection Version
dellemc.powerstore 1.6.0
https://raw.githubusercontent.com/dell/ansible-powerstore/master/meta/execution-environment.yml
version: 2 build_arg_defaults: ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '-c'
dependencies: galaxy: requirements.yml python: requirements.txt system: bindrep.txt
additional_build_steps: prepend: | RUN pip3 install --upgrade pip setuptools RUN pip install --upgrade pip RUN pip install ansible RUN pip install PyPowerStore RUN ansible-galaxy collection install dellemc.powerstore -c -p /usr/share/ansible/collections append:
requirements.txt: urllib3>=1.26.7 requests>=2.23.0 setuptools PyPowerStore
collections:
bindrep.txt subversion [platform:rpm] subversion [platform:dpkg]
[root@awx pstee]# ls -l total 44 -rw-r--r-- 1 root root 53 Aug 2 18:52 bindrep.txt drwxr-xr-x 3 root root 38 Aug 3 00:44 context -rw-r--r-- 1 root root 525 Aug 3 00:43 execution-environment.yml -rw-r--r-- 1 root root 57 Aug 2 18:52 requirements.txt -rw-r--r-- 1 root root 101 Aug 3 00:32 requirements.yml
ansible-builder build --tag
Describe the bug The default AWX-EE image does not run the play books so had to build a new image
Expected requirements file not present at: /usr/share/ansible/collections/ansible_collections/dellemc/requirements.txt FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ansible/collections/ansible_collections/dellemc/powerstore/../requirements.txt'
To Reproduce [root@awx awx-ee]# ansible-builder build --tag power-ee --container-runtime docker -v 3 Ansible Builder is building your execution environment image. Tags: power-ee File context/_build/requirements.yml is already up-to-date. File context/_build/requirements.txt is already up-to-date. File context/_build/bindep.txt is already up-to-date. Rewriting Containerfile to capture collection requirements Running command: docker build -f context/Dockerfile -t power-ee context Sending build context to Docker daemon 6.656kB Step 1/23 : ARG EE_BASE_IMAGE=quay.io/ansible/ansible-runner:latest Step 2/23 : ARG EE_BUILDER_IMAGE=quay.io/ansible/ansible-builder:latest Step 3/23 : FROM $EE_BASE_IMAGE as galaxy ---> bec0dc171168 Step 4/23 : ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS=-c ---> Using cache ---> 64b20c6cbeff Step 5/23 : USER root ---> Using cache ---> 2d8e7bf535e4 Step 6/23 : ADD _build /build ---> Using cache ---> 4ace0108d984 Step 7/23 : WORKDIR /build ---> Using cache ---> 156df47f8ccf Step 8/23 : RUN ansible-galaxy role install -r requirements.yml --roles-path "/usr/share/ansible/roles" ---> Using cache ---> 8549e3cc0a61 Step 9/23 : RUN ANSIBLE_GALAXY_DISABLE_GPG_VERIFY=1 ansible-galaxy collection install $ANSIBLE_GALAXY_CLI_COLLECTION_OPTS -r requirements.yml --collections-path "/usr/share/ansible/collections" ---> Using cache ---> e5992bd056a7 Step 10/23 : FROM $EE_BUILDER_IMAGE as builder ---> b0348faa7f41 Step 11/23 : COPY --from=galaxy /usr/share/ansible /usr/share/ansible ---> Using cache ---> 48807ddad3f4 Step 12/23 : ADD _build/requirements.txt requirements.txt ---> Using cache ---> b6665e89d943 Step 13/23 : ADD _build/bindep.txt bindep.txt ---> Using cache ---> c2b7950c1716 Step 14/23 : RUN ansible-builder introspect --sanitize --user-pip=requirements.txt --user-bindep=bindep.txt --write-bindep=/tmp/src/bindep.txt --write-pip=/tmp/src/requirements.txt ---> Running in b54af1599990 Expected requirements file not present at: /usr/share/ansible/collections/ansible_collections/dellemc/requirements.txt FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ansible/collections/ansible_collections/dellemc/powerstore/../requirements.txt'
:::::::::::::: bindrep.txt :::::::::::::: subversion [platform:rpm] subversion [platform:dpkg]
context: directory
:::::::::::::: execution-environment.yml ::::::::::::::
version: 2 build_arg_defaults: ANSIBLE_GALAXY_CLI_COLLECTION_OPTS: '-c'
ANSIBLE_GALAXY_CLI_ROLE_OPTS: '-c'
dependencies: galaxy: requirements.yml python: requirements.txt system: bindrep.txt
additional_build_steps: prepend: | RUN pip3 install --upgrade pip setuptools append:
RUN ls -la /etc :::::::::::::: requirements.txt :::::::::::::: urllib3>=1.26.7 requests>=2.23.0 setuptools PyPowerStore :::::::::::::: requirements.yml ::::::::::::::
collections:
This looks similar to powerscale module
https://github.com/ansible/ansible-builder/issues/399