Project

General

Profile

Actions

Bug #14282

open

Foreman GCE can't create new host on custom sub network

Added by Aanjaneya Mishra almost 9 years ago. Updated about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources - GCE
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

I am unable to create gce compute instance on a custom network. I can create it though on default network with a private IP. I am getting following error:

Without external IP enabled

'resource.networkInterfaces[0]': ''. Subnetwork should be specified for custom subnetmode network

relevant part of /var/log/foreman/production.log:

"name"=>"bareos01", "hostgroup_id"=>"2", "compute_resource_id"=>"2", "salt_environment_id"=>"1", "salt_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"bareos01", "domain_id"=>"1", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}, "new_interfaces"=>{"_destroy"=>"1", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"0", "provision"=>"0", "execution"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "compute_attributes"=>{"machine_type"=>"f1-micro", "network"=>"hslegal-backup-network-1", "external_ip"=>"0", "volumes_attributes"=>{"new_volumes"=>{"_delete"=>"", "size_gb"=>"10"}, "0"=>{"_delete"=>"", "size_gb"=>"10", "id"=>""}}, "image_id"=>"4305665164175986097"}, "architecture_id"=>"3", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "comment"=>"Bareos backup server on Debian jessie. Used for backing up all HS Legal client computers.", "overwrite"=>"false"}, "capabilities"=>"image", "provider"=>"GCE", "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "host_id"=>"null"}

And with external IP enabled:(the subnet error takes place of natIP error)

Invalid value for field 'resource.networkInterfaces[0].accessConfigs[0].natIP': 'true'. Must be an IP address

relevant part of /var/log/foreman/production.log:

"name"=>"bareos01", "hostgroup_id"=>"2", "compute_resource_id"=>"2", "salt_environment_id"=>"1", "salt_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"bareos01", "domain_id"=>"1", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}, "new_interfaces"=>{"_destroy"=>"1", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "managed"=>"1", "primary"=>"0", "provision"=>"0", "execution"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "compute_attributes"=>{"machine_type"=>"f1-micro", "network"=>"hslegal-backup-network-1", "external_ip"=>"1", "volumes_attributes"=>{"new_volumes"=>{"_delete"=>"", "size_gb"=>"10"}, "0"=>{"_delete"=>"", "size_gb"=>"10", "id"=>""}}, "image_id"=>"4305665164175986097"}, "architecture_id"=>"3", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"3-Users", "enabled"=>"1", "comment"=>"Bareos backup server on Debian jessie. Used for backing up all HS Legal client computers.", "overwrite"=>"false"}, "capabilities"=>"image", "provider"=>"GCE", "fakepassword"=>"[FILTERED]", "bare_metal_capabilities"=>"build", "host_id"=>"null"}


Related issues 2 (1 open1 closed)

Related to Foreman - Bug #14132: Cannot provision GCE instance with external IP flagDuplicateActions
Related to Foreman - Feature #23366: Google Cloud Compute Resource does not support Shared VPCNewKavita GaikwadActions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Related to Bug #14132: Cannot provision GCE instance with external IP flag added
Actions #2

Updated by Dominic Cleal almost 9 years ago

  • Translation missing: en.field_release deleted (71)
  • Difficulty deleted (medium)

And with external IP enabled:(the subnet error takes place of natIP error)
Invalid value for field 'resource.networkInterfaces0.accessConfigs0.natIP': 'true'. Must be an IP address

This is tracked as bug #14132.

Actions #3

Updated by Kavita Gaikwad almost 5 years ago

  • Related to Feature #23366: Google Cloud Compute Resource does not support Shared VPC added
Actions

Also available in: Atom PDF