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

Compress resulting qcow2 image #79

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Conversation

enolfc
Copy link
Contributor

@enolfc enolfc commented Aug 6, 2024

Summary

Compress resulting image to make things lighter


Related issue :

Copy link
Member

@sebastian-luna-valero sebastian-luna-valero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's try it, looks good so far!

@enolfc enolfc merged commit a363de0 into EGI-Federation:main Aug 6, 2024
2 checks passed
@enolfc enolfc deleted the compress-result branch August 6, 2024 14:59
@enolfc
Copy link
Contributor Author

enolfc commented Aug 6, 2024

Let's try it, looks good so far!

Ideally the build should be done as part of the pull request but that would imply that anyone sending an PR could trigger the spawning of a VM and do something "wrong"

@sebastian-luna-valero
Copy link
Member

I assumed forked repos don't get access to secrets (i.e. OIDC tokens) and therefore cannot trigger automatic builds from GitHub?

@enolfc
Copy link
Contributor Author

enolfc commented Aug 6, 2024

I assumed forked repos don't get access to secrets (i.e. OIDC tokens) and therefore cannot trigger automatic builds from GitHub?

true, we would still be blind if not sending the PR from this repo itself... but for our internal consumption is good, will look into it

Copy link

github-actions bot commented Aug 6, 2024

Build status: failure

