Foreman responding with 404 for cloud-init request

I’m guessing I have misconfigured my Foreman instance somehow. In attempt to configure Foreman to work with VMware image template, I have cloud-init installed and configured per https://github.com/theforeman/foreman_userdata. However, all attempts for cloud-init to phone home after the host VM boots up fails. The response from Foreman is 404. This explains why the host boots up with DHCP since it falls back to it. However, I am not clear on how exactly to configure Foreman to reply properly.

cloud-init.log

2018-08-29 12:29:25,552 - handlers.py[DEBUG]: finish: init-network/search-NoCloudNet: FAIL: no network data found from DataSourceNoCloudNet
2018-08-29 12:29:25,552 - util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloudNet'> failed
2018-08-29 12:29:25,553 - util.py[DEBUG]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloudNet'> failed
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 312, in find_source
    if s.get_data():
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceNoCloud.py", line 145, in get_data
    (md_seed, ud) = util.read_seeded(seedfrom, timeout=None)
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 928, in read_seeded
    md_resp = read_file_or_url(md_url, timeout, retries, file_retries)
  File "/usr/lib/python2.7/site-packages/cloudinit/util.py", line 888, in read_file_or_url
    exception_cb=exception_cb)
  File "/usr/lib/python2.7/site-packages/cloudinit/url_helper.py", line 269, in readurl
    raise excps[-1]
UrlError: 404 Client Error: Not Found
2018-08-29 12:29:25,554 - util.py[WARNING]: No instance datasource found! Likely bad things to come!
2018-08-29 12:29:25,555 - util.py[DEBUG]: No instance datasource found! Likely bad things to come!
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cloudinit/cmd/main.py", line 236, in main_init
    init.fetch(existing=existing)
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 343, in fetch
    return self._get_data_source(existing=existing)
  File "/usr/lib/python2.7/site-packages/cloudinit/stages.py", line 253, in _get_data_source
    pkg_list, self.reporter)
  File "/usr/lib/python2.7/site-packages/cloudinit/sources/__init__.py", line 320, in find_source
    raise DataSourceNotFoundException(msg)
DataSourceNotFoundException: Did not find any data source, searched classes: (DataSourceNoCloudNet)
2018-08-29 12:29:25,556 - util.py[DEBUG]: Reading from /sys/class/net/eth0/carrier (quiet=False)
2018-08-29 12:29:25,556 - util.py[DEBUG]: Read 2 bytes from /sys/class/net/eth0/carrier
2018-08-29 12:29:25,556 - util.py[DEBUG]: Reading from /sys/class/net/eth0/address (quiet=False)
2018-08-29 12:29:25,556 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/eth0/address
2018-08-29 12:29:25,557 - stages.py[DEBUG]: applying net config names for {'version': 1, 'config': [{'subnets': [{'type': 'dhcp'}], 'type': 'physical', 'name': 'eth0', 'mac_address': '00:50:56:a4:62:ef'}]}
2018-08-29 12:29:25,557 - util.py[DEBUG]: Reading from /sys/class/net/eth0/addr_assign_type (quiet=False)
2018-08-29 12:29:25,557 - util.py[DEBUG]: Read 2 bytes from /sys/class/net/eth0/addr_assign_type
2018-08-29 12:29:25,557 - util.py[DEBUG]: Reading from /sys/class/net/eth0/address (quiet=False)
2018-08-29 12:29:25,557 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/eth0/address
2018-08-29 12:29:25,557 - util.py[DEBUG]: Reading from /sys/class/net/lo/addr_assign_type (quiet=False)
2018-08-29 12:29:25,557 - util.py[DEBUG]: Read 2 bytes from /sys/class/net/lo/addr_assign_type
2018-08-29 12:29:25,557 - util.py[DEBUG]: Reading from /sys/class/net/lo/address (quiet=False)
2018-08-29 12:29:25,558 - util.py[DEBUG]: Read 18 bytes from /sys/class/net/lo/address
2018-08-29 12:29:25,558 - util.py[DEBUG]: Reading from /sys/class/net/lo/operstate (quiet=False)
2018-08-29 12:29:25,558 - util.py[DEBUG]: Read 8 bytes from /sys/class/net/lo/operstate
2018-08-29 12:29:25,558 - util.py[DEBUG]: Reading from /sys/class/net/eth0/operstate (quiet=False)
2018-08-29 12:29:25,558 - util.py[DEBUG]: Read 3 bytes from /sys/class/net/eth0/operstate
2018-08-29 12:29:25,558 - util.py[DEBUG]: Running command ['ip', '-6', 'addr', 'show', 'permanent', 'scope', 'global'] with allowed return codes [0] (shell=False, capture=True)
2018-08-29 12:29:25,561 - util.py[DEBUG]: Running command ['ip', '-4', 'addr', 'show'] with allowed return codes [0] (shell=False, capture=True)
2018-08-29 12:29:25,565 - __init__.py[DEBUG]: no work necessary for renaming of [['00:50:56:a4:62:ef', 'eth0']]
2018-08-29 12:29:25,565 - stages.py[INFO]: Applying network configuration from fallback bringup=True: {'version': 1, 'config': [{'subnets': [{'type': 'dhcp'}], 'type': 'physical', 'name': 'eth0', 'mac_address': '00:50:56:a4:62:ef'}]}
2018-08-29 12:29:25,568 - util.py[DEBUG]: Writing to /etc/sysconfig/network-scripts/ifcfg-eth0 - wb: [420] 159 bytes
2018-08-29 12:29:25,569 - util.py[DEBUG]: Restoring selinux mode for /etc/sysconfig/network-scripts/ifcfg-eth0 (recursive=False)
2018-08-29 12:29:25,569 - util.py[DEBUG]: Restoring selinux mode for /etc/sysconfig/network-scripts/ifcfg-eth0 (recursive=False)
2018-08-29 12:29:25,569 - util.py[DEBUG]: Reading from /etc/resolv.conf (quiet=False)
2018-08-29 12:29:25,570 - util.py[DEBUG]: Read 168 bytes from /etc/resolv.conf
2018-08-29 12:29:25,570 - util.py[DEBUG]: Writing to /etc/resolv.conf - wb: [420] 239 bytes
2018-08-29 12:29:25,570 - util.py[DEBUG]: Restoring selinux mode for /etc/resolv.conf (recursive=False)
2018-08-29 12:29:25,570 - util.py[DEBUG]: Restoring selinux mode for /etc/resolv.conf (recursive=False)
2018-08-29 12:29:25,571 - util.py[DEBUG]: Writing to /etc/udev/rules.d/70-persistent-net.rules - wb: [420] 96 bytes
2018-08-29 12:29:25,571 - util.py[DEBUG]: Restoring selinux mode for /etc/udev/rules.d/70-persistent-net.rules (recursive=False)
2018-08-29 12:29:25,572 - util.py[DEBUG]: Restoring selinux mode for /etc/udev/rules.d/70-persistent-net.rules (recursive=False)
2018-08-29 12:29:25,572 - main.py[DEBUG]: [net] Exiting without datasource in local mode
2018-08-29 12:29:25,572 - util.py[DEBUG]: Reading from /proc/uptime (quiet=False)
2018-08-29 12:29:25,573 - util.py[DEBUG]: Read 13 bytes from /proc/uptime
2018-08-29 12:29:25,573 - util.py[DEBUG]: cloud-init mode 'init' took 10.760 seconds (10.75)
2018-08-29 12:29:25,573 - handlers.py[DEBUG]: finish: init-network: FAIL: searching for network datasources

