Bug 1107690
Summary: | Cloud-init phone_home raise 500 error because of POST content | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Bryan Kearney <bkearney> |
Component: | Provisioning | Assignee: | Ohad Levy <ohadlevy> |
Status: | CLOSED ERRATA | QA Contact: | jaudet |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.0.3 | CC: | achan, bbuckingham, bkearney, cwelton, jaudet, jhutar, jmontleo, lzap, mmccune, stbenjam, sthirugn |
Target Milestone: | Unspecified | Keywords: | Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | http://projects.theforeman.org/issues/5754 | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
When cloud_init attempts to contact Foreman to complete the phone_home action, it fails with a HTTP 500 error due to incorrect data being transmitted in the POST header. To rectify this error, post settings are now being cleared when attempting to complete the phone_home action.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-01-16 21:07:33 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1119657 | ||
Bug Blocks: |
Description
Bryan Kearney
2014-06-10 12:49:01 UTC
Created from redmine issue http://projects.theforeman.org/issues/5754 Moving to POST since upstream bug http://projects.theforeman.org/issues/5754 has been closed Unable to verify due to other bug: Safemode doesn't allow to access 'indent' on #<Safemode::ScopeObject> https://bugzilla.redhat.com/show_bug.cgi?id=1119657 Tested on Satellite-6.0.4-RHEL-6-20140829.0. But bz1119657 is still a blocker. https://bugzilla.redhat.com/show_bug.cgi?id=1119657 was merged so this can be tested again. temp move to MOD for ET Can I get more information about this issue? Based on the bug description and following discussion, all I know is that it's possible to produce an HTTP 500 by POSTing. But how? Which URLs should be POSTed to? With what parameters? Can a concrete example be given? This bug is vague. I've spent some time watching youtube vids and reading docs, and I've finally figured out the basics of cloud-init and phone_home. It appears that cloud-init is software that initializes just-created virtual machines, and phone_home is a cloud-init module that POSTs data to a URL. For an introduction to cloud-init: https://www.youtube.com/watch?v=-zL3BdbKyGY For an introduction to phone_home: http://cloudinit.readthedocs.org/en/latest/topics/examples.html#call-a-url-when-finished The procedure for verifying this bug is still being figured out. At this time, my buest guess is that the verification procedure goes like this: 1. Use a Foreman server to provision a new host. It is probably easiest to use a tool like libvirt to provision a new virtual machine, as no new hardware is necessary in that case. 2. Make sure that the host executes cloud-init at the end of the provisioning process, and that the phone_home module is configured to POST a non-empty payload to the Foreman server. If the Foreman server can succeed in provisioning the new host, then we're good. If the Foreman server forever lists the new host as being built, then this bug is still in effect. More info on how to test this bug would be appreciated. IMHO this was verified by BZ1119657, which verified the user data templates we ship are working, which include phone_home. But, you wouldn't provision a libvirt machine, you'd use something like OpenStack and an image that comes cloud-init enabled (all the official RHEL images are). Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2015:0054 The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |