Project

General

Profile

« Previous | Next » 

Revision 16701e6b

Added by Dominik Matoulek over 2 years ago

Fixes #33470 - Adding support for CentOS Stream

The facts from Stream has not yet supported in Foreman. This PR adds correct recognition for all parsers.

View differences:

app/services/foreman_ansible/operating_system_parser.rb
def operatingsystem
args = { :name => os_name, :major => os_major, :minor => os_minor }
args[:release_name] = os_release_name if os_name == 'Debian' || os_name == 'Ubuntu'
# for Ansible, the CentOS Stream can be identified by missing minor version only
args[:name] = "CentOS_Stream" if os_name == 'CentOS' && os_minor.blank?
return @local_os if local_os(args).present?
return @new_os if new_os(args).present?
logger.debug do
app/services/foreman_chef/fact_parser.rb
# get the minor.build number, e.g. 7.2.1511 -> 2.1511
minor = release[2..-1]
end
when 'centos'
# Centos Stream doesn't have minor version on need to replace blank spaces due to name restriction
os_name = facts.dig(:os_release, :name).tr(' ', '_') unless minor
end
begin
app/services/foreman_salt/fact_parser.rb
name = facts[:os]
(_, major, minor, sub) = /(\d+)\.?(\d+)?\.?(\d+)?/.match(facts[:osrelease]).to_a
minor = "" if minor.nil?
if name == 'CentOS'
if name == 'CentOS Stream'
return { :name => name.tr(' ', '_'), :major => major, :minor => minor }
end
if name == 'CentOS' || name == 'CentOS Linux'
if sub
minor += '.' + sub
end
return { :name => 'CentOS', :major => major, :minor => minor }
end
{ :name => name, :major => major, :minor => minor }
end
app/services/katello/rhsm_fact_parser.rb
os_attributes[:name] = os_name + '_Workstation'
end
if facts['distribution.name'] == 'CentOS Stream'
os_attributes[:name] = "CentOS_Stream"
end
if facts['distribution.name'] == 'CentOS Linux'
os_attributes[:name] = "CentOS"
end
::Operatingsystem.find_by(os_attributes) || ::Operatingsystem.create!(os_attributes)
end
end
app/services/puppet_fact_parser.rb
def os_name
# Facter 2.2 introduced the os fact
os_name = facts.dig(:os, :name).presence || facts[:operatingsystem].presence || raise(::Foreman::Exception.new("invalid facts, missing operating system value"))
# CentOS Stream doesn't have a minor version so it's good to check it at two places according to version of Facter that produced facts
has_no_minor = facts[:lsbdistrelease]&.exclude?('.') || (facts.dig(:os, :name).presence && facts.dig(:os, :release, :minor).nil?)
return 'CentOS_Stream' if os_name == 'CentOSStream' || (os_name == 'CentOS' && has_no_minor)
if os_name == 'RedHat' && distro_id == 'RedHatEnterpriseWorkstation'
os_name += '_Workstation'
test/static_fixtures/facts/ansible_centos_8.json
{
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"192.168.88.15"
],
"ansible_all_ipv6_addresses": [
"fe80::5054:ff:fe2a:fa7a"
],
"ansible_apparmor": {
"status": "disabled"
},
"ansible_architecture": "x86_64",
"ansible_bios_date": "04/01/2014",
"ansible_bios_version": "1.11.0-2.el7",
"ansible_cmdline": {
"BOOT_IMAGE": "(hd0,msdos1)/vmlinuz-4.18.0-305.19.1.el8_4.x86_64",
"crashkernel": "auto",
"quiet": true,
"rd.lvm.lv": "cl_foreman/swap",
"resume": "/dev/mapper/cl_foreman-swap",
"rhgb": true,
"ro": true,
"root": "/dev/mapper/cl_foreman-root"
},
"ansible_date_time": {
"date": "2021-11-05",
"day": "05",
"epoch": "1636117255",
"hour": "09",
"iso8601": "2021-11-05T13:00:55Z",
"iso8601_basic": "20211105T090055291396",
"iso8601_basic_short": "20211105T090055",
"iso8601_micro": "2021-11-05T13:00:55.291396Z",
"minute": "00",
"month": "11",
"second": "55",
"time": "09:00:55",
"tz": "EDT",
"tz_offset": "-0400",
"weekday": "Friday",
"weekday_number": "5",
"weeknumber": "44",
"year": "2021"
},
"ansible_default_ipv4": {
"address": "192.168.88.15",
"alias": "ens3",
"broadcast": "192.168.88.255",
"gateway": "192.168.88.1",
"interface": "ens3",
"macaddress": "52:54:00:2a:fa:7a",
"mtu": 1500,
"netmask": "255.255.255.0",
"network": "192.168.88.0",
"type": "ether"
},
"ansible_default_ipv6": {},
"ansible_device_links": {
"ids": {
"dm-0": [
"dm-name-cl_foreman-root",
"dm-uuid-LVM-1SYObF1NmVO2QfhuBeSXmS4M4oPhBftyJtxzVwljN6hXsE1USUoov3jhBstzZ6QG"
],
"dm-1": [
"dm-name-cl_foreman-swap",
"dm-uuid-LVM-1SYObF1NmVO2QfhuBeSXmS4M4oPhBfty6HUx4M6dK37tlnmOnre5duDINS94IOIx"
],
"sda": [
"ata-QEMU_HARDDISK_QM00001",
"scsi-0ATA_QEMU_HARDDISK_QM00001",
"scsi-1ATA_QEMU_HARDDISK_QM00001",
"scsi-SATA_QEMU_HARDDISK_QM00001"
],
"sda1": [
"ata-QEMU_HARDDISK_QM00001-part1",
"scsi-0ATA_QEMU_HARDDISK_QM00001-part1",
"scsi-1ATA_QEMU_HARDDISK_QM00001-part1",
"scsi-SATA_QEMU_HARDDISK_QM00001-part1"
],
"sda2": [
"ata-QEMU_HARDDISK_QM00001-part2",
"lvm-pv-uuid-qE9NTM-TAa1-9mSq-bfz1-gnvb-KeDV-fs1qQ9",
"scsi-0ATA_QEMU_HARDDISK_QM00001-part2",
"scsi-1ATA_QEMU_HARDDISK_QM00001-part2",
"scsi-SATA_QEMU_HARDDISK_QM00001-part2"
],
"sr0": [
"ata-QEMU_DVD-ROM_QM00002"
]
},
"labels": {},
"masters": {
"sda2": [
"dm-0",
"dm-1"
]
},
"uuids": {
"dm-0": [
"d227e051-0a78-4598-a07c-6b1cda2b3cec"
],
"dm-1": [
"88a8f999-83e4-4bd7-8307-34c312e19c3b"
],
"sda1": [
"cda15c21-642c-46e7-87d9-3506279a8bcb"
]
}
},
"ansible_devices": {
"dm-0": {
"holders": [],
"host": "",
"links": {
"ids": [
"dm-name-cl_foreman-root",
"dm-uuid-LVM-1SYObF1NmVO2QfhuBeSXmS4M4oPhBftyJtxzVwljN6hXsE1USUoov3jhBstzZ6QG"
],
"labels": [],
"masters": [],
"uuids": [
"d227e051-0a78-4598-a07c-6b1cda2b3cec"
]
},
"model": null,
"partitions": {},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "",
"sectors": "73392128",
"sectorsize": "512",
"serial": "QM00001",
"size": "35.00 GB",
"support_discard": "512",
"vendor": null,
"virtual": 1
},
"dm-1": {
"holders": [],
"host": "",
"links": {
"ids": [
"dm-name-cl_foreman-swap",
"dm-uuid-LVM-1SYObF1NmVO2QfhuBeSXmS4M4oPhBfty6HUx4M6dK37tlnmOnre5duDINS94IOIx"
],
"labels": [],
"masters": [],
"uuids": [
"88a8f999-83e4-4bd7-8307-34c312e19c3b"
]
},
"model": null,
"partitions": {},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "",
"sectors": "8388608",
"sectorsize": "512",
"serial": "QM00001",
"size": "4.00 GB",
"support_discard": "512",
"vendor": null,
"virtual": 1
},
"sda": {
"holders": [],
"host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]",
"links": {
"ids": [
"ata-QEMU_HARDDISK_QM00001",
"scsi-0ATA_QEMU_HARDDISK_QM00001",
"scsi-1ATA_QEMU_HARDDISK_QM00001",
"scsi-SATA_QEMU_HARDDISK_QM00001"
],
"labels": [],
"masters": [],
"uuids": []
},
"model": "QEMU HARDDISK",
"partitions": {
"sda1": {
"holders": [],
"links": {
"ids": [
"ata-QEMU_HARDDISK_QM00001-part1",
"scsi-0ATA_QEMU_HARDDISK_QM00001-part1",
"scsi-1ATA_QEMU_HARDDISK_QM00001-part1",
"scsi-SATA_QEMU_HARDDISK_QM00001-part1"
],
"labels": [],
"masters": [],
"uuids": [
"cda15c21-642c-46e7-87d9-3506279a8bcb"
]
},
"sectors": "2097152",
"sectorsize": 512,
"size": "1.00 GB",
"start": "2048",
"uuid": "cda15c21-642c-46e7-87d9-3506279a8bcb"
},
"sda2": {
"holders": [
"cl_foreman-swap",
"cl_foreman-root"
],
"links": {
"ids": [
"ata-QEMU_HARDDISK_QM00001-part2",
"lvm-pv-uuid-qE9NTM-TAa1-9mSq-bfz1-gnvb-KeDV-fs1qQ9",
"scsi-0ATA_QEMU_HARDDISK_QM00001-part2",
"scsi-1ATA_QEMU_HARDDISK_QM00001-part2",
"scsi-SATA_QEMU_HARDDISK_QM00001-part2"
],
"labels": [],
"masters": [
"dm-0",
"dm-1"
],
"uuids": []
},
"sectors": "81786880",
"sectorsize": 512,
"size": "39.00 GB",
"start": "2099200",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "83886080",
"sectorsize": "512",
"serial": "QM00001",
"size": "40.00 GB",
"support_discard": "512",
"vendor": "ATA",
"virtual": 1
},
"sr0": {
"holders": [],
"host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]",
"links": {
"ids": [
"ata-QEMU_DVD-ROM_QM00002"
],
"labels": [],
"masters": [],
"uuids": []
},
"model": "QEMU DVD-ROM",
"partitions": {},
"removable": "1",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "2097151",
"sectorsize": "512",
"size": "1024.00 MB",
"support_discard": "0",
"vendor": "QEMU",
"virtual": 1
}
},
"ansible_distribution": "CentOS",
"ansible_distribution_file_parsed": true,
"ansible_distribution_file_path": "/etc/redhat-release",
"ansible_distribution_file_variety": "RedHat",
"ansible_distribution_major_version": "8",
"ansible_distribution_release": "NA",
"ansible_distribution_version": "8.4",
"ansible_dns": {
"nameservers": [
"192.168.88.30",
"192.168.88.1"
],
"search": [
"cluster.local"
]
},
"ansible_domain": "cluster.local",
"ansible_effective_group_id": 0,
"ansible_effective_user_id": 0,
"ansible_ens3": {
"active": true,
"device": "ens3",
"features": {
"esp_hw_offload": "off [fixed]",
"esp_tx_csum_hw_offload": "off [fixed]",
"fcoe_mtu": "off [fixed]",
"generic_receive_offload": "on",
"generic_segmentation_offload": "on",
"highdma": "on [fixed]",
"hw_tc_offload": "off [fixed]",
"l2_fwd_offload": "off [fixed]",
"large_receive_offload": "off [fixed]",
"loopback": "off [fixed]",
"netns_local": "off [fixed]",
"ntuple_filters": "off [fixed]",
"receive_hashing": "off [fixed]",
"rx_all": "off [fixed]",
"rx_checksumming": "on",
"rx_fcs": "off [fixed]",
"rx_gro_hw": "off [fixed]",
"rx_gro_list": "off",
"rx_udp_tunnel_port_offload": "off [fixed]",
"rx_vlan_filter": "off [fixed]",
"rx_vlan_offload": "on",
"rx_vlan_stag_filter": "off [fixed]",
"rx_vlan_stag_hw_parse": "off [fixed]",
"scatter_gather": "on",
"tcp_segmentation_offload": "on",
"tls_hw_record": "off [fixed]",
"tls_hw_rx_offload": "off [fixed]",
"tls_hw_tx_offload": "off [fixed]",
"tx_checksum_fcoe_crc": "off [fixed]",
"tx_checksum_ip_generic": "off [fixed]",
"tx_checksum_ipv4": "on",
"tx_checksum_ipv6": "off [fixed]",
"tx_checksum_sctp": "off [fixed]",
"tx_checksumming": "on",
"tx_esp_segmentation": "off [fixed]",
"tx_fcoe_segmentation": "off [fixed]",
"tx_gre_csum_segmentation": "off [fixed]",
"tx_gre_segmentation": "off [fixed]",
"tx_gso_list": "off [fixed]",
"tx_gso_partial": "off [fixed]",
"tx_gso_robust": "off [fixed]",
"tx_ipxip4_segmentation": "off [fixed]",
"tx_ipxip6_segmentation": "off [fixed]",
"tx_lockless": "off [fixed]",
"tx_nocache_copy": "off",
"tx_scatter_gather": "on",
"tx_scatter_gather_fraglist": "off [fixed]",
"tx_sctp_segmentation": "off [fixed]",
"tx_tcp6_segmentation": "off [fixed]",
"tx_tcp_ecn_segmentation": "off [fixed]",
"tx_tcp_mangleid_segmentation": "off",
"tx_tcp_segmentation": "on",
"tx_tunnel_remcsum_segmentation": "off [fixed]",
"tx_udp_segmentation": "off [fixed]",
"tx_udp_tnl_csum_segmentation": "off [fixed]",
"tx_udp_tnl_segmentation": "off [fixed]",
"tx_vlan_offload": "on",
"tx_vlan_stag_hw_insert": "off [fixed]",
"vlan_challenged": "off [fixed]"
},
"hw_timestamp_filters": [],
"ipv4": {
"address": "192.168.88.15",
"broadcast": "192.168.88.255",
"netmask": "255.255.255.0",
"network": "192.168.88.0"
},
"ipv6": [
{
"address": "fe80::5054:ff:fe2a:fa7a",
"prefix": "64",
"scope": "link"
}
],
"macaddress": "52:54:00:2a:fa:7a",
"module": "8139cp",
"mtu": 1500,
"pciid": "0000:00:03.0",
"promisc": false,
"speed": 100,
"timestamping": [],
"type": "ether"
},
"ansible_env": {
"COCKPIT_REMOTE_PEER": "::ffff:192.168.88.248",
"DBUS_SESSION_BUS_ADDRESS": "unix:path=/run/user/0/bus",
"GSETTINGS_BACKEND": "memory",
"HOME": "/root",
"LANG": "C",
"LC_ALL": "C",
"LC_NUMERIC": "C",
"LESSOPEN": "||/usr/bin/lesspipe.sh %s",
"LS_COLORS": "rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:",
"MANPATH": ":/opt/puppetlabs/puppet/share/man",
"PATH": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin",
"PWD": "/root",
"SHELL": "/bin/bash",
"SHLVL": "3",
"SSH_AGENT_PID": "169075",
"SSH_AUTH_SOCK": "/tmp/ssh-pdYBEPf4vm59/agent.169074",
"TERM": "xterm-256color",
"USER": "root",
"XDG_RUNTIME_DIR": "/run/user/0",
"XDG_SESSION_CLASS": "user",
"XDG_SESSION_ID": "134",
"XDG_SESSION_TYPE": "web",
"_": "/usr/libexec/platform-python"
},
"ansible_fibre_channel_wwn": [],
"ansible_fips": false,
"ansible_form_factor": "Other",
"ansible_fqdn": "foreman.cluster.local",
"ansible_hostname": "foreman",
"ansible_hostnqn": "nqn.2014-08.org.nvmexpress:uuid:0298c31d-2322-4fc5-8539-76a430244da9",
"ansible_interfaces": [
"ens3",
"lo"
],
"ansible_is_chroot": false,
"ansible_iscsi_iqn": "iqn.1994-05.com.redhat:4c593354452",
"ansible_kernel": "4.18.0-305.19.1.el8_4.x86_64",
"ansible_kernel_version": "#1 SMP Wed Sep 15 15:39:39 UTC 2021",
"ansible_lo": {
"active": true,
"device": "lo",
"features": {
"esp_hw_offload": "off [fixed]",
"esp_tx_csum_hw_offload": "off [fixed]",
"fcoe_mtu": "off [fixed]",
"generic_receive_offload": "on",
"generic_segmentation_offload": "on",
"highdma": "on [fixed]",
"hw_tc_offload": "off [fixed]",
"l2_fwd_offload": "off [fixed]",
"large_receive_offload": "off [fixed]",
"loopback": "on [fixed]",
"netns_local": "on [fixed]",
"ntuple_filters": "off [fixed]",
"receive_hashing": "off [fixed]",
"rx_all": "off [fixed]",
"rx_checksumming": "on [fixed]",
"rx_fcs": "off [fixed]",
"rx_gro_hw": "off [fixed]",
"rx_gro_list": "off",
"rx_udp_tunnel_port_offload": "off [fixed]",
"rx_vlan_filter": "off [fixed]",
"rx_vlan_offload": "off [fixed]",
"rx_vlan_stag_filter": "off [fixed]",
"rx_vlan_stag_hw_parse": "off [fixed]",
"scatter_gather": "on",
"tcp_segmentation_offload": "on",
"tls_hw_record": "off [fixed]",
"tls_hw_rx_offload": "off [fixed]",
"tls_hw_tx_offload": "off [fixed]",
"tx_checksum_fcoe_crc": "off [fixed]",
"tx_checksum_ip_generic": "on [fixed]",
"tx_checksum_ipv4": "off [fixed]",
"tx_checksum_ipv6": "off [fixed]",
"tx_checksum_sctp": "on [fixed]",
"tx_checksumming": "on",
"tx_esp_segmentation": "off [fixed]",
"tx_fcoe_segmentation": "off [fixed]",
"tx_gre_csum_segmentation": "off [fixed]",
"tx_gre_segmentation": "off [fixed]",
"tx_gso_list": "off [fixed]",
"tx_gso_partial": "off [fixed]",
"tx_gso_robust": "off [fixed]",
"tx_ipxip4_segmentation": "off [fixed]",
"tx_ipxip6_segmentation": "off [fixed]",
"tx_lockless": "on [fixed]",
"tx_nocache_copy": "off [fixed]",
"tx_scatter_gather": "on [fixed]",
"tx_scatter_gather_fraglist": "on [fixed]",
"tx_sctp_segmentation": "on",
"tx_tcp6_segmentation": "on",
"tx_tcp_ecn_segmentation": "on",
"tx_tcp_mangleid_segmentation": "on",
"tx_tcp_segmentation": "on",
"tx_tunnel_remcsum_segmentation": "off [fixed]",
"tx_udp_segmentation": "off [fixed]",
"tx_udp_tnl_csum_segmentation": "off [fixed]",
"tx_udp_tnl_segmentation": "off [fixed]",
"tx_vlan_offload": "off [fixed]",
"tx_vlan_stag_hw_insert": "off [fixed]",
"vlan_challenged": "on [fixed]"
},
"hw_timestamp_filters": [],
"ipv4": {
"address": "127.0.0.1",
"broadcast": "",
"netmask": "255.0.0.0",
"network": "127.0.0.0"
},
"ipv6": [
{
"address": "::1",
"prefix": "128",
"scope": "host"
}
],
"mtu": 65536,
"promisc": false,
"timestamping": [],
"type": "loopback"
},
"ansible_local": {},
"ansible_lsb": {},
"ansible_lvm": {
"lvs": {
"root": {
"size_g": "35.00",
"vg": "cl_foreman"
},
"swap": {
"size_g": "4.00",
"vg": "cl_foreman"
}
},
"pvs": {
"/dev/sda2": {
"free_g": "0",
"size_g": "39.00",
"vg": "cl_foreman"
}
},
"vgs": {
"cl_foreman": {
"free_g": "0",
"num_lvs": "2",
"num_pvs": "1",
"size_g": "39.00"
}
}
},
"ansible_machine": "x86_64",
"ansible_machine_id": "5d33f1d45b774d26b22a76ffcc26d275",
"ansible_memfree_mb": 468,
"ansible_memory_mb": {
"nocache": {
"free": 1011,
"used": 8772
},
"real": {
"free": 468,
"total": 9783,
"used": 9315
},
"swap": {
"cached": 426,
"free": 3180,
"total": 4095,
"used": 915
}
},
"ansible_memtotal_mb": 9783,
"ansible_mounts": [
{
"block_available": 8033177,
"block_size": 4096,
"block_total": 9169537,
"block_used": 1136360,
"device": "/dev/mapper/cl_foreman-root",
"fstype": "xfs",
"inode_available": 18179233,
"inode_total": 18348032,
"inode_used": 168799,
"mount": "/",
"options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota",
"size_available": 32903892992,
"size_total": 37558423552,
"uuid": "d227e051-0a78-4598-a07c-6b1cda2b3cec"
},
{
"block_available": 208011,
"block_size": 4096,
"block_total": 259584,
"block_used": 51573,
"device": "/dev/sda1",
"fstype": "xfs",
"inode_available": 523979,
"inode_total": 524288,
"inode_used": 309,
"mount": "/boot",
"options": "rw,seclabel,relatime,attr2,inode64,logbufs=8,logbsize=32k,noquota",
"size_available": 852013056,
"size_total": 1063256064,
"uuid": "cda15c21-642c-46e7-87d9-3506279a8bcb"
}
],
"ansible_nodename": "foreman.cluster.local",
"ansible_os_family": "RedHat",
"ansible_pkg_mgr": "dnf",
"ansible_proc_cmdline": {
"BOOT_IMAGE": "(hd0,msdos1)/vmlinuz-4.18.0-305.19.1.el8_4.x86_64",
"crashkernel": "auto",
"quiet": true,
"rd.lvm.lv": [
"cl_foreman/root",
"cl_foreman/swap"
],
"resume": "/dev/mapper/cl_foreman-swap",
"rhgb": true,
"ro": true,
"root": "/dev/mapper/cl_foreman-root"
},
"ansible_processor": [
"0",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"1",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"2",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"3",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"4",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"5",
"GenuineIntel",
"Westmere E56xx/L56xx/X56xx (IBRS update)"
],
"ansible_processor_cores": 3,
"ansible_processor_count": 1,
"ansible_processor_threads_per_core": 2,
"ansible_processor_vcpus": 6,
"ansible_product_name": "KVM",
"ansible_product_serial": "NA",
"ansible_product_uuid": "5d33f1d4-5b77-4d26-b22a-76ffcc26d275",
"ansible_product_version": "RHEL 7.6.0 PC (i440FX + PIIX, 1996)",
"ansible_python": {
"executable": "/usr/libexec/platform-python",
"has_sslcontext": true,
"type": "cpython",
"version": {
"major": 3,
"micro": 8,
"minor": 6,
"releaselevel": "final",
"serial": 0
},
"version_info": [
3,
6,
8,
"final",
0
]
},
"ansible_python_version": "3.6.8",
"ansible_real_group_id": 0,
"ansible_real_user_id": 0,
"ansible_selinux": {
"config_mode": "enforcing",
"mode": "enforcing",
"policyvers": 33,
"status": "enabled",
"type": "targeted"
},
"ansible_selinux_python_present": true,
"ansible_service_mgr": "systemd",
"ansible_ssh_host_key_ecdsa_public": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKo3INMUZ/UbvGA4tQzaEAFZjrUwtKHCz4gHk3RjdNVcG1HvvRo9HkLrO9bCt1jorz38JDX5iifPcfYnU/c7tSY=",
"ansible_ssh_host_key_ed25519_public": "AAAAC3NzaC1lZDI1NTE5AAAAIABUOP592JUbSLVfWz3W5VQ90gk0hmnPz9pGwVp2LfcX",
"ansible_ssh_host_key_rsa_public": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC5FSCrvEZC+ilJZkP9f02AV7TMyfLr6rWSzkfPkKLpkDKcvDl4uM8B8DzzAexoLo08JXIcsgDEJTky/OC8S0cMsN4udgCC4bY5cJyX1Bm1+99N/6uMXXMxiYkRWTVt5ysJQ6fRmGefo6RIy0v+AjTLk7MIwwzpESY2D7JKzN8dGnhfJit3+DFZigLfvGaNFkSF3JiPPNLQXH53SbEUJUdxPsZ+lnmx7daRoZrqsnBGCfmBsbUKbWMFeRknPrAEFF91AE2S5h1J0KbiKTSWlmyKSssGh3DMXOG/YZ3oKY+6DgodGLJymlBxo7wwKydGy2w4Wi0jhGErYRLoJ5/4gkYLG14yFIJqLCDGJmyULl7L04xv7+3we7qJnv/3RPJVHYHQUUK6uhZ4GItuFjNTFxOu+oZFIzhrWoFFFU9iJtBRYHMvYoi4zws0ieDrtRjDEJprLH3UwwSBoVuCaO4dwHblud7eNKvg/ncHkukWWkHzryrlYoWj9rS7XmBgFDLn38k=",
"ansible_swapfree_mb": 3180,
"ansible_swaptotal_mb": 4095,
"ansible_system": "Linux",
"ansible_system_capabilities": [
"cap_chown",
"cap_dac_override",
"cap_dac_read_search",
"cap_fowner",
"cap_fsetid",
"cap_kill",
"cap_setgid",
"cap_setuid",
"cap_setpcap",
"cap_linux_immutable",
"cap_net_bind_service",
"cap_net_broadcast",
"cap_net_admin",
"cap_net_raw",
"cap_ipc_lock",
"cap_ipc_owner",
"cap_sys_module",
"cap_sys_rawio",
"cap_sys_chroot",
"cap_sys_ptrace",
"cap_sys_pacct",
"cap_sys_admin",
"cap_sys_boot",
"cap_sys_nice",
"cap_sys_resource",
"cap_sys_time",
"cap_sys_tty_config",
"cap_mknod",
"cap_lease",
"cap_audit_write",
"cap_audit_control",
"cap_setfcap",
"cap_mac_override",
"cap_mac_admin",
"cap_syslog",
"cap_wake_alarm",
"cap_block_suspend",
"cap_audit_read",
"38",
"39+ep"
],
"ansible_system_capabilities_enforced": "True",
"ansible_system_vendor": "Red Hat",
"ansible_uptime_seconds": 170789,
"ansible_user_dir": "/root",
"ansible_user_gecos": "root",
"ansible_user_gid": 0,
"ansible_user_id": "root",
"ansible_user_shell": "/bin/bash",
"ansible_user_uid": 0,
"ansible_userspace_architecture": "x86_64",
"ansible_userspace_bits": "64",
"ansible_virtualization_role": "guest",
"ansible_virtualization_type": "kvm",
"facter_agent_specified_environment": "production",
"facter_aio_agent_version": "6.25.0",
"facter_augeas": {
"version": "1.12.0"
},
"facter_disks": {
"sda": {
"model": "QEMU HARDDISK",
"size": "40.00 GiB",
"size_bytes": 42949672960,
"vendor": "ATA"
},
"sr0": {
"model": "QEMU DVD-ROM",
"size": "1.00 GiB",
"size_bytes": 1073741312,
"vendor": "QEMU"
}
},
"facter_dmi": {
"bios": {
"release_date": "04/01/2014",
"vendor": "SeaBIOS",
"version": "1.11.0-2.el7"
},
"chassis": {
"type": "Other"
},
"manufacturer": "Red Hat",
"product": {
"name": "KVM",
"uuid": "5d33f1d4-5b77-4d26-b22a-76ffcc26d275"
}
},
"facter_facterversion": "3.14.20",
"facter_filesystems": "xfs",
"facter_fips_enabled": false,
"facter_hypervisors": {
"kvm": {}
},
"facter_identity": {
"gid": 0,
"group": "root",
"privileged": true,
"uid": 0,
"user": "root"
},
"facter_is_virtual": true,
"facter_kernel": "Linux",
"facter_kernelmajversion": "4.18",
"facter_kernelrelease": "4.18.0-305.19.1.el8_4.x86_64",
"facter_kernelversion": "4.18.0",
"facter_load_averages": {
"15m": 0.1,
"1m": 0.2,
"5m": 0.21
},
"facter_memory": {
"swap": {
"available": "3.11 GiB",
"available_bytes": 3335360512,
"capacity": "22.34%",
"total": "4.00 GiB",
"total_bytes": 4294963200,
"used": "915.15 MiB",
"used_bytes": 959602688
},
"system": {
"available": "971.95 MiB",
"available_bytes": 1019166720,
"capacity": "90.07%",
"total": "9.55 GiB",
"total_bytes": 10259075072,
"used": "8.61 GiB",
"used_bytes": 9239908352
}
},
"facter_mountpoints": {
"/": {
"available": "30.64 GiB",
"available_bytes": 32903954432,
"capacity": "12.39%",
"device": "/dev/mapper/cl_foreman-root",
"filesystem": "xfs",
"options": [
"rw",
"seclabel",
"relatime",
"attr2",
"inode64",
"logbufs=8",
"logbsize=32k",
"noquota"
],
"size": "34.98 GiB",
"size_bytes": 37558423552,
"used": "4.33 GiB",
"used_bytes": 4654469120
},
"/boot": {
"available": "812.54 MiB",
"available_bytes": 852013056,
"capacity": "19.87%",
"device": "/dev/sda1",
"filesystem": "xfs",
"options": [
"rw",
"seclabel",
"relatime",
"attr2",
"inode64",
"logbufs=8",
"logbsize=32k",
"noquota"
],
"size": "1014.00 MiB",
"size_bytes": 1063256064,
"used": "201.46 MiB",
"used_bytes": 211243008
},
"/dev": {
"available": "4.76 GiB",
"available_bytes": 5109043200,
"capacity": "0%",
"device": "devtmpfs",
"filesystem": "devtmpfs",
"options": [
"rw",
"seclabel",
"nosuid",
"size=4989300k",
"nr_inodes=1247325",
"mode=755"
],
"size": "4.76 GiB",
"size_bytes": 5109043200,
"used": "0 bytes",
"used_bytes": 0
},
"/dev/hugepages": {
"available": "0 bytes",
"available_bytes": 0,
"capacity": "100%",
"device": "hugetlbfs",
"filesystem": "hugetlbfs",
"options": [
"rw",
"seclabel",
"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",
"seclabel",
"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",
"seclabel",
"nosuid",
"noexec",
"relatime",
"gid=5",
"mode=620",
"ptmxmode=000"
],
"size": "0 bytes",
"size_bytes": 0,
"used": "0 bytes",
"used_bytes": 0
},
"/dev/shm": {
"available": "4.78 GiB",
"available_bytes": 5129347072,
"capacity": "0.00%",
"device": "tmpfs",
"filesystem": "tmpfs",
"options": [
"rw",
"seclabel",
"nosuid",
"nodev"
],
"size": "4.78 GiB",
"size_bytes": 5129535488,
"used": "184.00 KiB",
"used_bytes": 188416
},
"/run": {
"available": "4.76 GiB",
"available_bytes": 5112057856,
"capacity": "0.34%",
"device": "tmpfs",
"filesystem": "tmpfs",
"options": [
"rw",
"seclabel",
"nosuid",
"nodev",
"mode=755"
],
"size": "4.78 GiB",
"size_bytes": 5129535488,
"used": "16.67 MiB",
"used_bytes": 17477632
},
"/run/user/0": {
"available": "978.38 MiB",
"available_bytes": 1025904640,
"capacity": "0%",
"device": "tmpfs",
"filesystem": "tmpfs",
"options": [
"rw",
"seclabel",
"nosuid",
"nodev",
"relatime",
"size=1001860k",
"mode=700"
],
"size": "978.38 MiB",
"size_bytes": 1025904640,
"used": "0 bytes",
"used_bytes": 0
},
"/sys/fs/cgroup": {
"available": "4.78 GiB",
"available_bytes": 5129535488,
"capacity": "0%",
"device": "tmpfs",
"filesystem": "tmpfs",
"options": [
"ro",
"seclabel",
"nosuid",
"nodev",
"noexec",
"mode=755"
],
"size": "4.78 GiB",
"size_bytes": 5129535488,
"used": "0 bytes",
"used_bytes": 0
}
},
"facter_networking": {
"domain": "cluster.local",
"fqdn": "foreman.cluster.local",
"hostname": "foreman",
"interfaces": {
"ens3": {
"bindings": [
{
"address": "192.168.88.15",
"netmask": "255.255.255.0",
"network": "192.168.88.0"
}
],
"bindings6": [
{
"address": "fe80::5054:ff:fe2a:fa7a",
"netmask": "ffff:ffff:ffff:ffff::",
"network": "fe80::"
}
],
"ip": "192.168.88.15",
"ip6": "fe80::5054:ff:fe2a:fa7a",
"mac": "52:54:00:2a:fa:7a",
"mtu": 1500,
"netmask": "255.255.255.0",
"netmask6": "ffff:ffff:ffff:ffff::",
"network": "192.168.88.0",
"network6": "fe80::",
"scope6": "link"
},
"lo": {
"bindings": [
{
"address": "127.0.0.1",
"netmask": "255.0.0.0",
"network": "127.0.0.0"
}
],
"bindings6": [
{
"address": "::1",
"netmask": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"network": "::1"
}
],
"ip": "127.0.0.1",
"ip6": "::1",
"mtu": 65536,
"netmask": "255.0.0.0",
"netmask6": "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
"network": "127.0.0.0",
"network6": "::1",
"scope6": "host"
}
},
"ip": "192.168.88.15",
"ip6": "fe80::5054:ff:fe2a:fa7a",
"mac": "52:54:00:2a:fa:7a",
"mtu": 1500,
"netmask": "255.255.255.0",
"netmask6": "ffff:ffff:ffff:ffff::",
"network": "192.168.88.0",
"network6": "fe80::",
"primary": "ens3",
"scope6": "link"
},
"facter_os": {
"architecture": "x86_64",
"family": "RedHat",
"hardware": "x86_64",
"name": "CentOS",
"release": {
"full": "8.4.2105",
"major": "8",
"minor": "4"
},
"selinux": {
"config_mode": "enforcing",
"config_policy": "targeted",
"current_mode": "enforcing",
"enabled": true,
"enforced": true,
"policy_version": "33"
}
},
"facter_partitions": {
"/dev/mapper/cl_foreman-root": {
"filesystem": "xfs",
"mount": "/",
"size": "35.00 GiB",
"size_bytes": 37576769536,
"uuid": "d227e051-0a78-4598-a07c-6b1cda2b3cec"
},
"/dev/mapper/cl_foreman-swap": {
"filesystem": "swap",
"size": "4.00 GiB",
"size_bytes": 4294967296,
"uuid": "88a8f999-83e4-4bd7-8307-34c312e19c3b"
},
"/dev/sda1": {
"filesystem": "xfs",
"mount": "/boot",
"partuuid": "425195af-01",
"size": "1.00 GiB",
"size_bytes": 1073741824,
"uuid": "cda15c21-642c-46e7-87d9-3506279a8bcb"
},
"/dev/sda2": {
"filesystem": "LVM2_member",
"partuuid": "425195af-02",
"size": "39.00 GiB",
"size_bytes": 41874882560,
"uuid": "qE9NTM-TAa1-9mSq-bfz1-gnvb-KeDV-fs1qQ9"
}
},
"facter_path": "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/puppetlabs/bin",
"facter_processors": {
"count": 6,
"isa": "x86_64",
"models": [
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"Westmere E56xx/L56xx/X56xx (IBRS update)",
"Westmere E56xx/L56xx/X56xx (IBRS update)"
],
"physicalcount": 1
},
"facter_puppetversion": "6.25.0",
"facter_ruby": {
"platform": "x86_64-linux",
"sitedir": "/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.5.0",
"version": "2.5.9"
},
"facter_ssh": {
"ecdsa": {
"fingerprints": {
"sha1": "SSHFP 3 1 dfc0afb0e5024d4a165e1ae873de439cbdd0f823",
"sha256": "SSHFP 3 2 ea0706c051f332063d645da1e4aab9af1b69a05344ca473ef3379431ea62c5e9"
},
"key": "AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBKo3INMUZ/UbvGA4tQzaEAFZjrUwtKHCz4gHk3RjdNVcG1HvvRo9HkLrO9bCt1jorz38JDX5iifPcfYnU/c7tSY=",
"type": "ecdsa-sha2-nistp256"
},
"ed25519": {
"fingerprints": {
"sha1": "SSHFP 4 1 142d14b7f1bdc9212e61aa85657005d24662b24b",
"sha256": "SSHFP 4 2 5810e7996c414ff070e043dd7b7979135df38039a1ac481ae1d5c6d56c5306ac"
},
"key": "AAAAC3NzaC1lZDI1NTE5AAAAIABUOP592JUbSLVfWz3W5VQ90gk0hmnPz9pGwVp2LfcX",
"type": "ssh-ed25519"
},
"rsa": {
"fingerprints": {
"sha1": "SSHFP 1 1 4d94addf271ab92cb57c1a6757033efb3b68c7c5",
"sha256": "SSHFP 1 2 8746d33b05b66ae12f248fa20bc397d3d7585f9181af600bc5c2caa120b14c7a"
},
"key": "AAAAB3NzaC1yc2EAAAADAQABAAABgQC5FSCrvEZC+ilJZkP9f02AV7TMyfLr6rWSzkfPkKLpkDKcvDl4uM8B8DzzAexoLo08JXIcsgDEJTky/OC8S0cMsN4udgCC4bY5cJyX1Bm1+99N/6uMXXMxiYkRWTVt5ysJQ6fRmGefo6RIy0v+AjTLk7MIwwzpESY2D7JKzN8dGnhfJit3+DFZigLfvGaNFkSF3JiPPNLQXH53SbEUJUdxPsZ+lnmx7daRoZrqsnBGCfmBsbUKbWMFeRknPrAEFF91AE2S5h1J0KbiKTSWlmyKSssGh3DMXOG/YZ3oKY+6DgodGLJymlBxo7wwKydGy2w4Wi0jhGErYRLoJ5/4gkYLG14yFIJqLCDGJmyULl7L04xv7+3we7qJnv/3RPJVHYHQUUK6uhZ4GItuFjNTFxOu+oZFIzhrWoFFFU9iJtBRYHMvYoi4zws0ieDrtRjDEJprLH3UwwSBoVuCaO4dwHblud7eNKvg/ncHkukWWkHzryrlYoWj9rS7XmBgFDLn38k=",
"type": "ssh-rsa"
}
},
"facter_system_uptime": {
"days": 1,
"hours": 47,
"seconds": 170924,
"uptime": "1 day"
},
"facter_timezone": "EDT",
"facter_virtual": "kvm",
"gather_subset": [
"all"
],
"module_setup": true
},
"changed": false
}
test/static_fixtures/facts/ansible_centos_stream.json
{
"ansible_facts": {
"ansible_all_ipv4_addresses": [
"192.168.88.20"
],
"ansible_all_ipv6_addresses": [
"fe80::5054:ff:fee3:8d8b"
],
"ansible_apparmor": {
"status": "disabled"
},
"ansible_architecture": "x86_64",
"ansible_bios_date": "04/01/2014",
"ansible_bios_version": "1.11.0-2.el7",
"ansible_cmdline": {
"BOOT_IMAGE": "(hd0,msdos1)/vmlinuz-4.18.0-338.el8.x86_64",
"crashkernel": "auto",
"quiet": true,
"rd.lvm.lv": "cs_stream/swap",
"resume": "/dev/mapper/cs_stream-swap",
"rhgb": true,
"ro": true,
"root": "/dev/mapper/cs_stream-root"
},
"ansible_date_time": {
"date": "2021-10-20",
"day": "20",
"epoch": "1634737914",
"hour": "09",
"iso8601": "2021-10-20T13:51:54Z",
"iso8601_basic": "20211020T095154564245",
"iso8601_basic_short": "20211020T095154",
"iso8601_micro": "2021-10-20T13:51:54.564245Z",
"minute": "51",
"month": "10",
"second": "54",
"time": "09:51:54",
"tz": "EDT",
"tz_offset": "-0400",
"weekday": "Wednesday",
"weekday_number": "3",
"weeknumber": "42",
"year": "2021"
},
"ansible_default_ipv4": {
"address": "192.168.88.20",
"alias": "ens3",
"broadcast": "192.168.88.255",
"gateway": "192.168.88.1",
"interface": "ens3",
"macaddress": "52:54:00:e3:8d:8b",
"mtu": 1500,
"netmask": "255.255.255.0",
"network": "192.168.88.0",
"type": "ether"
},
"ansible_default_ipv6": {},
"ansible_device_links": {
"ids": {
"dm-0": [
"dm-name-cs_stream-root",
"dm-uuid-LVM-O3jBRZb4GblfRNW5k5yTrWIrpHaRJTKSrNSFQoxJkw2od3xXcwifnoffZsQOsQfd"
],
"dm-1": [
"dm-name-cs_stream-swap",
"dm-uuid-LVM-O3jBRZb4GblfRNW5k5yTrWIrpHaRJTKSeXlcxFfFB26GYN92mu3CTvsSBBD2KnFj"
],
"sr0": [
"ata-QEMU_DVD-ROM_QM00001"
],
"vda2": [
"lvm-pv-uuid-iG7brm-YhtC-3kJT-BcpM-xbcC-aqbj-UewxvL"
]
},
"labels": {},
"masters": {
"vda2": [
"dm-0",
"dm-1"
]
},
"uuids": {
"dm-0": [
"50d1cc90-1804-4026-b473-58da96d64156"
],
"dm-1": [
"0d782303-3cd7-451a-b5fd-083ba57fb696"
],
"vda1": [
"9900694f-e73a-4e83-83e9-042cce34a5ee"
]
}
},
"ansible_devices": {
"dm-0": {
"holders": [],
"host": "",
"links": {
"ids": [
"dm-name-cs_stream-root",
"dm-uuid-LVM-O3jBRZb4GblfRNW5k5yTrWIrpHaRJTKSrNSFQoxJkw2od3xXcwifnoffZsQOsQfd"
],
"labels": [],
"masters": [],
"uuids": [
"50d1cc90-1804-4026-b473-58da96d64156"
]
},
"model": null,
"partitions": {},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "",
"sectors": "16769024",
"sectorsize": "512",
"size": "8.00 GB",
"support_discard": "0",
"vendor": null,
"virtual": 1
},
"dm-1": {
"holders": [],
"host": "",
"links": {
"ids": [
"dm-name-cs_stream-swap",
"dm-uuid-LVM-O3jBRZb4GblfRNW5k5yTrWIrpHaRJTKSeXlcxFfFB26GYN92mu3CTvsSBBD2KnFj"
],
"labels": [],
"masters": [],
"uuids": [
"0d782303-3cd7-451a-b5fd-083ba57fb696"
]
},
"model": null,
"partitions": {},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "",
"sectors": "2097152",
"sectorsize": "512",
"size": "1.00 GB",
"support_discard": "0",
"vendor": null,
"virtual": 1
},
"sr0": {
"holders": [],
"host": "IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II]",
"links": {
"ids": [
"ata-QEMU_DVD-ROM_QM00001"
],
"labels": [],
"masters": [],
"uuids": []
},
"model": "QEMU DVD-ROM",
"partitions": {},
"removable": "1",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "2097151",
"sectorsize": "512",
"size": "1024.00 MB",
"support_discard": "0",
"vendor": "QEMU",
"virtual": 1
},
"vda": {
"holders": [],
"host": "SCSI storage controller: Red Hat, Inc. Virtio block device",
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": []
},
"model": null,
"partitions": {
"vda1": {
"holders": [],
"links": {
"ids": [],
"labels": [],
"masters": [],
"uuids": [
"9900694f-e73a-4e83-83e9-042cce34a5ee"
]
},
"sectors": "2097152",
"sectorsize": 512,
"size": "1.00 GB",
"start": "2048",
"uuid": "9900694f-e73a-4e83-83e9-042cce34a5ee"
},
"vda2": {
"holders": [
"cs_stream-swap",
"cs_stream-root"
],
"links": {
"ids": [
"lvm-pv-uuid-iG7brm-YhtC-3kJT-BcpM-xbcC-aqbj-UewxvL"
],
"labels": [],
"masters": [
"dm-0",
"dm-1"
],
"uuids": []
},
"sectors": "18872320",
"sectorsize": 512,
"size": "9.00 GB",
"start": "2099200",
"uuid": null
}
},
"removable": "0",
"rotational": "1",
"sas_address": null,
"sas_device_handle": null,
"scheduler_mode": "mq-deadline",
"sectors": "20971520",
"sectorsize": "512",
"size": "10.00 GB",
"support_discard": "0",
"vendor": "0x1af4",
"virtual": 1
}
},
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff