Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for installing JCE. Fixes MODULES-1681 #326

Merged
merged 16 commits into from
Oct 18, 2018
Merged

Support for installing JCE. Fixes MODULES-1681 #326

merged 16 commits into from
Oct 18, 2018

Conversation

dploeger
Copy link
Contributor

@dploeger dploeger commented Oct 8, 2018

This adds support for installing the Oracle Cryptographic Extensions as requested in MODULES-1681 and adds the appropriate tests.

@david22swan
Copy link
Member

@dploeger Apologies but after enabling your test's and running them through an adhoc pipeline they failed against both Redhat 6 and 7.
In addition you need to rebase you changes.

@dploeger
Copy link
Contributor Author

@david22swan No problem. How can I test Redhat 6 and 7. I tried running the acceptance tests on centos 7 and everything went smooth.

@dploeger
Copy link
Contributor Author

Rebased

@david22swan
Copy link
Member

@dploeger Within the team we generate our own custom nodesets. Since you don't have access to this feature, here are some nodesets for both:

---
HOSTS:
  redhat6-64-1:
    pe_dir: 
    pe_ver: 
    pe_upgrade_dir: 
    pe_upgrade_ver: 
    hypervisor: vmpooler
    platform: el-6-x86_64
    packaging_platform: el-6-x86_64
    template: redhat-6-x86_64
    roles:
    - agent
    - default
CONFIG:
  nfs_server: none
  consoleport: 443
  pooling_api: http://vmpooler.delivery.puppetlabs.net/
---
HOSTS:
  redhat7-64-1:
    pe_dir: 
    pe_ver: 
    pe_upgrade_dir: 
    pe_upgrade_ver: 
    hypervisor: vmpooler
    platform: el-7-x86_64
    packaging_platform: el-7-x86_64
    template: redhat-7-x86_64
    roles:
    - agent
    - default
CONFIG:
  nfs_server: none
  consoleport: 443
  pooling_api: http://vmpooler.delivery.puppetlabs.net/

Just create some new .yml files in the nodeset folder and copy this into them. After that it's no different from running the test's in centos.

@dploeger
Copy link
Contributor Author

@david22swan Hm. That doesn't work. The address vmpooler.delivery.puppetlabs.net can not be resolved here. Is it maybe an internal address?

@david22swan
Copy link
Member

@dploeger Sorry, completely missed that. Unfortunately it seems that we don't actually have an image that you can use. The only thing I could think of would be for you to use an outside vagrant image. I'm sorry that I'm not being more use.

@dploeger
Copy link
Contributor Author

@david22swan Maybe you could just paste the test log here. Perhaps that could be enough to lead me in the right direction.

@david22swan
Copy link
Member

@dploeger Here you go:

