-
Notifications
You must be signed in to change notification settings - Fork 684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ISCSI attachment response when creating a volume attachment. #12
Comments
@jvcalise I'm not sure what you are asking for. Do you want the volume_attachment resource to do a volume_attach and then a GET on IScsiVolumeAttachment, concatenate the results and return them as the attributes of volume_attach? |
@craigcarl-oracle working from the perspective of the API volumeAttachment response is the base object response, but when I perform an ISCSI attachment I get back the subclass as a response, ISCSIVolumeAttachment. This approach may be a bit difficult for TF to handle, so my ask here is to provide a specific ISCSI_Volume_Attachment resource, that returns the full ISCSI detail response. |
Would also be nice if TF could run the commands to ssh to iSCSI and maintain persistent connections between the instance and the volume through reboots. These commands show up in the console for each attached volume. |
@gansvv Yes, that will get added soon but you should only need to use it if you are using CHAP. If you are not using CHAP the best way to do this is auto-discovery of iSCSI LUNs using a script running in the instance (cron). An example - https://gist.github.com/craigcarl-oracle/555df3be506f8a54ce0757ddb44c4e5f |
In order to support automation of mounting volumes we need to add support to the Volume_Attachment resource to return the ISCSIVolumeAttachment reference.
https://docs.us-phoenix-1.oraclecloud.com/api/#/en/iaas/20160918/IScsiVolumeAttachment/
The text was updated successfully, but these errors were encountered: