L23_stored_config resource is not ensurable by fact

Bug #1498977 reported by Sergey Vasilenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Invalid
High
Stanislav Makar
7.0.x
Won't Fix
Undecided
Unassigned

Bug Description

L23_stored_config with 'ensure => absent' does not remove config file. This was found by manual tests.

Acceptance criteria:

        l23_stored_config { 'some_interface:
           ensure => absent,
        }

should remove config file for the given resource.

Changed in fuel:
importance: Undecided → High
description: updated
description: updated
Stanislav Makar (smakar)
tags: added: feature
Revision history for this message
Stanislav Makar (smakar) wrote :

all is working

root@node-4:~# cat test_present.pp
l23_stored_config { 'br-test':
  ensure => 'present',
  if_provider => 'lnx',
  if_type => 'ethernet',
  ipaddr => '10.10.222.222/24',
  method => 'static',
  onboot => 'true',
}
root@node-4:~# cat /etc/network/interfaces.d/ifcfg-br-test
cat: /etc/network/interfaces.d/ifcfg-br-test: No such file or directory
root@node-4:~# puppet apply test_present.pp
Notice: Compiled catalog for node-4.test.domain.local in environment production in 0.04 seconds
Notice: /Stage[main]/Main/L23_stored_config[br-test]/ensure: created
Notice: Finished catalog run in 0.13 seconds
root@node-4:~# cat /etc/network/interfaces.d/ifcfg-br-test
auto br-test
iface br-test inet static
address 10.10.222.222/24
root@node-4:~# cat test_absent.pp
l23_stored_config { 'br-test':
  ensure => 'absent',
  if_provider => 'lnx',
  if_type => 'ethernet',
  ipaddr => '10.10.222.222/24',
  method => 'static',
  onboot => 'true',
}
root@node-4:~# puppet apply test_absent.pp
Notice: Compiled catalog for node-4.test.domain.local in environment production in 0.05 seconds
Notice: /Stage[main]/Main/L23_stored_config[br-test]/ensure: removed
Notice: Finished catalog run in 0.14 seconds
root@node-4:~# cat /etc/network/interfaces.d/ifcfg-br-test
cat: /etc/network/interfaces.d/ifcfg-br-test: No such file or directory
root@node-4:~#

Changed in fuel:
status: Confirmed → Incomplete
tags: removed: feature
tags: added: tech-debt
Dmitry Pyzhov (dpyzhov)
tags: added: area-library
Revision history for this message
Dmitry Klenov (dklenov) wrote :

@Sergey, can you please recheck this bug? According to Stas' comments the bug is unreproducible.

Revision history for this message
Artem Roma (aroma-x) wrote :

There haven't been any updates on this bug for more than 3 weeks so move it to invalid

Changed in fuel:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.