<!-- 
RSS generated by JIRA (9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1) at Sat Feb 10 06:02:44 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>[KNI-19] Apply_workloads after updating blueprint</title>
                <link>https://jira.akraino.org/browse/KNI-19</link>
                <project id="10502" key="KNI">Kubernetes Native Infrastructure</project>
                    <description>&lt;p&gt;Apply_workloads command does not download the newest up to date blueprint once it has been executed once.&lt;/p&gt;</description>
                <environment></environment>
        <key id="11407">KNI-19</key>
            <summary>Apply_workloads after updating blueprint</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="copejon">Jonathan Cope</assignee>
                                    <reporter username="ericano">Ricardo Noriega</reporter>
                        <labels>
                            <label>KNICTL</label>
                    </labels>
                <created>Wed, 8 Jul 2020 15:22:11 +0000</created>
                <updated>Wed, 7 Oct 2020 20:41:20 +0000</updated>
                                                                                <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="11464" author="JIRAUSER11122" created="Wed, 7 Oct 2020 20:11:38 +0000"  >&lt;p&gt;I tried creating 3 distinct workloads at each layer.&#160; This was done by writing ngnix deployments, each unique, under 03_services dir for ./site/, ./profile/, and ./base, and appending them to their respective kustomize.yaml resource lists, and finally pushing them to the remote repo.&#160; Executing apply_workloads showed that only new deployments from base and profile were created, but site was not.&lt;/p&gt;


&lt;p&gt;The issue lies in the way DownloadRepos() and ApplyWorkloads manages relationships between the separate layers (base, profile, site). The process:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Downloads the remote blueprint to ~/.kni/$SITE/blueprint&lt;/li&gt;
	&lt;li&gt;Copies the local (stale) site ~/.kni/$SITE/site =&amp;gt; ~/.kni/$SITE/blueprint/sites/site&lt;/li&gt;
	&lt;li&gt;Walks ~/.kni/$SITE/blueprint/sites/site&#160;to replace git urls with relative paths (separately, this seem erroneous b/c the paths have already been replaced in the stale source, but I don&apos;t know what&apos;s doing it yet)&lt;/li&gt;
	&lt;li&gt;Applies kustomize to ~/.kni/$SITE/blueprint/sites/site (still stale)&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;So the issue is that it downloads the remote files, but executes against a copy of the locally stored, stale site. The relative paths point the stale site to the new versions of the profile and base. Thus any changes in ~/.kni/blueprint/sites/$SITE (the remote version), are ignored.&lt;/p&gt;</comment>
                            <comment id="11463" author="JIRAUSER11122" created="Wed, 7 Oct 2020 15:32:14 +0000"  >&lt;p&gt;I&apos;ve been unable to reproduce the behavior via:&lt;/p&gt;

&lt;p&gt;1. Spin up a management cluster (&lt;a href=&quot;https://github.com/copejon/blueprint-management-hub)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/copejon/blueprint-management-hub)&lt;/a&gt;&lt;br/&gt;
2. Apply workloads&lt;br/&gt;
3. Update blueprint components under&#160;&lt;tt&gt;edge-mgmt-hub.gcp.devcluster.openshift.com/blueprint/base/03_services/...&lt;/tt&gt; and push to above repo&lt;br/&gt;
4. Apply workloads again&lt;br/&gt;
5. Check local ~/.kni copy of blueprints.&#160; In my case, shows the changes made in remote.&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
Is this the process you&apos;ve used to reproduce the behavior? If not, please let me know.&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|i004g4:</customfieldvalue>

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