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
(FACT-3023) xen command: avoid xen-toolstack warning #2357
(FACT-3023) xen command: avoid xen-toolstack warning #2357
Conversation
Can one of the admins verify this patch? |
ab9540b
to
889f4dd
Compare
Hi @lollipopman, thanks for the contribution! 🎉 I have a couple of questions, and I don't have much experience with Xen (and no hypervisor VM on hand), so please bear with me:
Initially I wanted to ask if there was an accepted way of getting the toolstack in case of multiple stacks, but from what I understand there's only It would be good to update https://github.com/puppetlabs/facter/blob/main/lib/schema/facter.yaml#L1897 to reflect the new behavior. Also, I opened FACT-3023 to track the work on this. Can you amend your commit title to include the ticket ID instead of Thanks again for your contribution! |
889f4dd
to
7d3ca93
Compare
The output goes to stderr, the full text of the script is:
This is mostly true, but it was still available in Debian Jessie, which has long term support until June of 2022, [1].
That is true now, but I assumed we wanted to be backward compatible, what are the compatibility guarantees for facter?
Will do, once we agree upon the behavior
done!
Thank you! |
7d3ca93
to
b2ced57
Compare
Yep @lollipopman I agree we should keep this backwards-compatible. The current approach of executing xen-toolstack only if multiple stacks are available seems fine to me. |
xen-toolstack is deprecated and so on Puppet runs in Debian buster you receive this nettlesome message: warning: something called deprecated script /usr/lib/xen-common/bin/xen-toolstack Prior to this change we used xen-toolstack if it is present, but that is only necessary if more than one stack is installed. Instead check if we have multiple tool stacks and if we do use xen-toolstack if it is present.
b2ced57
to
0f5b370
Compare
thanks @GabrielNagy updated with your feedback, let me know if you want any other changes! |
xen-toolstack is deprecated and so on Puppet runs in Debian buster you
receive this nettlesome message:
warning: something called deprecated script /usr/lib/xen-common/bin/xen-toolstack
Prior to this change we used xen-toolstack if it is present, but that is
only necessary if more than one stack is installed. Instead check if we
have multiple tool stacks and if we do use xen-toolstack if it is
present.