platform_version for debian wheezy


#1

Hi all,

I did some experiments with debian wheezy (7.0) beta. node[:platform_version] returns “testing”, which is a bit weird.

Is this a bug in ohai/chef? I’m running the Chef 0.10.8 in Vagrant.

Thanks for your answer
Steffen


#2

On Fri, Aug 31, 2012 at 7:16 AM, Steffen Gebert st+opscode@st-g.de wrote:

I did some experiments with debian wheezy (7.0) beta. node[:platform_version] returns “testing”, which is a bit weird.

Possibly an Ohai bug. Could you file one at http://tickets.opscode.com?

Please include:
Your Ohai version
debian release version (and how up to date)
the contents of /etc/debian_version
the version of the base-files deb (dpkg -s base-files | grep Version).
output of ‘ohai platform_version’

Bryan


#3

Hi Bryan,

thanks for your response!

Maybe it isn’t a bug…

squeeze$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze

but

wheezy$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy

So it’s probably hard for ohai to figure out the version number, as it hasn’t a version number, yet ^^

I guess I will go for matching the codename (node[:lsb][:codename]).

Thanks
Steffen

On Aug 31, 2012, at 3:37 PM, Bryan McLellan btm@loftninjas.org wrote:

On Fri, Aug 31, 2012 at 7:16 AM, Steffen Gebert st+opscode@st-g.de wrote:

I did some experiments with debian wheezy (7.0) beta. node[:platform_version] returns “testing”, which is a bit weird.

Possibly an Ohai bug. Could you file one at http://tickets.opscode.com?

Please include:
Your Ohai version
debian release version (and how up to date)
the contents of /etc/debian_version
the version of the base-files deb (dpkg -s base-files | grep Version).
output of ‘ohai platform_version’

Bryan


#4

Yeah, I suspected that might be true. Since wheezy isn’t released yet they
could either use the release number it will have, or use something else.
Using the official release number is bad because then when people have bugs
after release you can’t easily discern if their installation is pre or post
release.

Bryan
On Aug 31, 2012 10:40 AM, “Steffen Gebert” st+opscode@st-g.de wrote:

Hi Bryan,

thanks for your response!

Maybe it isn’t a bug…

squeeze$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 6.0.5 (squeeze)
Release: 6.0.5
Codename: squeeze

but

wheezy$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (wheezy)
Release: testing
Codename: wheezy

So it’s probably hard for ohai to figure out the version number, as it
hasn’t a version number, yet ^^

I guess I will go for matching the codename (node[:lsb][:codename]).

Thanks
Steffen

On Aug 31, 2012, at 3:37 PM, Bryan McLellan btm@loftninjas.org wrote:

On Fri, Aug 31, 2012 at 7:16 AM, Steffen Gebert st+opscode@st-g.de
wrote:

I did some experiments with debian wheezy (7.0) beta.
node[:platform_version] returns “testing”, which is a bit weird.

Possibly an Ohai bug. Could you file one at http://tickets.opscode.com?

Please include:
Your Ohai version
debian release version (and how up to date)
the contents of /etc/debian_version
the version of the base-files deb (dpkg -s base-files | grep Version).
output of ‘ohai platform_version’

Bryan