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

stack level too deep #40

Closed
SmartFocusOps opened this issue Dec 3, 2014 · 20 comments
Closed

stack level too deep #40

SmartFocusOps opened this issue Dec 3, 2014 · 20 comments

Comments

@SmartFocusOps
Copy link

Hi,

since the last update, i have this issue:
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp

@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

A little more info would be appreciated ..
what code are you using in regards to calling the module ?
which puppet version ?
can we get some output ?

@SmartFocusOps
Copy link
Author

the puppet version is puppet-3.7.3, ruby-1.8.7

this is my nodes.pp
class { xldeploy::client:
http_context_root => '/xldeploy',
http_server_address => 'deployit-sandbox.emv2.com',
http_port => '4516',
rest_user => 'admin',
rest_password => 'xxxx',
ssl => false,
cis => { 'project_folder' => { name => "Infrastructure/PREPROD/Equinix/E0",
type => 'core.Directory',
},
'host' => { name => "Infrastructure/PREPROD/Equinix/E0/${hostname}_sshHost",
type => 'overthere.SshHost',
properties => { 'os' => 'UNIX',
'connectionType' => 'SFTP',
'address' => "${hostname}",
'port' => '22',
'username' => 'root',
'privateKeyFile' => '/root/.ssh/id_rsa_ops',
'passphrase' => 'XXXX',
'tags' => 'static-tracker-files',
}
}
}
}

this is the output on the puppet agent:
[root@nlbdeployx1 ~]# puppet agent -t
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for nlbdeployx1.emv2.com
Info: Applying configuration version '1417600539'
Notice: Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]/Notify[Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping'
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Wrapped exception:
stack level too deep
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0]/ensure: change from absent to present failed: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 26.76 seconds

for the code, i'm using the last version of the XLDeploy module version 1.1.2

@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

do me a favour .. do a run with --trace and post the output here ?

@WianVos WianVos closed this as completed Dec 3, 2014
@SmartFocusOps
Copy link
Author

with the --trace
[root@nlbdeployx1 ~]# puppet agent -t --trace
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for nlbdeployx1.emv2.com
Info: Applying configuration version '1417600539'
Notice: Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]/Notify[Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping'
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
/usr/lib/ruby/1.8/uri/generic.rb:166:in initialize' /usr/lib/ruby/1.8/uri/http.rb:78:ininitialize'
/usr/lib/ruby/1.8/uri/common.rb:488:in new' /usr/lib/ruby/1.8/uri/common.rb:488:inparse'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:32:in execute_rest' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:16:inrest_get'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:23:in exists?' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:78:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' #... /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:increate'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in set_present' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:inset'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:insync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:inthinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:inthinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute'
/usr/bin/puppet:8
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
/usr/lib/ruby/1.8/uri/generic.rb:166:in initialize' /usr/lib/ruby/1.8/uri/http.rb:78:ininitialize'
/usr/lib/ruby/1.8/uri/common.rb:488:in new' /usr/lib/ruby/1.8/uri/common.rb:488:inparse'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:32:in execute_rest' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:16:inrest_get'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:23:in exists?' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:78:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
#...
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:increate'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in set_present' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:inset'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:insync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:inthinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:inthinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute'
/usr/bin/puppet:8
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0]/ensure: change from absent to present failed: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Notice: Finished catalog run in 31.78 seconds

@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

thnx, i think i've spotted the problem ..
The xldeploy_ci is trying to create all the missing parent directory's .. and there are too many ..
Are you using puppet enterprise of just puppet ?
i guess the latter judging from the ruby version.

@WianVos WianVos reopened this Dec 3, 2014
@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

closed it by accident .. sorry about that

@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

please try adding seperate ci's for the directory structure.. that should fix the problem for now .

@SmartFocusOps
Copy link
Author

is it this kind of struture you suggest ?

xldeploy_ci{ 'Infrastructure/projectx':
ensure => present,
type => 'core.Directory',
rest_url => 'http://admin:password@xldeploy.domain.local:4516/xldeploy' }
}