/etc/cloud/cloud.cfg.d/10_foreman.cfg

datasource_list: [NoCloud]
datasource:
  NoCloud:
    seedfrom: https://foreman.mydomain.com/userdata/

Installation command

foreman-installer --foreman-server-ssl-key=/etc/pki/tls/mydomain/mydomain.key --puppet-server-foreman=true --foreman-server-ssl-cert=/etc/pki/tls/mydomain/mydomain.crt --foreman-server-ssl-chain=/etc/pki/tls/mydomain/cachain.crt --foreman-server-ssl-certs-dir=/etc/pki/tls/dotslash --foreman-websockets-encrypt=true --foreman-websockets-ssl-key=/etc/pki/tls/mydomain/mydomain.key --foreman-websockets-ssl-cert=/etc/pki/tls/mydomain/mydomain.crt --puppet-server-foreman=true --puppet-server-foreman-ssl-ca=/etc/pki/tls/mydomain/cachain.crt --foreman-proxy-foreman-ssl-ca=/etc/pki/tls/mydomain/cachain.crt --foreman-foreman-url=https://foreman.mydomain.com --enable-foreman-compute-vmware --enable-foreman-plugin-discovery --enable-foreman-plugin-hooks --enable-foreman-plugin-remote-execution --enable-foreman-plugin-setup --enable-foreman-plugin-tasks --enable-foreman-plugin-templates

This looks like an error in the cloud-init ifself (the foreman/nocloud module). Or if you get 404 the foreman plugin might not be enabled at all, have you restarted the httpd?

@TimoGoebel might know better tho.

I believe it’s enabled… I don’t see an option to enable cloud-init anywhere. I assume it’s part of userdata? Or is it a separate plugin that I need to install?

Oh no, it is not. Userdata type is only for injecting (seeding) into cloud/virt compute resources! You need @TimoGoebel 's plugin (which we would like to merge into core soonish).

Can you share a screenshot from your about page? That should list the foreman_userdata plugin as activated. Next, you should see the connection attempts from your VM to foreman in Foreman’s log (/var/log/foreman/production.log). Can you share the relevant lines?

Here is the screenshot.

Thank you, this helps. How about those log entries in /var/log/foreman/production.log?

Here you go.

