<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:07:16 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 append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Akraino JIRA</title>
    <link>https://jira.akraino.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.5</version>
        <build-number>940005</build-number>
        <build-date>11-04-2023</build-date>
    </build-info>


<item>
            <title>[VAL-93] Docker command fails in blucon.sh</title>
                <link>https://jira.akraino.org/browse/VAL-93</link>
                <project id="10308" key="VAL">Validation</project>
                    <description>&lt;p&gt;An attempt to run a test via blucon.sh fails due to docker executable is not found&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;[cloudadmin@controller-1 validation]$ bash ./bluval/blucon.sh -l os rec
AKRAINO_HOME not available. Setting...
AKRAINO_HOME=/home/cloudadmin/juha
Building docker image
Sending build context to Docker daemon 40.96kB
Step 1/6 : FROM python:3.6-alpine3.9
 ---&amp;gt; d6f5a1298164
Step 2/6 : RUN apk --no-cache add --update gcc git libc-dev libffi libffi-dev make openssl-dev
 ---&amp;gt; Using cache
 ---&amp;gt; 11848faf90db
Step 3/6 : RUN git clone https:&lt;span class=&quot;code-comment&quot;&gt;//gerrit.akraino.org/r/validation /opt/akraino/validation
&lt;/span&gt; ---&amp;gt; Using cache
 ---&amp;gt; 55304eb30ca4
Step 4/6 : RUN pip3 install -r /opt/akraino/validation/bluval/requirements.txt
 ---&amp;gt; Using cache
 ---&amp;gt; 14f1449416f2
Step 5/6 : WORKDIR /opt/akraino/validation
 ---&amp;gt; Using cache
 ---&amp;gt; 9eaf0e8c555c
Step 6/6 : ENTRYPOINT [&lt;span class=&quot;code-quote&quot;&gt;&quot;python3&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;bluval/blucon.py&quot;&lt;/span&gt;]
 ---&amp;gt; Using cache
 ---&amp;gt; ea7d60b3c94c