xldeploy_ci{ "Infrastructure/projectx/${hostname}_sshHost":
ensure => present,
type => 'overthere.SshHost',
properties => { 'os' => 'UNIX',
'port' => '22',
'username' => 'deployit',
'tags' => 'projectx',
'connectionType' => 'SCP',
'address' => '${hostname}' },
rest_url => 'http://admin:password@xldeploy.domain.local:4516/xldeploy' }
}

@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

just hold on .. i'm investigating this ..
My suggestion to you might not solve your problem ..

WianVos added a commit that referenced this issue Dec 3, 2014
WianVos added a commit that referenced this issue Dec 3, 2014
WianVos added a commit that referenced this issue Dec 3, 2014
@WianVos
Copy link
Contributor

WianVos commented Dec 3, 2014

so far i have been unable to recreate the issue using ruby 1.9.3 .
Is it at all a posibility for you to upgrade to that?

@SmartFocusOps
Copy link
Author

Hi,
I updated ruby to 1.9.3 and still have the same issue

[root@nlbdeployx1 ~]# puppet agent -t --trace --debug
..........................
Debug: /File[/usr/local/tomcat/webapps/manager/WEB-INF/jsp/sessionDetail.jsp]/seltype: Found seltype default 'usr_t' for /usr/local/tomcat/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
Debug: /File[/usr/local/tomcat/webapps/manager/WEB-INF/jsp/sessionDetail.jsp]/selrange: Found selrange default 's0' for /usr/local/tomcat/webapps/manager/WEB-INF/jsp/sessionDetail.jsp
Debug: Execconcat_/etc/motd: Executing check '/var/lib/puppet/concat/bin/concatfragments.sh -o /var/lib/puppet/concat/_etc_motd/fragments.concat.out -d /var/lib/puppet/concat/_etc_motd -t '
Debug: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o /var/lib/puppet/concat/_etc_motd/fragments.concat.out -d /var/lib/puppet/concat/_etc_motd -t '
Debug: /Stage[main]/Httpd/File[logrotate-httpd-remove]: Nothing to manage: no ensure and the resource doesn't exist
Debug: Executing '/sbin/service httpd status'
Debug: Executing '/sbin/chkconfig httpd'
Notice: Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]/Notify[Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping'
Debug: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]/Notify[Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping]: The container Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com] will propagate my refresh event
Debug: Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]: The container Class[Xldeploy::Client::User] will propagate my refresh event
Debug: Class[Xldeploy::Client::User]: The container Stage[main] will propagate my refresh event
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Closing connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Creating new connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Starting connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Caching connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Prefetching gem resources for package
Debug: Executing '/usr/local/rvm/rubies/ruby-1.9.3-p551/bin/gem list --local'
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Caching connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Failed to load library 'msgpack' for feature 'msgpack'
Debug: Puppet::Network::Format[msgpack]: feature msgpack is missing
Debug: file_metadata supports formats: pson b64_zlib_yaml yaml raw
Debug: Using cached connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Caching connection for https://puppetmaster-devx1.emv2.com:8140
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
/usr/lib/ruby/1.8/uri/generic.rb:166:in initialize' /usr/lib/ruby/1.8/uri/http.rb:78:ininitialize'
/usr/lib/ruby/1.8/uri/common.rb:488:in new' /usr/lib/ruby/1.8/uri/common.rb:488:inparse'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:32:in execute_rest' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:16:inrest_get'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:23:in exists?' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:78:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' ........................................... /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:increate'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in set_present' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:inset'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:insync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:inthinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:inthinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute'
/usr/bin/puppet:8
Error: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
/usr/lib/ruby/1.8/uri/generic.rb:166:in initialize' /usr/lib/ruby/1.8/uri/http.rb:78:ininitialize'
/usr/lib/ruby/1.8/uri/common.rb:488:in new' /usr/lib/ruby/1.8/uri/common.rb:488:inparse'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:32:in execute_rest' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:16:inrest_get'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:23:in exists?' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:78:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' ................................................ /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:inpersist'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:in ensure_parent_directory' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:inpersist'
/var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:in create' /usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:inset_present'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in send' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:incall_valuemethod'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:in set' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:insync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:insync_if_needed'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:in perform_changes' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:inevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:ineval_resource'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in call' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:inevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:in thinmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:in thinmark' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:inevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:in traverse' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:inevaluate'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:inwith_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:in as_logging_destination' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:inbenchmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:inbenchmark'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:in apply_catalog' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:inrun_internal'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:in run' /usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet.rb:244:in override' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:inlock'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:inwith_client'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:inrun_in_fork'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in controlled_run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:in onetime' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:inrun_command'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:inplugin_hook'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:inexit_on_fail'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:in execute' /usr/bin/puppet:8 Wrapped exception: stack level too deep /usr/lib/ruby/1.8/uri/generic.rb:166:ininitialize'
/usr/lib/ruby/1.8/uri/http.rb:78:in initialize' /usr/lib/ruby/1.8/uri/common.rb:488:innew'
/usr/lib/ruby/1.8/uri/common.rb:488:in parse' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:32:inexecute_rest'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/xldeploy.rb:16:in rest_get' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:23:inexists?'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:78:in ensure_parent_directory' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:inpersist'
..............................................
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:79:inensure_parent_directory'
/var/lib/puppet/lib/puppet_x/xebialabs/xldeploy/ci.rb:61:in persist' /var/lib/puppet/lib/puppet/provider/xldeploy_ci/rest.rb:10:increate'
/usr/lib/ruby/site_ruby/1.8/puppet/property/ensure.rb:16:in set_present' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:insend'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:197:in call_valuemethod' /usr/lib/ruby/site_ruby/1.8/puppet/property.rb:498:inset'
/usr/lib/ruby/site_ruby/1.8/puppet/property.rb:581:in sync' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:204:insync'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:128:in sync_if_needed' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:81:inperform_changes'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction/resource_harness.rb:20:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:204:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:217:in eval_resource' /usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:incall'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:327:inthinmark'
/usr/lib/ruby/1.8/benchmark.rb:308:in realtime' /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:326:inthinmark'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:147:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/graph/relationship_graph.rb:118:intraverse'
/usr/lib/ruby/site_ruby/1.8/puppet/transaction.rb:138:in evaluate' /usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:169:inapply'
/usr/lib/ruby/site_ruby/1.8/puppet/util/log.rb:149:in with_destination' /usr/lib/ruby/site_ruby/1.8/puppet/transaction/report.rb:112:inas_logging_destination'
/usr/lib/ruby/site_ruby/1.8/puppet/resource/catalog.rb:168:in apply' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:118:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:161:in benchmark' /usr/lib/ruby/1.8/benchmark.rb:308:inrealtime'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:160:in benchmark' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:117:inapply_catalog'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:224:in run_internal' /usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:132:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/context.rb:64:in override' /usr/lib/ruby/site_ruby/1.8/puppet.rb:244:inoverride'
/usr/lib/ruby/site_ruby/1.8/puppet/configurer.rb:131:in run' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent/locker.rb:20:in lock' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:47:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:117:in with_client' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:44:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:82:in run_in_fork' /usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:43:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:in call' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:179:incontrolled_run'
/usr/lib/ruby/site_ruby/1.8/puppet/agent.rb:41:in run' /usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:356:inonetime'
/usr/lib/ruby/site_ruby/1.8/puppet/application/agent.rb:322:in run_command' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/application.rb:507:in plugin_hook' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util.rb:488:in exit_on_fail' /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:381:inrun'
/usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:146:in run' /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:92:inexecute'
/usr/bin/puppet:8
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0]/ensure: change from absent to present failed: Could not set 'present' on ensure: stack level too deep at 45:/etc/puppet/environments/production/modules/xldeploy/manifests/client/config_ci.pp
Notice: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[host]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0/nlbdeployx1_sshHost]: Skipping because of failed dependencies
Notice: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Dependency Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0] has failures: true
Warning: /Stage[main]/Xldeploy::Client/Anchor[xldeploy::client::end]: Skipping because of failed dependencies
Debug: Finishing transaction 69917668934160
Debug: Storing state
Debug: Stored state in 0.10 seconds
Notice: Finished catalog run in 65.33 seconds
Debug: Closing connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Creating new connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Starting connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Caching connection for https://puppetmaster-devx1.emv2.com:8140
Debug: Closing connection for https://puppetmaster-devx1.emv2.com:8140

