Foreman 1.11.3: 'attached_devices' key is no longer present in $foreman_interfaces global variable

Hi

I use the $foreman_interfaces global variable in the puppet manifests that
configure the network interfaces of a host.

After upgrading to foreman 1.11.3 (from foreman 1.9) the 'attached_devices'
key is no longer present in the $foreman_interfaces hash for interfaces of
type bond.

In the example below, the comparison is shown between the interface
information obtained from the API and the information stored in the
$foreman_interfaces variable for the same host. The 'attached_devices' are
absent in the latter.

API: (https://foreman.dg.viaa.be/api/hosts/73/interfaces)

{… ,

"mac":"00:0a:f7:4a:3e:60", "ip":"10.9.136.65", "type":"bond", "name":"dg-qas-tra-01.dg.viaa.be", "virtual":true, "identifier":"bond0", "managed":true, "mode":"balance-alb",

"bond_options":"miimon=100", "primary":true, "provision":true, "id":102, "attached_devices":"p1p1,p1p2"

}

output of 'notify { $foreman_interfaces:}':
Notice: {
"mac"=>"00:0a:f7:4a:3e:60", "ip"=>"10.9.136.65", "type"=>"Bond",
"name"=>"dg-qas-tra-01.dg.viaa.be", "attrs"=>{}, "virtual"=>true,
"link"=>true, "identifier"=>"bond0", "tag"=>"", "attached_to"=>"",
"managed"=>true, "mode"=>"balance-alb", "bond_options"=>"miimon=100",
"primary"=>true, "provision"=>true, "subnet"=>{…}
}

The same problem occurs when defining a new bond interface on a machine in
foreman 1.11.3 so it is not a migration problem.

If you can reproduce the problem on Foreman 1.12.x, please do file a bug
in the issue tracker. The ENC output was refactored a little in 1.12 so
it may now work.

··· On 27/07/16 15:23, herwig.bogaert@viaa.be wrote: > Hi > > I use the $foreman_interfaces global variable in the puppet manifests > that configure the network interfaces of a host. > > After upgrading to foreman 1.11.3 (from foreman 1.9) the > 'attached_devices' key is no longer present in the $foreman_interfaces > hash for interfaces of type bond.


Dominic Cleal
dominic@cleal.org

Hi Dominic

Unfortunately, I cannot reproduce the problem on 1.12.x now.
Our foreman/puppet infra is running on Debian wheezy which is not supported
by foreman 1.12.x
Upgrading the foreman infra to Debian Jessie is planned later this year,
but is not possible at this moment.

If you tell me that the problem will not be fixed in 1.11.x, then i will
implement some temporary workaround.

Best regards

Herwig

··· Op donderdag 28 juli 2016 09:05:09 UTC+2 schreef Dominic Cleal: > > On 27/07/16 15:23, herwig....@viaa.be wrote: > > Hi > > > > I use the $foreman_interfaces global variable in the puppet manifests > > that configure the network interfaces of a host. > > > > After upgrading to foreman 1.11.3 (from foreman 1.9) the > > 'attached_devices' key is no longer present in the $foreman_interfaces > > hash for interfaces of type bond. > > If you can reproduce the problem on Foreman 1.12.x, please do file a bug > in the issue tracker. The ENC output was refactored a little in 1.12 so > it may now work. > > -- > Dominic Cleal > dom...@cleal.org >

It's very unlikely at this point - the last patch release I expected to
do is now out (1.11.4) and without investigating in more detail, I'm
unsure what the bug is caused/fixed by.

··· On 28/07/16 09:34, herwig.bogaert@viaa.be wrote: > Hi Dominic > > Unfortunately, I cannot reproduce the problem on 1.12.x now. > Our foreman/puppet infra is running on Debian wheezy which is not > supported by foreman 1.12.x > Upgrading the foreman infra to Debian Jessie is planned later this year, > but is not possible at this moment. > > If you tell me that the problem will not be fixed in 1.11.x, then i will > implement some temporary workaround.


Dominic Cleal
dominic@cleal.org

The problem is also present in 1.11.4.
I will keep you posted once we have move to 1.12.x.

Best regards

··· 2016-07-28 10:37 GMT+02:00 Dominic Cleal :

On 28/07/16 09:34, herwig.bogaert@viaa.be wrote:

Hi Dominic

Unfortunately, I cannot reproduce the problem on 1.12.x now.
Our foreman/puppet infra is running on Debian wheezy which is not
supported by foreman 1.12.x
Upgrading the foreman infra to Debian Jessie is planned later this year,
but is not possible at this moment.

If you tell me that the problem will not be fixed in 1.11.x, then i will
implement some temporary workaround.

It’s very unlikely at this point - the last patch release I expected to
do is now out (1.11.4) and without investigating in more detail, I’m
unsure what the bug is caused/fixed by.


Dominic Cleal
dominic@cleal.org


You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/O7TP1b0sAh4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

 Herwig Bogaert
 Senior Systems Engineer

 VIAA vzw* | Sassevaartstraat 46/209 | 9000 Gent | België | www.viaa.be

http://www.viaa.be/*
T: +32 9 298 05 01 | M: +32 478 42 22 55

https://onderwijs.hetarchief.be/ https://onderwijs.hetarchief.be/
https://onderwijs.hetarchief.be/ https://onderwijs.hetarchief.be/
https://onderwijs.hetarchief.be/ https://onderwijs.hetarchief.be/