cloudinit --from-url / with Foreman Katello

151 views
Skip to first unread message

Torsten Bade

unread,
May 14, 2015, 7:09:44 AM5/14/15
to coreo...@googlegroups.com
Hi,

I integrated the CoreOS Support into my Foreman/Katello server (for provisioning and templating) which works quite fine, so
pxeboot and handing over of the cloud-config (which is okay and working)

So now it comes, I use the the 633.1.0
with cloud-config-url= Foreman provision url (in this case: http://10.10.1.2/unattended/provision?token=dcdca603-4f1a-4928-83ef-14ee39b0a7cb )

while booting he said, he can not fetch the data, when I use autologin and try to do it manually with wget/curl ... I can fetch the data AND ?! I can use

sudo coreos-cloudinit --from-file ... which is working.

When trying manually:

core@tbade-core-test ~ $ sudo coreos-cloudinit --from-url=http://10.10.1.2/unattended/provision?token=dcdca603-4f1a-4928-83ef-14ee39b0a7cb
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
Checking availability of "url"
No datasources available in time

Does anybody have an Idea ? I checked now:

https://github.com/coreos/coreos-cloudinit/blob/master/pkg/http_client.go

But ... I think this is nothing for me :)
I ended up here, does someone have an idea, to point me in the right direction ?

Thanks in advance
Torsten

Brian Harrington

unread,
May 14, 2015, 12:51:37 PM5/14/15
to coreo...@googlegroups.com
Can you send back the headers from the get (aka the output of:

curl -I http://10.10.1.2/unattended/provision?token=dcdca603-4f1a-4928-83ef-14ee39b0a7cb


--Brian 'redbeard' Harrington

Torsten Bade

unread,
May 14, 2015, 6:24:00 PM5/14/15
to coreo...@googlegroups.com

Hi Brian,

thanks for your time, here is the output.

Kind Regards
Torsten
 
--- SNIPP---

curl -I http://10.10.1.2/unattended/provision?token=dcdca603-4f1a-4928-83ef-14ee39b0a7cb
HTTP/1.1 200 OK
Date: Thu, 14 May 2015 22:21:47 GMT
Server: Apache/2.2.15 (CentOS)
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: default-src 'self'; connect-src 'self' ws: wss:; font-src 'self'; frame-src 'self'; img-src 'self' *.gravatar.com data:; media-src 'self'; object-src 'self'; script-src 'unsafe-eval' 'unsafe-inline' 'self'; style-src 'unsafe-inline' 'self';
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-UA-Compatible: IE=Edge,chrome=1
ETag: "eb047cb3fedbbfe02708179fb97e278b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 2e324183513486466489f29676c2d0bb
X-Runtime: 2.523605
X-Rack-Cache: miss
X-Powered-By: Phusion Passenger 4.0.18
Set-Cookie: _session_id=BAh7B0kiD3Nlc3Npb25faWQGOgZFRkkiJTNlNDdkNGYzODkwODRiYjAxZmIzMWVlMWExZTA0OTQ3BjsAVEkiC2xvY2FsZQY7AEZJIgdlbgY7AEY%3D--c65bde3a57d26a339df22f9f1558787952827b44; path=/; HttpOnly
Status: 200 OK
Vary: Accept-Encoding
Connection: close
Content-Type: text/plain; charset=UTF-8

--- SNAPP---
Reply all
Reply to author
Forward
0 new messages