<?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 WFA 4.2 (on linux) Eating Line Endings in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-4-2-on-linux-Eating-Line-Endings/m-p/141143#M25791</link>
    <description>&lt;P&gt;So we have recently discovered an issue after upgrading from WFA 4.0 to 4.2 where line endings are getting removed.&amp;nbsp; We have noticed this in other areas of WFA 4.2, but this is the best example that&amp;nbsp;demonstrates the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small bit SQL from the reservation for the Netapp supported "cm_storage" -&amp;nbsp; "Resize Volume" .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;...&lt;BR /&gt;IF InfiniteVolumeType = 'rw' THEN
&lt;FONT color="#FF0000"&gt;-- First add this size to the size of the overall infinite volume&lt;/FONT&gt;
    UPDATE
        cm_storage.volume infinite_vol
    JOIN
        cm_storage.vserver vserver
            ON vserver.id = infinite_vol.vserver_id
            AND vserver.name = '${VserverName}'
    JOIN
        cm_storage.cluster cluster
            ON cluster.id = vserver.cluster_id
            AND (
                cluster.name = '${Cluster}'
                OR cluster.primary_address = '${Cluster}'
            )
            AND infinite_vol.is_managed_by_service IS TRUE
            AND infinite_vol.style = 'infinivol'
    SET
        infinite_vol.size_mb = (infinite_vol.size_mb + AggregateSizeUsed );
END IF;&lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 4.0 when you hit "save" on this command you would get a success, as you would expect.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 4.2 you now receive this error...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2018-06-26 at 9.45.34 AM.png" style="width: 604px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/8360i55F93002A593FE26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-06-26 at 9.45.34 AM.png" alt="Screen Shot 2018-06-26 at 9.45.34 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way we fixed this was either remove the single line comment or convert it to a multiline comment...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF InfiniteVolumeType = 'rw' THEN
&lt;FONT color="#FF0000"&gt;/* First add this size to the size of the overall infinite volume */&lt;/FONT&gt;
    UPDATE
        cm_storage.volume infinite_vol
    JOIN
        cm_storage.vserver vserver
            ON vserver.id = infinite_vol.vserver_id
            AND vserver.name = '${VserverName}'
    JOIN
        cm_storage.cluster cluster
            ON cluster.id = vserver.cluster_id
            AND (
                cluster.name = '${Cluster}'
                OR cluster.primary_address = '${Cluster}'
            )
            AND infinite_vol.is_managed_by_service IS TRUE
            AND infinite_vol.style = 'infinivol'
    SET
        infinite_vol.size_mb = (infinite_vol.size_mb + AggregateSizeUsed );
END IF; &lt;/PRE&gt;
&lt;P&gt;Another odd thing is that if you look at the SQL in WFA 4.0 it looks like nicely formatted SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DECLARE InfiniteVolumeName VARCHAR(255); 
DECLARE InfiniteVolumeType VARCHAR(255); 
DECLARE SpaceGuarantee VARCHAR(255); 
DECLARE AggregateId INT; 
DECLARE AggregateSizeUsed LONG; 
DECLARE CurrentVolSize LONG;&lt;/PRE&gt;
&lt;P&gt;Here is how it looks in 4.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DECLARE InfiniteVolumeName VARCHAR(255); DECLARE InfiniteVolumeType VARCHAR(255); DECLARE SpaceGuarantee VARCHAR(255); DECLARE AggregateId INT; DECLARE AggregateSizeUsed LONG; DECLARE CurrentVolSize LONG; &lt;/PRE&gt;
&lt;P&gt;It seems that the "\n" is getting removed and I assume it is happening in WFA and not in the mysql part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our workaround of changing the comments to multiline comments is working, but this is something that needs to be addressed in the next version of WFA (linux)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:34:18 GMT</pubDate>
    <dc:creator>John_Roden</dc:creator>
    <dc:date>2025-06-04T13:34:18Z</dc:date>
    <item>
      <title>WFA 4.2 (on linux) Eating Line Endings</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-4-2-on-linux-Eating-Line-Endings/m-p/141143#M25791</link>
      <description>&lt;P&gt;So we have recently discovered an issue after upgrading from WFA 4.0 to 4.2 where line endings are getting removed.&amp;nbsp; We have noticed this in other areas of WFA 4.2, but this is the best example that&amp;nbsp;demonstrates the issue.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a small bit SQL from the reservation for the Netapp supported "cm_storage" -&amp;nbsp; "Resize Volume" .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;...&lt;BR /&gt;IF InfiniteVolumeType = 'rw' THEN
