Closed Bug 1527484 Opened 7 years ago Closed 6 years ago

[Ronin Windows] Errors on Puppet first run

Categories

(Infrastructure & Operations :: RelOps: Puppet, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: markco, Assigned: markco)

Details

Tracking errors on the first run of Puppet on Windows. These errors clear on the second run.

nxlog service:

class win_nxlog::nxlog_service {

require win_nxlog::nxlog_intsall
require win_nxlog::nxlog_conf

service { 'nxlog':
    ensure    => running,
    subscribe => File["${facts[custom_win_programfilesx86]}\\nxlog\\conf\\nxlog.conf"],
    restart   => true,
    require   => Package['NXLog-CE'],
}

}

Which results in the following error:
Notice: /Stage[main]/Win_nxlog::Nxlog_conf/File[C:\Program Files (x86)\nxlog\conf\nxlog.conf]/content: content changed '{md5}f67640b709b40d6adc2afd73839c2a52' to '{md5}696b91c79cbbe5e2f0460c53803710cf'
Error: /Stage[main]/Win_nxlog::Nxlog_service/Service[nxlog]: Failed to call refresh: No such file or directory - CreateProcess
Error: /Stage[main]/Win_nxlog::Nxlog_service/Service[nxlog]: No such file or directory - CreateProcess

openssh_install

$pwrshl_run_scrpt = lookup('win_pwrshl_run_scrpt')
# Becuase of the need for the script path to be double quoted, needed to hard code the path.
$sshscrpt         = '"C:\Program Files\OpenSSH-Win64\install-sshd.ps1"'

...

shared::execonce { 'install_openssh':
command => "${pwrshl_run_scrpt} ${sshscrpt}",
tries => 2,
try_sleep => 5,
}
}

Error: 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -file "C:\Program Files\OpenSSH-Win64\install-sshd.ps1"' returned 4294770688 instead of one of [0]
Error: /Stage[main]/Win_openssh::Openssh_install/Shared::Execonce[install_openssh]/Exec[install_openssh]/returns: change from 'notrun' to ['0'] failed: 'C:\windows\system32\WindowsPowerShell\v1.0\powershell.exe -executionpolicy bypass -file "C:\Program Files\OpenSSH-Win64\install-sshd.ps1"' returned 4294770688 instead of one of [0]

Assignee: relops → mcornmesser

The bootstrap scripts will accommodate for errors on first run with a reboot and rerun Puppet.

https://github.com/mozilla-platform-ops/ronin_puppet/tree/master/provisioners/windows

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.