In order to add the project to OpenStack Jenkins, Zuul we need to enable
the following:
* Running the test through tox (added tox.ini)
* Making sure the project can be packaged and uploaded into pypi (moved
all python files to the mors package)
* Adding support for Sphinx Docunentation
Part of the changes were autogenerated using OpenStack cookiecutter
project which creates a template
Added:
- License.md with Apache 2 license
- Added license header to all the python files
- Added a better readme with an overview of functionality & installation
Added a functional test for the scenario. When more than two rows
exist in instance_lease, the update to one VM's instance lease
updates all rows instead of just one row.
If instance lease is beyond the tenant lease expiry, lease handler
currently deletes the vm at tenant lease expiry. Adding a check to
ignore the vms that have not yet expired.
Instance lease update failed, fixing the code to call
the update lease of vm instead of tenant. Added a
functional test to call PUT on instance as well.
Ran the functional test
After running one of the DUs for last two days noticed an error in the
log. It was on obvious error and revealed gaps in my test. Added the fix
and a unit test to fix the problem.
Nova lease handler connects through http but it appears that the connection
is redirected to the external fqdn which on test systems can cause the connection
to fail because of local self signed certificate.
Fixing a missing file in rpm for pf9-mors. Also added a fix for the migration script.
Tested installation through pf9-main ansible script (part of changes on pf9-main)
What works:
- All the add/delete/update APIs integrated with UI and tested end to
end
- Basic unit tests that test the above metioned APIs.
What (may) not be working or in other words is not fully tested
- Actual deletes of the VM, it used to work, but code has gone through
major changes so need to test again.
- Cases:
-- Making sure Override of the lease works.
-- Cases where VM changes tenants or is deleted before the lease expiry
-- Removal of the tenant (not tested at all)
Next steps:
- Better unit test cases - better verification
- Deployment scripts (Ansible playbooks)
Adding a manage script for managing database upgrade script
Adding manage.py