VMware Cloud Community
carl1
Expert
Expert

vro 8 cannot write to local file

I have a situation where I need to use an SSH Key (instead of user/password) to login to a server.  SSHSession only takes a file as input for this.  Worked fine in vRO 7 but with vRA 8, the disk is transient (container).  So I thought I would take a Resource Element, write it to a temp file and then hand that in to ssh.  But I can't seem to create a local file.  I tried opening a file in System.getTempDirectory() but no luck.  I tried /tmp and /var/tmp, still no joy.  Any suggestions?

Thanks everyone,

Carl L.

Reply
0 Kudos
2 Replies
daphnissov
Immortal
Immortal

As long as vRO is defined by and run under Kubernetes with no writable volume, this probably won't be possible. What you may need to do is access a remote file share for this purpose.

carl1
Expert
Expert

Never mind.  System.getTempDirectory() worked 2nd time around.  Go figure!

Since it is only a temp file, writing locally is good; as long as you don't expect it to be there in the next element (container/node switch over may delete it).

Carl L.

Reply
0 Kudos