Skip to content
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

Closed
jimmycal opened this issue Mar 1, 2017 · 4 comments · Fixed by #59
Closed

Support for ISCSI attachment response when creating a volume attachment. #12

jimmycal opened this issue Mar 1, 2017 · 4 comments · Fixed by #59
Assignees
Labels

Comments

@jimmycal
Copy link
Contributor

jimmycal commented Mar 1, 2017

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/

@craigcarl-oracle
Copy link
Contributor

@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?

@jimmycal
Copy link
Contributor Author

jimmycal commented Mar 1, 2017

@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.

@gansvv
Copy link

gansvv commented Mar 29, 2017

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.
If TF could just run these commands, it would make the attached volumes usable within the host immediately after provisioning the instances and volumes via TF.

@craigcarl-oracle
Copy link
Contributor

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants