There is the possibility to change OpenStack config after deployment.
Changes could be applied per role. And in the case of multiple roles
on a node, many changes could pretend to be applied. I.e. if we have
a config for the role 'compute', a config for the role 'cinder' and
a node with role 'cinder+compute' we have to choose one of them.
Previous decision was 'sort it in the lexicographical order', so it
applies 'cinder' then --- 'compute'. It is contra intuitive. The best
option is applying to a node the last related config, to new config
overlaps old ones.
Change-Id: I7db388ca3baeb351adc9fdb70c55b0be50fafe48
Closes-bug: #1671521
Get config should check not only a presense
of 'node_id' and 'node_role' fields but their
values to determine the type of opesntack config object.
Related-Bug: #1557462
Closes-Bug: #1573613
Change-Id: I6e3cdd4e545bda0616af7e0e3d63bd21a19f8ae0
nailgun.errors have a huge set of exceptions but without hierarchy. This
patch remove exception generation from dict and make it explicitly with
python classes and add some exceptions hierarchy. Now all network errors
inherit from NetworkException and same for other exceptions.
Change-Id: I9a2c6b358ea02a16711da74562308664ad7aed97
Closes-bug: #1566195
* Configuration can be uploaded for multiple nodes in single request
using 'node_ids' field with list of node ID values.
* Filters for list operation now support multiple node ids separated
by comma.
* Configuration execute can be performed for multiple nodes at once.
TestImpact
Related-Bug: #1557462
Closes-Bug: #1558561
Change-Id: I741208e301f9b4ec48329ba63ffeed2b5697f123
Pop configuration out of filters to avoid searching
for an existing configuration by its value.
Change-Id: I1c6ef5546950b5be8b95e9e3b7e381b9b22caa5a
Closes-Bug: #1522069
Multiple configurations for node roles are merged
into one single configuration during serialization process.
It is required to keep the same order of configurations
to have a predictable behavior.
Change-Id: I649cccc73ae406a1f6953ad8139910bb18acc95f
Closes-Bug: #1524284
Check if node is assigned to specified cluster when trying to
upload new configuration. Otherwise fail.
Change-Id: I434b61d3887fbe2b23ae2ddedb41c80b944b2451
Closes-Bug: #1523534
Add check to restrict attepmpt to delete openstack configuration
that has been already deleted.
Closes-Bug: #1523431
Change-Id: Iccd97278d9d870ec727a75e57c4db78ee75eeb38
OpenstackConfig.find_configs should return query, not list
since NalgunCollection.to_json expects iterable object and
has incorrect behaviour when trying to pass empty list
as an iterable parameter.
Closes-Bug: #1523477
Change-Id: I50aaaa9a20dbf55d83a418189f808cd3829a8002