No support for GCP static internal IP creation for instance #67652
Replies: 15 comments
-
@jeremysolarz Thanks for the report. This would definitely be a good feature to include in the GCE support. |
Beta Was this translation helpful? Give feedback.
-
This looks like it could be a fairly trivial implementation. salt-cloud gce driver uses libcloud gce driver which apparently already implements the create_node(internal_ip='10.1.2.3') style address assignment at node creation time. The GCP REST API appears to create a new VM with assigned resource.networkInterfaces[].networkIP However from GCP docs it seems the instance creation requires an IP address reservation before assigning the IP. Apache libcloud gce driver does not appear to implement the address reservation part of the GCP API. @jeremysolarz can you provide some clarification on the behavior required by the salt-cloud gce driver to make the IP address assignment at instance creation time work properly? |
Beta Was this translation helpful? Give feedback.
-
Hi @aphor, Thanks for the response. Similar to how you handle External IP assignment it would be great to have a So, if there exists an internal IP use it otherwise create it. Does this make sense? |
Beta Was this translation helpful? Give feedback.
-
Does the static external IP address assignment functionality currently behave exactly the way we want the static internal IP address assignment to work? It's easier to implement a pattern established by existing code, which is what I think you're suggesting. |
Beta Was this translation helpful? Give feedback.
-
According to this it's same behavior. Especially that line
|
Beta Was this translation helpful? Give feedback.
-
Looks like libcloud is missing the parameter to create internal ips ... |
Beta Was this translation helpful? Give feedback.
-
Looks like two parameters are missing in libcloud
Furthermore, it looks like creation of static internal ips vs external ips is only distinguished by attaching --subnet parameter in gcloud command |
Beta Was this translation helpful? Give feedback.
-
Hi @aphor, If you already started on implementing this please tell. I have bandwidth this weekend to implement this and don't want that we cross each others lines here. Best, JS |
Beta Was this translation helpful? Give feedback.
-
Please go ahead :) I don't have the time this week or next. |
Beta Was this translation helpful? Give feedback.
-
Even if the status says "Closed" above, the change is now in libcloud trunk! Yay. It won't make it into libcloud 2.3.0, but will be in the next minor release (probably 2.3.1). |
Beta Was this translation helpful? Give feedback.
-
@pquentin could you please update when the release will be available? Would love to update Salt dependencies to the new version and start with extending Salt with the new functionality. |
Beta Was this translation helpful? Give feedback.
-
I can't promise I won't forget, but I'll try! |
Beta Was this translation helpful? Give feedback.
-
@jeremysolarz libcloud 2.4.0 is now out with your change! Thank you, and sorry for the delay |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
Salt GCP integration currently does not support static internal IP creation / assignment.
Is there any plan to provide this?
Beta Was this translation helpful? Give feedback.
All reactions