L23_stored_config resource is not ensurable by fact
Bug #1498977 reported by
Sergey Vasilenko
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:
ensure => absent,
}
should remove config file for the given resource.
Changed in fuel: | |
importance: | Undecided → High |
description: | updated |
description: | updated |
tags: | added: feature |
tags: | removed: feature |
tags: | added: tech-debt |
tags: | added: area-library |
To post a comment you must log in.
all is working
root@node-4:~# cat test_present.pp interfaces. d/ifcfg- br-test interfaces. d/ifcfg- br-test: No such file or directory test.domain. local in environment production in 0.04 seconds main]/Main/ L23_stored_ config[ br-test] /ensure: created interfaces. d/ifcfg- br-test test.domain. local in environment production in 0.05 seconds main]/Main/ L23_stored_ config[ br-test] /ensure: removed interfaces. d/ifcfg- br-test interfaces. d/ifcfg- br-test: No such file or directory
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/
cat: /etc/network/
root@node-4:~# puppet apply test_present.pp
Notice: Compiled catalog for node-4.
Notice: /Stage[
Notice: Finished catalog run in 0.13 seconds
root@node-4:~# cat /etc/network/
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.
Notice: /Stage[
Notice: Finished catalog run in 0.14 seconds
root@node-4:~# cat /etc/network/
cat: /etc/network/
root@node-4:~#