<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:17:26 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-1995] use Okapi docker container instead of the deb for ref envs</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-1995</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Switch from the deb to the Docker container for snapshot and testing.&lt;/p&gt;</description>
                <environment></environment>
        <key id="81219">FOLIO-1995</key>
            <summary>use Okapi docker container instead of the deb for ref envs</summary>
                <type id="10003" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10318?size=medium">Task</type>
                                            <priority id="10002" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p3.svg">P3</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Won&apos;t Do</resolution>
                                                        <assignee accountid="5cd423bebc70090d6ce241b1">Ian Hardy</assignee>
                                                                <reporter accountid="557058:b8e64633-1f7c-402d-9caf-9959a5ba5d0d">Jakub Skoczen</reporter>
                                    <labels>
                            <label>platform-backlog</label>
                    </labels>
                <created>Thu, 2 May 2019 10:57:02 +0000</created>
                <updated>Wed, 3 Jun 2020 16:39:46 +0000</updated>
                            <resolved>Tue, 25 Jun 2019 13:50:56 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                <comments>
                                                            <comment id="194098" author="5cd423bebc70090d6ce241b1" created="Mon, 3 Jun 2019 01:04:02 +0000"  >&lt;p&gt;folio-snapshot-test.aws.indexdata.com is set up using the okapi docker container running with the host network configuration. Ideally, it should be set up to use the bridge network driver but I&apos;ve run into the following probelm with the bridge network setup:&lt;/p&gt;

&lt;p&gt;During module deployment (posting descriptors to the /_/discovery/module endpoing using the okapi-deployment ansible role) okapi will try to reach the modules at a localhost address which refers to the container running okapi. The first container will get spun up on the host machine successfully, but okpai tries to connect to port 9131 at localhost, and eventually times out.&lt;/p&gt;

&lt;p&gt;Here are the options okapi is running with &lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;exec java -Djava.awt.headless=true -Dstorage=postgres -Dpostgres_host=10.0.2.15 -Dpostgres_port=5432 -Dpostgres_user=okapi -Dpostgres_password=okapi25 -Dpostgres_database=okapi -Dhost=10.0.2.15 -Dport=9130 -Dport_start=9131 -Dport_end=9661 -DdockerUrl=http://10.0.2.15:4243 -Dokapiurl=http://10.0.2.15:9130 -javaagent:/opt/agent-bond/agent-bond.jar=jolokia{{host=0.0.0.0}},jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -cp . -jar /usr/verticles/okapi-core-fat.jar dev
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;An excerpt of the okapi log from this process is attached. At the top of the file, the descriptor is posted, and the failure message with the call to localhost/127.0.0.1 is at the end. &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;/rest/api/3/attachment/content/64196&quot; title=&quot;deploy-excerpt.txt attached to FOLIO-1995&quot; data-attachment-type=&quot;file&quot; data-attachment-name=&quot;deploy-excerpt.txt&quot; data-media-services-type=&quot;file&quot; data-media-services-id=&quot;ff7e7210-ca17-4882-ad9e-0b7451b4191a&quot; rel=&quot;noreferrer&quot;&gt;deploy-excerpt.txt&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;/images/icons/link_attachment_7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;.  &lt;/p&gt;</comment>
                                                            <comment id="194099" author="5cd423bebc70090d6ce241b1" created="Mon, 10 Jun 2019 14:40:53 +0000"  >&lt;p&gt;Still having issues with deployment. After Okapi starts the docker container, it tries to connect to it on localhost:9131 which refers to the Okapi container and not where the module is running.&lt;/p&gt;

&lt;p&gt;There are a few places (&lt;a href=&quot;https://github.com/folio-org/okapi/blob/7086c49ac6ecef88a4a0cc89781a8e7890567ab0/okapi-core/src/main/java/org/folio/okapi/util/TcpPortWaiting.java#L33&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;TcpPortWaiting&lt;/a&gt;, &lt;a href=&quot;https://github.com/folio-org/okapi/blob/7086c49ac6ecef88a4a0cc89781a8e7890567ab0/okapi-core/src/main/java/org/folio/okapi/service/impl/ProcessModuleHandle.java#L74&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;ProcessModuleHandle&lt;/a&gt;) where okapi makes a call to &quot;localhost&quot; during module deployment. As an experiment, I&apos;m able build an okapi container where &quot;localhost&quot; replaced with the default ip of the docker0 bridge network (172.17.0.1) and deployment succeeds. &lt;/p&gt;

&lt;p&gt;I think in order to run okapi as a container and do orchestrate deployment on the reference environments, there would need to be a way to call the address of the node instead of localhost. I might be misunderstanding deployment and there&apos;s a good chance I&apos;m misunderstanding the okapi code so I&apos;d be interested in any comments, &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5f9abc1eb45b2e007453f423&quot; class=&quot;user-hover&quot; rel=&quot;5f9abc1eb45b2e007453f423&quot; data-account-id=&quot;5f9abc1eb45b2e007453f423&quot; accountid=&quot;5f9abc1eb45b2e007453f423&quot; rel=&quot;noreferrer&quot;&gt;John Malconian&lt;/a&gt; or &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5f8314dfbdef80006f6f572d&quot; class=&quot;user-hover&quot; rel=&quot;5f8314dfbdef80006f6f572d&quot; data-account-id=&quot;5f8314dfbdef80006f6f572d&quot; accountid=&quot;5f8314dfbdef80006f6f572d&quot; rel=&quot;noreferrer&quot;&gt;Adam Dickmeiss&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;additional information on setup:&lt;br/&gt;
Okapi running in dev mode w/the following options set:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;-Djava.awt.headless=true -Dstorage=postgres -Dpostgres_host=10.0.2.15 \
-Dpostgres_port=5432 -Dpostgres_user=okapi -Dpostgres_password=okapi25 \
-Dpostgres_database=okapi -Dhost=172.17.0.1 -Dport=9130 -Dport_start=9131 \
-Dport_end=9661 -DdockerUrl=http://172.17.0.1:4243 -Dokapiurl=http://172.17.0.1:9130
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;response from _/discovery/nodes:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;[
    {
        &quot;nodeId&quot;: &quot;172.17.0.1&quot;,
        &quot;url&quot;: &quot;http://172.17.0.1:9130&quot;
    }
]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="81340">FOLIO-2117</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13064">UXPROD-1823</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                                                <inwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="81158">FOLIO-1994</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="81340">FOLIO-2117</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="54165">OKAPI-743</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="13064">UXPROD-1823</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="64196" name="deploy-excerpt.txt" size="16234" author="5cd423bebc70090d6ce241b1" created="Mon, 3 Jun 2019 01:01:03 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10057" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Development Team</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10144"><![CDATA[Core: Platform]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzx6sv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="994">CP: ready for planning</customfieldvalue>
    <customfieldvalue id="1662">CP: sprint 64</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10044" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 3 Jun 2019 01:04:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>