<!-- 
RSS generated by JIRA (9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c) at Sat Feb 10 03:04:49 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>Whamcloud Community JIRA</title>
    <link>https://jira.whamcloud.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.4.14</version>
        <build-number>940014</build-number>
        <build-date>05-12-2023</build-date>
    </build-info>


<item>
            <title>[LU-13857] jobstats output can produce invalid yaml</title>
                <link>https://jira.whamcloud.com/browse/LU-13857</link>
                <project id="10000" key="LU">Lustre</project>
                    <description>&lt;p&gt;When calling &lt;tt&gt;lctl get_param obdfilter.&amp;#42;OST*.job_stats&lt;/tt&gt; there may be values that fill all left padded space. For example:&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;
- job_id:          56796601
  snapshot_time:   1596652184
  read_bytes:      { samples:       62829, unit: bytes, min:    4096, max:16777216, sum:    141697982464 }
  write_bytes:     { samples:        2146, unit: bytes, min:     955, max: 1154584, sum:       320832894 }
  getattr:         { samples:           0, unit:  reqs }
  setattr:         { samples:           0, unit:  reqs }
  punch:           { samples:           1, unit:  reqs }
  sync:            { samples:           0, unit:  reqs }
  destroy:         { samples:           0, unit:  reqs }
  create:          { samples:           0, unit:  reqs }
  statfs:          { samples:           0, unit:  reqs }
  get_info:        { samples:           0, unit:  reqs }
  set_info:        { samples:           0, unit:  reqs }
  quotactl:        { samples:           0, unit:  reqs } &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The &lt;tt&gt;max&lt;/tt&gt; value (max:16777216) has no space between the key and value and is now considered a scalar instead of a key value mapping.&lt;/p&gt;</description>
                <environment></environment>
        <key id="60279">LU-13857</key>
            <summary>jobstats output can produce invalid yaml</summary>
                <type id="1" iconUrl="https://jira.whamcloud.com/secure/viewavatar?size=xsmall&amp;avatarId=11303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.whamcloud.com/images/icons/priorities/minor.svg">Minor</priority>
                        <status id="5" iconUrl="https://jira.whamcloud.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="1">Fixed</resolution>
                                        <assignee username="flei">Feng Lei </assignee>
                                    <reporter username="joe.grund">Joe Grund</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 Aug 2020 22:03:06 +0000</created>
                <updated>Fri, 6 May 2022 05:51:27 +0000</updated>
                            <resolved>Sat, 6 Mar 2021 16:01:03 +0000</resolved>
                                                    <fixVersion>Lustre 2.15.0</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>8</watches>
                                                                            <comments>
                            <comment id="277622" author="pjones" created="Mon, 17 Aug 2020 18:10:14 +0000"  >&lt;p&gt;Emoly&lt;/p&gt;

&lt;p&gt;Could you please investigate?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="277763" author="simmonsja" created="Wed, 19 Aug 2020 19:09:14 +0000"  >&lt;p&gt;What exactly reports this as a incorrect YAML format? I wonder if this is a issue of the indentation since it generates different type of tokens.&#160;&lt;/p&gt;</comment>
                            <comment id="277765" author="joe.grund" created="Wed, 19 Aug 2020 19:16:11 +0000"  >&lt;p&gt;According to the spec&#160;&lt;tt&gt;max:16777216&lt;/tt&gt; is a scalar value and not a key / value pair.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://yaml.org/spec/1.2/spec.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://yaml.org/spec/1.2/spec.html&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Normally, YAML insists the &#8220;:&#8221; mapping value indicator be separated from the value by white space. A benefit of this restriction is that the &#8220;:&#8221; character can be used inside plain scalars, as long as it is not followed by white space. This allows for unquoted URLs and timestamps. It is also a potential source for confusion as &#8220;a:1&#8221; is a plain scalar and not a key: value pair.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="277766" author="simmonsja" created="Wed, 19 Aug 2020 19:39:12 +0000"  >&lt;p&gt;Ah it the lack of spacing. Another thing I noticed is the indentation in job_stats which produces a different sequence of YAML tokens.&lt;/p&gt;

&lt;p&gt;job_stats:&lt;/p&gt;

&lt;p&gt;&#160; &#160;- job_id:&lt;/p&gt;

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

&lt;p&gt;STREAM START&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Block mapping&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;(Key token)&lt;/p&gt;

&lt;p&gt;scalar job_stats &lt;/p&gt;

&lt;p&gt;(Value token)&lt;/p&gt;

&lt;p&gt;&amp;lt;b&amp;gt;Start Block (Sequence)&amp;lt;/b&amp;gt;&lt;/p&gt;

&lt;p&gt;&#160;&amp;lt;b&amp;gt;Start Block (Entry)&amp;lt;/b&amp;gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;span class=&quot;error&quot;&gt;&amp;#91;Block mapping&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;(Key token)&lt;/p&gt;

&lt;p&gt;scalar job_id &lt;/p&gt;

&lt;p&gt;(Value token)&lt;/p&gt;

&lt;p&gt;scalar 56744 &lt;/p&gt;

&lt;p&gt;While -----&lt;/p&gt;

&lt;p&gt;job_stats:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;job_id: 1231&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;will drop the block sequence and well as the block end tokens.&lt;/p&gt;

&lt;p&gt;produces&#160;&lt;/p&gt;</comment>
                            <comment id="292540" author="pjones" created="Sat, 20 Feb 2021 15:44:23 +0000"  >&lt;p&gt;Feng Lei&lt;/p&gt;

&lt;p&gt;Could you please investigate this issue?&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                            <comment id="292567" author="flei" created="Mon, 22 Feb 2021 05:46:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://review.whamcloud.com/#/c/41709/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/#/c/41709/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="294152" author="gerrit" created="Sat, 6 Mar 2021 02:35:48 +0000"  >&lt;p&gt;Oleg Drokin (green@whamcloud.com) merged in patch &lt;a href=&quot;https://review.whamcloud.com/41709/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.whamcloud.com/41709/&lt;/a&gt;&lt;br/&gt;
Subject: &lt;a href=&quot;https://jira.whamcloud.com/browse/LU-13857&quot; title=&quot;jobstats output can produce invalid yaml&quot; class=&quot;issue-link&quot; data-issue-key=&quot;LU-13857&quot;&gt;&lt;del&gt;LU-13857&lt;/del&gt;&lt;/a&gt; obdclass: Add white space to output valid YAML.&lt;br/&gt;
Project: fs/lustre-release&lt;br/&gt;
Branch: master&lt;br/&gt;
Current Patch Set: &lt;br/&gt;
Commit: 151f5322d30ec52a1b99c852e5adbdbbe6fc7e08&lt;/p&gt;</comment>
                            <comment id="294168" author="pjones" created="Sat, 6 Mar 2021 16:01:03 +0000"  >&lt;p&gt;Landed for 2.15&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="70159">LU-15826</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                            <customfield id="customfield_10890" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10390" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0172v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10090" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10060" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Severity</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[3]]></customfieldvalue>

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