<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:01:23 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>[ICN-611] &apos;make kud_bm_deploy_mini&apos; fails with secrets not found</title>
                <link>https://jira.akraino.org/browse/ICN-611</link>
                <project id="10400" key="ICN">Integrated Cloud Native NFV</project>
                    <description>&lt;p&gt;After a failed deployment of Akraino ICN, I see the following error coming up when running the &apos;make kud_bm_deploy_mini&apos; step:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;...&lt;br/&gt;
Apply Multus Daemonset ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1.16s&lt;br/&gt;
Run the test cases if testing_enabled is set to true.&lt;br/&gt;
Add-ons deployment complete...&lt;br/&gt;
Edit cancelled, no changes made.&lt;br/&gt;
service/kubernetes-dashboard edited&lt;br/&gt;
~/icn/deploy/kud&lt;br/&gt;
Error from server (NotFound): secrets &quot;default-token-g4fx7&quot; not found&lt;br/&gt;
Makefile:69: recipe for target &apos;kud_bm_deploy_mini&apos; failed&lt;br/&gt;
make: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;kud_bm_deploy_mini&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This is happening in the &apos;verifier&apos; function of the &apos;deploy/kud/kud_bm_launch.sh&apos; that is called by that Makefile target.&lt;/p&gt;

&lt;p&gt;Looking up the&apos;serviceaccount&apos;, I see&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;$ sudo kubectl get serviceaccount default -o json&lt;br/&gt;
{&lt;br/&gt;
 &quot;apiVersion&quot;: &quot;v1&quot;,&lt;br/&gt;
 &quot;kind&quot;: &quot;ServiceAccount&quot;,&lt;br/&gt;
 &quot;metadata&quot;: &lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { &amp;quot;creationTimestamp&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&lt;br/&gt;
 &quot;secrets&quot;: [&lt;br/&gt;
 &lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { &amp;quot;name&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&lt;br/&gt;
 &lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { &amp;quot;name&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&lt;/p&gt;
 &lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: { &amp;quot;name&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt; ]&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;There are three tokens listed in there. &lt;b&gt;BUT&lt;/b&gt;, looking up the secrets:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;$ sudo kubectl get secrets &lt;br/&gt;
NAME TYPE DATA AGE&lt;br/&gt;
bpa-operator-token-xgpqw kubernetes.io/service-account-token 3 7d16h&lt;br/&gt;
default-token-j7pfx kubernetes.io/service-account-token 3 28m&lt;br/&gt;
ssh-key-secret Opaque 2 7d16h&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;The default token that&apos;s listed in there is valid but the logic in the &apos;verifier&apos; function only tries to use the first one from the default serviceaccount (i.e. .secrets&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt;.name), whereas the valid token is in third position.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I don not know what is causing these tokens to be added but deleting the extraneous ones so as to keep only the one listed by &apos;kubectl get secrets&apos; will allow &apos;make kud_bm_deploy_mini&apos; to succeed.&lt;/p&gt;

&lt;p&gt;To delete the extra tokens: &apos;sudo kubectl edit serviceaccount default&apos; and remove the lines with the tokens that are not valid.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11904">ICN-611</key>
            <summary>&apos;make kud_bm_deploy_mini&apos; fails with secrets not found</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="10000" iconUrl="https://jira.akraino.org/" description="">To Do</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="r.kuralamudhan">Kuralamudhan Ramakrishnan</assignee>
                                    <reporter username="gvancuts">Geoffroy Van Cutsem</reporter>
                        <labels>
                    </labels>
                <created>Fri, 27 Aug 2021 14:16:48 +0000</created>
                <updated>Fri, 27 Aug 2021 14:16:48 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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|i005lo:</customfieldvalue>

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