Jira (FACT-2829) partition fact missing "mount" field

10 views
Skip to first unread message

Jason Grammenos (Jira)

unread,
Oct 6, 2020, 11:06:07 AM10/6/20
to puppe...@googlegroups.com
Jason Grammenos created an issue
 
Facter / Bug FACT-2829
partition fact missing "mount" field
Issue Type: Bug Bug
Assignee: Unassigned
Created: 2020/10/06 8:05 AM
Environment:

Linux hostname 5.4.0-1025-aws #25-Ubuntu SMP Fri Sep 11 09:37:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -d
Description: Ubuntu 20.04.1 LTS

facter facterversion
3.14.13

puppet AIO
puppet-agent 6.18.0-1focal

Priority: Normal Normal
Reporter: Jason Grammenos

hello, I am having trouble with puppet facts not reading the mount point of a partition. I am trying to narrow down what exactly is causing the issue.

jason.grammenos@hostname:~$ lsblk -fp
NAME             FSTYPE LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINT
/dev/nvme0n1
└─/dev/nvme0n1p1 ext4   cloudimg-rootfs fdd49fba-0340-4ed1-b0fc-8da187913fec   16.7G    14% /

puppet facts has no mount field:

"partitions": {
      "/dev/nvme0n1p1": {
        "size": "20.00 GiB",
        "size_bytes": 21473771008
      }
    },

jason.grammenos@hostname:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.0-1025-aws root=PARTUUID=093eb684-01 ro console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 panic=-1

2020-10-06 09:46:10.573298 DEBUG puppetlabs.facter - resolving disk facts.
2020-10-06 09:46:10.573617 DEBUG puppetlabs.facter - fact "blockdevice_nvme0n1_model" has resolved to "Amazon Elastic Block Store".
2020-10-06 09:46:10.573679 DEBUG puppetlabs.facter - fact "blockdevice_nvme0n1_size" has resolved to 21474836480.
2020-10-06 09:46:10.573791 DEBUG puppetlabs.facter - fact "blockdevices" has resolved to "nvme0n1".
2020-10-06 09:46:10.573852 DEBUG puppetlabs.facter - fact "disks" has resolved to {
  nvme0n1 => {
    model => "Amazon Elastic Block Store",
    size => "20.00 GiB",
    size_bytes => 21474836480
  }
}.

