You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by sandeep locharla <sa...@gmail.com> on 2025/12/18 04:29:26 UTC
Need help understanding agent side code for iscsi type volumes
Hello Everyone,
I'm looking for someone who has an understanding of
IscsiAdmStorageAdaptor.java class under
'plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/'
For context, I'm currently testing iscsi type storage provisioning and
am able to see the blocks during provisioning when 'lsblk' command is run,
but unless iscsiadm discovery command is run, the symlink file path
under /dev/disk/by-path that cloudstack looks for isn't appearing. Also,
I'm seeing that the one host I have is getting added to "Avoid list" and
the VM instance creation is failing.
So, if anyone has faced this before or has any pointers, please let me know?
Best,
Sandeep
Re: Need help understanding agent side code for iscsi type volumes
Posted by Daan Hoogland <da...@gmail.com>.
Great, and please create a PR of your changes if these are sensible, so we
can discuss.
On Sat, Dec 20, 2025 at 1:51 PM sandeep locharla <sa...@gmail.com>
wrote:
> Hi Daan,
>
> Thanks for replying!
> Archaeology was needed indeed. I was able to resolve the issue but only
> with some changes in the iSCSI adaptor code. I'm still surprised as to how
> has this code been holding the fort for all these years, my understanding
> could be wrong though.
>
> This experience only made me curious to talk to other storage contributors
> in finding a way out, to make the plugin integration experience easy for
> future.
>
> Best,
> Sandeep
>
> On Sat, 20 Dec 2025, 3:30 pm Daan Hoogland, <da...@gmail.com>
> wrote:
>
> > Sandeep,
> > I guess no one has an answer. I know there is some work for linstor going
> > on where block storage may not be available during restore of backups in
> > that case. I feel it is as similar of an issue that I have seen occur.
> Not
> > very, I'm afraid. Good luck.
> >
> > Do you have more specific questions about IscsiAdmStorageAdaptor? It has
> > not been altered much over the last twelve years, so archeology needed.
> >
> > On Thu, Dec 18, 2025 at 5:29 AM sandeep locharla <
> > sanlochofficial@gmail.com>
> > wrote:
> >
> > > Hello Everyone,
> > >
> > > I'm looking for someone who has an understanding of
> > > IscsiAdmStorageAdaptor.java class under
> > >
> 'plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/'
> > >
> > > For context, I'm currently testing iscsi type storage provisioning
> and
> > > am able to see the blocks during provisioning when 'lsblk' command is
> > run,
> > > but unless iscsiadm discovery command is run, the symlink file path
> > > under /dev/disk/by-path that cloudstack looks for isn't appearing.
> Also,
> > > I'm seeing that the one host I have is getting added to "Avoid list"
> and
> > > the VM instance creation is failing.
> > >
> > > So, if anyone has faced this before or has any pointers, please let me
> > > know?
> > >
> > > Best,
> > > Sandeep
> > >
> >
> >
> > --
> > Daan
> >
>
--
Daan
Re: Need help understanding agent side code for iscsi type volumes
Posted by sandeep locharla <sa...@gmail.com>.
Hi Daan,
Thanks for replying!
Archaeology was needed indeed. I was able to resolve the issue but only
with some changes in the iSCSI adaptor code. I'm still surprised as to how
has this code been holding the fort for all these years, my understanding
could be wrong though.
This experience only made me curious to talk to other storage contributors
in finding a way out, to make the plugin integration experience easy for
future.
Best,
Sandeep
On Sat, 20 Dec 2025, 3:30 pm Daan Hoogland, <da...@gmail.com> wrote:
> Sandeep,
> I guess no one has an answer. I know there is some work for linstor going
> on where block storage may not be available during restore of backups in
> that case. I feel it is as similar of an issue that I have seen occur. Not
> very, I'm afraid. Good luck.
>
> Do you have more specific questions about IscsiAdmStorageAdaptor? It has
> not been altered much over the last twelve years, so archeology needed.
>
> On Thu, Dec 18, 2025 at 5:29 AM sandeep locharla <
> sanlochofficial@gmail.com>
> wrote:
>
> > Hello Everyone,
> >
> > I'm looking for someone who has an understanding of
> > IscsiAdmStorageAdaptor.java class under
> > 'plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/'
> >
> > For context, I'm currently testing iscsi type storage provisioning and
> > am able to see the blocks during provisioning when 'lsblk' command is
> run,
> > but unless iscsiadm discovery command is run, the symlink file path
> > under /dev/disk/by-path that cloudstack looks for isn't appearing. Also,
> > I'm seeing that the one host I have is getting added to "Avoid list" and
> > the VM instance creation is failing.
> >
> > So, if anyone has faced this before or has any pointers, please let me
> > know?
> >
> > Best,
> > Sandeep
> >
>
>
> --
> Daan
>
Re: Need help understanding agent side code for iscsi type volumes
Posted by Daan Hoogland <da...@gmail.com>.
Sandeep,
I guess no one has an answer. I know there is some work for linstor going
on where block storage may not be available during restore of backups in
that case. I feel it is as similar of an issue that I have seen occur. Not
very, I'm afraid. Good luck.
Do you have more specific questions about IscsiAdmStorageAdaptor? It has
not been altered much over the last twelve years, so archeology needed.
On Thu, Dec 18, 2025 at 5:29 AM sandeep locharla <sa...@gmail.com>
wrote:
> Hello Everyone,
>
> I'm looking for someone who has an understanding of
> IscsiAdmStorageAdaptor.java class under
> 'plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/'
>
> For context, I'm currently testing iscsi type storage provisioning and
> am able to see the blocks during provisioning when 'lsblk' command is run,
> but unless iscsiadm discovery command is run, the symlink file path
> under /dev/disk/by-path that cloudstack looks for isn't appearing. Also,
> I'm seeing that the one host I have is getting added to "Avoid list" and
> the VM instance creation is failing.
>
> So, if anyone has faced this before or has any pointers, please let me
> know?
>
> Best,
> Sandeep
>
--
Daan