<div dir="ltr"><div class="gmail_extra">I've got two guesses why it does not work properly:</div><div class="gmail_extra"><br></div><div class="gmail_extra">1. Savanna does not consume config file at all and the defaults (by coincidence) do not work for swift only.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">2. you invoke swift_helper.get_swift_configs() at the top level of some module like that:</div><div class="gmail_extra">      SWIFT_CONFIG = swift_helper.get_swift_configs() </div>
<div class="gmail_extra">The oslo.config is not initialized at module load time (that is true for any module), so that is why you see the defaults instead of the supplied values.<br></div><div class="gmail_extra"><br></div>
<div class="gmail_extra">Still, if you share the code, some other ideas might pop-up.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Dmitry</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<br><div class="gmail_quote">2013/11/10 Jon Maron <span dir="ltr"><<a href="mailto:jmaron@hortonworks.com" target="_blank">jmaron@hortonworks.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="word-wrap:break-word">I'm not sure that would help - all my code changes are runtime changes associated with EDP actions (i.e. the cluster and its configuration are already set).  I was looking for help in trying to ascertain why the swift_helper would not return the savanna.conf value at provisioning time.<span class=""><font color="#888888"><div>
<br></div><div>-- Jon</div></font></span><div><div class="h5"><div><br><div><div>On Nov 10, 2013, at 3:53 AM, Dmitry Mescheryakov <<a href="mailto:dmescheryakov@mirantis.com" target="_blank">dmescheryakov@mirantis.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr">Hey Jon,<div><br></div><div>Can you post your code as a work in progress review? Maybe we can perceive from the code what is wrong.</div><div><br></div><div>Thanks,</div><div><br>
</div><div>Dmitry</div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/10 Jon Maron <span dir="ltr"><<a href="mailto:jmaron@hortonworks.com" target="_blank">jmaron@hortonworks.com</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

Hi,<br>
<br>
  I am debugging an issue with the swift integration - I see os_auth_url with a value of 127.0.0.1, indicating that at the time the swift helper is invoked the default value for auth host is being leveraged rather than the value in the savanna.conf file.  Any ideas how that may happen?<br>


<br>
More detail:<br>
<br>
  We are invoking the swift_helper to configure the swift associated properties and ending up with the following in core-site.xml:<br>
<br>
  </property><br>
    <property><br>
    <name>fs.swift.service.savanna.auth.url</name><br>
    <value><a href="http://127.0.0.1:35357/v2.0/tokens/" target="_blank">http://127.0.0.1:35357/v2.0/tokens/</a></value><br>
  </property><br>
<br>
  Which, as expected, yields the following when running on a tasktracker VM:<br>
<br>
org.apache.pig.impl.plan.VisitorException: ERROR 6000:<br>
<file test.pig, line 7, column 0> Output Location Validation Failed for: '<a>swift://jmaron.savanna/output</a> More info to follow:<br>
POST <a href="http://127.0.0.1:35357/v2.0/tokens/" target="_blank">http://127.0.0.1:35357/v2.0/tokens/</a> failed on exception: java.net.ConnectException: Connection refused; For more details see:  <a href="http://wiki.apache.org/hadoop/ConnectionRefused" target="_blank">http://wiki.apache.org/hadoop/ConnectionRefused</a><br>


<br>
-- Jon<br>
--<br>
CONFIDENTIALITY NOTICE<br>
NOTICE: This message is intended for the use of the individual or entity to<br>
which it is addressed and may contain information that is confidential,<br>
privileged and exempt from disclosure under applicable law. If the reader<br>
of this message is not the intended recipient, you are hereby notified that<br>
any printing, copying, dissemination, distribution, disclosure or<br>
forwarding of this communication is strictly prohibited. If you have<br>
received this communication in error, please contact the sender immediately<br>
and delete it from your system. Thank You.<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div>
_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br></div></div></div></div><div class=""><div class="h5">
<br>
<span style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px">CONFIDENTIALITY NOTICE</span><br style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px"><span style="color:rgb(128,128,128);font-family:Arial,sans-serif;font-size:10px">NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.</span></div>
</div><br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>