2018-09-11T10:44:10 [I|app|eed17] Current user: admin (administrator)
2018-09-11T10:44:10 [I|app|eed17] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2018-09-11T10:44:20 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:44:20 -0700
2018-09-11T10:44:20 [I|app|c3502] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:44:20 [I|app|c3502] Current user: admin (administrator)
2018-09-11T10:44:20 [I|app|c3502] Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.7ms)
2018-09-11T10:44:30 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:44:30 -0700
2018-09-11T10:44:30 [I|app|e128c] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:44:30 [I|app|e128c] Current user: admin (administrator)
2018-09-11T10:44:30 [I|app|e128c] Completed 200 OK in 7ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2018-09-11T10:44:40 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:44:40 -0700
2018-09-11T10:44:40 [I|app|51ad6] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:44:40 [I|app|51ad6] Current user: admin (administrator)
2018-09-11T10:44:40 [I|app|51ad6] Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2018-09-11T10:44:42 [I|app|] Started POST "/hosts/compute_resource_selected" for 172.20.1.2 at 2018-09-11 10:44:42 -0700
2018-09-11T10:44:42 [I|app|f7daf] Processing by HostsController#compute_resource_selected as */*
2018-09-11T10:44:42 [I|app|f7daf]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"", "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
2018-09-11T10:44:42 [I|app|f7daf] Current user: admin (administrator)
2018-09-11T10:44:43 [I|app|f7daf] Loaded compute resource data for folders in 0.108338613 seconds
2018-09-11T10:44:43 [I|app|f7daf] Loaded compute resource data for storage_pods in 0.053816018 seconds
2018-09-11T10:44:43 [I|app|f7daf] Loaded compute resource data for datastores in 0.20375116 seconds
2018-09-11T10:44:43 [I|app|f7daf]   Rendered compute_resources_vms/form/vmware/_base.html.erb (975.8ms)
2018-09-11T10:44:43 [I|app|f7daf]   Rendered compute_resources_vms/form/_volumes.html.erb (3.2ms)
2018-09-11T10:44:43 [I|app|f7daf]   Rendered hosts/_compute_detail.html.erb (1010.4ms)
2018-09-11T10:44:43 [I|app|f7daf]   Rendered hosts/_compute.html.erb (1418.2ms)
2018-09-11T10:44:43 [I|app|f7daf] Completed 200 OK in 1557ms (Views: 1417.6ms | ActiveRecord: 34.4ms)
2018-09-11T10:44:44 [I|app|] Started POST "/hosts/interfaces" for 172.20.1.2 at 2018-09-11 10:44:44 -0700
2018-09-11T10:44:44 [I|app|86e72] Processing by HostsController#interfaces as */*
2018-09-11T10:44:44 [I|app|86e72]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"", "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>""}}, "compute_attributes"=>{"cpus"=>"1", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"automatic", "cluster"=>"", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"otherGuest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"0", "cpuHotAddEnabled"=>"0", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":10485760,\"sizeGb\":10}]}"}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
2018-09-11T10:44:44 [I|app|86e72] Current user: admin (administrator)
2018-09-11T10:44:44 [I|app|86e72] Deface: [WARNING] No :original defined for 'add_execution_interface', you should change its definition to include:
 :original => 'dbe1da973bfb251a74b994e7ae11bc8d11502c97' 
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_base_form.html.erb (95.6ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_virtual_form.html.erb (2.5ms)
2018-09-11T10:44:44 [I|app|86e72] Loaded compute resource data for networks in 0.081915877 seconds
2018-09-11T10:44:44 [I|app|86e72]   Rendered compute_resources_vms/form/vmware/_network.html.erb (85.6ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_provider_specific_form.html.erb (154.8ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/manageds/_managed.html.erb (276.9ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_base_form.html.erb (17.1ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_virtual_form.html.erb (1.7ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered compute_resources_vms/form/vmware/_network.html.erb (1.6ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/_provider_specific_form.html.erb (3.9ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered nic/manageds/_managed.html.erb (27.9ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered hosts/_interfaces.html.erb (314.3ms)
2018-09-11T10:44:44 [I|app|86e72]   Rendered hosts/_interfaces_tab.html.erb (319.8ms)
2018-09-11T10:44:44 [I|app|86e72] Completed 200 OK in 587ms (Views: 313.9ms | ActiveRecord: 28.6ms)
2018-09-11T10:44:49 [I|app|] Started POST "/hosts/compute_resource_selected" for 172.20.1.2 at 2018-09-11 10:44:49 -0700
2018-09-11T10:44:49 [I|app|5fabe] Processing by HostsController#compute_resource_selected as */*
2018-09-11T10:44:49 [I|app|5fabe]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"1", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"automatic", "cluster"=>"", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"otherGuest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"0", "cpuHotAddEnabled"=>"0", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"VirtualLsiLogicController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":10485760,\"sizeGb\":10}]}"}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
2018-09-11T10:44:49 [I|app|5fabe] Current user: admin (administrator)
2018-09-11T10:44:49 [I|app|5fabe] Loaded compute resource data for cluster-Cluster1 in 0.120629173 seconds
2018-09-11T10:44:49 [I|app|5fabe] Loaded compute resource data for resource_pools in 0.130211484 seconds
2018-09-11T10:44:49 [I|app|5fabe]   Rendered compute_resources_vms/form/vmware/_base.html.erb (442.8ms)
2018-09-11T10:44:49 [I|app|5fabe]   Rendered compute_resources_vms/form/_volumes.html.erb (0.3ms)
2018-09-11T10:44:49 [I|app|5fabe]   Rendered hosts/_compute_detail.html.erb (444.0ms)
2018-09-11T10:44:49 [I|app|5fabe]   Rendered hosts/_compute.html.erb (532.2ms)
2018-09-11T10:44:49 [I|app|5fabe] Completed 200 OK in 561ms (Views: 530.5ms | ActiveRecord: 6.2ms)
2018-09-11T10:44:50 [I|app|] Started POST "/hosts/interfaces" for 172.20.1.2 at 2018-09-11 10:44:50 -0700
2018-09-11T10:44:50 [I|app|67c61] Processing by HostsController#interfaces as */*
2018-09-11T10:44:50 [I|app|67c61]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}"}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]"}
2018-09-11T10:44:50 [I|app|67c61] Current user: admin (administrator)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_base_form.html.erb (15.0ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_virtual_form.html.erb (1.3ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered compute_resources_vms/form/vmware/_network.html.erb (1.3ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_provider_specific_form.html.erb (63.4ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/manageds/_managed.html.erb (81.3ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_base_form.html.erb (13.6ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_virtual_form.html.erb (1.2ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered compute_resources_vms/form/vmware/_network.html.erb (0.9ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/_provider_specific_form.html.erb (2.3ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered nic/manageds/_managed.html.erb (18.4ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered hosts/_interfaces.html.erb (101.7ms)
2018-09-11T10:44:50 [I|app|67c61]   Rendered hosts/_interfaces_tab.html.erb (102.1ms)
2018-09-11T10:44:50 [I|app|67c61] Completed 200 OK in 170ms (Views: 101.3ms | ActiveRecord: 5.9ms)
2018-09-11T10:44:50 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:44:50 -0700
2018-09-11T10:44:50 [I|app|c9192] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:44:50 [I|app|c9192] Current user: admin (administrator)
2018-09-11T10:44:50 [I|app|c9192] Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2018-09-11T10:44:52 [I|app|] Started POST "/hosts/hostgroup_or_environment_selected" for 172.20.1.2 at 2018-09-11 10:44:52 -0700
2018-09-11T10:44:52 [I|app|d016a] Processing by HostsController#hostgroup_or_environment_selected as */*
2018-09-11T10:44:52 [I|app|d016a]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}"}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:44:52 [I|app|d016a] Current user: admin (administrator)
2018-09-11T10:44:52 [I|app|d016a]   Rendered collection of puppetclasses/_selectedClasses.html.erb [0 times] (0.0ms)
2018-09-11T10:44:52 [I|app|d016a]   Rendered collection of puppetclasses/_classes_in_groups.html.erb [0 times] (0.0ms)
2018-09-11T10:44:52 [I|app|d016a]   Rendered puppetclasses/_classes.html.erb (0.8ms)
2018-09-11T10:44:52 [I|app|d016a]   Rendered puppetclasses/_class_selection.html.erb (66.6ms)
2018-09-11T10:44:52 [I|app|d016a] Completed 200 OK in 106ms (Views: 58.6ms | ActiveRecord: 17.9ms)
2018-09-11T10:44:52 [I|app|] Started POST "/hosts/puppetclass_parameters" for 172.20.1.2 at 2018-09-11 10:44:52 -0700
2018-09-11T10:44:52 [I|app|dfef1] Processing by HostsController#puppetclass_parameters as */*
2018-09-11T10:44:52 [I|app|dfef1]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"", "puppet_ca_proxy_id"=>"", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}"}, "architecture_id"=>"", "operatingsystem_id"=>"", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:44:52 [I|app|dfef1] Current user: admin (administrator)
2018-09-11T10:44:52 [I|app|dfef1]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2018-09-11T10:44:52 [I|app|dfef1]   Rendered puppetclasses/_classes_parameters.html.erb (31.0ms)
2018-09-11T10:44:52 [I|app|dfef1] Completed 200 OK in 66ms (Views: 30.9ms | ActiveRecord: 9.1ms)
2018-09-11T10:45:00 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:00 -0700
2018-09-11T10:45:00 [I|app|aa312] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:00 [I|app|aa312] Current user: admin (administrator)
2018-09-11T10:45:00 [I|app|aa312] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
2018-09-11T10:45:10 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:10 -0700
2018-09-11T10:45:10 [I|app|1b8e7] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:10 [I|app|1b8e7] Current user: admin (administrator)
2018-09-11T10:45:10 [I|app|1b8e7] Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.6ms)
2018-09-11T10:45:12 [I|app|] Started POST "/hosts/architecture_selected" for 172.20.1.2 at 2018-09-11 10:45:12 -0700
2018-09-11T10:45:12 [I|app|766dc] Processing by HostsController#architecture_selected as */*
2018-09-11T10:45:12 [I|app|766dc]   Parameters: {"host"=>{"architecture_id"=>"1"}}
2018-09-11T10:45:12 [I|app|766dc] Current user: admin (administrator)
2018-09-11T10:45:12 [I|app|766dc]   Rendered common/os_selection/_architecture.html.erb (39.2ms)
2018-09-11T10:45:12 [I|app|766dc] Completed 200 OK in 87ms (Views: 39.4ms | ActiveRecord: 9.5ms)
2018-09-11T10:45:13 [I|app|] Started POST "/hosts/os_selected" for 172.20.1.2 at 2018-09-11 10:45:13 -0700
2018-09-11T10:45:13 [I|app|b2709] Processing by HostsController#os_selected as */*
2018-09-11T10:45:13 [I|app|b2709]   Parameters: {"host"=>{"operatingsystem_id"=>"2"}}
2018-09-11T10:45:13 [I|app|b2709] Current user: admin (administrator)
2018-09-11T10:45:13 [I|app|] Started GET "/compute_resources/1/images?operatingsystem_id=2&architecture_id=1" for 172.20.1.2 at 2018-09-11 10:45:13 -0700
2018-09-11T10:45:13 [I|app|7b19d] Processing by ImagesController#index as JSON
2018-09-11T10:45:13 [I|app|7b19d]   Parameters: {"operatingsystem_id"=>"2", "architecture_id"=>"1", "compute_resource_id"=>"1"}
2018-09-11T10:45:13 [I|app|7b19d] Current user: admin (administrator)
2018-09-11T10:45:13 [I|app|7b19d] Completed 200 OK in 26ms (Views: 16.0ms | ActiveRecord: 4.4ms)
2018-09-11T10:45:13 [I|app|b2709]   Rendered common/os_selection/_pxe_loader.html.erb (2.0ms)
2018-09-11T10:45:13 [I|app|b2709]   Rendered common/os_selection/_operatingsystem.html.erb (56.8ms)
2018-09-11T10:45:13 [I|app|b2709] Completed 200 OK in 98ms (Views: 49.0ms | ActiveRecord: 19.0ms)
2018-09-11T10:45:13 [I|app|] Started POST "/hosts/current_parameters" for 172.20.1.2 at 2018-09-11 10:45:13 -0700
2018-09-11T10:45:13 [I|app|] Started POST "/hosts/puppetclass_parameters" for 172.20.1.2 at 2018-09-11 10:45:13 -0700
2018-09-11T10:45:13 [I|app|b97ee] Processing by HostsController#current_parameters as */*
2018-09-11T10:45:13 [I|app|b97ee]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_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"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:45:13 [I|app|b97ee] Current user: admin (administrator)
2018-09-11T10:45:13 [I|app|0c012] Processing by HostsController#puppetclass_parameters as */*
2018-09-11T10:45:13 [I|app|0c012]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_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"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"build", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:45:13 [I|app|0c012] Current user: admin (administrator)
2018-09-11T10:45:14 [I|app|b97ee]   Rendered common_parameters/_inherited_parameters.html.erb (1.1ms)
2018-09-11T10:45:14 [I|app|b97ee] Completed 200 OK in 31ms (Views: 4.4ms | ActiveRecord: 4.3ms)
2018-09-11T10:45:14 [I|app|0c012]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2018-09-11T10:45:14 [I|app|0c012]   Rendered puppetclasses/_classes_parameters.html.erb (15.2ms)
2018-09-11T10:45:14 [I|app|0c012] Completed 200 OK in 43ms (Views: 16.1ms | ActiveRecord: 7.6ms)
2018-09-11T10:45:20 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:20 -0700
2018-09-11T10:45:20 [I|app|8caa8] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:20 [I|app|8caa8] Current user: admin (administrator)
2018-09-11T10:45:20 [I|app|8caa8] Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2018-09-11T10:45:24 [I|app|] Started POST "/hosts/template_used?provisioning=image" for 172.20.1.2 at 2018-09-11 10:45:24 -0700
2018-09-11T10:45:24 [I|app|9c32c] Processing by HostsController#template_used as */*
2018-09-11T10:45:24 [I|app|9c32c]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_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"=>"smtp-gateway", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}, "new_interfaces"=>{"_destroy"=>"1", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"", "name"=>"", "domain_id"=>"", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"0", "provision"=>"0", "execution"=>"0", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualE1000", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}", "image_id"=>"Templates/CentOS-7-Small"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "provisioning"=>"image"}
2018-09-11T10:45:24 [I|app|9c32c] Current user: admin (administrator)
2018-09-11T10:45:24 [I|app|9c32c]   Rendered hosts/_provisioning.html.erb (4.7ms)
2018-09-11T10:45:24 [I|app|9c32c] Completed 200 OK in 72ms (Views: 8.2ms | ActiveRecord: 12.5ms)
2018-09-11T10:45:30 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:30 -0700
2018-09-11T10:45:30 [I|app|3d116] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:30 [I|app|3d116] Current user: admin (administrator)
2018-09-11T10:45:30 [I|app|3d116] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2018-09-11T10:45:34 [I|app|] Started POST "/hosts/domain_selected" for 172.20.1.2 at 2018-09-11 10:45:34 -0700
2018-09-11T10:45:34 [I|app|1218f] Processing by HostsController#domain_selected as JSON
2018-09-11T10:45:34 [I|app|1218f]   Parameters: {"domain_id"=>"1", "interface"=>"true"}
2018-09-11T10:45:34 [I|app|1218f] Current user: admin (administrator)
2018-09-11T10:45:34 [I|app|1218f] Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 3.3ms)
2018-09-11T10:45:34 [I|app|] Started POST "/hosts/current_parameters" for 172.20.1.2 at 2018-09-11 10:45:34 -0700
2018-09-11T10:45:34 [I|app|] Started POST "/hosts/puppetclass_parameters" for 172.20.1.2 at 2018-09-11 10:45:34 -0700
2018-09-11T10:45:34 [I|app|96aaa] Processing by HostsController#puppetclass_parameters as */*
2018-09-11T10:45:34 [I|app|96aaa]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"eth0", "name"=>"smtp-gateway", "domain_id"=>"1", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}", "image_id"=>"Templates/CentOS-7-Small"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:45:34 [I|app|96aaa] Current user: admin (administrator)
2018-09-11T10:45:34 [I|app|34407] Processing by HostsController#current_parameters as */*
2018-09-11T10:45:34 [I|app|34407]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"eth0", "name"=>"smtp-gateway", "domain_id"=>"1", "subnet_id"=>"", "ip"=>"", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}", "image_id"=>"Templates/CentOS-7-Small"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}, "fakepassword"=>"[FILTERED]", "host_id"=>"undefined"}
2018-09-11T10:45:34 [I|app|34407] Current user: admin (administrator)
2018-09-11T10:45:34 [I|app|96aaa]   Rendered collection of puppetclasses/_class_parameters.html.erb [0 times] (0.0ms)
2018-09-11T10:45:34 [I|app|96aaa]   Rendered puppetclasses/_classes_parameters.html.erb (9.4ms)
2018-09-11T10:45:34 [I|app|96aaa] Completed 200 OK in 29ms (Views: 8.4ms | ActiveRecord: 3.3ms)
2018-09-11T10:45:34 [I|app|34407]   Rendered common_parameters/_inherited_parameters.html.erb (1.7ms)
2018-09-11T10:45:34 [I|app|34407] Completed 200 OK in 44ms (Views: 5.0ms | ActiveRecord: 6.8ms)
2018-09-11T10:45:36 [I|app|] Started POST "/subnets/freeip" for 172.20.1.2 at 2018-09-11 10:45:36 -0700
2018-09-11T10:45:36 [I|app|70b2c] Processing by SubnetsController#freeip as JSON
2018-09-11T10:45:36 [I|app|70b2c]   Parameters: {"subnet_id"=>"1", "host_mac"=>"", "taken_ips"=>["", ""]}
2018-09-11T10:45:36 [I|app|70b2c] Current user: admin (administrator)
2018-09-11T10:45:36 [I|app|70b2c] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 1.0ms)
2018-09-11T10:45:40 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:40 -0700
2018-09-11T10:45:40 [I|app|7cb55] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:40 [I|app|7cb55] Current user: admin (administrator)
2018-09-11T10:45:40 [I|app|7cb55] Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.5ms)
2018-09-11T10:45:50 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:45:50 -0700
2018-09-11T10:45:50 [I|app|ac59c] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:45:50 [I|app|ac59c] Current user: admin (administrator)
2018-09-11T10:45:50 [I|app|ac59c] Completed 200 OK in 6ms (Views: 0.3ms | ActiveRecord: 0.5ms)
2018-09-11T10:46:00 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:00 -0700
2018-09-11T10:46:00 [I|app|f76fd] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:00 [I|app|f76fd] Current user: admin (administrator)
2018-09-11T10:46:00 [I|app|f76fd] Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.3ms)
2018-09-11T10:46:11 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:11 -0700
2018-09-11T10:46:11 [I|app|ba0b9] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:11 [I|app|ba0b9] Current user: admin (administrator)
2018-09-11T10:46:11 [I|app|ba0b9] Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.4ms)
2018-09-11T10:46:16 [I|app|] Started POST "/hosts" for 172.20.1.2 at 2018-09-11 10:46:16 -0700
2018-09-11T10:46:16 [I|app|d416c] Processing by HostsController#create as */*
2018-09-11T10:46:16 [I|app|d416c]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"MJSHIWtB7hpt2LGEoStBAMcGEX1/fEyOwlnfkae1LXjDRYvkrIBYZaq9R4HXLgyyvOwXS0BK0iZKKEuReX9j5A==", "host"=>{"name"=>"smtp-gateway", "hostgroup_id"=>"", "compute_resource_id"=>"1", "compute_profile_id"=>"1", "environment_id"=>"1", "puppet_proxy_id"=>"1", "puppet_ca_proxy_id"=>"1", "puppetclass_ids"=>[""], "managed"=>"true", "progress_report_id"=>"[FILTERED]", "type"=>"Host::Managed", "interfaces_attributes"=>{"0"=>{"_destroy"=>"0", "type"=>"Nic::Managed", "mac"=>"", "identifier"=>"eth0", "name"=>"smtp-gateway", "domain_id"=>"1", "subnet_id"=>"1", "ip"=>"10.64.10.25", "ip6"=>"", "managed"=>"1", "primary"=>"1", "provision"=>"1", "execution"=>"1", "virtual"=>"0", "tag"=>"", "attached_to"=>"", "compute_attributes"=>{"type"=>"VirtualVmxnet3", "network"=>"network-101"}}}, "compute_attributes"=>{"cpus"=>"2", "corespersocket"=>"1", "memory_mb"=>"2048", "firmware"=>"efi", "cluster"=>"Cluster1", "resource_pool"=>"Infra", "path"=>"/Datacenters/DataCenter/vm", "guest_id"=>"centos7_64Guest", "hardware_version"=>"Default", "memoryHotAddEnabled"=>"1", "cpuHotAddEnabled"=>"1", "add_cdrom"=>"0", "start"=>"1", "annotation"=>"", "scsi_controllers"=>"{\"scsiControllers\":[{\"type\":\"ParaVirtualSCSIController\",\"key\":1000}],\"volumes\":[{\"thin\":true,\"name\":\"Hard disk\",\"mode\":\"persistent\",\"controllerKey\":1000,\"size\":31457280,\"sizeGb\":30,\"datastore\":\"Data02\"}]}", "image_id"=>"Templates/CentOS-7-Small"}, "architecture_id"=>"1", "operatingsystem_id"=>"2", "provision_method"=>"image", "build"=>"1", "medium_id"=>"", "ptable_id"=>"", "pxe_loader"=>"", "disk"=>"", "root_pass"=>"[FILTERED]", "is_owned_by"=>"4-Users", "enabled"=>"1", "model_id"=>"", "expired_on"=>"", "comment"=>"", "overwrite"=>"false"}}
2018-09-11T10:46:16 [I|app|d416c] Current user: admin (administrator)
2018-09-11T10:46:16 [I|app|d416c] Rendering UserData template for smtp-gateway.example.com
2018-09-11T10:46:16 [I|tem|d416c] Rendering template 'Unnamed'
2018-09-11T10:46:16 [I|blo|d416c] Unattended render of 'Unnamed' = '4f5eb247d286bea5a64f1b62f4d620ee04b99bc2272154683c1853d47c0c7252'
# Template for VMWare customization via open-vm-tools

identity:
  LinuxPrep:
    domain: example.com
    hostName: smtp-gateway
    hwClockUTC: true
    timeZone: America/Los_Angeles
  
globalIPSettings:
  dnsSuffixList: [example.com]
  dnsServerList: [10.64.10.100, 10.64.10.101]

nicSettingMap:
  - adapter:
      dnsDomain: example.com
      dnsServerList: [10.64.10.100, 10.64.10.101]
      gateway: [10.64.10.1]
      ip: 10.64.10.25
      subnetMask: 255.255.255.0

2018-09-11T10:46:16 [I|app|d416c] Remove puppet certificate for smtp-gateway.example.com
2018-09-11T10:46:17 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:17 -0700
2018-09-11T10:46:17 [I|app|66dab] Processing by TasksController#show as */*
2018-09-11T10:46:17 [I|app|66dab]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:17 [I|app|66dab] Current user: admin (administrator)
2018-09-11T10:46:17 [I|app|66dab]   Rendered tasks/_list.html.erb (0.9ms)
2018-09-11T10:46:17 [I|app|66dab] Completed 200 OK in 36ms (Views: 32.0ms | ActiveRecord: 0.6ms)
2018-09-11T10:46:18 [I|app|d416c] Adding autosign entry for smtp-gateway.example.com
2018-09-11T10:46:18 [I|app|d416c] Revoked old certificates and enabled autosign for UserData
2018-09-11T10:46:18 [I|app|d416c] Adding Compute instance for smtp-gateway.example.com
2018-09-11T10:46:19 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:19 -0700
2018-09-11T10:46:19 [I|app|6b8b8] Processing by TasksController#show as */*
2018-09-11T10:46:19 [I|app|6b8b8]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:19 [I|app|6b8b8] Current user: admin (administrator)
2018-09-11T10:46:19 [I|app|6b8b8]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:19 [I|app|6b8b8] Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.9ms)
2018-09-11T10:46:21 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:21 -0700
2018-09-11T10:46:21 [I|app|3833e] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:21 [I|app|3833e] Current user: admin (administrator)
2018-09-11T10:46:21 [I|app|3833e] Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2018-09-11T10:46:21 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:21 -0700
2018-09-11T10:46:21 [I|app|4dc72] Processing by TasksController#show as */*
2018-09-11T10:46:21 [I|app|4dc72]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:21 [I|app|4dc72] Current user: admin (administrator)
2018-09-11T10:46:21 [I|app|4dc72]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:21 [I|app|4dc72] Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:22 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:22 -0700
2018-09-11T10:46:22 [I|app|5229e] Processing by TasksController#show as */*
2018-09-11T10:46:22 [I|app|5229e]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:22 [I|app|5229e] Current user: admin (administrator)
2018-09-11T10:46:22 [I|app|5229e]   Rendered tasks/_list.html.erb (0.3ms)
2018-09-11T10:46:22 [I|app|5229e] Completed 200 OK in 7ms (Views: 0.8ms | ActiveRecord: 0.9ms)
2018-09-11T10:46:24 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:24 -0700
2018-09-11T10:46:24 [I|app|f3817] Processing by TasksController#show as */*
2018-09-11T10:46:24 [I|app|f3817]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:24 [I|app|f3817] Current user: admin (administrator)
2018-09-11T10:46:24 [I|app|f3817]   Rendered tasks/_list.html.erb (0.6ms)
2018-09-11T10:46:24 [I|app|f3817] Completed 200 OK in 7ms (Views: 1.4ms | ActiveRecord: 1.0ms)
2018-09-11T10:46:26 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:26 -0700
2018-09-11T10:46:26 [I|app|bf4e1] Processing by TasksController#show as */*
2018-09-11T10:46:26 [I|app|bf4e1]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:26 [I|app|bf4e1] Current user: admin (administrator)
2018-09-11T10:46:26 [I|app|bf4e1]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:26 [I|app|bf4e1] Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.8ms)
2018-09-11T10:46:27 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:27 -0700
2018-09-11T10:46:27 [I|app|fd04a] Processing by TasksController#show as */*
2018-09-11T10:46:27 [I|app|fd04a]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:27 [I|app|fd04a] Current user: admin (administrator)
2018-09-11T10:46:27 [I|app|fd04a]   Rendered tasks/_list.html.erb (0.3ms)
2018-09-11T10:46:27 [I|app|fd04a] Completed 200 OK in 7ms (Views: 0.7ms | ActiveRecord: 1.1ms)
2018-09-11T10:46:29 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:29 -0700
2018-09-11T10:46:29 [I|app|c36ea] Processing by TasksController#show as */*
2018-09-11T10:46:29 [I|app|c36ea]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:29 [I|app|c36ea] Current user: admin (administrator)
2018-09-11T10:46:29 [I|app|c36ea]   Rendered tasks/_list.html.erb (0.7ms)
2018-09-11T10:46:29 [I|app|c36ea] Completed 200 OK in 6ms (Views: 1.3ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:30 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:30 -0700
2018-09-11T10:46:31 [I|app|212ed] Processing by TasksController#show as */*
2018-09-11T10:46:31 [I|app|212ed]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:31 [I|app|212ed] Current user: admin (administrator)
2018-09-11T10:46:31 [I|app|212ed]   Rendered tasks/_list.html.erb (0.5ms)
2018-09-11T10:46:31 [I|app|212ed] Completed 200 OK in 6ms (Views: 1.0ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:31 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:31 -0700
2018-09-11T10:46:31 [I|app|bcc63] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:31 [I|app|bcc63] Current user: admin (administrator)
2018-09-11T10:46:31 [I|app|bcc63] Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2018-09-11T10:46:32 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:32 -0700
2018-09-11T10:46:32 [I|app|d5baf] Processing by TasksController#show as */*
2018-09-11T10:46:32 [I|app|d5baf]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:32 [I|app|d5baf] Current user: admin (administrator)
2018-09-11T10:46:32 [I|app|d5baf]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:32 [I|app|d5baf] Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 1.2ms)
2018-09-11T10:46:34 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:34 -0700
2018-09-11T10:46:34 [I|app|6bd06] Processing by TasksController#show as */*
2018-09-11T10:46:34 [I|app|6bd06]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:34 [I|app|6bd06] Current user: admin (administrator)
2018-09-11T10:46:34 [I|app|6bd06]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:34 [I|app|6bd06] Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:35 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:35 -0700
2018-09-11T10:46:35 [I|app|35dc9] Processing by TasksController#show as */*
2018-09-11T10:46:35 [I|app|35dc9]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:35 [I|app|35dc9] Current user: admin (administrator)
2018-09-11T10:46:35 [I|app|35dc9]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:35 [I|app|35dc9] Completed 200 OK in 5ms (Views: 0.8ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:37 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:37 -0700
2018-09-11T10:46:37 [I|app|75be7] Processing by TasksController#show as */*
2018-09-11T10:46:37 [I|app|75be7]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:37 [I|app|75be7] Current user: admin (administrator)
2018-09-11T10:46:37 [I|app|75be7]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:37 [I|app|75be7] Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 1.0ms)
2018-09-11T10:46:39 [I|app|] Started GET "/tasks/4cc7de85-0797-4358-82f5-3a66a7cb01c9" for 172.20.1.2 at 2018-09-11 10:46:39 -0700
2018-09-11T10:46:39 [I|app|e9c8e] Processing by TasksController#show as */*
2018-09-11T10:46:39 [I|app|e9c8e]   Parameters: {"id"=>"4cc7de85-0797-4358-82f5-3a66a7cb01c9"}
2018-09-11T10:46:39 [I|app|e9c8e] Current user: admin (administrator)
2018-09-11T10:46:39 [I|app|e9c8e]   Rendered tasks/_list.html.erb (0.4ms)
2018-09-11T10:46:39 [I|app|e9c8e] Completed 200 OK in 6ms (Views: 0.8ms | ActiveRecord: 0.7ms)
2018-09-11T10:46:39 [I|app|d416c] Powering up Compute instance for smtp-gateway.example.com
2018-09-11T10:46:39 [I|app|d416c] Processed 4 tasks from queue 'Host::Managed Main', completed 4/4
2018-09-11T10:46:39 [I|aud|d416c] create event for Nic::Managed with id 22
2018-09-11T10:46:39 [I|aud|d416c] create event for Host::Base with id 22
2018-09-11T10:46:39 [I|app|d416c] Redirected to https://foreman.example.com/hosts/smtp-gateway.example.com
2018-09-11T10:46:39 [I|app|d416c] Completed 302 Found in 23631ms (ActiveRecord: 68.4ms)
2018-09-11T10:46:39 [I|app|] Started GET "/hosts/smtp-gateway.example.com" for 172.20.1.2 at 2018-09-11 10:46:39 -0700
2018-09-11T10:46:39 [I|app|c9c32] Processing by HostsController#show as */*
2018-09-11T10:46:39 [I|app|c9c32]   Parameters: {"id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:39 [I|app|c9c32] Current user: admin (administrator)
2018-09-11T10:46:39 [I|app|c9c32] Deface: [WARNING] No :original defined for 'host_expiry_waring_in_show', you should change its definition to include:
 :original => '8611d76a38ff395e1b0ba8d9ca22b2a10886698d' 
2018-09-11T10:46:39 [I|app|c9c32]   Rendering hosts/show.html.erb within layouts/application
2018-09-11T10:46:40 [I|app|c9c32]   Rendered hosts/show.html.erb within layouts/application (38.3ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered layouts/_application_content.html.erb (0.5ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendering layouts/base.html.erb
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_org_switcher.html.erb (0.1ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_user_dropdown.html.erb (1.2ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_topbar.html.erb (2.0ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (2.3ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (0.9ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (2.8ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (2.2ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (2.1ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (2.0ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_vertical_menu.html.erb (0.7ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered home/_navbar.html.erb (16.0ms)
2018-09-11T10:46:40 [I|app|c9c32]   Rendered layouts/base.html.erb (21.2ms)
2018-09-11T10:46:40 [I|app|c9c32] Completed 200 OK in 129ms (Views: 56.1ms | ActiveRecord: 6.8ms)
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/overview" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/templates" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|55268] Processing by HostsController#overview as HTML
2018-09-11T10:46:40 [I|app|55268]   Parameters: {"id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|55268] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|9aa6e] Processing by HostsController#templates as HTML
2018-09-11T10:46:40 [I|app|9aa6e]   Parameters: {"id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|9aa6e] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/vm" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|fe3e0] Processing by HostsController#vm as HTML
2018-09-11T10:46:40 [I|app|fe3e0]   Parameters: {"id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|55268]   Rendered hosts/_overview.html.erb (17.3ms)
2018-09-11T10:46:40 [I|app|55268] Completed 200 OK in 29ms (Views: 18.3ms | ActiveRecord: 5.0ms)
2018-09-11T10:46:40 [I|app|fe3e0] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/nics" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|28778] Processing by HostsController#nics as HTML
2018-09-11T10:46:40 [I|app|28778]   Parameters: {"id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|28778] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|28778]   Rendered hosts/_nics.html.erb (16.1ms)
2018-09-11T10:46:40 [I|app|28778] Completed 200 OK in 49ms (Views: 23.3ms | ActiveRecord: 20.2ms)
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/runtime?range=7" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|9ce3f] Processing by HostsController#runtime as HTML
2018-09-11T10:46:40 [I|app|9ce3f]   Parameters: {"range"=>"7", "id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|9ce3f] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|9aa6e]   Rendered hosts/_templates.html.erb (12.2ms)
2018-09-11T10:46:40 [I|app|9aa6e] Completed 200 OK in 126ms (Views: 29.4ms | ActiveRecord: 47.4ms)
2018-09-11T10:46:40 [I|app|] Started GET "/hosts/smtp-gateway.example.com/resources?range=7" for 172.20.1.2 at 2018-09-11 10:46:40 -0700
2018-09-11T10:46:40 [I|app|44076] Processing by HostsController#resources as HTML
2018-09-11T10:46:40 [I|app|44076]   Parameters: {"range"=>"7", "id"=>"smtp-gateway.example.com"}
2018-09-11T10:46:40 [I|app|9ce3f]   Rendered hosts/_runtime.html.erb (9.9ms)
2018-09-11T10:46:40 [I|app|9ce3f] Completed 200 OK in 33ms (Views: 8.1ms | ActiveRecord: 20.3ms)
2018-09-11T10:46:40 [I|app|44076] Current user: admin (administrator)
2018-09-11T10:46:40 [I|app|44076]   Rendered hosts/_resources.html.erb (6.9ms)
2018-09-11T10:46:40 [I|app|44076] Completed 200 OK in 26ms (Views: 9.6ms | ActiveRecord: 11.0ms)
2018-09-11T10:46:40 [I|app|fe3e0]   Rendered compute_resources_vms/show/_vmware.html.erb (97.6ms)
2018-09-11T10:46:40 [I|app|fe3e0]   Rendered compute_resources_vms/_details.html.erb (104.4ms)
2018-09-11T10:46:40 [I|app|fe3e0] Completed 200 OK in 268ms (Views: 114.5ms | ActiveRecord: 16.7ms)
2018-09-11T10:46:41 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:41 -0700
2018-09-11T10:46:41 [I|app|b55ef] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:41 [I|app|b55ef] Current user: admin (administrator)
2018-09-11T10:46:41 [I|app|b55ef] Completed 200 OK in 6ms (Views: 0.2ms | ActiveRecord: 0.4ms)
2018-09-11T10:46:51 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:46:51 -0700
2018-09-11T10:46:51 [I|app|a07c0] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:46:51 [I|app|a07c0] Current user: admin (administrator)
2018-09-11T10:46:51 [I|app|a07c0] Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 0.6ms)
2018-09-11T10:46:59 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:46:59 -0700
2018-09-11T10:46:59 [I|app|16405] Processing by UserdataController#metadata as TEXT
2018-09-11T10:46:59 [I|app|16405] Current user: foreman_api_admin (administrator)
2018-09-11T10:46:59 [E|app|16405] Could not find host for request 10.64.10.215
2018-09-11T10:46:59 [I|app|16405]   Rendering text template
2018-09-11T10:46:59 [I|app|16405]   Rendered text template (0.0ms)
2018-09-11T10:46:59 [I|app|16405] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:46:59 [I|app|16405] Completed 404 Not Found in 11ms (Views: 1.1ms | ActiveRecord: 2.9ms)
2018-09-11T10:47:01 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:47:01 -0700
2018-09-11T10:47:01 [I|app|d2948] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:47:01 [I|app|d2948] Current user: admin (administrator)
2018-09-11T10:47:01 [I|app|d2948] Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.4ms)
2018-09-11T10:47:11 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:47:11 -0700
2018-09-11T10:47:11 [I|app|ec12c] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:47:11 [I|app|ec12c] Current user: admin (administrator)
2018-09-11T10:47:11 [I|app|ec12c] Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.5ms)
2018-09-11T10:47:15 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:15 -0700
2018-09-11T10:47:15 [I|app|0a3bc] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:15 [I|app|0a3bc] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:15 [E|app|0a3bc] Could not find host for request 10.64.10.215
2018-09-11T10:47:15 [I|app|0a3bc]   Rendering text template
2018-09-11T10:47:15 [I|app|0a3bc]   Rendered text template (0.0ms)
2018-09-11T10:47:15 [I|app|0a3bc] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:15 [I|app|0a3bc] Completed 404 Not Found in 10ms (Views: 0.4ms | ActiveRecord: 2.9ms)
2018-09-11T10:47:16 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:16 -0700
2018-09-11T10:47:16 [I|app|d147d] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:16 [I|app|d147d] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:16 [E|app|d147d] Could not find host for request 10.64.10.215
2018-09-11T10:47:16 [I|app|d147d]   Rendering text template
2018-09-11T10:47:16 [I|app|d147d]   Rendered text template (0.0ms)
2018-09-11T10:47:16 [I|app|d147d] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:16 [I|app|d147d] Completed 404 Not Found in 9ms (Views: 0.4ms | ActiveRecord: 2.9ms)
2018-09-11T10:47:17 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:17 -0700
2018-09-11T10:47:17 [I|app|64a51] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:17 [I|app|64a51] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:17 [E|app|64a51] Could not find host for request 10.64.10.215
2018-09-11T10:47:17 [I|app|64a51]   Rendering text template
2018-09-11T10:47:17 [I|app|64a51]   Rendered text template (0.0ms)
2018-09-11T10:47:17 [I|app|64a51] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:17 [I|app|64a51] Completed 404 Not Found in 9ms (Views: 0.4ms | ActiveRecord: 2.8ms)
2018-09-11T10:47:18 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:18 -0700
2018-09-11T10:47:18 [I|app|660eb] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:18 [I|app|660eb] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:18 [E|app|660eb] Could not find host for request 10.64.10.215
2018-09-11T10:47:18 [I|app|660eb]   Rendering text template
2018-09-11T10:47:18 [I|app|660eb]   Rendered text template (0.0ms)
2018-09-11T10:47:18 [I|app|660eb] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:18 [I|app|660eb] Completed 404 Not Found in 8ms (Views: 0.4ms | ActiveRecord: 2.5ms)
2018-09-11T10:47:19 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:19 -0700
2018-09-11T10:47:19 [I|app|4c163] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:19 [I|app|4c163] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:19 [E|app|4c163] Could not find host for request 10.64.10.215
2018-09-11T10:47:19 [I|app|4c163]   Rendering text template
2018-09-11T10:47:19 [I|app|4c163]   Rendered text template (0.1ms)
2018-09-11T10:47:19 [I|app|4c163] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:19 [I|app|4c163] Completed 404 Not Found in 12ms (Views: 0.7ms | ActiveRecord: 3.8ms)
2018-09-11T10:47:20 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:20 -0700
2018-09-11T10:47:20 [I|app|407bc] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:20 [I|app|407bc] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:20 [E|app|407bc] Could not find host for request 10.64.10.215
2018-09-11T10:47:20 [I|app|407bc]   Rendering text template
2018-09-11T10:47:20 [I|app|407bc]   Rendered text template (0.0ms)
2018-09-11T10:47:20 [I|app|407bc] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:20 [I|app|407bc] Completed 404 Not Found in 10ms (Views: 0.4ms | ActiveRecord: 2.7ms)
2018-09-11T10:47:21 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:21 -0700
2018-09-11T10:47:21 [I|app|31624] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:21 [I|app|31624] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:21 [E|app|31624] Could not find host for request 10.64.10.215
2018-09-11T10:47:21 [I|app|31624]   Rendering text template
2018-09-11T10:47:21 [I|app|31624]   Rendered text template (0.0ms)
2018-09-11T10:47:21 [I|app|31624] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:21 [I|app|31624] Completed 404 Not Found in 10ms (Views: 0.4ms | ActiveRecord: 3.6ms)
2018-09-11T10:47:21 [I|app|] Started GET "/notification_recipients" for 172.20.1.2 at 2018-09-11 10:47:21 -0700
2018-09-11T10:47:21 [I|app|ef788] Processing by NotificationRecipientsController#index as JSON
2018-09-11T10:47:21 [I|app|ef788] Current user: admin (administrator)
2018-09-11T10:47:21 [I|app|ef788] Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.3ms)
2018-09-11T10:47:22 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:22 -0700
2018-09-11T10:47:22 [I|app|610c0] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:22 [I|app|610c0] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:22 [E|app|610c0] Could not find host for request 10.64.10.215
2018-09-11T10:47:22 [I|app|610c0]   Rendering text template
2018-09-11T10:47:22 [I|app|610c0]   Rendered text template (0.0ms)
2018-09-11T10:47:22 [I|app|610c0] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:22 [I|app|610c0] Completed 404 Not Found in 11ms (Views: 0.7ms | ActiveRecord: 2.8ms)
2018-09-11T10:47:23 [I|app|] Started GET "/userdata/meta-data" for 10.64.10.215 at 2018-09-11 10:47:23 -0700
2018-09-11T10:47:23 [I|app|e20b7] Processing by UserdataController#metadata as TEXT
2018-09-11T10:47:23 [I|app|e20b7] Current user: foreman_api_admin (administrator)
2018-09-11T10:47:23 [E|app|e20b7] Could not find host for request 10.64.10.215
2018-09-11T10:47:23 [I|app|e20b7]   Rendering text template
2018-09-11T10:47:23 [I|app|e20b7]   Rendered text template (0.0ms)
2018-09-11T10:47:23 [I|app|e20b7] Filter chain halted as :find_host rendered or redirected
2018-09-11T10:47:23 [I|app|e20b7] Completed 404 Not Found in 12ms (Views: 0.8ms | ActiveRecord: 4.0ms)

@TimoGoebel does the log help at all?

Sorry for the delay, I extracted this from the logs:
Could not find host for request 10.64.10.215
This leads to the conclusion that you don’t have a host in Foreman with the IP address 10.64.10.215.

The plugin needs to find the host that requests a cloud-init template so it can find the correct template. The plugin uses the request IP for that.
Can you make sure the host that you start cloud-init on is actually known to Foreman?

Perhaps I am misunderstanding the workflow. When I provision a host in Foreman in vSphere, I configure the settings for the VM, along with an IP address. The initial VM provisioning is able to configure some basic settings of the VM via VMwareTools to the vSphere API. However, the full configuration needs to be completed by cloud-init. So the initial bootup of the VM will use DHCP instead of the static IP I have set in Foreman for the host. Hence the VM came up as 10.64.10.215. Now this didn’t match the static IP I set the host as in Foreman, so it rejected it’s inquiry for cloud-init. It would seem like I am missing the link somewhere. Can you clarify what is the proper way to do this?

Timo, when you will be replying to this, please write it in a form we can simply take into documentation without changes. This is becoming part of core and we should probably describe this in more detail. Thanks!

I see why you miss the link here. I assumed you’d either use Foreman to manage the DHCP settings for the host or deploy a static IP configuration via the vSphere customization. Foreman usually deploys a static lease that matches the mac address of the host, so the host would get the IP address you set in Foreman via dhcp. But this should not be required when the vSphere customization actually works as vSphere sets a static IP address for the host during cloning.

Can you make sure your host has both a “cloud-init” template and a “User data template” associated?

And your Image (navigate to it via Compute Resources) has the user-data option checked?

1 Like

It does have both userdata and cloud-init provisioning templates. The problem always seems to be the VM comes up as DHCP rather than static IP. From the sound of it, it’s supposed to be the latter case. However, I can’t seem to identify why it isn’t behaving that way.

Cloud-init:

#cloud-config
hostname: <%= @host.name %>
fqdn: <%= @host %>
manage_etc_hosts: true
users: {}
runcmd:
- |
<%= indent(2) { snippet('puppet_setup customized', :variables => { :full_puppet_run => true }) } %>

phone_home:
  url: <%= foreman_url('built') %>
  post: []
  tries: 10

UserData:

# Template for VMWare customization via open-vm-tools
identity:
  LinuxPrep:
    domain: <%= @host.domain %>
    hostName: <%= @host.shortname %>
    hwClockUTC: true
    timeZone: America/Los_Angeles
  
globalIPSettings:
  dnsSuffixList: [<%= @host.domain %>]
  <%- @host.interfaces.each do |interface| -%>
  <%- next unless interface.subnet -%>
  dnsServerList: [<%= interface.subnet.dns_primary %>, <%= interface.subnet.dns_secondary %>]
  <%- end -%>

nicSettingMap:
<%- @host.interfaces.each do |interface| -%>
<%- next unless interface.subnet -%>
  - adapter:
      dnsDomain: <%= interface.domain %>
      dnsServerList: [<%= interface.subnet.dns_primary %>, <%= interface.subnet.dns_secondary %>]
      gateway: [<%= interface.subnet.gateway %>]
      ip: <%= interface.ip %>
      subnetMask: <%= interface.subnet.mask %>
<%- end -%>

VMware Image Template

NIC Configuration

Just doing more investigation into VMware custom spec, it appears that the customization is working as expected, however, cloud-init fails to obtain the metadata from Foreman and then overwrites the NIC configuration to use DHCP. So I am trying to understand what the requirement for Foreman is to serve cloud-init.

My Foreman instance was installed with a command like this to serve HTTPS.

foreman-installer --foreman-server-ssl-key=/etc/pki/tls/example/_.example.com.key --puppet-server-foreman=true --foreman-server-ssl-cert=/etc/pki/tls/example/_.example.com.crt --foreman-server-ssl-chain=/etc/pki/tls/example/cachain.crt --foreman-server-ssl-certs-dir=/etc/pki/tls/example --foreman-websockets-encrypt=true --foreman-websockets-ssl-key=/etc/pki/tls/example/_.example.com.key --foreman-websockets-ssl-cert=/etc/pki/tls/example/_.example.com.crt --puppet-server-foreman=true --puppet-server-foreman-ssl-ca=/etc/pki/tls/example/cachain.crt --foreman-proxy-foreman-ssl-ca=/etc/pki/tls/example/cachain.crt --foreman-foreman-url=https://foreman.example.com

It seems like cloud-init does not like or work with HTTPS or that because of the way my Foreman is installed, it is unable to reply with the clout-init payload?

Interesting, can you run curl -D - https://foreman.example.com/userdata/meta-data?

I was able to get it working by modifying the default Cloud-init cloud.cfg and disabling network configuration. It seems like this is unnecessary since the VMware custom spec via tools works as expected. I was able to validate that cloud-init was definitely overwriting the network configuration on clone and boot. This appears to be default behavior if it does not receive any network configuration without disabling it in config file.

network:
  config: disabled

I also noticed that the provisioning templates bundled in 1.19 also has UserData open-vm-tools which works perfectly. However, the CloudInit default doesn’t seem to work for installing and configuring puppet-agent (puppet5) to connect to foreman as the puppetmaster. Are there any documentation on how I can get this part working?