8.4.0 and 8.5.0 : package doesn't idempotently handle uninstall; executionpolicy issues.
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- powershell
- Domínio
- devops, operating-systems
Direção de pesquisa
Comece reproduzindo ambos os relatórios por meio dos recursos powershellexecutionpolicy e windowscapability nas versões de Windows e PowerShell indicadas. Inspecione DSC_WindowsCapability Test-TargetResource e o tratamento de pacotes para uma capability ausente; em seguida, verifique se uma capability OpenSSH.Server ausente continua tendo sucesso e se a configuração da política de execução é concluída conforme solicitado.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Details of the scenario you tried and the problem that is occurring
In 8.5.0, powershellexecutionpolicy doesn't seem to work at all.
I found this, because in 8.4.0, there's an idempotency bug in which package when told to ensure something is Absent, will crash if it's absent. That may or may not be present in 8.5.0 as well, but my code didn't get that far in 8.5.0, I had to go back to 8.2.0.
Verbose logs showing the problem
For the package issue:
PowerShell DSC resource DSC_WindowsCapability failed to execute
Test-TargetResource functionality with error message: Specified Windows Capability
'OpenSSH.Server~~~~0.0.1.0' not found.
Sure, not found... but I'm asking it to, ya know, not be there, so we're good?
And ftr:
> Get-WindowsCapability -Online | where {$_.Name -like '*SSH*'}
Name : OpenSSH.Client~~~~0.0.1.0
State : NotPresent
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
Suggested solution to the issue
- package should be idempotent
- powershellexecutionpolicy should work
The DSC configuration that is used to reproduce the issue (as detailed as possible)
I'm using DSC primarily from Chef. I had originally thought this was a chef bug and filed one, but then I realized it was specific to ComputerManagementDsc 8.4.0 / 8.5.0 - going back to 8.2.0 solved the problem. Below is the relevant chef code, but feel free to give me things to run for testing and I will be happy to do so.
This fails in 8.5.0 for me
dsc_resource 'set execution policy' do
resource :powershellexecutionpolicy
module_name 'ComputerManagementDsc'
property :executionpolicyscope, 'LocalMachine'
property :executionpolicy, 'RemoteSigned'
end
This fails in 8.4.0 and I expect fails in 8.5.0 but I can't test:
dsc_resource 'uninstall ssh-server' do
resource :windowscapability
module_name 'ComputerManagementDsc'
property :name, 'OpenSSH.Server~~~~0.0.1.0'
property :ensure, 'Absent'
notifies :stop, 'service[ssh]', :before
end
The operating system the target node is running
OsName : Microsoft Windows 10 Pro
OsOperatingSystemSKU : 48
OsArchitecture : 64-bit
WindowsVersion : 2009
WindowsBuildLabEx : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
---- -----
PSVersion 5.1.19041.1237
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.19041.1237
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)
8.4.0 / 8.5.0
- Linguagem predominante
- PowerShell
- Estrelas
- 339
- Forks
- 80
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de dsccommunity/ComputerManagementDsc
-
chore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
chore
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 68/100
-
chore: Add Agentic AI development assets for GitHub CopilotTalvez já em andamento @PlagueHO assumiu há 133 dias. Abertachore
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 64/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 55/100
-
Computer: AD object deletion before domain join issueTalvez já em andamento @Daymarvi assumiu há 136 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
Todas as issues de dsccommunity/ComputerManagementDsc
Issues semelhantes
-
2026-11 documentation good first issue gsoc-2027 project: gsoc
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
alphaonelabs/website#1154 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
agardnerIT/opamp-server-py#110 · 1 comentário ·
-
建议给 pgsql 的证书 SAN 增加 vip 地址Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
-
ci: run test/test.sh and the board tests in CI (only the Web job and the image job run today)Abertaarea: ci bug difficulty: easy dx good first issue help wanted tech: bun tech: github-actions testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
flisk-sh/run-my-agents#11 ·
-
area: documentation debugging difficulty: easy docker docker-compose docs documentation dx good first issue guide hacktoberfest help wanted island: Docs Harbor rank: 8 kyu troubleshooting
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
tdk-landscape/tdk-cli-core#3115 ·