Ravi Tripathichanged title from Automate build of an OOD machine with packer image to Trigger build of OOD machine with packer image with GitLab runner
changed title from Automate build of an OOD machine with packer image to Trigger build of OOD machine with packer image with GitLab runner
The current CI pipeline failed with a weird error which I didn't see when try to build from a build host:
$ $CI_PROJECT_DIR/bin/packer build openstackopenstack.image: output will be in this color.==> openstack.image: Loading flavor: m1.small openstack.image: Verified flavor. ID: 2==> openstack.image: Creating temporary RSA SSH key for instance...==> openstack.image: Creating temporary keypair: packer_6312d98f-2fd9-14b0-1466-c0fca2cd234d ...==> openstack.image: Created temporary keypair: packer_6312d98f-2fd9-14b0-1466-c0fca2cd234d openstack.image: Found Image ID: 491aa544-8d34-4cda-b301-bd2cd04e1b6f==> openstack.image: Launching server...==> openstack.image: Launching server... openstack.image: Server ID: 44951bdd-32b7-46ce-8ed3-7b6268c674f2==> openstack.image: Waiting for server to become ready...==> openstack.image: Creating floating IP using network acc19436-59c4-4bce-a4ab-a115be45ceb9 ... openstack.image: Created floating IP: '186d312e-fee2-43a3-81dd-3b786a10f9dc'(138.26.48.113)==> openstack.image: Associating floating IP '186d312e-fee2-43a3-81dd-3b786a10f9dc'(138.26.48.113) with instance port... openstack.image: Added floating IP '186d312e-fee2-43a3-81dd-3b786a10f9dc'(138.26.48.113) to instance!==> openstack.image: Using SSH communicator to connect: 138.26.48.113==> openstack.image: Waiting for SSH to become available...==> openstack.image: Connected to SSH!==> openstack.image: Provisioning with Ansible... openstack.image: Setting up proxy adapter for Ansible....==> openstack.image: Executing Ansible: ansible-playbook -epacker_build_name="image"-epacker_builder_type=openstack --ssh-extra-args'-o IdentitiesOnly=yes'--extra-varsroot_ssh_key='ecdsa-sha2-nistp256 ************** root@master'-eansible_ssh_private_key_file=/tmp/ansible-key1654591182 -i /tmp/packer-provisioner-ansible1403431780 /builds/louistw/CRI_XCBC/packer-openstack-hpc-image/ansible/node.yml openstack.image: [DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the openstack.image: controller starting with Ansible 2.12. Current version: 3.6.15 (default, Dec 21 openstack.image: 2021, 12:03:22)[GCC 10.2.1 20210110]. This feature will be removed from openstack.image: ansible-core in version 2.12. Deprecation warnings can be disabled by setting openstack.image: deprecation_warnings=False in ansible.cfg. openstack.image: openstack.image: PLAY [Setup node for use as a cluster host] ************************************ openstack.image: openstack.image: TASK [Gathering Facts] ********************************************************* openstack.image: /builds/louistw/CRI_XCBC/venv/lib/python3.6/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography and will be removed in a future release. openstack.image: from cryptography.exceptions import InvalidSignature openstack.image: fatal: [default]: UNREACHABLE! =>{"changed": false, "msg": "Failed to create temporary directory.In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\", for more error information use -vvv. Failed command was: ( umask 77 && mkdir -p \"`echo /root/.ansible/tmp `\"&& mkdir \"`echo /root/.ansible/tmp/ansible-tmp-1662179872.653153-91-230629056384776 `\" && echo ansible-tmp-1662179872.653153-91-230629056384776=\"`echo /root/.ansible/tmp/ansible-tmp-1662179872.653153-91-230629056384776 `\" ), exited with result 1", "unreachable": true} openstack.image: openstack.image: PLAY RECAP ********************************************************************* openstack.image: default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0 openstack.image:==> openstack.image: Provisioning step had errors: Running the cleanup provisioner, if present...==> openstack.image: Deleted temporary floating IP '186d312e-fee2-43a3-81dd-3b786a10f9dc'(138.26.48.113)==> openstack.image: Terminating the source server: 44951bdd-32b7-46ce-8ed3-7b6268c674f2 ...==> openstack.image: Deleting temporary keypair: packer_6312d98f-2fd9-14b0-1466-c0fca2cd234d ...Build 'openstack.image' errored after 2 minutes 44 seconds: Error executing Ansible: Non-zero exit status: exit status 4