Commit Graph

20 Commits

Author SHA1 Message Date
Pooja Ghumre 84a8238118 Fix select.epoll() not found AttributeError by changing import order
Change-Id: I17728edece55cfcf0f5682d9eaeecedd8e99cf26
2017-06-09 16:27:06 -07:00
Blake Covarrubias b38b97f446 Make slashes optional on tenant & instances routes
Change-Id: I57c5ee275c0521ed1820e0a91faa04bc54b041ac
2017-06-09 16:25:57 -07:00
Susmitha 0ebba1b510 Changes for reusing nova client in mors
Issue seen on dogfood that mors creates one keystone
token for every nova list vms in tenants.

Change-Id: If7f584b8539b87e38066937d0bd1ab40824ba3bc
2017-06-09 16:24:48 -07:00
Kaustubh Phatak 46c6395372 Fixing tenant deletes bug
Closes-Bug: 1686809

Change-Id: Ib2a7152ac5187b5b7f941963e94b49b66eb9c224
2017-04-28 14:38:57 -07:00
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 6c79555d56 Fix for IAAS-5523: Lease extension seems to be broken
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.
2016-06-17 15:16:15 -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 844a2c307f Removing dependency on pf9app
Accidentally added pf9app provides statement to mors build. Removing
it so that HostAgent doesn't interfere with mors installation.
2016-04-27 17:55:55 +00:00
Roopak Parikh cdb444dc9f Lease handler not deleting some VMs.
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.
2016-04-13 10:48:04 -07:00
Roopak Parikh 9cf5cc13fe Handling insecure connection
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.
2016-04-12 03:31:33 +00:00
Roopak Parikh 404d865262 Wrong configuration file location 2016-04-11 21:54:27 +00:00
Roopak Parikh 684cd9f6ae Fixing a missing file in rpm for pf9-mors
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)
2016-04-11 21:37:41 +00: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
roopakparikh d09213ac9e Initial commit 2016-03-22 14:22:08 -07:00