-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
locally, all the APIs work. |
ims/einstein/operations.py
Outdated
# 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
89e1692
to
b2e02a9
Compare
@naved001 can we rebase this and see if it fixes the CI? |
* 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.
…guring out the multipathing stuff
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.
f81b690
to
cf063cf
Compare
* 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.
ece7a91
to
c512eb2
Compare
@ianballou this is fixed now. yay |
* Since that's what it does now. * Showpro will make a comeback later when the right backend code and APIs are implemented.
There was a problem hiding this 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"and return an iscsi..."
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).