<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Volume Attributes Sometimes Initialized And Sometimes Not in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Volume-Attributes-Sometimes-Initialized-And-Sometimes-Not/m-p/152250#M2974</link>
    <description>&lt;P&gt;Hello, I was told by Netapp support that this was the place for my question. I have an issue with some of my read-only volumes sometimes not having space attributes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;for cluster in cluster_list:&lt;BR /&gt;&amp;nbsp; server = netapp.netapp_login(cluster)&lt;BR /&gt;&amp;nbsp; request = server.invoke('aggr-get-iter', 'max-records', 10000).child_get('attributes-list')&lt;BR /&gt;&amp;nbsp; if request is None:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print "No aggregate attributes were found for cluster:", cluster&lt;BR /&gt;&amp;nbsp; &amp;nbsp; continue&lt;BR /&gt;&amp;nbsp; request = request.children_get()&lt;BR /&gt;&amp;nbsp; for a in request:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; aggr_name = a.child_get_string('aggregate-name')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; space_attrs = a.child_get('aggr-space-attributes')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if space_attrs is None:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print "No space attributes were found for:", aggr_name, cluster&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; continue&lt;BR /&gt;&amp;nbsp; &amp;nbsp; size = space_attrs.child_get_string('size-total')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; used = space_attrs.child_get_string('size-used')&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error messages look like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No space attributes for: edadisk002_ro_6a torcfs01 No space attributes for: edagroup_ro_5b torcfs01 No space attributes for: edalicense_ro_5b torcfs01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And they aren't consistent. This script runs every five minutes but I'll get this notification for different volume(s) each time and only a couple times a day (or none at all). Any idea why this could be happening?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 12:08:57 GMT</pubDate>
    <dc:creator>alisahaw</dc:creator>
    <dc:date>2025-06-04T12:08:57Z</dc:date>
    <item>
      <title>Volume Attributes Sometimes Initialized And Sometimes Not</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Volume-Attributes-Sometimes-Initialized-And-Sometimes-Not/m-p/152250#M2974</link>
      <description>&lt;P&gt;Hello, I was told by Netapp support that this was the place for my question. I have an issue with some of my read-only volumes sometimes not having space attributes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;for cluster in cluster_list:&lt;BR /&gt;&amp;nbsp; server = netapp.netapp_login(cluster)&lt;BR /&gt;&amp;nbsp; request = server.invoke('aggr-get-iter', 'max-records', 10000).child_get('attributes-list')&lt;BR /&gt;&amp;nbsp; if request is None:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; print "No aggregate attributes were found for cluster:", cluster&lt;BR /&gt;&amp;nbsp; &amp;nbsp; continue&lt;BR /&gt;&amp;nbsp; request = request.children_get()&lt;BR /&gt;&amp;nbsp; for a in request:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; aggr_name = a.child_get_string('aggregate-name')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; space_attrs = a.child_get('aggr-space-attributes')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if space_attrs is None:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; print "No space attributes were found for:", aggr_name, cluster&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; continue&lt;BR /&gt;&amp;nbsp; &amp;nbsp; size = space_attrs.child_get_string('size-total')&lt;BR /&gt;&amp;nbsp; &amp;nbsp; used = space_attrs.child_get_string('size-used')&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error messages look like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No space attributes for: edadisk002_ro_6a torcfs01 No space attributes for: edagroup_ro_5b torcfs01 No space attributes for: edalicense_ro_5b torcfs01&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And they aren't consistent. This script runs every five minutes but I'll get this notification for different volume(s) each time and only a couple times a day (or none at all). Any idea why this could be happening?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 12:08:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Volume-Attributes-Sometimes-Initialized-And-Sometimes-Not/m-p/152250#M2974</guid>
      <dc:creator>alisahaw</dc:creator>
      <dc:date>2025-06-04T12:08:57Z</dc:date>
    </item>
  </channel>
</rss>