Build log
VM is 1e832ce8-8684-4554-b66b-b2b612ee8fce
status: error
/var/tmp/egi/ubuntu /var/tmp/egi
Generating public/private ed25519 key pair.
Your identification has been saved in /tmp/tmp.JtuKPEdic3/key
Your public key has been saved in /tmp/tmp.JtuKPEdic3/key.pub
The key fingerprint is:
SHA256:C0+VmPExvGo0k1TzDSt1Sc/lrIZZTMDMpYJUGsOIlu4 root@builder
The key's randomart image is:
+--[ED25519 256]--+
|     o o=+*+++=..|
|    + ..oX.B+O.=.|
|   o   .=.*.+ + =|
|    .   =..o + . |
|   .  ..S+  o o  |
|    E  +o.   .   |
|       .o        |
|                 |
|                 |
+----[SHA256]-----+
�[1;32mqemu: output will be in this color.�[0m

�[1;32m==> qemu: Retrieving ISO�[0m
�[1;32m==> qemu: Trying https://releases.ubuntu.com/22.04/ubuntu-22.04.4-live-server-amd64.iso�[0m
�[1;32m==> qemu: Trying https://releases.ubuntu.com/22.04/ubuntu-22.04.4-live-server-amd64.iso?checksum=sha256%3A45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2�[0m
�[1;32m==> qemu: https://releases.ubuntu.com/22.04/ubuntu-22.04.4-live-server-amd64.iso?checksum=sha256%3A45f873de9f8cb637345d6e66a583762730bbea30277ef7b32c9c3bd6700a32b2 => /var/tmp/egi/ubuntu/.cache/packer/67a67612e798509328c9ee5490f7388971ed878b.iso�[0m
�[1;32m==> qemu: Starting HTTP server on port 8521�[0m
�[1;32m==> qemu: Found port for communicator (SSH, WinRM, etc): 3352.�[0m
�[1;32m==> qemu: Using existing SSH private key�[0m
�[1;32m==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1�[0m
�[1;32m==> qemu: Starting VM, booting from CD-ROM�[0m
�[0;32m    qemu: The VM will be run headless, without a GUI. If you want to
    qemu: view the screen of the VM, connect via VNC without a password to
    qemu: vnc://127.0.0.1:5903�[0m
�[1;32m==> qemu: Overriding default Qemu arguments with qemuargs template option...�[0m
�[1;32m==> qemu: Waiting 5s for boot...�[0m
�[1;32m==> qemu: Connecting to VM via VNC (127.0.0.1:5903)�[0m
�[1;32m==> qemu: Typing the boot commands over VNC...�[0m
�[0;32m    qemu: Not using a NetBridge -- skipping StepWaitGuestAddress�[0m
�[1;32m==> qemu: Using SSH communicator to connect: 127.0.0.1�[0m
�[1;32m==> qemu: Waiting for SSH to become available...�[0m
�[1;32m==> qemu: Connected to SSH!�[0m
�[1;32m==> qemu: Provisioning with Ansible...�[0m
�[0;32m    qemu: Not using Proxy adapter for Ansible run:
    qemu: 	Using ssh keys from Packer communicator...�[0m
�[1;32m==> qemu: Executing Ansible: ansible-playbook -e packer_build_name="qemu" -e packer_builder_type=qemu -e packer_http_addr=10.0.2.2:8521 --ssh-extra-args '-o IdentitiesOnly=yes' -e ansible_ssh_private_key_file=/tmp/tmp.JtuKPEdic3/key -i /tmp/packer-provisioner-ansible1993132969 /var/tmp/egi/ubuntu/provisioners/init.yaml�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: PLAY [all] *********************************************************************�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [install python] **********************************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: PLAY [all] *********************************************************************�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [Gathering Facts] *********************************************************�[0m
�[0;32m    qemu: ok: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [update packages] *********************************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: PLAY RECAP *********************************************************************�[0m
�[0;32m    qemu: default                    : ok=3    changed=2    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0�[0m
�[0;32m    qemu:�[0m
�[1;32m==> qemu: Pausing 30s before the next provisioner...�[0m
�[1;32m==> qemu: Provisioning with Ansible...�[0m
�[0;32m    qemu: Not using Proxy adapter for Ansible run:
    qemu: 	Using ssh keys from Packer communicator...�[0m
�[1;32m==> qemu: Executing Ansible: ansible-playbook -e packer_build_name="qemu" -e packer_builder_type=qemu -e packer_http_addr=10.0.2.2:8521 --ssh-extra-args '-o IdentitiesOnly=yes' -e ansible_ssh_private_key_file=/tmp/tmp.JtuKPEdic3/key -i /tmp/packer-provisioner-ansible2041021669 /var/tmp/egi/ubuntu/provisioners/base.yaml�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: PLAY [all] *********************************************************************�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [Gathering Facts] *********************************************************�[0m
�[0;32m    qemu: ok: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cloud-init : install cloud-init and extra packages] **********************�[0m
�[0;32m    qemu: ok: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cloud-init : distro specific cloud-init mods] ****************************�[0m
�[0;32m    qemu: included: /var/tmp/egi/ubuntu/provisioners/roles/cloud-init/tasks/cloud-init-jammy.yaml for default�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cloud-init : cloud-init clean] *******************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cloud-init : Create fedcloud config] *************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : remove udev rules] *********************************************�[0m
�[0;32m    qemu: ok: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : List of ssh keys of machine] ***********************************�[0m
�[0;32m    qemu: ok: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : debug] *********************************************************�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_dsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1373, 'inode': 131720, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.188, 'mtime': 1722957305.188, 'ctime': 1722957305.188, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957305.188,�[0m
�[0;32m    qemu:         "ctime": 1722957305.188,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 131720,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0600",�[0m
�[0;32m    qemu:         "mtime": 1722957305.188,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_dsa_key",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": false,�[0m
�[0;32m    qemu:         "roth": false,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 1373,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_dsa_key"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_rsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 562, 'inode': 131626, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.2, 'mtime': 1722957305.16, 'ctime': 1722957305.16, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957305.2,�[0m
�[0;32m    qemu:         "ctime": 1722957305.16,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 131626,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0644",�[0m
�[0;32m    qemu:         "mtime": 1722957305.16,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_rsa_key.pub",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": true,�[0m
�[0;32m    qemu:         "roth": true,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 562,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_rsa_key.pub"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ed25519_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 399, 'inode': 132626, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.2, 'ctime': 1722957305.2, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957306.02,�[0m
�[0;32m    qemu:         "ctime": 1722957305.2,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 132626,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0600",�[0m
�[0;32m    qemu:         "mtime": 1722957305.2,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_ed25519_key",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": false,�[0m
�[0;32m    qemu:         "roth": false,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 399,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_ed25519_key"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ecdsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 505, 'inode': 132530, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.192, 'ctime': 1722957305.192, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957306.02,�[0m
�[0;32m    qemu:         "ctime": 1722957305.192,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 132530,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0600",�[0m
�[0;32m    qemu:         "mtime": 1722957305.192,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_ecdsa_key",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": false,�[0m
�[0;32m    qemu:         "roth": false,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 505,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_ecdsa_key"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_rsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 2590, 'inode': 130788, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.16, 'ctime': 1722957305.16, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957306.02,�[0m
�[0;32m    qemu:         "ctime": 1722957305.16,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 130788,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0600",�[0m
�[0;32m    qemu:         "mtime": 1722957305.16,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_rsa_key",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": false,�[0m
�[0;32m    qemu:         "roth": false,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 2590,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_rsa_key"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ed25519_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 133134, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.2, 'ctime': 1722957305.2, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957306.02,�[0m
�[0;32m    qemu:         "ctime": 1722957305.2,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 133134,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0644",�[0m
�[0;32m    qemu:         "mtime": 1722957305.2,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_ed25519_key.pub",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": true,�[0m
�[0;32m    qemu:         "roth": true,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 90,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_ed25519_key.pub"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_dsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 598, 'inode': 132498, 'dev': 64514, 'nlink': 1, 'atime': 1722957317.052, 'mtime': 1722957305.188, 'ctime': 1722957305.188, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957317.052,�[0m
�[0;32m    qemu:         "ctime": 1722957305.188,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 132498,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0644",�[0m
�[0;32m    qemu:         "mtime": 1722957305.188,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_dsa_key.pub",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": true,�[0m
�[0;32m    qemu:         "roth": true,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 598,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_dsa_key.pub"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ecdsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 170, 'inode': 132625, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.2, 'mtime': 1722957305.192, 'ctime': 1722957305.192, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False}) => {�[0m
�[0;32m    qemu:     "ansible_loop_var": "item",�[0m
�[0;32m    qemu:     "item": {�[0m
�[0;32m    qemu:         "atime": 1722957305.2,�[0m
�[0;32m    qemu:         "ctime": 1722957305.192,�[0m
�[0;32m    qemu:         "dev": 64514,�[0m
�[0;32m    qemu:         "gid": 0,�[0m
�[0;32m    qemu:         "gr_name": "root",�[0m
�[0;32m    qemu:         "inode": 132625,�[0m
�[0;32m    qemu:         "isblk": false,�[0m
�[0;32m    qemu:         "ischr": false,�[0m
�[0;32m    qemu:         "isdir": false,�[0m
�[0;32m    qemu:         "isfifo": false,�[0m
�[0;32m    qemu:         "isgid": false,�[0m
�[0;32m    qemu:         "islnk": false,�[0m
�[0;32m    qemu:         "isreg": true,�[0m
�[0;32m    qemu:         "issock": false,�[0m
�[0;32m    qemu:         "isuid": false,�[0m
�[0;32m    qemu:         "mode": "0644",�[0m
�[0;32m    qemu:         "mtime": 1722957305.192,�[0m
�[0;32m    qemu:         "nlink": 1,�[0m
�[0;32m    qemu:         "path": "/etc/ssh/ssh_host_ecdsa_key.pub",�[0m
�[0;32m    qemu:         "pw_name": "root",�[0m
�[0;32m    qemu:         "rgrp": true,�[0m
�[0;32m    qemu:         "roth": true,�[0m
�[0;32m    qemu:         "rusr": true,�[0m
�[0;32m    qemu:         "size": 170,�[0m
�[0;32m    qemu:         "uid": 0,�[0m
�[0;32m    qemu:         "wgrp": false,�[0m
�[0;32m    qemu:         "woth": false,�[0m
�[0;32m    qemu:         "wusr": true,�[0m
�[0;32m    qemu:         "xgrp": false,�[0m
�[0;32m    qemu:         "xoth": false,�[0m
�[0;32m    qemu:         "xusr": false�[0m
�[0;32m    qemu:     },�[0m
�[0;32m    qemu:     "item.path": "/etc/ssh/ssh_host_ecdsa_key.pub"�[0m
�[0;32m    qemu: }�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : remote ssh keys] ***********************************************�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_dsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 1373, 'inode': 131720, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.188, 'mtime': 1722957305.188, 'ctime': 1722957305.188, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_rsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 562, 'inode': 131626, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.2, 'mtime': 1722957305.16, 'ctime': 1722957305.16, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ed25519_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 399, 'inode': 132626, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.2, 'ctime': 1722957305.2, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ecdsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 505, 'inode': 132530, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.192, 'ctime': 1722957305.192, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_rsa_key', 'mode': '0600', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 2590, 'inode': 130788, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.16, 'ctime': 1722957305.16, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': False, 'xgrp': False, 'woth': False, 'roth': False, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ed25519_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 90, 'inode': 133134, 'dev': 64514, 'nlink': 1, 'atime': 1722957306.02, 'mtime': 1722957305.2, 'ctime': 1722957305.2, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_dsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 598, 'inode': 132498, 'dev': 64514, 'nlink': 1, 'atime': 1722957317.052, 'mtime': 1722957305.188, 'ctime': 1722957305.188, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu: ok: [default] => (item={'path': '/etc/ssh/ssh_host_ecdsa_key.pub', 'mode': '0644', 'isdir': False, 'ischr': False, 'isblk': False, 'isreg': True, 'isfifo': False, 'islnk': False, 'issock': False, 'uid': 0, 'gid': 0, 'size': 170, 'inode': 132625, 'dev': 64514, 'nlink': 1, 'atime': 1722957305.2, 'mtime': 1722957305.192, 'ctime': 1722957305.192, 'gr_name': 'root', 'pw_name': 'root', 'wusr': True, 'rusr': True, 'xusr': False, 'wgrp': False, 'rgrp': True, 'xgrp': False, 'woth': False, 'roth': True, 'xoth': False, 'isuid': False, 'isgid': False})�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : disable root login] ********************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : disable pasword authentication] ********************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : lock root password] ********************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : remove unneeded files] *****************************************�[0m
�[0;32m    qemu: ok: [default] => (item=/root/.bash_history)�[0m
�[0;32m    qemu: ok: [default] => (item=/root/VBoxGuestAdditions.iso)�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : further removing unneeded files] *******************************�[0m
�[0;32m    qemu: changed: [default] => (item=/var/lib/apt/lists/)�[0m
�[0;32m    qemu: changed: [default] => (item=/var/log/installer/)�[0m
�[0;32m    qemu: changed: [default] => (item=/var/lib/cloud/)�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : Resources to reset] ********************************************�[0m
�[0;32m    qemu: changed: [default] => (item=/var/lib/systemd/random-seed)�[0m
�[0;32m    qemu: ok: [default] => (item=/loader/random-seed)�[0m
�[0;32m    qemu: ok: [default] => (item=/var/lib/systemd/credential.secret)�[0m
�[0;32m    qemu: ok: [default] => (item=/etc/machine-info)�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : keep apt-get working] ******************************************�[0m
�[0;32m    qemu: [WARNING]: Consider using the apt module rather than running 'apt-get'.  If you�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu: need to use command because apt is insufficient you can add 'warn: false' to�[0m
�[0;32m    qemu: this command task or set 'command_warnings=False' in ansible.cfg to get rid of�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: this message.�[0m
�[0;32m    qemu: TASK [cleanup : remove locales] ************************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : clean log files] ***********************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: TASK [cleanup : fill disk with zeros] ******************************************�[0m
�[0;32m    qemu: changed: [default]�[0m
�[0;32m    qemu:�[0m
�[0;32m    qemu: PLAY RECAP *********************************************************************�[0m
�[0;32m    qemu: default                    : ok=19   changed=11   unreachable=0    failed=0    skipped=0    rescued=0    ignored=0�[0m
�[0;32m    qemu:�[0m
�[1;32m==> qemu: Provisioning with shell script: provisioners/cleanup.sh�[0m
�[1;31m==> qemu: + sudo rm -fr /home/ubuntu/.ssh /home/ubuntu/.ansible /home/ubuntu/.cache�[0m
�[1;31m==> qemu: + sudo rm -fr /root/.ssh /root/.ansible /root/.cache�[0m
�[1;31m==> qemu: + sudo rm -fr '/root/~*'�[0m
�[1;32m==> qemu: Gracefully halting virtual machine...�[0m
�[1;32m==> qemu: Converting hard drive...�[0m
�[1;32mBuild 'qemu' finished after 12 minutes 59 seconds.�[0m

==> Wait completed after 12 minutes 59 seconds

==> Builds finished. The artifacts of successful builds are:
--> qemu: VM files in directory: output-qemu
*Pusher: @enolfc, Action: `push`*

@enolfc
Copy link
Contributor Author

enolfc commented Aug 6, 2024

Bummer, it failed and we have no logs of the failure and the VM is gone 😫

This was referenced Aug 7, 2024
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

Successfully merging this pull request may close these issues.

2 participants