1 2 Previous Next 25 Replies Latest reply on Apr 16, 2018 2:53 PM by vMarkusK1985 Go to original post
      • 15. Re: Creating Routed Org Network in vCD 8.20.0.2
        vMarkusK1985 Hot Shot
        vExpert

        Hello,

         

        as I see have you used my example Command. I thin you should modify these Parameters: -OrgVdcName "Test-VDC" -OrgName "Test" -EdgeName "Test-Edge"

        • 16. Re: Creating Routed Org Network in vCD 8.20.0.2
          dmyagkov Novice

          Markus,

          I have really Organization "Test" with VDC "Test-VDC" and Edge Gateway "Test-Edge" in it at my vCD.

          • 17. Re: Creating Routed Org Network in vCD 8.20.0.2
            vMarkusK1985 Hot Shot
            vExpert

            Ah, ok.

             

            I verified the function again, nand it works in my environment.

             

            My Environment:

             

            - Script from master Branch: VMware-vCD-Module/New-MyOrgNetwork.psm1 at master · mycloudrevolution/VMware-vCD-Module · GitHub

            - Connected as System Administrator

            - PowerShell 5.1

            - VMware PowerCLI 6.5.1

            • 18. Re: Creating Routed Org Network in vCD 8.20.0.2
              dmyagkov Novice

              Markus,

              I have the same environment.

              What is the version of your vCloud Director?

              I have 9.0.0.2 (when topic was created it was 8.20).

              • 19. Re: Creating Routed Org Network in vCD 8.20.0.2
                vMarkusK1985 Hot Shot
                vExpert

                OK, probably the vCD Version is the Problem I verified the Script with 8.20. I can Test tomorrow with a 9.1 instance.

                Do you use Advanced Edges (I do)?

                 

                Might you please do the same Check we have done with the manual Edge Gatway properties with the Org Network?

                 

                • 20. Re: Creating Routed Org Network in vCD 8.20.0.2
                  vMarkusK1985 Hot Shot
                  vExpert

                  Hi,

                   

                  the function also works in my vCD 9.1 Test-Lab.

                   

                  Might you please update your local Copy of the Module from Master Branch. I Have added some Verbose output and more Error handling.

                   

                  Verbose call:

                  $params = @{ 'Name' = '<String>';
                               'OrgVdcName'=<String>'';
                               'OrgName'='<String>';
                               'EdgeName'='<String>';
                               'SubnetMask' = '255.255.255.0';
                               'Gateway' = '192.168.66.1';
                               'IPRangeStart' = '192.168.66.100';
                               'IPRangeEnd' = '192.168.66.200'
                               }
                  New-MyOrgNetwork @params -Verbose
                  
                  • 21. Re: Creating Routed Org Network in vCD 8.20.0.2
                    dmyagkov Novice

                    PowerCLI C:\> $params = @{ 'Name' = 'Test-Org-Net02';

                    >>                     'OrgVdcName'= 'Test-VDC';

                    >>                     'OrgName'='Test';

                    >>                     'EdgeName'='Test-EdgeGW';

                    >>                     'SubnetMask' = '255.255.255.0';

                    >>                     'Gateway' = '192.168.66.1';

                    >>                     'IPRangeStart' = '192.168.66.100';

                    >>                     'IPRangeEnd' = '192.168.66.200'

                    >>                     }

                    PowerCLI C:\> New-MyOrgNetwork @params -Verbose

                    DETAILED: Get Org vDC

                    DETAILED: 12/4/2018 23:14:12 Get-Org Started execution

                    DETAILED: 12/4/2018 23:14:18 Get-OrgVdc Started execution

                    DETAILED: 12/4/2018 23:14:22 Get-OrgVdc Finished execution

                    DETAILED: 12/4/2018 23:14:22 Get-Org Finished execution

                    DETAILED: 12/4/2018 23:14:22 Get-CIView Started execution

                    DETAILED: 12/4/2018 23:14:22 Get-CIView Finished execution

                    DETAILED: Get EdgeGateway

                    DETAILED: 12/4/2018 23:14:22 Search-Cloud Started execution

                    DETAILED: 12/4/2018 23:14:22 Get-CIView Started execution

                    DETAILED: 12/4/2018 23:14:25 Get-CIView Finished execution

                    DETAILED: 12/4/2018 23:14:25 Search-Cloud Finished execution

                    DETAILED: Define Org Network

                    DETAILED: Create Org Network

                    Exclusion in calling "CreateNetwork" with "1" arguments: "[ 470257c4-6517-4212-8885-273abdcfb2a3 ] class java.lang.NullPointerException"

                    C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules\New-MyOrgNetwork\New-MyOrgNetwork.psm1:131 sign:9

                    +         $CreateOrgNetwork = $orgVdcView.CreateNetwork($OrgNetwork)

                    +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

                        + FullyQualifiedErrorId : CloudException

                     

                    DETAILED: Wait for Org Network to become Ready

                    Get-OrgVdcNetwork : Cannot check the argument for the "Id" parameter. The argument is empty or NULL. Specify a non-null argument that does not have a NULL value, and then retry the command.

                    C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules\New-MyOrgNetwork\New-MyOrgNetwork.psm1:135 sign:39

                    +         while(!(Get-OrgVdcNetwork -Id $CreateOrgNetwork.Id -ErrorActi ...

                    +                                       ~~~~~~~~~~~~~~~~~~~~

                        + CategoryInfo          : InvalidData: (:) [Get-OrgVdcNetwork], ParameterBindingValidationException

                        + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.Cloud.Commands.Cmdlets.GetOrgVdcNetwork

                     

                    Get-OrgVdcNetwork : Cannot check the argument for the "Id" parameter. The argument is empty or NULL. Specify a non-null argument that does not have a NULL value, and then retry the command.

                    C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules\New-MyOrgNetwork\New-MyOrgNetwork.psm1:144 sign:31

                    +         Get-OrgVdcNetwork -Id $CreateOrgNetwork.Id | Select-Object Na ...

                    +                               ~~~~~~~~~~~~~~~~~~~~

                        + CategoryInfo          : InvalidData: (:) [Get-OrgVdcNetwork], ParameterBindingValidationException

                        + FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutomation.Cloud.Commands.Cmdlets.GetOrgVdcNetwork

                     

                    PowerCLI C:\>

                    • 22. Re: Creating Routed Org Network in vCD 8.20.0.2
                      dmyagkov Novice

                      Markus,

                      I have Edge Gateway in Advanced Mode.

                      • 23. Re: Creating Routed Org Network in vCD 8.20.0.2
                        vMarkusK1985 Hot Shot
                        vExpert

                        And also connected as System Admin (not Org Admin)?

                         

                        If so, I only see the option to compare a manually created Org Network with the parameters in the function.

                        • 24. Re: Creating Routed Org Network in vCD 8.20.0.2
                          dmyagkov Novice

                          Markus, i always work as System Admin at vCD.

                           

                          I have opinion that some cmdlets work strange for me...

                          For example, search-cloud don't search orgnetworks...

                          As you see - empty output.

                          In the same time search-cloud search edgegateways successfully...

                           

                          PowerCLI C:\> $OrgNetwork = Search-Cloud -QueryType OrgNetwork -Name "Test-Org-Net01"

                          PowerCLI C:\> $OrgNetwork

                          PowerCLI C:\>

                          PowerCLI C:\> $OrgNetwork = Search-Cloud -QueryType OrgNetwork

                          PowerCLI C:\>

                          PowerCLI C:\> $EdgeGW = Search-Cloud -QueryType EdgeGateway -Name "Test-EdgeGW"

                          PowerCLI C:\> $EdgeGW

                          Name                      : Test-EdgeGW

                          Vdc                       : urn:vcloud:vdc:b4698235-fa1b-46be-8a10-3c59c90efb42

                          NumberOfExtNetworks       : 1

                          NumberOfOrgNetworks       : 1

                          IsBusy                    : False

                          GatewayStatus             : READY

                          HaStatus                  : DISABLED

                          AdvancedNetworkingEnabled : True

                          Href                      :

                          Id                        : urn:vcloud:gateway:f05cf503-10d1-4cb1-87ea-6c6e669495f0

                          Type                      :

                          AnyAttr                   : {task, isSyslogServerSettingInSync, taskOperation, taskStatus...}

                          Link                      :

                          Metadata                  :

                          PropertyList              : {[Name, Test-EdgeGW], [Vdc, urn:vcloud:vdc:b4698235-fa1b-46be-8a10-3c59c90efb42],

                                                      [NumberOfExtNetworks, 1], [NumberOfOrgNetworks, 1]...}

                          ps: Btw, do you know how to change language of messages in powershell to Eng? Now i have Rus and translate error messages to English  manually

                          • 25. Re: Creating Routed Org Network in vCD 8.20.0.2
                            vMarkusK1985 Hot Shot
                            vExpert

                            I think the Query Type "AdminOrgNetwork" should work for you.

                            1 2 Previous Next