&lt;FONT color="#FF0000"&gt;-- First add this size to the size of the overall infinite volume&lt;/FONT&gt;
    UPDATE
        cm_storage.volume infinite_vol
    JOIN
        cm_storage.vserver vserver
            ON vserver.id = infinite_vol.vserver_id
            AND vserver.name = '${VserverName}'
    JOIN
        cm_storage.cluster cluster
            ON cluster.id = vserver.cluster_id
            AND (
                cluster.name = '${Cluster}'
                OR cluster.primary_address = '${Cluster}'
            )
            AND infinite_vol.is_managed_by_service IS TRUE
            AND infinite_vol.style = 'infinivol'
    SET
        infinite_vol.size_mb = (infinite_vol.size_mb + AggregateSizeUsed );
END IF;&lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 4.0 when you hit "save" on this command you would get a success, as you would expect.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In 4.2 you now receive this error...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Screen Shot 2018-06-26 at 9.45.34 AM.png" style="width: 604px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/8360i55F93002A593FE26/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-06-26 at 9.45.34 AM.png" alt="Screen Shot 2018-06-26 at 9.45.34 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The way we fixed this was either remove the single line comment or convert it to a multiline comment...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;IF InfiniteVolumeType = 'rw' THEN
&lt;FONT color="#FF0000"&gt;/* First add this size to the size of the overall infinite volume */&lt;/FONT&gt;
    UPDATE
        cm_storage.volume infinite_vol
    JOIN
        cm_storage.vserver vserver
            ON vserver.id = infinite_vol.vserver_id
            AND vserver.name = '${VserverName}'
    JOIN
        cm_storage.cluster cluster
            ON cluster.id = vserver.cluster_id
            AND (
                cluster.name = '${Cluster}'
                OR cluster.primary_address = '${Cluster}'
            )
            AND infinite_vol.is_managed_by_service IS TRUE
            AND infinite_vol.style = 'infinivol'
    SET
        infinite_vol.size_mb = (infinite_vol.size_mb + AggregateSizeUsed );
END IF; &lt;/PRE&gt;
&lt;P&gt;Another odd thing is that if you look at the SQL in WFA 4.0 it looks like nicely formatted SQL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DECLARE InfiniteVolumeName VARCHAR(255); 
DECLARE InfiniteVolumeType VARCHAR(255); 
DECLARE SpaceGuarantee VARCHAR(255); 
DECLARE AggregateId INT; 
DECLARE AggregateSizeUsed LONG; 
DECLARE CurrentVolSize LONG;&lt;/PRE&gt;
&lt;P&gt;Here is how it looks in 4.2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;DECLARE InfiniteVolumeName VARCHAR(255); DECLARE InfiniteVolumeType VARCHAR(255); DECLARE SpaceGuarantee VARCHAR(255); DECLARE AggregateId INT; DECLARE AggregateSizeUsed LONG; DECLARE CurrentVolSize LONG; &lt;/PRE&gt;
&lt;P&gt;It seems that the "\n" is getting removed and I assume it is happening in WFA and not in the mysql part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our workaround of changing the comments to multiline comments is working, but this is something that needs to be addressed in the next version of WFA (linux)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:34:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-4-2-on-linux-Eating-Line-Endings/m-p/141143#M25791</guid>
      <dc:creator>John_Roden</dc:creator>
      <dc:date>2025-06-04T13:34:18Z</dc:date>
    </item>
  </channel>
</rss>

