Jira (FACT-3106) No virt-what in puppet-agent 7 so is_virtual is wrong

14 views
Skip to first unread message

Steve Traylen (Jira)

unread,
Feb 11, 2022, 7:24:02 AM2/11/22
to puppe...@googlegroups.com
Steve Traylen created an issue
 
Facter / Improvement FACT-3106
No virt-what in puppet-agent 7 so is_virtual is wrong
Issue Type: Improvement Improvement
Affects Versions: FACT 4.2.7
Assignee: Unassigned
Components: Facter 4
Created: 2022/02/11 4:23 AM
Environment:

puppet-agent 7 facter 4

Priority: Normal Normal
Reporter: Steve Traylen

In factor the is_virtual and other similar facts is very dependent upon  the

virt-what

command being availabe.

 

Since this commit to puppet-agent

https://github.com/puppetlabs/puppet-agent/commit/a1a06ba3f42419e

virt-what was removed from the puppet-agent package.

I expect it may have been an unintentional consequence to stop these core facts from working out of the box with the puppet-agent package?

Installing the system provide virt-what and everything works again but 

this should be a dep or at least documented if that is the way forward.

 

For reference some history on the subject.

https://tickets.puppetlabs.com/browse/FACT-822

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo

Steve Traylen (Jira)

unread,
Feb 11, 2022, 7:25:02 AM2/11/22
to puppe...@googlegroups.com
Steve Traylen updated an issue
Change By: Steve Traylen
In factor the is_virtual and other similar facts is are very dependent upon  the

virt-what

command being
availabe available .


 

Since this commit to puppet-agent

[https://github.com/puppetlabs/puppet-agent/commit/a1a06ba3f42419e]

virt-what was removed from the puppet-agent package.

I expect it may have been an unintentional consequence to stop these core facts from working out of the box with the puppet-agent package?

Installing the system provide provided virt-what and everything works again but 


this should be a dep or at least documented if that is the way forward.

 

For reference some history on the subject.

https://tickets.puppetlabs.com/browse/FACT-822

Tim Meusel (Jira)

unread,
Feb 11, 2022, 7:28:02 AM2/11/22
to puppe...@googlegroups.com
Tim Meusel updated an issue
Change By: Tim Meusel
In factor facter the is_virtual and other similar facts are very dependent upon  the

virt-what

command being available.


 

Since this commit to puppet-agent

[https://github.com/puppetlabs/puppet-agent/commit/a1a06ba3f42419e]

virt-what was removed from the puppet-agent package.

I expect it may have been an unintentional consequence to stop these core facts from working out of the box with the puppet-agent package?

Installing the system provided virt-what and everything works again but 


this should be a dep or at least documented if that is the way forward.

 

For reference some history on the subject.

https://tickets.puppetlabs.com/browse/FACT-822

Steve Traylen (Jira)

unread,
Mar 16, 2022, 12:43:01 PM3/16/22
to puppe...@googlegroups.com
Steve Traylen commented on Improvement FACT-3106
 
Re: No virt-what in puppet-agent 7 so is_virtual is wrong

For similar reasons requiring pciutils for lspci is also a good idea.

Josh Cooper (Jira)

unread,
Apr 20, 2022, 11:53:03 PM4/20/22
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Apr 20, 2022, 11:53:03 PM4/20/22
to puppe...@googlegroups.com
Josh Cooper commented on Improvement FACT-3106
 
Re: No virt-what in puppet-agent 7 so is_virtual is wrong

Ah the intention was to move virt-what to the puppet-runtime project (which contains all of our native dependencies). For this ticket we should:

  1. Add the dmidecode and virt-what components and patches to puppet-runtime
  2. Add those components to the agent-runtime-main project

It's not necessary to add them to the agent-runtime-6.x project, since the dependencies still exist in puppet-agent#6.x

traylenator It doesn't appear we shipped lspci or pciutils in puppet-agent 6.x, so I'd like to keep this ticket focused on fixing the regression with virt-what and dmidecode. Could you file a separate feature request for lspci/pciutils?

Josh Cooper (Jira)

unread,
Apr 21, 2022, 10:58:01 AM4/21/22
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Phoenix 2022-05-11
Reply all
Reply to author
Forward
0 new messages