@WianVos
Copy link
Contributor

WianVos commented Dec 4, 2014

hmm .. i wonder why it's still saying site_ruby/1.8 all throughout the logs...

@SmartFocusOps
Copy link
Author

Hi,
do you know a public repo where we can find Ruby 1.9.3 and all its dependencies.
Regards

@WianVos
Copy link
Contributor

WianVos commented Dec 5, 2014

try http://rvm.io

@SmartFocusOps
Copy link
Author

I used the rvm so now i have this:
[root@nlbdeployx1 ~]# ruby -v
ruby 1.9.3p551 (2014-11-13 revision 48407) [x86_64-linux]
but still have the issue with lib ruby 1.8
still have the issue with the "stack level too deep"

@SmartFocusOps
Copy link
Author

Hi,
can you do on your side a test with a ruby 1.8.7?
on my side, I found the ruby 1.9.3 repo on GitHub - https://github.com/stahnma/elruby - but there is an issue with the ruby-shadow and ruby-augeas: stahnma/elruby#12
if you cannot use ruby 1.8.7, have you a proc to install ruby 1.9.3 ?
Regards.

@SmartFocusOps
Copy link
Author

Hi,
I have updated ruby with 1.9.3 with this proc:

yum remove -y ruby facter puppet
curl -L get.rvm.io | bash -s stable
/usr/local/rvm/bin/rvm install ruby-1.9.3
/usr/local/rvm/bin/rvm pkg install zlib
/usr/local/rvm/bin/rvm reinstall all --force
yum install augeas-libs augeas-devel compat-readline5 libselinux-ruby
rvm use 1.9.3 --default
gem install ruby-augeas
gem install facter
gem install puppet
gem install bundler
gem install librarian-puppet

