Commit Graph

9 Commits

Author SHA1 Message Date
Roopak Parikh 3eb6c95424 Adding support for sphinx docs and tox support
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
2016-08-02 11:48:25 -07:00
Roopak Parikh e7fb57fee6 Preparing for OpenSource of Mors
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
2016-07-08 12:06:42 -07:00
Susmitha 141b307f68 Fix issue with instance lease update when multiple rows present
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.
2016-06-29 13:36:41 -07:00
Susmitha 2e3869feb2 Changes for restricting instance lease to not exceed tenant lease 2016-06-28 11:17:24 -07:00
Susmitha 1e515759b3 Merge branch 'atherton' of github.com:platform9/pf9-mors into atherton 2016-06-07 11:57:37 -07:00
Susmitha 49c5977a4a Fix for IAAS-5516, IAAS-5517: get API for mors not returning right value
Without this fix, get API always returns first entry in the table
irrespective of tenant_id/instance_uuid lease requested.
2016-06-02 18:44:46 -07:00
Susmitha c80416a6e7 Changing the API default for lease expiry from days to minutes
Added DB migration script
2016-06-01 12:41:25 -07:00
Roopak Parikh e1b921999e Fix for IAAS-5476, update for instance lease
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
2016-05-23 23:25:47 -07:00
Roopak Parikh e62bf60096 First version of Mors - Lease Manager
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
2016-04-09 13:11:52 -07:00