Giter Club home page Giter Club logo

sdn's People

Contributors

ajaycode avatar daschott avatar davidjahn avatar dcuomo avatar gkudra-msft avatar grcusanz avatar jeremy-jameson avatar jmesser81 avatar kant avatar krash0x35 avatar madhanrm avatar manishmsft avatar msftgits avatar nwoodmsft avatar omarcardona avatar ptylenda avatar pvs043 avatar ramandhillon avatar ravirao-dev avatar rjaini avatar rjmorse avatar stanwyck avatar tmolenh avatar vhorne avatar viaror avatar weidi avatar weiran-ms avatar

Watchers

 avatar

sdn's Issues

DNSSuffixSearchOrder should be specified in unattend file to avoid issue joining VMs to domain

During one of the test runs of SDNExpress, I discovered the VMs failed to join the domain -- with no error reported by the script. Instead, the VMs remained in "WORKGROUP" mode and the SDNExpress script went into an infinite loop trying to contact the VMs (since they never joined the domain, there were no corresponding DNS records and thus the VMs could not be found).

The problem was the network configuration did not specify a default DNS suffix for the connection.

To avoid this issue, the DNSSuffixSearchOrder should be specified in the custom unattend file generated by SDNExpress.ps1.

Error running SDNExpress.ps1 - "You cannot call a method on a null-valued expression." (line 3331)

Command line:
.\SDNExpress.ps1 -ConfigurationDataFile .\FabricConfig.TECHTOOLBOX.psd1 -Verbose

Output

VERBOSE: Using configuration from file [.\FabricConfig.TECHTOOLBOX.psd1]
VERBOSE: STAGE 1: Housekeeping
VERBOSE: Script version is 1.2 and FabricConfig version is 1.2
VERBOSE: Populating defaults into parameters that were not set in config file.
VERBOSE: Starting MAC is 001DD8000000
VERBOSE: Assigned MAC 001DD8000000 to [NC-01] [Management]
VERBOSE: Assigned MAC 001dd8000001 to [MUX-01] [HNVPA]
VERBOSE: Assigned MAC 001dd8000002 to [MTGW-01] [Management]
VERBOSE: Assigned MAC 001dd8000003 to [NC-02] [Management]
VERBOSE: Assigned MAC 001dd8000004 to [MUX-02] [HNVPA]
VERBOSE: Assigned MAC 001dd8000005 to [MTGW-02] [Management]
VERBOSE: Assigned MAC 001dd8000006 to [NC-03] [Management]
VERBOSE: Assigned MAC 001dd8000007 to [MTGW-03] [Management]
VERBOSE: Assigned MAC 001dd8000008 to [MTGW-04] [Management]
VERBOSE: VM NC-01 is a Network Controller
VERBOSE: VM MUX-01 is a MUX
VERBOSE: VM MTGW-01 is a Gateway or Other
VERBOSE: VM NC-02 is a Network Controller
VERBOSE: VM MUX-02 is a MUX
VERBOSE: VM MTGW-02 is a Gateway or Other
VERBOSE: VM NC-03 is a Network Controller
VERBOSE: VM MTGW-03 is a Gateway or Other
VERBOSE: VM MTGW-04 is a Gateway or Other
VERBOSE: Service Fabric ring members: NC-01 NC-02 NC-03
VERBOSE: Setting a MuxVirtualServerResourceId to MUX-01
VERBOSE: Setting a MuxResourceId to MUX-01
VERBOSE: Setting Mux HnvPaMac to 00-1D-D8-00-00-01
VERBOSE: Setting a MuxVirtualServerResourceId to MUX-02
VERBOSE: Setting a MuxResourceId to MUX-02
VERBOSE: Setting Mux HnvPaMac to 00-1D-D8-00-00-04
VERBOSE: Setting gateway VM InternalNicPortProfileId to MTGW-01_Internal
VERBOSE: Setting gateway VM ExternalNicPortProfileId to MTGW-01_external
VERBOSE: Gateway Internal MAC is  before normalization.
VERBOSE: Gateway External MAC is  before normalization.
You cannot call a method on a null-valued expression.
At D:\NotBackedUp\SDN\SDNExpress\scripts\SDNExpress.ps1:3331 char:9
+         $node.InternalNicMac = [regex]::matches($node.InternalNicMac. ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Error running SDNExpress.ps1 - "The Fabric configuration file which was provided is not compatible with this version of the script."

Command line:
.\SDNExpress.ps1 -ConfigurationDataFile .\FabricConfig.TECHTOOLBOX.psd1 -Verbose

Output

VERBOSE: Using configuration from file [.\FabricConfig.TECHTOOLBOX.psd1]`
VERBOSE: STAGE 1: Housekeeping
VERBOSE: Script version is 1.1 and FabricConfig version is 1.2
The Fabric configuration file which was provided is not compatible with this version of the script. To avoid compatibility issues, please use only the version of FabricConfig.psd1 which came with this version of the SDNExpress.ps1 script
At D:\NotBackedUp\SDN\SDNExpress\scripts\SDNExpress.ps1:3144 char:9
\+         throw $error
\+         ~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (The Fabric conf...ress.ps1 script:String) [], RuntimeException
    + FullyQualifiedErrorId : The Fabric configuration file which was provided is not compatible with this version of the script. To avoid compatibility issues, please use only the version of FabricConfig.psd1 which came with this version of the SDNExpress.ps1 script

Error deploying VMs when password contains invalid XML characters - "Windows Setup encountered an internal error while loading or searching for an unattend answer file."

When the DomainJoinPassword or LocalAdminPassword contains invalid XML characters (e.g. '<' or '>'), the following error occurs when deploying Network Controller, SLB (MUX), and Gateway VMs:

Windows Setup encountered an internal error while loading or searching for an unattend answer file.

This is due to the generated unattend answer files containing invalid XML.

For example, imagine the configuration file used with SDNExpress.ps1 specifies the following:

DomainJoinPassword = 'PN5<wxNw&j9'

This results in the following element in the unattend answer file:

  <Identification>
    <Credentials>
      <Domain>...</Domain>
      <Password>PN5<wxNw&j9</Password>
      <Username>...</Username>
    </Credentials>
    <JoinDomain>...</JoinDomain>
  </Identification>

To avoid this error, invalid XML characters in the passwords need to be escaped when generating the unattend answer files.

Error running SDNExpress.ps1 - "Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied." (line 3604)

Command line:
.\SDNExpress.ps1 -ConfigurationDataFile .\FabricConfig.TECHTOOLBOX.psd1 -Verbose

Output

...
VERBOSE: [TT-HV05A]:                            [[Script]InstallHostCert] Performing the operation "Set-TargetResource" on target "Executing the SetScript with the user supplied credential".
VERBOSE: [TT-HV05A]: LCM:  [ End    Set      ]  [[Script]InstallHostCert]  in 1.7190 seconds.
PowerShell DSC resource MSFT_ScriptResource  failed to execute Set-TargetResource functionality with error message: Access to the registry key
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' is denied.
At D:\NotBackedUp\SDN\SDNExpress\scripts\SDNExpress.ps1:3604 char:13
+             Start-DscConfiguration -Path .\ConfigureHostNetworkingPre ...
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : TT-HV05A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.