still have the same issue but no more using lib 1.8.7.
this is the trace:
[root@nlbdeployx1 puppet]# puppet agent -t --trace
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for nlbdeployx1.emv2.com
Info: Applying configuration version '1418139646'
Notice: Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping
Notice: /Stage[main]/Xldeploy::Client::User/Sshkeys::Set_authorized_key[xldeploy@deployit-sandbox.emv2.com]/Notify[Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping]/message: defined 'message' as 'Public key from xldeploy@deployit-sandbox.emv2.com@deployit-sandbox.emv2.com not available yet. Skipping'
Error: /Stage[main]/Xldeploy::Client::Config/Xldeploy::Client::Config_ci[project_folder]/Xldeploy_ci[Infrastructure/PREPROD/Equinix/E0]/ensure: change from absent to present failed: stack level too deep
Error: Could not run Puppet configuration client: stack level too deep
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/transaction/resource_harness.rb:148
Error: Could not run: can't convert Puppet::Util::Log into Integer
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:366:in exit' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:366:inonetime'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application/agent.rb:322:in run_command' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock (2 levels) in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:507:in plugin_hook' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inblock in run'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util.rb:488:in exit_on_fail' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/application.rb:381:inrun'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:146:in run' /usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/lib/puppet/util/command_line.rb:92:inexecute'
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/puppet-3.7.3/bin/puppet:8:in <top (required)>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:inload'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/puppet:23:in <main>' /usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:ineval'
/usr/local/rvm/gems/ruby-1.9.3-p551/bin/ruby_executable_hooks:15:in `

'
You have new mail in /var/spool/mail/root

@superseb
Copy link
Contributor

Stack level too deep usually means recursion, and it shows in the output. It's flipping between persist and ensure_parent_directory.

The problem is that the persist method calls ensure_parent_directory, and if the parent does not exist it calls persist to make sure it exists..

@WianVos Can you check your local code to see what you have if you cannot reproduce this:

https://github.com/xebialabs/puppet-xldeploy/blob/master/lib/puppet_x/xebialabs/xldeploy/ci.rb#L61
https://github.com/xebialabs/puppet-xldeploy/blob/master/lib/puppet_x/xebialabs/xldeploy/ci.rb#L84

@WianVos
Copy link
Contributor

WianVos commented Dec 12, 2014

my code is the last version

@WianVos
Copy link
Contributor

WianVos commented Dec 14, 2014

I've found the problem . It was in the default behaviour of the ruby pathname module .
Fix is merged into main branch

Sorry for putting you through the whole debugging process.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants