Bug #14132
closed
Cannot provision GCE instance with external IP flag
Added by El Joppa almost 9 years ago.
Updated almost 6 years ago.
Category:
Compute resources - GCE
|
Description
Hitting the flag "External IP" in Virtual Machine tab gives me the following message:
Unable to save
Failed to create a compute Google_Operations (europe-west1-b-Google) instance test-gce2.X.no: Invalid value for field 'resource.networkInterfaces[0].accessConfigs[0].natIP': 'true'. Must be an IP address
Without this flag i get a private address for the VM with ip 10.240.x.x
Any quickfix to make this work?
From /usr/share/foreman/vendor/ruby/2.1.0/gems/fog-google-0.1.0/lib/fog/google/requests/compute/insert_server.rb:
# ExternalIP is default value for server creation
access_config = {'type' => 'ONE_TO_ONE_NAT', 'name' => 'External NAT'}
# leave natIP undefined to use an IP from a shared ephemeral IP address pool
if options.key? 'externalIp'
access_config['natIP'] = options.delete 'externalIp'
# If set to 'false', that would mean user does no want to allocate an external IP
access_config = nil if access_config['natIP'] == false
end
So resource.networkInterfaces0.accessConfigs0.nat should be undefined if one wants a ephemeral IP assigned?
- Category set to Compute resources - GCE
'resource.networkInterfaces[0].accessConfigs[0].natIP': 'true'. Must be an IP address
also if I fiddle with subnets and interface names or provide internal IP then it gives someting like no subnetwork defined for custom network.
I have spent two days on it. This problem just doesn't let me go forward. Possibly I shoud try to create a new gce instance using gcloud or web console: manually install puppet agent/salt-minion on it and then add it to foreman.
Do not have a clue as I just discovered foreman a few days ago.
A few hints about workaroud might be helpful.
- Related to Bug #14282: Foreman GCE can't create new host on custom sub network added
- Is duplicate of Bug #4179: Invalid value for field 'resource.networkInterfaces[0].accessConfigs[0].natIP': 'false'. Must be an IP address added
- Status changed from New to Duplicate
Also available in: Atom
PDF