07:28:13 Failures:
07:28:13 
07:28:13   1) java::oracle installs oracle jdk
07:28:13      Failure/Error: apply_manifest(install_oracle_jdk, catch_changes: true)
07:28:13      Beaker::Host::CommandFailure:
07:28:13        Host 'wdzdfs7cgjfypep.delivery.puppetlabs.net' exited with 2 running:
07:28:13         puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.32k10t
07:28:13        Last 10 lines of output were:
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jdk-8u181-linux-x64.rpm
07:28:13        	Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.15 seconds
07:28:13        	Info: Applying configuration version '1539354459'
07:28:13        	Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jdk 8]/returns: executed successfully
07:28:13        	Notice: Applied catalog in 4.03 seconds
07:28:13        
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/host.rb:375:in `exec'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
07:28:13      # ./spec/acceptance/install_spec.rb:227:in `block (2 levels) in <top (required)>'
07:28:13 
07:28:13   2) java::oracle installs oracle jre
07:28:13      Failure/Error: apply_manifest(install_oracle_jre, catch_changes: true)
07:28:13      Beaker::Host::CommandFailure:
07:28:13        Host 'wdzdfs7cgjfypep.delivery.puppetlabs.net' exited with 2 running:
07:28:13         puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.2dG9S1
07:28:13        Last 10 lines of output were:
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jre-8u181-linux-x64.rpm
07:28:13        	Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.15 seconds
07:28:13        	Info: Applying configuration version '1539354479'
07:28:13        	Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jre 8]/returns: executed successfully
07:28:13        	Notice: Applied catalog in 2.02 seconds
07:28:13        
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/host.rb:375:in `exec'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
07:28:13      # ./spec/acceptance/install_spec.rb:233:in `block (2 levels) in <top (required)>'
07:28:13 
07:28:13   3) java::oracle installs oracle jdk with jce
07:28:13      Failure/Error: apply_manifest(install_oracle_jdk_jce, catch_failures: true)
07:28:13      Beaker::Host::CommandFailure:
07:28:13        Host 'wdzdfs7cgjfypep.delivery.puppetlabs.net' exited with 6 running:
07:28:13         puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.7wrPU2
07:28:13        Last 10 lines of output were:
07:28:13        	Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.16 seconds
07:28:13        	Info: Applying configuration version '1539354484'
07:28:13        	Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jdk 8]/returns: executed successfully
07:28:13        	Error: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:13        	Error: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:13        	Wrapped exception:
07:28:13        	No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security
07:28:13        	Error: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jce-8.zip]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:13        	Info: Java::Oracle[test_oracle_jre]: Unscheduling all events on Java::Oracle[test_oracle_jre]
07:28:13        	Notice: Applied catalog in 4.34 seconds
07:28:13        
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/host.rb:375:in `exec'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
07:28:13      # ./spec/acceptance/install_spec.rb:238:in `block (2 levels) in <top (required)>'
07:28:13 
07:28:13   4) java::oracle installs oracle jre with jce
07:28:13      Failure/Error: apply_manifest(install_oracle_jre_jce, catch_failures: true)
07:28:13      Beaker::Host::CommandFailure:
07:28:13        Host 'wdzdfs7cgjfypep.delivery.puppetlabs.net' exited with 6 running:
07:28:13         puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.CI6ros
07:28:13        Last 10 lines of output were:
07:28:13        	Info: Loading facts
07:28:13        	Info: Loading facts
07:28:13        	Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jre-8u181-linux-x64.rpm
07:28:13        	Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.16 seconds
07:28:13        	Info: Applying configuration version '1539354490'
07:28:13        	Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jre 8]/returns: executed successfully
07:28:13        	Info: Java::Oracle[test_oracle_jre]: Unscheduling all events on Java::Oracle[test_oracle_jre]
07:28:13        	Error: No such file or directory @ dir_chdir - /usr/java/jre1.8.0_181/lib/security
07:28:13        	Error: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jce-8.zip]/creates: change from 'archive not extracted' to extracting in /usr/java/jre1.8.0_181/lib/security to create /usr/java/jre1.8.0_181/lib/security/US_export_policy.jar failed: No such file or directory @ dir_chdir - /usr/java/jre1.8.0_181/lib/security
07:28:13        	Notice: Applied catalog in 2.02 seconds
07:28:13        
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/host.rb:375:in `exec'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:83:in `block in on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/helpers/host_helpers.rb:63:in `on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:529:in `block in apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/shared/host_manager.rb:130:in `run_block_on'
07:28:13      # ./.bundle/gems/gems/beaker-4.0.0/lib/beaker/dsl/patterns.rb:37:in `block_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:457:in `apply_manifest_on'
07:28:13      # ./.bundle/gems/gems/beaker-puppet-1.6.0/lib/beaker-puppet/helpers/puppet_helpers.rb:536:in `apply_manifest'
07:28:13      # ./spec/acceptance/install_spec.rb:244:in `block (2 levels) in <top (required)>'
07:28:13 
07:28:13 Finished in 2 minutes 10.5 seconds (files took 39.67 seconds to load)
07:28:13 12 examples, 4 failures

And here's the debug output:

07:26:52 localhost $ scp /tmp/beaker20181012-2479-1yh6ygq redhat6-64-1:/tmp/apply_manifest.pp.nSrACy {:ignore => }
07:26:52 
07:26:52 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:26:52$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.nSrACy
07:26:52   Info: Loading facts
07:26:54   Info: Loading facts
07:26:54   Info: Loading facts
07:26:54   Info: Loading facts
07:26:54   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jdk-8u181-linux-x64.rpm
07:26:54   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.15 seconds
07:26:55   Info: Applying configuration version '1539354414'
07:26:55   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jdk-8u181-linux-x64.rpm]/ensure: download archive from http://download.oracle.com/otn-pub/java/jdk//8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm to /tmp/jdk-8u181-linux-x64.rpm  without cleanup
07:27:33   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jdk 8]/returns: executed successfully
07:27:37   Notice: Applied catalog in 42.62 seconds
07:27:37 
07:27:37 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 44.87 seconds
07:27:37 Exited: 2
07:27:37 
07:27:37 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:37$ mktemp -t apply_manifest.pp.XXXXXX
07:27:37   /tmp/apply_manifest.pp.32k10t
07:27:37 
07:27:37 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 0.05 seconds
07:27:37 localhost $ scp /tmp/beaker20181012-2479-ho65i9 redhat6-64-1:/tmp/apply_manifest.pp.32k10t {:ignore => }
07:27:37 
07:27:37 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:37$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.32k10t
07:27:37   Info: Loading facts
07:27:39   Info: Loading facts
07:27:39   Info: Loading facts
07:27:39   Info: Loading facts
07:27:39   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jdk-8u181-linux-x64.rpm
07:27:40   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.15 seconds
07:27:40   Info: Applying configuration version '1539354459'
07:27:40   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jdk 8]/returns: executed successfully
07:27:44   Notice: Applied catalog in 4.03 seconds
07:27:44 
07:27:44 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 6.32 seconds
07:27:44 Exited: 2
07:27:44   installs oracle jdk (FAILED - 1)
07:27:44 
07:27:44 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:44$ mktemp -t apply_manifest.pp.XXXXXX
07:27:44   /tmp/apply_manifest.pp.HZqeJP
07:27:44 
07:27:44 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 0.05 seconds
07:27:44 localhost $ scp /tmp/beaker20181012-2479-xtvdic redhat6-64-1:/tmp/apply_manifest.pp.HZqeJP {:ignore => }
07:27:44 
07:27:44 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:44$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.HZqeJP
07:27:44   Info: Loading facts
07:27:45   Info: Loading facts
07:27:45   Info: Loading facts
07:27:45   Info: Loading facts
07:27:45   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jre-8u181-linux-x64.rpm
07:27:46   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.14 seconds
07:27:46   Info: Applying configuration version '1539354466'
07:27:46   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jre-8u181-linux-x64.rpm]/ensure: download archive from http://download.oracle.com/otn-pub/java/jdk//8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u181-linux-x64.rpm to /tmp/jre-8u181-linux-x64.rpm  without cleanup
07:27:54   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jre 8]/returns: executed successfully
07:27:57   Notice: Applied catalog in 10.94 seconds
07:27:57 
07:27:57 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 13.21 seconds
07:27:57 Exited: 2
07:27:57 
07:27:57 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:57$ mktemp -t apply_manifest.pp.XXXXXX
07:27:57   /tmp/apply_manifest.pp.2dG9S1
07:27:57 
07:27:57 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 0.05 seconds
07:27:57 localhost $ scp /tmp/beaker20181012-2479-9z3sk5 redhat6-64-1:/tmp/apply_manifest.pp.2dG9S1 {:ignore => }
07:27:57 
07:27:57 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:27:57$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.2dG9S1
07:27:57   Info: Loading facts
07:27:59   Info: Loading facts
07:27:59   Info: Loading facts
07:27:59   Info: Loading facts
07:27:59   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jre-8u181-linux-x64.rpm
07:27:59   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.15 seconds
07:27:59   Info: Applying configuration version '1539354479'
07:27:59   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jre 8]/returns: executed successfully
07:28:01   Notice: Applied catalog in 2.02 seconds
07:28:01 
07:28:02 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 4.30 seconds
07:28:02 Exited: 2
07:28:02   installs oracle jre (FAILED - 2)
07:28:02 
07:28:02 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:28:02$ mktemp -t apply_manifest.pp.XXXXXX
07:28:02   /tmp/apply_manifest.pp.7wrPU2
07:28:02 
07:28:02 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 0.05 seconds
07:28:02 localhost $ scp /tmp/beaker20181012-2479-q98rsr redhat6-64-1:/tmp/apply_manifest.pp.7wrPU2 {:ignore => }
07:28:02 
07:28:02 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:28:02$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.7wrPU2
07:28:02   Info: Loading facts
07:28:03   Info: Loading facts
07:28:03   Info: Loading facts
07:28:03   Info: Loading facts
07:28:03   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jdk-8u181-linux-x64.rpm
07:28:04   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.16 seconds
07:28:04   Info: Applying configuration version '1539354484'
07:28:04   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jdk 8]/returns: executed successfully
07:28:08   Error: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:08   Error: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:08   Wrapped exception:
07:28:08   No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security
07:28:08   Error: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jce-8.zip]/ensure: change from 'absent' to 'present' failed: Could not set 'present' on ensure: No such file or directory @ dir_chdir - /usr/java/jdk1.8.0_181/jre/lib/security (file: /etc/puppetlabs/code/modules/java/manifests/oracle.pp, line: 311)
07:28:08   Info: Java::Oracle[test_oracle_jre]: Unscheduling all events on Java::Oracle[test_oracle_jre]
07:28:08   Notice: Applied catalog in 4.34 seconds
07:28:08 
07:28:08 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 6.64 seconds
07:28:08 Exited: 6
07:28:08   installs oracle jdk with jce (FAILED - 3)
07:28:08 
07:28:08 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:28:08$ mktemp -t apply_manifest.pp.XXXXXX
07:28:08   /tmp/apply_manifest.pp.CI6ros
07:28:08 
07:28:08 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 0.05 seconds
07:28:08 localhost $ scp /tmp/beaker20181012-2479-1rdvnaz redhat6-64-1:/tmp/apply_manifest.pp.CI6ros {:ignore => }
07:28:08 
07:28:08 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) 14:28:08$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.CI6ros
07:28:08   Info: Loading facts
07:28:10   Info: Loading facts
07:28:10   Info: Loading facts
07:28:10   Info: Loading facts
07:28:10   Notice: Scope(Java::Oracle[test_oracle_jre]): Destination is /tmp/jre-8u181-linux-x64.rpm
07:28:11   Notice: Compiled catalog for wdzdfs7cgjfypep.delivery.puppetlabs.net in environment production in 0.16 seconds
07:28:11   Info: Applying configuration version '1539354490'
07:28:11   Notice: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Exec[Install Oracle java_se jre 8]/returns: executed successfully
07:28:13   Info: Java::Oracle[test_oracle_jre]: Unscheduling all events on Java::Oracle[test_oracle_jre]
07:28:13   Error: No such file or directory @ dir_chdir - /usr/java/jre1.8.0_181/lib/security
07:28:13   Error: /Stage[main]/Main/Java::Oracle[test_oracle_jre]/Archive[/tmp/jce-8.zip]/creates: change from 'archive not extracted' to extracting in /usr/java/jre1.8.0_181/lib/security to create /usr/java/jre1.8.0_181/lib/security/US_export_policy.jar failed: No such file or directory @ dir_chdir - /usr/java/jre1.8.0_181/lib/security
07:28:13   Notice: Applied catalog in 2.02 seconds
07:28:13 
07:28:13 wdzdfs7cgjfypep.delivery.puppetlabs.net (redhat6-64-1) executed in 4.33 seconds
07:28:13 Exited: 6
07:28:13   installs oracle jre with jce (FAILED - 4)

Hope this helps

@dploeger
Copy link
Contributor Author

@david22swan Hm... looks as if /usr/java/xxx isn't the correct path on a RHEL system. Maybe this line happens to be the case not only for CentOS but also for RHEL? Do you perhaps know that?

@david22swan
Copy link
Member

@dploeger I'm not sure, but it sounds like something that could be right.

@dploeger
Copy link
Contributor Author

@david22swan Changed that. Please try again.

@david22swan
Copy link
Member

@dploeger Now running clean through the adhoc. :)
If you can squish your commits down into one I will be happy to merge.
Sorry for the time it took to reply, was in training all week.

@dploeger
Copy link
Contributor Author

I can, sure, but did you know, that you can do that yourself when merging as described here?

@david22swan david22swan merged commit b53a78f into puppetlabs:master Oct 18, 2018
@dploeger
Copy link
Contributor Author

Great! Thanks!

@dploeger dploeger deleted the MODULES-1681 branch October 18, 2018 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants