DnsServerAddress: Fails when trying to rename network adapter when running Test
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- powershell
- 領域
- networking
調査の方向性
DnsServerAddress リソースの Test-TargetResource パスから開始し、指定された Windows 環境で NetAdapterName/DnsServerAddress の構成を再現します。無効な、または一時的に利用できない InterfaceAlias によって、Test-TargetResource プロセスを終了せずにリソースが望ましい状態ではないと報告されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Problem description
Imagine a scenario where a user wants to perform both these steps in the same configuration:
- Rename a network adapter
- Assign a DNS server address to the same adapter
If a configuration like this is put through a Test-TargetResource phase before being applied (see example), it will fail with 'System.InvalidOperationException: A network adapter with the alias '' could not be found.'
Verbose logs
VERBOSE: [Test-VM]: LCM: [ Start Resource ] [[DnsServerAddress]Ethernet0-IPv6::[DomainController]Test-VM]
VERBOSE: [Test-VM]: LCM: [ Start Test ] [[DnsServerAddress]Ethernet0-IPv6::[DomainController]Test-VM]
VERBOSE: [Test-VM]: [[DnsServerAddress]Ethernet0-IPv6::[DomainController]Test-VM]
Test-TargetResource: Checking the DNS server addresses.
VERBOSE: [Test-VM]: [[DnsServerAddress]Ethernet0-IPv6::[DomainController]Test-VM]
Get-DnsClientServerStaticAddress: Getting staticly assigned DNS server IPv6 address for interface alias 'Ethernet0'.
VERBOSE: [Test-VM]: LCM: [ End Test ] [[DnsServerAddress]Ethernet0-IPv6::[DomainController]Test-VM] False in
0.1090 seconds.
VERBOSE: [Test-VM]: LCM: [ *FAILED*Compare ] Completed processing compare operation. The operation returned
False.
PowerShell DSC resource DSC_DnsServerAddress failed to execute Test-TargetResource functionality with error message:
System.InvalidOperationException: A network adapter with the alias 'Ethernet0' could not be found.
+ CategoryInfo : InvalidOperation: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName : Test-VM
DSC configuration
NetAdapterName "Ethernet0"
{
NewName = "Ethernet0"
InterfaceNumber = 1
}
DnsServerAddress "Ethernet0-IPv6"
{
InterfaceAlias = "Ethernet0"
AddressFamily = "IPv6"
DependsOn = "[NetAdapterName]Ethernet0"
}
Suggested solution
The DnsServerAddress resource should not return a terminating error when the network interface specified in InterfaceAlias is invalid - instead, it should just return that the resource is not in the desired state. There is no need to tank the entire Test-TargetResource process.
Operating system the target node is running
OsName : Microsoft Windows Server 2022 Datacenter Azure Edition
OsOperatingSystemSKU : 407
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 20348.1.amd64fre.fe_release.210507-1500
OsLanguage : en-US
OsMuiLanguages : {en-US}
PowerShell version and build the target node is running
Name Value
---- -----
PSVersion 5.1.20348.558
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.20348.558
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
NetworkingDsc version
Name Version Path
---- ------- ----
NetworkingDsc 9.0.0 C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\9.0.0\NetworkingDsc.psd1
- 主要言語
- PowerShell
- スター
- 234
- フォーク
- 92
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dsccommunity/NetworkingDsc のほかの issue
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dsccommunity/NetworkingDsc#544 ·
-
chore
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
dsccommunity/NetworkingDsc#542 ·
-
chore
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
dsccommunity/NetworkingDsc#543 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
dsccommunity/NetworkingDsc#539 ·
-
Add Codeowners fileオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
dsccommunity/NetworkingDsc#538 ·
dsccommunity/NetworkingDsc の issue をすべて見る
似ている issue
-
fix(proxy): avoid exposing Reverb HTTP API (/apps) publicly in generated Traefik dynamic configオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
coollabsio/coolify#12390 ·
メンテナーはふだん 1 日以内に返信
-
Type: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/nuttx-apps#3942 ·
メンテナーはふだん 1 日以内に返信
-
Negative Ingress timeout annotations reach Envoy and get the route configuration rejected対応中かも @NopeCharon が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
projectcontour/contour#7798 ·
メンテナーはふだん 2 日以内に返信
-
4.0 bug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
microsoft/azurelinux#19834 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
DingTalk-Real-AI/dingtalk-workspace-cli#1574 ·
メンテナーはふだん 1 日以内に返信