There were two instances of abusing old Python 2 behaviors around
dictionary keys that Python 3 no longer allows. These are both fixed.
Change-Id: I5865ee3becf52fca590a1c0c897bcd968210ac9d
This patchset introduces some changes to improve compability with Python
3. It does _not_ make the codebase 100% Python 3 compatible, however.
Changes made:
* Fix import of the Queue module to look for 'queue' on ImportError
* Rename `iteritems` calls to `items`.
Some remaining compatibility issues:
* Bytes vs string objects - this compromises most of the errors we
currently have, across all files and tests
* Treating `dict_keys` objects as lists and calling `append`
(generate._parse_global_variables)
* Altering dictionary keys during iteration
(test_inventory.testing_deleting_elements)
Change-Id: I6ad9601c5835703f44cc0752cef15c682298a40e
The 'service_name' property is a holdover from when there was a common
role used to install all OpenStack services. This is now a default
variable within each individual role. Similarly, the 'log_directory'
property for galera containers is now handled by the 'log_dirs' variable
within its playbook.
The dynamic inventory script has been updated to create an empty
'properties' dict for any container skeletons within the environment
that do not have one already defined.
Change-Id: Icd852f24251c1cef0fa162d33e2422be83e0a833
This change allows the currently existing modules to be imported from
the `osa_toolkit` package.
In order to install the python modules used by the inventory via
setup.py with pbr, we need to rename the lib directory to match the name
of the package we wish to install.
pbr doesn't allow for doing any kind of directory renaming within the
setup.{cfg,py} files, but we need to keep using it in order to consume
global requirements updates.
Change-Id: Idb7780f55e4a1fd77dd76becbf67c1ccbf220db7