2020-10-06 09:46:10.583836 DEBUG puppetlabs.facter - fact "mountpoints" has resolved to {
  / => {
    available => "16.69 GiB",
    available_bytes => 17924517888,
    capacity => "13.55%",
    device => "PARTUUID=093eb684-01",
    filesystem => "ext4",
    options => [
      "rw",
      "relatime",
      "discard"
    ],
    size => "19.32 GiB",
    size_bytes => 20749807616,
    used => "2.62 GiB",
    used_bytes => 2808512512
  },
  /dev => {
    available => "1.89 GiB",
    available_bytes => 2028195840,
    capacity => "0%",
    device => "devtmpfs",
    filesystem => "devtmpfs",
    options => [
      "rw",
      "relatime",
      "size=1980660k",
      "nr_inodes=495165",
      "mode=755"
    ],
    size => "1.89 GiB",
    size_bytes => 2028195840,
    used => "0 bytes",
    used_bytes => 0
  },
  /dev/hugepages => {
    available => "0 bytes",
    available_bytes => 0,
    capacity => "100%",
    device => "hugetlbfs",
    filesystem => "hugetlbfs",
    options => [
      "rw",
      "relatime",
      "pagesize=2M"
    ],
    size => "0 bytes",
    size_bytes => 0,
    used => "0 bytes",
    used_bytes => 0
  },
  /dev/mqueue => {
    available => "0 bytes",
    available_bytes => 0,
    capacity => "100%",
    device => "mqueue",
    filesystem => "mqueue",
    options => [
      "rw",
      "nosuid",
      "nodev",
      "noexec",
      "relatime"
    ],
    size => "0 bytes",
    size_bytes => 0,
    used => "0 bytes",
    used_bytes => 0
  },
  /dev/pts => {
    available => "0 bytes",
    available_bytes => 0,
    capacity => "100%",
    device => "devpts",
    filesystem => "devpts",
    options => [
      "rw",
      "nosuid",
      "noexec",
      "relatime",
      "gid=5",
      "mode=620",
      "ptmxmode=000"
    ],
    size => "0 bytes",
    size_bytes => 0,
    used => "0 bytes",
    used_bytes => 0
  },
  /dev/shm => {
    available => "1.89 GiB",
    available_bytes => 2032406528,
    capacity => "0%",
    device => "tmpfs",
    filesystem => "tmpfs",
    options => [
      "rw",
      "nosuid",
      "nodev"
    ],
    size => "1.89 GiB",
    size_bytes => 2032406528,
    used => "0 bytes",
    used_bytes => 0
  },
  /run => {
    available => "387.17 MiB",
    available_bytes => 405979136,
    capacity => "0.12%",
    device => "tmpfs",
    filesystem => "tmpfs",
    options => [
      "rw",
      "nosuid",
      "nodev",
      "size=396956k",
      "mode=755"
    ],
    size => "387.65 MiB",
    size_bytes => 406482944,
    used => "492.00 KiB",
    used_bytes => 503808
  },
  /run/lock => {
    available => "5.00 MiB",
    available_bytes => 5242880,
    capacity => "0%",
    device => "tmpfs",
    filesystem => "tmpfs",
    options => [
      "rw",
      "nosuid",
      "nodev",
      "noexec",
      "relatime",
      "size=5120k"
    ],
    size => "5.00 MiB",
    size_bytes => 5242880,
    used => "0 bytes",
    used_bytes => 0
  },
  /run/user/2006 => {
    available => "387.65 MiB",
    available_bytes => 406478848,
    capacity => "0%",
    device => "tmpfs",
    filesystem => "tmpfs",
    options => [
      "rw",
      "nosuid",
      "nodev",
      "relatime",
      "size=396952k",
      "mode=700",
      "uid=2006",
      "gid=2000"
    ],
    size => "387.65 MiB",
    size_bytes => 406478848,
    used => "0 bytes",
    used_bytes => 0
  },
  /sys/fs/cgroup => {
    available => "1.89 GiB",
    available_bytes => 2032406528,
    capacity => "0%",
    device => "tmpfs",
    filesystem => "tmpfs",
    options => [
      "ro",
      "nosuid",
      "nodev",
      "noexec",
      "mode=755"
    ],
    size => "1.89 GiB",
    size_bytes => 2032406528,
    used => "0 bytes",
    used_bytes => 0
  }
}.
2020-10-06 09:46:10.585017 DEBUG puppetlabs.facter - fact "filesystems" has resolved to "ext2,ext3,ext4,squashfs,vfat".
2020-10-06 09:46:10.585138 DEBUG puppetlabs.facter - fact "partitions" has resolved to {
  /dev/nvme0n1p1 => {
    size => "20.00 GiB",
    size_bytes => 21473771008
  }
}.

so the mountpoints and disk out is the same with facter-ng but the partitions output is a little different, still no "mount" field though

/opt/puppetlabs/puppet/bin/facter-ng

partitions => {
  /dev/nvme0n1p1 => {
    filesystem => "ext4",
    label => "cloudimg-rootfs",
    partuuid => "093eb684-01",
    size => "20.00 GiB",
    size_bytes => 21473771008,
    uuid => "fdd49fba-0340-4ed1-b0fc-8da187913fec"
  }
}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Jason Grammenos (Jira)

unread,
Oct 6, 2020, 11:25:04 AM10/6/20
to puppe...@googlegroups.com
Jason Grammenos updated an issue
Change By: Jason Grammenos
hello, I am having trouble with puppet facts not reading the mount point of a partition. I am trying to narrow down what exactly is causing the issue.


{noformat}

