Project

General

Profile

Actions

Bug #21700

open

cloud-init cant handle phone_home for mark instance is built

Added by and pk over 6 years ago.

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

Description

In relation to a old topic i think the phone_home does not work properly for setting a host instance is built automatically at cloud-init.

After a question on the mailing-list at foreman-users how the build token works, i paste following code in my user_data template for cloud-init at foreman-vmware.

<%# Contact Foreman to confirm instance is built -%> 
phone_home: 
  url: <%= foreman_url('built') %> 
  post: [] 
tries: 10

When i review the user_data template after host-creation, i see the built?token-URL, but from the production.log it never arrives the foreman-instance. If i paste the built?token-URL in my browser, the Build status change from "pending installation" to "installed" and this is logged in the production log as expected. If i dont do that, the Build Status change from "pending installation" to "Token Expired" after a while.

Iam using this user_data template for provisioning windows server over foreman-vmware:
https://pastebin.com/gkFpTMpN

ive open a github-issue here: https://github.com/theforeman/foreman_userdata/issues/1

No data to display

Actions

Also available in: Atom PDF