Unable to Install pf9-hostagent Package on the node

Problem

  • Unable to install pf9-hostagent package on the node

  • We see below errors in the /var/log/pf9/hostagent.log.

Unable to install pf9-hostagent package on the node

pf9_app_db.py ERROR - Install command failed: sudo /opt/pf9/hostagent/bin/pf9-apt install /var/cache/pf9apps/pf9-hostagent/4.4.0-3252.9717c06/pf9-hostagent-4.4.0-3252.9717c06.x86_64.deb. Return code: 1, stdout: Setting up initramfs-tools (0.122ub
untu8.14) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-4.4.0-194-generic (4.4.0-194.226) ...
Processing triggers for initramfs-tools (0.122ubuntu8.14) ...
update-initramfs: Generating /boot/initrd.img-4.4.0-193-generic
W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.


gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-193-generic with 1.
dpkg: error processing package initramfs-tools (--configure):
 subprocess installed post-installation script returned error exit status 1

Environment

  • Platform9 Managed Kubernetes - All Versions

  • Platform9 Managed OpenStack - All Versions

Cause

There is no space on the /boot partition.

$ df -h
Filesystem                      Size  Used Avail Use% Mounted on
udev                              20G    0  20G  0% /dev
tmpfs                            4.0G  394M  3.6G  10% /run
/dev/mapper/cluster2--vg-root    218G  12G  195G  6% /
tmpfs                            20G    0  20G  0% /dev/shm
tmpfs                            5.0M    0  5.0M  0% /run/lock
tmpfs                            20G    0  20G  0% /sys/fs/cgroup
/dev/sda2                        721M  681M  3.0M 100% /boot
/dev/sdb1                        1.8T  68M  1.7T  1% /mnt/raid
/dev/sda1                        511M  3.6M  508M  1% /boot/efi
10.10.0.203:/volume1/kubernetes  32T  18T  14T  57% /nfs/kubernetes
tmpfs                            4.0G    0  4.0G  0% /run/user/1001

Resolution

Free the disk space in the /boot partition. The /boot directory contains all of your kernel images, so the likely cause of this issue is that you have too many previous kernels installed.