It seems that in newer ansible versions the error strings have
changed and we are no longer able to use the hard coded
"UNREACHABLE" string in our stop test. For now changing the
test to just skip the string investigation. Also updating some
package dependencies to match those in kolla-ansible.
We need the 3.5 to 3.6 migration along with the UNREACHABLE
string change together to clean up the test failures Neither
can be fixed without the other. Thanks zhulingjie!!
Co-Authored-By: zhulingjie <easyzlj@gmail.com>
Change-Id: I347cda4bbdc6ed7dc4857cb1865da578670235fb
The config reset command wipes all properties,
inventory data, default tls certificates and passwords.
The password set command now only allows modification
of existing passwords, and clear only removes the value
for existing password keys. The ability to completely
add new and remove passwords no longer exists as it
was really only useful in very edge cases and did not
play nicely with the concept of doing a config reset.
Change-Id: I9d1868da1161ebaf64793ab6d0e42de74389feab
Newer versions of cliff have an issue where unicode strings
are not handled correctly in output so we hard bind the
requirements to a version of cliff we know doesn't have
the problem. Also we were only doing the unicode translation
when outputing to a table where there were are few other
output formats where the translation was also appropriate.
Change-Id: I04f7988f5ff01f7434687fade5465b87199b86ba
it's not needed and it was causing exceptions in cliff
when you ran kolaacli --help.
Change-Id: If477ffe25eb72098c75824747af60d323fde0be4
Jira-Issue: OPENSTACK-1072
- add new support_get_logs() api
- change dump api to require directory for dump to
match new get_logs api
- remove no longer needed pexpect
- update utests
- change log collector tool to use the new api
Jira-Issue: OSTACKDEV-18
sequential pexpect release versions are 3.2, 3.3, 4.0.1.
3.3 doesn't work with sudo commands. Since 4.0.1 has been
tested and works, we now can just disallow 3.3.
Jira-Issue: OPENSTACK-297
- py3 is more particular about external package imports;
specify kollacli utils explicitly
- fix typo on oslo.utils in requirements.txt
- use standard spec for oslo utils - !=2.6.0,>=2.4.0
- oslo concurrency brings in too much new dependencies for a patch release, fasteners
is a much smaller change.
- also change utest inventory clear so it doesn't cause an
ownership change of the inventory file.
- temporarily create a reserved group for all hosts. this is needed when you
want to run an ansible command against a host that might not yet be in a group.
This is used for host check and setup. Oracle-Bug:21824287
- handle case when empty inventory has whitespace in it. useful when manually
clearing the inventory file
- add rule preventing adding a group name equal to an existing service name.
Oracle-bug:21831776
- add exception handling to run_cmd to better output cmd failures when an
exception occurs.
- add restriction to avoid pexpect 3.3 in requirements. That version has a
bug where it will fail sudo commands.
- change unittest kolla_cli etc location to be the user's home location. This
avoids errors when the kolla_cli location is in /etc/kolla
- change format of unittest test_hosts file to remove ip address. no longer
needed.
- remove ndbcluster from group test
Description:
- use new jsonpickle storage for hosts/inventory data instead of yaml. this
is done to make it easier to store and load the object model for the
inventory.
- rename hosts class to inventory
- remove host-zone association, new association is with groups. This better
matches the ansible model.
- populate blank inventory with structure required for openstack. This adds
the various services and containers under the appropriate groups.
- created new group class and updated inventory and host classes. added attributes
for host for hypervisor, and management attribute. Also added versions to the
inventory class.
Included basic cliff usage structure for the execition of
three host commands. Includes Babel usage structure for
i18n message extraction. Includes tox and pep8 usage
structure for code quality / testing. Includes standard
requirements.txt and test-requirements.txt files.