jason.grammenos@hostname:~$ lsblk -fp
NAME             FSTYPE LABEL           UUID                     FSAVAIL FSUSE% MOUNTPOINT
/dev/nvme0n1
└─/dev/nvme0n1p1 ext4   cloudimg-rootfs fdd49fba-0340-4ed1-b0fc-8da187913fec   16.7G    14% /
{noformat}


puppet facts has no mount field:

{noformat}

"partitions": {
      "/dev/nvme0n1p1": {
        "size": "20.00 GiB",
        "size_bytes": 21473771008
      }
    },
{noformat}


{noformat}

jason.grammenos@hostname:~$ cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.0-1025-aws root=PARTUUID=093eb684-01 ro console=tty1 console=ttyS0 nvme_core.io_timeout=4294967295 panic=-1
{noformat}


{noformat}

2020-10-06 09:46:10.573298 DEBUG puppetlabs.facter - resolving disk facts.
2020-10-06 09:46:10.573617 DEBUG puppetlabs.facter - fact "blockdevice_nvme0n1_model" has resolved to "Amazon Elastic Block Store".
2020-10-06 09:46:10.573679 DEBUG puppetlabs.facter - fact "blockdevice_nvme0n1_size" has resolved to 21474836480.
2020-10-06 09:46:10.573791 DEBUG puppetlabs.facter - fact "blockdevices" has resolved to "nvme0n1".
2020-10-06 09:46:10.573852 DEBUG puppetlabs.facter - fact "disks" has resolved to {
  nvme0n1 => {
    model => "Amazon Elastic Block Store",
    size => "20.00 GiB",
    size_bytes => 21474836480
  }
}.
{noformat}
{noformat}
{noformat}


so the mountpoints and disk out is the same with facter-ng but the partitions output is a little different, still no "mount" field though

/opt/puppetlabs/puppet/bin/facter-ng
{noformat}

partitions => {
  /dev/nvme0n1p1 => {
    filesystem => "ext4",
    label => "cloudimg-rootfs",
    partuuid => "093eb684-01",
    size => "20.00 GiB",
    size_bytes => 21473771008,
    uuid => "fdd49fba-0340-4ed1-b0fc-8da187913fec"
  }
}
{noformat}


{noformat}
cat /etc/mtab
/dev/root / ext4 rw,relatime,discard 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1980660k,nr_inodes=495165,mode=755 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,nosuid,nodev,size=396956k,mode=755 0 0
tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
tmpfs /sys/fs/cgroup tmpfs ro,nosuid,nodev,noexec,mode=755 0 0
cgroup2 /sys/fs/cgroup/unified cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
none /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_cls,net_prio 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpu,cpuacct 0 0
cgroup /sys/fs/cgroup/rdma cgroup rw,nosuid,nodev,noexec,relatime,rdma 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=12146 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0
mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0
tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0
fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0
configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /run/user/2006 tmpfs rw,nosuid,nodev,relatime,size=396952k,mode=700,uid=2006,gid=2000 0 0
{noformat}

Bogdan Irimie (Jira)

unread,
Oct 6, 2020, 11:27:04 AM10/6/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sub-team: ghost
Team: Night's Watch

Bogdan Irimie (Jira)

unread,
Oct 6, 2020, 11:28:05 AM10/6/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage

Bogdan Irimie (Jira)

unread,
Oct 7, 2020, 9:32:03 AM10/7/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ready for triage ghost-14.10

Bogdan Irimie (Jira)

unread,
Oct 7, 2020, 9:32:03 AM10/7/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Story Points: 3

Andrei Filipovici (Jira)

unread,
Oct 14, 2020, 3:47:03 AM10/14/20
to puppe...@googlegroups.com
Andrei Filipovici assigned an issue to Andrei Filipovici
Change By: Andrei Filipovici
Assignee: Andrei Filipovici

Bogdan Irimie (Jira)

unread,
Oct 14, 2020, 10:04:04 AM10/14/20
to puppe...@googlegroups.com
Bogdan Irimie updated an issue
Change By: Bogdan Irimie
Sprint: ghost-14.10 , ready for triage 2
Reply all
Reply to author
Forward
0 new messages