Idenpotency is broken with nova_flavor when properties is set
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-nova |
Fix Released
|
High
|
Takashi Kajinami |
Bug Description
When a manifest contains nova_flavor resource with "properties" property set, it always detect a change in properties even though the flavor actually has the defined properties set.
[root@localhost ~]# cat test.pp
nova_flavor { 'test':
ensure => present,
ram => '128',
disk => '2',
vcpus => '1',
properties => {'foo' => 'bar'}
}
[root@localhost ~]# openstack flavor list --long --all
+------
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public | Swap | RXTX Factor | Properties |
+------
| 1 | m1.tiny | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
| 42 | m1.nano | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
| 7c6fc833-
| 84 | m1.micro | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
+------
[root@localhost ~]# puppet apply --modulepath /usr/share/
Notice: Compiled catalog for localhost.
Notice: /Stage[
} to {
'foo' => 'bar'
}
Notice: Applied catalog in 9.21 seconds
[root@localhost ~]# openstack flavor list --long --all
+------
| ID | Name | RAM | Disk | Ephemeral | VCPUs | Is Public | Swap | RXTX Factor | Properties |
+------
| 1 | m1.tiny | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
| 42 | m1.nano | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
| 7c6fc833-
| 84 | m1.micro | 128 | 2 | 0 | 1 | True | 0 | 1.0 | |
+------
Changed in puppet-nova: | |
importance: | Undecided → High |
assignee: | nobody → Takashi Kajinami (kajinamit) |
Fix proposed to branch: master /review. opendev. org/c/openstack /puppet- nova/+/ 914813
Review: https:/