NetConnectionProfile: does not find the interface (CIM object)

オープン
#425 コメント 7 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
powershell
領域
networking

調査の方向性

DSC リソース NetConnectionProfile から始め、提供された InterfaceAlias と接続値を使用して Windows Server 2019 で構成を再現します。Set-TargetResource が CIM オブジェクト MSFT_NetConnectionProfile をどのようにクエリするかを調査し、その動作を要求された LocalNetwork および Private の設定と比較します。報告された CmdletizationQuery_NotFound エラーが発生せず、インターフェイスが検出されて構成されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

needs investigation
Details of the scenario you tried and the problem that is occurring

I am trying to configure an interface profile to LocalNetwork but the resource does not find the CIM object.

Verbose logs showing the problem

TimeCreated : 23/10/2019 14:39:21
ProviderName : Microsoft-Windows-DSC
Id : 4103
Message : Job {033F100F-F592-11E9-AF98-005056A08475} :
This event indicates that a non-terminating error was thrown when DSCEngine was executing Set-TargetResource on MSFT_NetConnectionProfile DSC resource. FullyQualifiedErrorId is
CmdletizationQuery_NotFound,Set-NetConnectionProfile. Error Message is No matching MSFT_NetConnectionProfile objects found by CIM query for instances of the
root/StandardCimv2/MSFT_NetConnectionProfile class on the CIM server: SELECT * FROM MSFT_NetConnectionProfile WHERE ((InterfaceAlias LIKE 'LAN')) AND ((IPv4Connectivity = 3)) AND
((IPv6Connectivity = 3)). Verify query parameters and retry..

Suggested solution to the issue

So far I understand the error message, the resource is searching for an interface named LAN which has IPv4 and IPv6 set as LocalNetwork.

However, the conectivity type (LocalNetwork) is not the value the resource should be searching for but instead it shoud set it.

Searching an interface named LAN and setting it to LocalNetwork is the goal...

The DSC configuration that is used to reproduce the issue (as detailed as possible)

YAML format for Datum:

NetworkingDsc:
  NetConnectionProfile:
    - InterfaceAlias: LAN
      IPv4Connectivity: LocalNetwork
      IPv6Connectivity: LocalNetwork
      NetworkCategory: Private
The operating system the target node is running

OsName : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}

Version and build of PowerShell the target node is running

PSVersion 5.1.17763.316
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.316
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Version of the DSC module that was used ('dev' if using current dev branch)

Name : NetworkingDsc
Path : C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\7.4.0.0\NetworkingDsc.psd1
Description : Module with DSC Resources for Networking area
ModuleType : Manifest
Version : 7.4.0.0

主要言語
PowerShell
スター
234
フォーク
92
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

dsccommunity/NetworkingDsc のほかの issue

dsccommunity/NetworkingDsc の issue をすべて見る

似ている issue

Networking の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。