NetConnectionProfile: does not find the interface (CIM object)
还没有人认领这个 Issue。
评估
- 难度
- 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 内容生成。
描述
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
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 ·
-
难度 2/5 1-3 小时 新手友好度 25/100
dsccommunity/NetworkingDsc#538 ·
查看 dsccommunity/NetworkingDsc 的全部 Issue
相似的 Issue
-
[Bug] header_mutation add overwrites instead of appending: ext_proc reads the deprecated append flag可能已有人在做 @Bevisy 今天认领。 未关闭needs-acceptance wg/data-plane-networking
难度 2/5 1-3 小时 新手友好度 82/100
vllm-project/semantic-router#5994 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 81/100
NousResearch/hermes-agent#151129 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
fastify/fastify-http-proxy#493 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
meshcore-dev/MeshCore#3781 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复