2 Replies Latest reply on Jun 13, 2016 5:30 PM by safadan

    How to rename a CivApp?

    CSIEnvironments Enthusiast

      Hi,

       

      Trying to do the simplest task of renaming a CIvApp with PowerCLI.

       

      $civapp = Get-CIvApp "Test"
      $newname = $civapp.Name + "_OLD"
      Set-CIVApp -vApp $civapp -Name $newname
      
      Set-CIVApp : 8/6/2013 5:50:25 PM    Set-CIVApp        Interrupting the reading of an HTTP request, as its body is too long: >524288 bytes
      At line:1 char:11
      + Set-CIVApp <<<<  -vApp $a -Name $ren
          + CategoryInfo          : NotSpecified: (:) [Set-CIVApp], VimException
          + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Cloud.Commands.Cmdlets.SetCIVApp
      

       

      Also tried extensiondata property:

       

      $civapp = Get-CIvApp "Test"
      $civapp.ExtensionData.Name = $civapp.ExtensionData.Name + "_OLD"
      $civapp.ExtensionData.UpdateServerData()
      
      Exception calling "UpdateServerData" with "0" argument(s): "Interrupting the reading of an HTTP request, as its body is too long: >524288 bytes"
      At line:1 char:34
      + $a.ExtensionData.UpdateServerData <<<< ()
          + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
          + FullyQualifiedErrorId : DotNetMethodException
      

       

       

      I also tried setting the description of the CIvApp as per the example but that errors too.

       

       --------------  Example 1 --------------
      
      
       C:\PS>$myVApps = Get-CIVApp -Name 'MyVApp*'
       $myVApps | Set-CIVApp -Description 'This is one of my VApps.'
      
      
      
      
       Retrieves all vApp with names starting with MyVapp and changes their descriptions to "This is one of my vApps."
      
      
      
      
      
      
      

       

      Any ideas? Is my vApp too large? 26 VM's.How do I narrow down the "Update Server Data" to only update what I want and not all the networking sections etc...?

        • 1. Re: How to rename a CivApp?
          CSIEnvironments Enthusiast

          Logged an SR and Leon from VMWare was able to assist.

           

          Go to the Global.Properties file that lives here: /opt/vmware/vcloud-director/etc/global.properties

           

          Add the following lines to that file on all your cells (if you have multiple):

           

          restapi.security.request.max_allowed_elements=32768

          restapi.security.request.max_allowed_depth=200

          restapi.security.request.size_limit=786432

           

          Cheers!

          • 2. Re: How to rename a CivApp?
            safadan Novice

            Encountered the same issue again after having added those lines to the Global.Properties.

            It appears that as the environment grows those values will need to be reviewed and increased, particularly restapi.security.request.size_limit=786432.