Details
-
Bug
-
Status: Open
-
Normal
-
Resolution: Unresolved
-
None
-
None
-
None
-
Needs Assessment
-
Needs Assessment
Description
Basic Info
Module Version: 5.0.0
Puppet Version: 6.13.0
OS Name/Version: Windows Server 2019
Describe your issue in as much detail as possible...
Desired Behavior: compile pp file
Actual Behavior: failing to compile
Experiencing error during jenkins build (tests are running in a linux container)
11:28:00 RuntimeError:
|
11:28:00 Failure waiting for PowerShell process 1407 to start pipe server
|
Here is the full output from Jenkins
Branch event
|
Obtained Jenkinsfile from 37ab864328a7109cb79a07ee1ea15276a6ea0637
|
Running in Durability level: MAX_SURVIVABILITY
|
Loading library CICD@master
|
Attempting to resolve master from remote references...
|
> git --version # timeout=10
|
using GIT_ASKPASS to set credentials rprcibot
|
> git ls-remote https://bitbucket.example.com/scm/CD/jenkins-libraries.git # timeout=10
|
Found match: refs/heads/master revision 274d1c982c7c24c38118aa734d6b83840bb71654
|
using credential SVC-RPRCI-BB
|
> git rev-parse --is-inside-work-tree # timeout=10
|
Fetching changes from the remote Git repository
|
> git config remote.origin.url https://bitbucket.example.com/scm/CD/jenkins-libraries.git # timeout=10
|
Fetching without tags
|
Fetching upstream changes from https://bitbucket.example.com/scm/CD/jenkins-libraries.git
|
> git --version # timeout=10
|
using GIT_ASKPASS to set credentials rprcibot
|
> git fetch --no-tags --progress https://bitbucket.example.com/scm/CD/jenkins-libraries.git +refs/heads/*:refs/remotes/origin/*
|
Checking out Revision 274d1c982c7c24c38118aa734d6b83840bb71654 (master)
|
> git config core.sparsecheckout # timeout=10
|
> git checkout -f 274d1c982c7c24c38118aa734d6b83840bb71654
|
Commit message: "Merge pull request #558 in CD/jenkins-libraries from subtask/CD-6467 to master"
|
> git rev-list --no-walk 274d1c982c7c24c38118aa734d6b83840bb71654 # timeout=10
|
[Bitbucket] Notifying commit build result
|
[Pipeline] Start of Pipeline
|
[Pipeline] node
|
Running on jenkins-worker-r4.large-1 (i-006f70d4e422f9cbe) in /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug
|
[Pipeline] {
|
[Pipeline] echo
|
Generated a PipelineUUID of 9eaf4ae0-5c50-4b01-8f99-76ae162dc27f
|
[Pipeline] writeFile
|
[Pipeline] sh
|
+ pwd
|
[Pipeline] sh (Verify docker is present)
|
[Pipeline] sh
|
+ docker inspect -f . docker-prod.artifactory.aws.example.com/example/cd/docker-python3_python3:master-1.0.0-f236266-20210621181856
|
.
|
[Pipeline] withDockerContainer
|
jenkins-worker-r4.large-1 (i-006f70d4e422f9cbe) does not seem to be running inside a container
|
$ docker run -t -d -u 996:993 -w /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:rw,z -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat docker-prod.artifactory.aws.example.com/athenahealth/cd/docker-python3_python3:master-1.0.0-f236266-20210621181856
|
[Pipeline] {
|
[Pipeline] withEnv
|
[Pipeline] {
|
[Pipeline] sh (Running AuditLogger)
|
+ set -o pipefail
|
+ auditlog --pipeline-uuid=9eaf4ae0-5c50-4b01-8f99-76ae162dc27f --event-type=pipeline-start --event-filename=/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug/6d09d6eb-27f4-48c0-a429-a2d5de7fd44d.json --schema-version=1.0.0
|
+ tee auditlog.log
|
[Pipeline] }
|
[Pipeline] // withEnv
|
[Pipeline] }
|
$ docker stop --time=1 d4d7f9bb090acf25a645cf9fc7f508571c62a06beaf3c38abc426505c94b4251
|
$ docker rm -f d4d7f9bb090acf25a645cf9fc7f508571c62a06beaf3c38abc426505c94b4251
|
[Pipeline] // withDockerContainer
|
[Pipeline] readFile
|
[Pipeline] sh
|
[Pipeline] sh
|
[Pipeline] ansiColor
|
[Pipeline] {
|
[Pipeline] echo
|
**************************************************
|
*** entering Jenkinsfile node(null){...} block ***
|
**************************************************
|
[Pipeline] }
|
[Pipeline] // ansiColor
|
[Pipeline] timestamps
|
[Pipeline] {
|
[Pipeline] stage
|
[Pipeline] { (Declarative: Checkout SCM)
|
[Pipeline] checkout
|
11:21:58 using credential SVC-RPRCI-BB
|
11:21:58 Cloning the remote Git repository
|
11:21:58 Cloning with configured refspecs honoured and without tags
|
11:21:58 Cloning repository https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git
|
11:21:58 > git init /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug # timeout=10
|
11:21:58 Fetching upstream changes from https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git
|
11:21:58 > git --version # timeout=10
|
11:21:58 using GIT_ASKPASS to set credentials rprcibot
|
11:21:58 > git fetch --no-tags --progress https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git +refs/heads/feature/EISRE-3999-sftp-bug:refs/remotes/origin/feature/EISRE-3999-sftp-bug
|
11:21:59 Fetching without tags
|
11:21:59 Checking out Revision 37ab864328a7109cb79a07ee1ea15276a6ea0637 (feature/EISRE-3999-sftp-bug)
|
11:21:59 Commit message: "more lowercase"
|
11:21:59 > git config remote.origin.url https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git # timeout=10
|
11:21:59 > git config --add remote.origin.fetch +refs/heads/feature/EISRE-3999-sftp-bug:refs/remotes/origin/feature/EISRE-3999-sftp-bug # timeout=10
|
11:21:59 > git config remote.origin.url https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git # timeout=10
|
11:21:59 Fetching upstream changes from https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git
|
11:21:59 using GIT_ASKPASS to set credentials rprcibot
|
11:21:59 > git fetch --no-tags --progress https://bitbucket.example.com/scm/EXSRE/puppet-controlrepo.git +refs/heads/feature/EISRE-3999-sftp-bug:refs/remotes/origin/feature/EISRE-3999-sftp-bug
|
11:21:59 > git config core.sparsecheckout # timeout=10
|
11:21:59 > git checkout -f 37ab864328a7109cb79a07ee1ea15276a6ea0637
|
11:21:59 > git rev-list --no-walk 443175628eb26a8498ab6dbfe1ebaa52f58972aa # timeout=10
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] withEnv
|
[Pipeline] {
|
[Pipeline] stage
|
[Pipeline] { (Declarative: Agent Setup)
|
[Pipeline] isUnix
|
[Pipeline] readFile
|
[Pipeline] sh
|
11:22:00 + docker build -t 07692c7a4ecef8a347362f700a8e4ee1401a7413 -f Dockerfile .
|
11:22:00 Sending build context to Docker daemon 3.547MB11:22:00 Step 1/2 : FROM docker.artifactory.aws.example.com/puppet/pdk:2.0.0.0
|
11:22:00 ---> 16d689783d71
|
11:22:00 Step 2/2 : RUN apt-get update -y && apt-get install -y curl jq g++ make
|
11:22:00 ---> Using cache
|
11:22:00 ---> f2e538f2ac0a
|
11:22:00 Successfully built f2e538f2ac0a
|
11:22:00 Successfully tagged 07692c7a4ecef8a347362f700a8e4ee1401a7413:latest
|
[Pipeline] dockerFingerprintFrom
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] sh
|
11:22:01 + docker inspect -f . 07692c7a4ecef8a347362f700a8e4ee1401a7413
|
11:22:01 .
|
[Pipeline] withDockerContainer
|
11:22:01 jenkins-worker-r4.large-1 (i-006f70d4e422f9cbe) does not seem to be running inside a container
|
11:22:01 $ docker run -t -d -u 996:993 -w /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:rw,z -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat 07692c7a4ecef8a347362f700a8e4ee1401a7413
|
[Pipeline] {
|
[Pipeline] withCredentials
|
11:22:02 Masking supported pattern matches of $BB_SERVICE_CRED or $BB_SERVICE_CRED_USR or $BB_SERVICE_CRED_PSW
|
[Pipeline] {
|
[Pipeline] withEnv
|
[Pipeline] {
|
[Pipeline] stage
|
[Pipeline] { (Early deploy on previous success)
|
Stage "Early deploy on previous success" skipped due to when conditional
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] stage
|
[Pipeline] { (Git credentials)
|
[Pipeline] sh
|
11:22:03 + git config --global credential.helper store --file /tmp/.git-credentials
|
[Pipeline] sh
|
11:22:04 + git config --global http.sslVerify false
|
[Pipeline] sh
|
11:22:05 + echo https://****@bitbucket.example.com
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] stage
|
[Pipeline] { (Syntax checks)
|
[Pipeline] sh
|
11:22:05 + pdk validate
|
11:22:06 pdk (WARN): This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility.
|
11:22:06 pdk (INFO): Using Ruby 2.5.8
|
11:22:06 pdk (INFO): Using Puppet 6.21.1
|
11:22:06 pdk (INFO): Running all available validators...
|
11:22:30 pdk (INFO): Validator 'task-name' skipped for '/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug'. No files matching '["tasks/**/*"]' found to validate.
|
11:22:30 pdk (INFO): Validator 'task-metadata-lint' skipped for '/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug'. No files matching '["tasks/*.json"]' found to validate.
|
11:22:54 pdk (WARNING): puppet-lint: optional parameter listed before required parameter (site/profile/manifests/carbonblack.pp:4:10)
|
11:22:54 pdk (WARNING): puppet-lint: optional parameter listed before required parameter (site/profile/manifests/carbonblack.pp:5:10)
|
11:22:54 pdk (WARNING): puppet-lint: variable not enclosed in {} (site/profile/manifests/windows/patching.pp:223:23)
|
11:22:54 pdk (WARNING): puppet-lint: variable not enclosed in {} (site/profile/manifests/windows/patching.pp:241:23)
|
11:22:54 pdk (WARNING): puppet-lint: variable not enclosed in {} (site/profile/manifests/windows/wsus.pp:16:23)
|
[Pipeline] sh
|
11:22:54 + pdk bundle exec r10k puppetfile check -v
|
11:22:55 pdk (INFO): Using Ruby 2.5.8
|
11:22:55 pdk (INFO): Using Puppet 6.21.1
|
11:22:56 INFO -> Using Puppetfile '/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug/Puppetfile'
|
11:22:56 Syntax OK
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] stage
|
[Pipeline] { (Unit tests)
|
[Pipeline] sh
|
11:22:57 + pdk test unit
|
11:22:58 pdk (WARN): This module is compatible with a newer version of PDK. Upgrade your version of PDK to ensure compatibility.
|
11:22:58 pdk (INFO): Using Ruby 2.5.8
|
11:22:58 pdk (INFO): Using Puppet 6.21.1
|
11:24:23 /opt/puppetlabs/pdk/private/ruby/2.5.8/bin/ruby -I/opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-core-3.10.1/lib:/opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-support-3.10.2/lib /opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\{aliases,classes,defines,functions,hosts,integration,plans,tasks,type_aliases,types,unit\}/\*\*/\*_spec.rb --format progress
|
11:24:28 Run options: exclude {:bolt=>true}
|
11:28:00 ..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F......F......F........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
|
11:28:00
|
11:28:00 Failures:
|
11:28:00
|
11:28:00 1) profile::sftp on windows-2019-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00 Failure/Error: it { is_expected.to compile }
|
11:28:00
|
11:28:00 RuntimeError:
|
11:28:00 Failure waiting for PowerShell process 1407 to start pipe server
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:167:in `initialize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `new'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `instance'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:994:in `ps_manager'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:245:in `invoke_dsc_resource'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:309:in `invoke_get_method'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:64:in `block in canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `collect'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/puppet-resource_api-1.8.14/lib/puppet/resource_api.rb:94:in `initialize'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `new'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `to_ral'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:623:in `block in to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `each'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:508:in `to_ral'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:149:in `cycles_found?'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:25:in `matches?'
|
11:28:00 # ./spec/classes/profile/sftp_spec.rb:15:in `block (4 levels) in <top (required)>'
|
11:28:00
|
11:28:00 2) profile::sftp on windows-2012 R2-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00 Failure/Error: it { is_expected.to compile }
|
11:28:00
|
11:28:00 RuntimeError:
|
11:28:00 Failure waiting for PowerShell process 1435 to start pipe server
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:167:in `initialize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `new'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `instance'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:994:in `ps_manager'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:245:in `invoke_dsc_resource'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:309:in `invoke_get_method'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:64:in `block in canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `collect'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/puppet-resource_api-1.8.14/lib/puppet/resource_api.rb:94:in `initialize'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `new'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `to_ral'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:623:in `block in to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `each'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:508:in `to_ral'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:149:in `cycles_found?'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:25:in `matches?'
|
11:28:00 # ./spec/classes/profile/sftp_spec.rb:15:in `block (4 levels) in <top (required)>'
|
11:28:00
|
11:28:00 3) profile::sftp on windows-2016-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00 Failure/Error: it { is_expected.to compile }
|
11:28:00
|
11:28:00 RuntimeError:
|
11:28:00 Failure waiting for PowerShell process 1465 to start pipe server
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:167:in `initialize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `new'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/pwsh.rb:61:in `instance'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:994:in `ps_manager'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:245:in `invoke_dsc_resource'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:309:in `invoke_get_method'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:64:in `block in canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `collect'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/ruby-pwsh-0.10.0/lib/puppet/provider/dsc_base_provider/dsc_base_provider.rb:51:in `canonicalize'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/puppet-resource_api-1.8.14/lib/puppet/resource_api.rb:94:in `initialize'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `new'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource.rb:500:in `to_ral'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:623:in `block in to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `each'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:615:in `to_catalog'
|
11:28:00 # /opt/puppetlabs/pdk/private/puppet/ruby/2.5.0/gems/puppet-6.21.1/lib/puppet/resource/catalog.rb:508:in `to_ral'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:149:in `cycles_found?'
|
11:28:00 # /tmp/.pdk/cache/ruby/2.5.0/gems/rspec-puppet-2.9.0/lib/rspec-puppet/matchers/compile.rb:25:in `matches?'
|
11:28:00 # ./spec/classes/profile/sftp_spec.rb:15:in `block (4 levels) in <top (required)>'
|
11:28:00
|
11:28:00 Finished in 3 minutes 32.6 seconds (files took 5.63 seconds to load)
|
11:28:00 1745 examples, 3 failures
|
11:28:00
|
11:28:00 Failed examples:
|
11:28:00
|
11:28:00 rspec './spec/classes/profile/sftp_spec.rb[1:1:1]' # profile::sftp on windows-2019-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00 rspec './spec/classes/profile/sftp_spec.rb[1:2:1]' # profile::sftp on windows-2012 R2-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00 rspec './spec/classes/profile/sftp_spec.rb[1:3:1]' # profile::sftp on windows-2016-x86_64 is expected to compile into a catalogue without dependency cycles
|
11:28:00
|
11:28:00 /opt/puppetlabs/pdk/private/ruby/2.5.8/bin/ruby -I/opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-core-3.10.1/lib:/opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-support-3.10.2/lib /opt/puppetlabs/pdk/share/cache/ruby/2.5.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\{aliases,classes,defines,functions,hosts,integration,plans,tasks,type_aliases,types,unit\}/\*\*/\*_spec.rb --format progress failed
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] stage
|
[Pipeline] { (R10k deploy)
|
Stage "R10k deploy" skipped due to earlier failure(s)
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] stage
|
[Pipeline] { (Declarative: Post Actions)
|
[Pipeline] cleanWs
|
11:28:01 [WS-CLEANUP] Deleting project workspace...
|
11:28:01 [WS-CLEANUP] Deferred wipeout is used...
|
11:28:01 [WS-CLEANUP] done
|
[Pipeline] }
|
[Pipeline] // stage
|
[Pipeline] }
|
[Pipeline] // withEnv
|
[Pipeline] }
|
[Pipeline] // withCredentials
|
[Pipeline] }
|
11:28:01 $ docker stop --time=1 604f9f7b23315c58d690155c380c1ebe0b331448a71ab1d4732c691427db359f
|
11:28:02 $ docker rm -f 604f9f7b23315c58d690155c380c1ebe0b331448a71ab1d4732c691427db359f
|
[Pipeline] // withDockerContainer
|
[Pipeline] }
|
[Pipeline] // withEnv
|
[Pipeline] }
|
[Pipeline] // timestamps
|
[Pipeline] ansiColor
|
[Pipeline] {
|
[Pipeline] echo
|
============================================================
|
Failure Source - user-node-block
|
Closure @ node.call:57 threw an error: hudson.AbortException: script returned exit code 1Trace Stack (oldest first):
|
node.call:57User provided node(null){...} code block threw an error
|
============================================================
|
[Pipeline] }
|
[Pipeline] // ansiColor
|
[Pipeline] ansiColor
|
[Pipeline] {
|
[Pipeline] echo
|
**********************************************
|
*** exiting node() block - errors occurred ***
|
**********************************************
|
[Pipeline] }
|
[Pipeline] // ansiColor
|
[Pipeline] error
|
[Pipeline] echo
|
BUILD RESULT: SUCCESS
|
[Pipeline] writeFile
|
[Pipeline] sh
|
+ pwd
|
[Pipeline] sh (Verify docker is present)
|
[Pipeline] sh
|
+ docker inspect -f . docker-prod.artifactory.aws.example.com/athenahealth/cd/docker-python3_python3:master-1.0.0-f236266-20210621181856
|
.
|
[Pipeline] withDockerContainer
|
jenkins-worker-r4.large-1 (i-006f70d4e422f9cbe) does not seem to be running inside a container
|
$ docker run -t -d -u 996:993 -w /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug:rw,z -v /var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat docker-prod.artifactory.aws.example.com/athenahealth/cd/docker-python3_python3:master-1.0.0-f236266-20210621181856
|
[Pipeline] {
|
[Pipeline] withEnv
|
[Pipeline] {
|
[Pipeline] sh (Running AuditLogger)
|
+ set -o pipefail
|
+ auditlog --pipeline-uuid=9eaf4ae0-5c50-4b01-8f99-76ae162dc27f --event-type=pipeline-end --event-filename=/var/lib/jenkins/workspace/repo_feature_EISRE-3999-sftp-bug/85253102-4923-44e0-8512-a1a3403b94a4.json --schema-version=1.0.0
|
+ tee auditlog.log
|
[Pipeline] }
|
[Pipeline] // withEnv
|
[Pipeline] }
|
$ docker stop --time=1 8ad050b1afd753e3124eaba554398bede43db25dcb633d51a4eecdebd3f36eaf
|
$ docker rm -f 8ad050b1afd753e3124eaba554398bede43db25dcb633d51a4eecdebd3f36eaf
|
[Pipeline] // withDockerContainer
|
[Pipeline] readFile
|
[Pipeline] sh
|
[Pipeline] sh
|
[Pipeline] }
|
[Pipeline] // node
|
[Pipeline] End of Pipeline
|
[Bitbucket] Notifying commit build result
|
sh: line 1: 14506 Terminated sleep 3
|
sh: line 1: 14516 Terminated sleep 3
|
[Bitbucket] Build result notified
|
ERROR: script returned exit code 1
|
Finished: FAILURE
|
Here is the PP file and corresponding rspec
# Base functionality for dedicated Open SSH Servers
|
class profile::sftp (
|
String $adgroup,
|
String $sftppath = 'C:\\SFTP',
|
) {
|
|
file { $sftppath:
|
ensure => directory,
|
}
|
|
dsc { 'OpenSSH-Server':
|
resource_name => 'Script',
|
module => 'PSDscResources',
|
properties => {
|
testscript => "Get-WindowsCapability -Online | Where-Object Name -eq 'OpenSSH.Server~~~~0.0.1.0'",
|
setscript => "Add-WindowsCapability -Online -LimitAccess -Name OpenSSH.Server~~~~0.0.1.0 -Source 'C:\\puppet\\server2019fod'",
|
getscript => "Get-WindowsCapability -Online | Where-Object Name -eq 'OpenSSH.Server~~~~0.0.1.0'",
|
}
|
}
|
|
dsc_firewall { 'Enable FW Rule':
|
dsc_ensure => present,
|
dsc_name => 'sshd',
|
dsc_enabled => 'true',
|
dsc_displayname => 'OpenSSH Server (sshd)',
|
dsc_direction => inbound,
|
dsc_protocol => tcp,
|
dsc_action => allow,
|
dsc_localport => ['22'],
|
}
|
|
file { 'C:\\ProgramData\\ssh\\sshd_config':
|
ensure => file,
|
content => regsubst(epp('profile/sftp/sshd_config.epp',{ 'sftppath' => $sftppath, 'adgroup' => $adgroup }), '(?<!\r)\n', "\r\n", 'G')
|
}
|
|
~> service { 'sshd':
|
ensure => running,
|
enable => true,
|
}
|
}
|
require 'spec_helper'
|
require 'rspec-puppet-facts'
|
|
describe 'profile::sftp' do
|
on_supported_os.each do |os, facts|
|
context "on #{os}" do
|
let(:facts) do
|
facts
|
end
|
|
let(:params) do
|
{ adgroup: 'DOMAIN\group', }
|
end
|
|
it { is_expected.to compile }
|
it { is_expected.to contain_class('profile::sftp') }
|
it { is_expected.to contain_file('C:\\SFTP') }
|
it { is_expected.to contain_dsc('OpenSSH-Server') }
|
it { is_expected.to contain_dsc_firewall('Enable FW Rule') }
|
it { is_expected.to contain_file('C:\\ProgramData\\ssh\\sshd_config') }
|
it { is_expected.to contain_service('sshd') }
|
end
|
end
|
end
|