Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.

Split API #185

Merged
merged 19 commits into from
Oct 15, 2018
Merged

Split API #185

merged 19 commits into from
Oct 15, 2018

Conversation

naved001
Copy link
Contributor

This one has changes that @ianballou made, I am closing the other PR because it's on a fork that doesn't exist anymore (since I renamed everything to m2).

@naved001
Copy link
Contributor Author

locally, all the APIs work.

# Prepare the ceph image name to be used.
clone_ceph_name = self.__get_ceph_image_name(disk_name)
except db_exceptions.ORMException as e:
# Quick solution for returning the name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably delete these comments. Also it seems like an ORMException will be triggered if someone tries to import a different image with the same name & project id. That seems ok to me, just want to make sure that behaviour is fine.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naved001 can you delete these two comments?

@naved001 naved001 force-pushed the split-api branch 2 times, most recently from 89e1692 to b2e02a9 Compare October 1, 2018 21:55
@ianballou
Copy link
Collaborator

@naved001 can we rebase this and see if it fixes the CI?

naved001 and others added 11 commits October 2, 2018 13:15
* This commit mostly modifies the BMI class.
* Add two methods, create_disk and delete_disk.
* Users can just provision their node with any other disk image.
* Or delete the disk (which deletes the iscsi target), and the node will not boot.
and correct node_name to disk_name

 -- by @ianballou
which deletes the ipxe file the mac address based bootfile. This makes things clean.
Must need access to the project that has the node to run deprovision for that node.
Also reoredered the arguments such that source image name comes before the disk name.
@naved001 naved001 force-pushed the split-api branch 2 times, most recently from f81b690 to cf063cf Compare October 3, 2018 14:26
* Update the setup method in most tests to create the disk and then provision.
* Update snapshot call to snapshot from disk rather than node_name
* Test createing disk, provision, deprovision and deletion of disk in one run since the
setup is too long.
* Get rid of provision and deprovision sine when testing for snapshots.
* Update the parameters for snapshot command in rest call and cli.
@naved001 naved001 force-pushed the split-api branch 2 times, most recently from ece7a91 to c512eb2 Compare October 3, 2018 18:54
@naved001
Copy link
Contributor Author

naved001 commented Oct 3, 2018

@ianballou this is fixed now. yay

naved001 and others added 3 commits October 3, 2018 16:21
* Since that's what it does now.
* Showpro will make a comeback later when the right backend code and APIs are implemented.
Copy link
Collaborator

@ianballou ianballou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is looking good, just a couple tiny things. Really wanna get this merged soon.

docs/rest_api.md Outdated
---
###create_disk:

This will create a disk from a source image and an iscsi target pointing to that image.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"and return an iscsi..."

@naved001 naved001 merged commit 5b93852 into CCI-MOC:master Oct 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants