Closed (fixed)
Project:
Cloud
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
28 Nov 2020 at 07:19 UTC
Updated:
19 Dec 2020 at 22:14 UTC
Jump to comment: Most recent, Most recent file
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3185296-13.patch | 77.46 KB | yas |
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jigish.addweb commentedComment #3
yas@jigishaddweb
Thank you for adding the feature to support OpenStack REST API.
Can we write this one as follows w/
$openstack_service->setCloudContext($cloud_context);? In this way, we don't have to put$this->openStackService->setCloudContext($cloud_context);in each occurrence.This code can be removed since it is not used.
Comment #4
jigish.addweb commented@yas
Thank you for your review.
I refactored the code as per your comment.
Please review the updated patch.
Thanks
Comment #5
jigish.addweb commentedComment #6
yas@jigishaddweb
Thank you for the update.
The comments should be:
Comment #7
jigish.addweb commented@yas
Thank you for reviewing the patch.
I have changed comment as mentioned you in above comment. Please review the latest patch.
Thanks
Comment #8
yas@jigishaddweb
Thank you for the update. I tested the patch and it looks good to me now.
@baldwinlouie
Could you please review the patch?
Comment #9
yas@jigishaddweb
I have the following error during the cron job. Could you please take a look at it?
Comment #10
baldwinlouie commented@jigishaddweb,
This is a good looking patch. Thank you. I have the following comments:
There's a typo here.
$opnestack_serviceshould be$openstack_serviceIf this method is returning boolean, I think the method should be changed to something like
isEc2ServiceType()orisRestServiceType(). Something that follows makes it easier to understand that the method returns abooleanWhat happens if the
$responsecode is another error code, such as 500?I think its better if the method
generateAuthToken($credentials)does a try/catch. If the response code is anything other than a 200, it should throw an exception.
openstack_form_cloud_config_openstack_credentials_validate()can catch the exception to perform error handling.This can be combined like such:
Same here
Same here
Same here
Same here
Same here
Same here
Please make sure to support Drush running the batch function.
Please look at the
runBatch()forEc2Service.phpHere is the example code from that method. Make sure to do a
try/catch/finally. Also, note howdrush_backend_batch_processvsbatch_process()is called.Comment #12
jigish.addweb commented@yas @baldwinlouie
Thank you for your review.
I refactored the code as per your comments.
Please review again.
Thanks
Comment #13
yasComment #14
yas@jigishaddweb
Thank you for the update. I commented in your MR.
Comment #15
jigish.addweb commented@yas
Thank you for your review.
I refactored the code as per your comment and committed the code in the same MR.
Please review.
Thanks
Comment #16
yas@jigishaddweb
Thank you for the update.
@baldwinlouie
What do you think?
Comment #17
baldwinlouie commented@jigishaddweb,
Thank you for updating the patch. I only see a couple of items below.
do we need to declare this parameter in
openstack.services.ymlThis does not need to be declared. It already declared in
ControllerBasePlease double check this variable declaration. I don't think it is needed.
Comment #18
jigish.addweb commentedComment #19
baldwinlouie commented@jigishaddweb, thank you for the updated patch. It looks good now.
Comment #20
yas@baldwinlouie
Thank you for your review. I'll merge the patch to
3.xand close this issue asFixed.Comment #22
yas