Bug 717884

Summary: cobbler xml-rpc is not reachable from Satellite in an IPv6 only environment
Product: Red Hat Satellite 5 Reporter: Milan Zázrivec <mzazrivec>
Component: ProvisioningAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 541CC: cperry, jhutar, mkorbel, mmraka, pstudeni
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cobbler-2.0.7-15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-12 09:58:49 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:    
Bug Blocks: 819024, 819030    
Attachments:
Description Flags
patch
none
updated patch
none
next evolution of cobbler ipv6 patch
none
next evolution of cobbler ipv6 patch
none
Next patch evolution (working w/ Satellite's cobbler-2.0.7)
none
Next patch evolution (working w/ Satellite's cobbler-2.0.7)
none
Next patch evolution (working w/ Satellite's cobbler-2.0.7)
none
Next patch evolution (working w/ Satellite's cobbler-2.0.7) none

Description Milan Zázrivec 2011-06-30 10:12:37 UTC
Created attachment 510626 [details]
patch

Description of problem:
* Satellite 5.4.1 installation in an IPv6 only environment
* Apache configuration, cobbler_wsgi.conf:

    ProxyPass /cobbler_api http://localhost:25151/
    ProxyPassReverse /cobbler_api http://localhost:25151/

* In an IPv6 only environment, Apache resolves "localhost" as ::1
* Cobbler listens on 127.0.0.1 only

As a result of the above, Apache won't be able to reach cobbler and
proxy the requests coming from the web application and / or taskomatic.

Version-Release number of selected component (if applicable):
cobbler-2.0.7-11

How reproducible:
Always

Steps to Reproduce:
1. Satellite 5.4.1 in an IPv6 only environment
2. Check /var/log/rhn/rhn_taskomatic_daemon.log
  
Actual results:
Apache is unable to reach Cobbler, errors like:

ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask - RuntimeExceptioneError trying to sync to cobbler: XmlRpcException calling cobbler.
java.lang.RuntimeException: XmlRpcException calling cobbler.
      at com.redhat.rhn.manager.kickstart.cobbler.CobblerXMLRPCHelper.invokeMethod(CobblerXMLRPCHelper.java:72)
      at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:70)
      at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:80)
      at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:168)
      at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
      at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)

Expected results:
Apache is able to reach Cobbler's XML-RPC

Additional info:
N/A

Comment 1 Milan Zázrivec 2011-06-30 12:59:31 UTC
Created attachment 510662 [details]
updated patch

Comment 2 Milan Zázrivec 2011-11-03 17:10:20 UTC
Created attachment 531611 [details]
next evolution of cobbler ipv6 patch

Comment 3 Milan Zázrivec 2011-11-03 17:13:04 UTC
Created attachment 531612 [details]
next evolution of cobbler ipv6 patch

Comment 4 Milan Zázrivec 2011-11-11 16:00:28 UTC
Created attachment 533102 [details]
Next patch evolution (working w/ Satellite's cobbler-2.0.7)

Comment 5 Milan Zázrivec 2012-01-23 17:52:36 UTC
Created attachment 557017 [details]
Next patch evolution (working w/ Satellite's cobbler-2.0.7)

Comment 6 Milan Zázrivec 2012-01-26 11:12:20 UTC
Created attachment 557639 [details]
Next patch evolution (working w/ Satellite's cobbler-2.0.7)

Comment 7 Milan Zázrivec 2012-01-26 11:31:02 UTC
Created attachment 557646 [details]
Next patch evolution (working w/ Satellite's cobbler-2.0.7)