Successfully built ea7d60b3c94c
Successfully tagged akraino/validation:blucon-master
+ docker run --rm -v /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock:/&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock -v /usr/bin/docker:/usr/bin/docker -v /home/cloudadmin/juha/results:/opt/akraino/results -v /home/cloudadmin/juha/validation:/opt/akraino/validation akraino/validation:blucon-master -l os rec
/bin/sh: docker: not found
Invoking [&lt;span class=&quot;code-quote&quot;&gt;&quot;docker run --rm -v /home/cloudadmin/juha/validation/tests/variables.yaml:/opt/akraino/validation/tests/variables.yaml -v /home/cloudadmin/juha/validation/bluval:/opt/akraino/validation/bluval -v /home/cloudadmin/juha/results:/opt/akraino/results -v /home/cloudadmin/.ssh:/root/.ssh akraino/validation:os-latest /bin/sh -c &lt;span class=&quot;code-quote&quot;&gt;&apos;cd /opt/akraino/validation &amp;amp;&amp;amp; python bluval/bluval.py -l os rec&apos;&lt;/span&gt;&quot;&lt;/span&gt;]
[cloudadmin@controller-1 validation]$
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The binary is there even reported as missing&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;[cloudadmin@controller-1 juha]$ docker run -ti -v /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock:/&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock -v /usr/bin/docker:/usr/bin/docker -v /home/cloudadmin/juha/results:/opt/akraino/results -v /home/cloudadmin/juha/validation:/opt/akraino/validation --entrypoint &lt;span class=&quot;code-quote&quot;&gt;&quot;/bin/sh&quot;&lt;/span&gt; akraino/validation:blucon-local
/opt/akraino/validation # docker --version
/bin/sh: docker: not found
/opt/akraino/validation # which docker
/usr/bin/docker
/opt/akraino/validation # ls -l /usr/bin/docker
-rwxr-xr-x 1 root root 88960560 Oct 8 00:59 /usr/bin/docker
/opt/akraino/validation # apk add strace
fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
&lt;/span&gt;fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
&lt;/span&gt;(1/1) Installing strace (4.24-r0)
Executing busybox-1.29.3-r10.trigger
OK: 157 MiB in 57 packages
/opt/akraino/validation # strace docker
execve(&lt;span class=&quot;code-quote&quot;&gt;&quot;/usr/bin/docker&quot;&lt;/span&gt;, [&lt;span class=&quot;code-quote&quot;&gt;&quot;docker&quot;&lt;/span&gt;], 0x7ffede50eab0 &lt;span class=&quot;code-comment&quot;&gt;/* 12 vars */&lt;/span&gt;) = -1 ENOENT (No such file or directory)
writev(2, [{iov_base=&lt;span class=&quot;code-quote&quot;&gt;&quot;strace: exec: No such file or di&quot;&lt;/span&gt;..., iov_len=40}, {iov_base=NULL, iov_len=0}], 2strace: exec: No such file or directory
) = 40
getpid() = 14
exit_group(1) = ?
+++ exited with 1 +++
/opt/akraino/validation #
/opt/akraino/validation # apk add file
fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
&lt;/span&gt;fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
&lt;/span&gt;(1/2) Installing libmagic (5.36-r1)
(2/2) Installing file (5.36-r1)
Executing busybox-1.29.3-r10.trigger
OK: 161 MiB in 58 packages
/opt/akraino/validation # file /usr/bin/docker 
/usr/bin/docker: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; GNU/Linux 2.6.32, Go BuildID=BvxpKLIksLa4rJ-2o4is/xfihYlupZ-rXT6bnzJZn/iVlELuoX3kMBzLCeIYHQ/TAhPdOSUFAroknYT0r3i, BuildID[sha1]=1555a9dd23403d88b057d4467816f02849d59681, not stripped&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Maybe this is due to fact that the bind mounted docker binary is dynamically linked. The command works when docker is installed in container&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;[cloudadmin@controller-1 juha]$ docker run -ti -v /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock:/&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/run/docker.sock -v /home/cloudadmin/juha/results:/opt/akraino/results -v /home/cloudadmin/juha/validation:/opt/akraino/validation --entrypoint &lt;span class=&quot;code-quote&quot;&gt;&quot;/bin/sh&quot;&lt;/span&gt; akraino/validation:blucon-local
/opt/akraino/validation # docker
/bin/sh: docker: not found
/opt/akraino/validation # apk add docker
fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
&lt;/span&gt;fetch http:&lt;span class=&quot;code-comment&quot;&gt;//dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
&lt;/span&gt;(1/10) Installing libseccomp (2.3.3-r1)
(2/10) Installing runc (1.0.0_rc8-r0)
(3/10) Installing containerd (1.2.7-r0)
(4/10) Installing libmnl (1.0.4-r0)
(5/10) Installing jansson (2.11-r0)
(6/10) Installing libnftnl-libs (1.1.1-r0)
(7/10) Installing iptables (1.6.2-r1)
(8/10) Installing tini-&lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; (0.18.0-r0)
(9/10) Installing device-mapper-libs (2.02.182-r0)
(10/10) Installing docker (18.09.8-r0)
Executing docker-18.09.8-r0.pre-install
Executing busybox-1.29.3-r10.trigger
OK: 410 MiB in 66 packages
/opt/akraino/validation # docker --version
Docker version 18.09.8-ce, build 0dd43dd87fd530113bf44c9bba9ad8b20ce4637f
/opt/akraino/validation # apk add file
(1/2) Installing libmagic (5.36-r1)
(2/2) Installing file (5.36-r1)
Executing busybox-1.29.3-r10.trigger
OK: 415 MiB in 68 packages
/opt/akraino/validation # file /usr/bin/docker
/usr/bin/docker: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-x86_64.so.1, Go BuildID=mLIj9EPTIQSMBpASeb8V/zKyFT8LPh3WB1psMXkVj/8F7voi3AHUkhaPKv62h6/T_NZUL5vGDhKtdwDthjf, stripped&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href=&quot;https://jira.akraino.org/secure/ViewProfile.jspa?name=ns156u&quot; class=&quot;user-hover&quot; rel=&quot;ns156u&quot;&gt;ns156u&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.akraino.org/secure/ViewProfile.jspa?name=cristinapauna&quot; class=&quot;user-hover&quot; rel=&quot;cristinapauna&quot;&gt;cristinapauna&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.akraino.org/secure/ViewProfile.jspa?name=alex.antone&quot; class=&quot;user-hover&quot; rel=&quot;alex.antone&quot;&gt;alex.antone&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="11073">VAL-93</key>
            <summary>Docker command fails in blucon.sh</summary>
                <type id="10004" iconUrl="https://jira.akraino.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.akraino.org/images/icons/priorities/medium.svg">Medium</priority>
                        <status id="10001" iconUrl="https://jira.akraino.org/" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="alex.antone">Alex Antone</assignee>
                                    <reporter username="jukosone">Juha Kosonen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Dec 2019 11:46:36 +0000</created>
                <updated>Fri, 20 Dec 2019 10:36:00 +0000</updated>
                            <resolved>Fri, 20 Dec 2019 10:36:00 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                    <progress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </progress>
                                    <aggregateprogress percentage="100">
                                    <originalProgress>
                                                    <row percentage="0" backgroundColor="#89afd7"/>
                                                    <row percentage="100" backgroundColor="transparent"/>
                                            </originalProgress>
                                                    <currentProgress>
                                                    <row percentage="100" backgroundColor="#51a825"/>
                                                    <row percentage="0" backgroundColor="#ec8e00"/>
                                            </currentProgress>
                            </aggregateprogress>
                                            <timeestimate seconds="0">0 minutes</timeestimate>
                            <timespent seconds="3600">1 hour</timespent>
                                <comments>
                            <comment id="10989" author="alex.antone" created="Fri, 20 Dec 2019 09:34:59 +0000"  >&lt;p&gt;Fixed and merged:&lt;br/&gt;
&lt;a href=&quot;https://gerrit.akraino.org/r/c/validation/+/2168&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gerrit.akraino.org/r/c/validation/+/2168&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="10985" author="alex.antone" created="Thu, 19 Dec 2019 15:29:13 +0000"  >&lt;p&gt;The problem was not about the docker binary not existing, but instead libpthread, one of the shared libs was not  present.&lt;/p&gt;

&lt;p&gt;/opt/akraino/validation # ldd /usr/bin/docker &lt;br/&gt;
	/lib/ld-linux-aarch64.so.1 (0xffff98f20000)&lt;br/&gt;
	libpthread.so.0 =&amp;gt; /lib/ld-linux-aarch64.so.1 (0xffff98f20000)&lt;br/&gt;
	libdl.so.2 =&amp;gt; /lib/ld-linux-aarch64.so.1 (0xffff98f20000)&lt;br/&gt;
	libc.so.6 =&amp;gt; /lib/ld-linux-aarch64.so.1 (0xffff98f20000)&lt;/p&gt;

&lt;p&gt;/opt/akraino/validation # find /usr/lib | grep libpthread&lt;br/&gt;
/usr/lib/libpthread.a&lt;/p&gt;

&lt;p&gt;libpthread.so.0 is available in the libc6-compat package&lt;/p&gt;</comment>
                            <comment id="10984" author="cristinapauna" created="Thu, 19 Dec 2019 13:13:40 +0000"  >&lt;p&gt;We are aware of the issue, will try to get a fix for it today.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10105" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i002zg:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>