-
Notifications
You must be signed in to change notification settings - Fork 34
Getting the ip of an instance #13
Comments
Currently it is not possible. I'm analysing possible ways to achieve it, but cannot promise it will be implemented anytime soon. |
fwiw, I did find that if you run |
thanks for a tip! I will have a look at it |
Hi @ajagnanan, @briantopping |
Will do! I'm suddenly delayed a bit, dislocated and fractured my shoulder about eight hours ago. Yuck. |
@briantopping take care! FYI: I will review/merge the pull requests probably on Thursday evening CET. |
@briantopping thanks and take care! @ringods perfect, I've just found small issue with this PR which occurs when you try to read metrics of newly created VM and now I will have time to fix it :) |
Sure I can, I'm not too familiar with go, can you give me quick steps to compile/run against your branch? |
Hi @ajagnanan,
|
Small update: I have pushed few changes (most critical - new datasource) and example how to provision VM with ansible. |
I just tried it and it works! I got the IP (v4 and v6) written out to output.json. I have 2 questions:
Thanks for putting this in btw |
Have you tried the latest version? If no - can you please also test with newest release and xenserver_vm_network data source?
|
Hi @mborodin, I'm finally able to sit at a desk comfortably for reasonable time and found your I've tried to use it in my use case, which I just uploaded at https://github.com/briantopping/terraform_salted_aws/tree/xen-work. This is a project by @quixoten that can generate a Salt cluster in AWS, but was conveniently written to allow other providers. Possibly because of my misuse of any number of components here, I am getting an error: To me, this sounds like I did not compile and install your changes correctly, but the install seems to work properly:
Can you see anything out of place? Please don't worry about making it work, I'm only desiring to make the |
@mborodin: I'm also curious if you could share how you are using GoLand and whether you've been able to create a debug configuration with breakpoints in your IDE? The only thing I have managed so far is to run as in |
Hi @briantopping, As for Gogland - I'm using IntelliJ with plugin and suspect it to be a bit different to Gogland in terms of ease of use (Gogland should be better tuned for Go). But anyways it is quite comfortable with exception to debugging - I could not get it working either. I'm still investigating that matter, but since go for me at the moment is just a fun thing to learn I can not invest much of time in it. |
Hi @mborodin, thanks for the response! I'm just getting back into the swing of things and I think you might be interested in https://blog.sgmansfield.com/2016/06/working-with-forks-in-go/. I can't say I have enough experience with this technique yet, but it should remove the need to rename any package imports for the code you are working on. About the Go plugin use in IntelliJ: I guess you would lose the CMake integration, which provides the seamless import for larger projects. This project isn't using CMake, something I'll probably attack at some point since I have some experience with it. The problem with the various xMake and Autotools formats is they are very difficult for an IDE to parse and developers end up with multiple project metadata formats that have to be kept in sync if they are going to get any benefits from IDEs at all. CMake seems to be the emerging standard to avoid that. Should be a fun weekend, I'll check in as I get some progress, thanks for the tip on the import! :) |
(Preface: I am running on XenServer 7.3) Update from here: I created https://github.com/briantopping/terraform-provider-xenserver/tree/mborodin/guest_ip as a fork of @mborodin's work. I couldn't quite make out whether I've improved it or not, there were a lot of methods that would just The bigger things that I didn't understand is I see in the wireshark traces that ISO 8601 dates are being returned by XenServer, but it does not seem that https://github.com/ ringods/go-xen-api-client parses them. As I outlined in the commit, they all parse as So I commented out that logic for now in my fork so it always delays, but no networks are ever parsed, even though the networks are visible in XenCenter. I'm the wireshark trace for this TCP session here. @ringods, Do you have enough experience yet with the Thanks guys, more as I get it! |
Is it possible to get the ip of a new vm?
The text was updated successfully, but these errors were encountered: