Jira (PUP-5208) owner uid --> integer 4294967294 too big to convert to `int'

11 views
Skip to first unread message

Karsten (JIRA)

unread,
Sep 7, 2015, 9:49:02 AM9/7/15
to puppe...@googlegroups.com
Karsten created an issue
 
Puppet / Bug PUP-5208
owner uid --> integer 4294967294 too big to convert to `int'
Issue Type: Bug Bug
Affects Versions: PUP 3.7.5
Assignee: Kylo Ginsberg
Components: Client
Created: 2015/09/07 6:48 AM
Environment:

Master: Debian Jessie (puppetmaster 3.7.2-4)
Agent: SLES 11 SP3 (puppet-3.3.1-5.6)

Priority: Normal Normal
Reporter: Karsten

I can't set file owner when the uid is 4294967294.
This is needed by NFS share with windows

Here ist the issue message:
Error: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'
Error: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/File[/etc/ssh/authorized_keys/w2008]/owner: change from root to w2008 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.11#64026-sha1:78f6ec4)
Atlassian logo

Karsten (JIRA)

unread,
Sep 8, 2015, 4:20:02 AM9/8/15
to puppe...@googlegroups.com
Karsten updated an issue
Change By: Karsten
Priority: Normal Critical

Kylo Ginsberg (JIRA)

unread,
Sep 11, 2015, 6:29:05 PM9/11/15
to puppe...@googlegroups.com
Kylo Ginsberg commented on Bug PUP-5208
 
Re: owner uid --> integer 4294967294 too big to convert to `int'

Hi Karsten, can you try this with --trace and attach that output? Thanks!

Karsten (JIRA)

unread,
Sep 12, 2015, 3:20:05 AM9/12/15
to puppe...@googlegroups.com
Karsten commented on Bug PUP-5208

Here ist the --trace output:

Error: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/provider/file/posix.rb:83:in `owner='
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:178:in `send'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:178:in `call_provider'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:503:in `set'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:581:in `sync'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:113:in `apply_parameter'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:61:in `perform_changes'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:59:in `each'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:59:in `perform_changes'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:138:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:161:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:174:in `eval_resource'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `call'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:354:in `thinmark'
/usr/lib64/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:353:in `thinmark'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:95:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/resource/catalog.rb:164:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/log.rb:147:in `with_destination'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/report.rb:108:in `as_logging_destination'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/resource/catalog.rb:163:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:125:in `apply_catalog'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:182:in `benchmark'
/usr/lib64/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:181:in `benchmark'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:124:in `apply_catalog'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:190:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent/locker.rb:20:in `lock'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:119:in `with_client'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:42:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:84:in `run_in_fork'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:41:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:179:in `call'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:179:in `controlled_run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application/agent.rb:360:in `onetime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application/agent.rb:326:in `run_command'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:457:in `plugin_hook'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:511:in `exit_on_fail'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb:132:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb:86:in `execute'
/usr/bin/puppet:4
Error: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/File[/etc/ssh/authorized_keys/w2008]/owner: change from root to w2008 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'
Error: Failed to set group to '4294967294': integer 4294967294 too big to convert to `int'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/provider/file/posix.rb:114:in `group='
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:178:in `send'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:178:in `call_provider'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:503:in `set'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/property.rb:581:in `sync'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:113:in `apply_parameter'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:61:in `perform_changes'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:59:in `each'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:59:in `perform_changes'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/resource_harness.rb:138:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:161:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:174:in `eval_resource'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `call'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:354:in `thinmark'
/usr/lib64/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:353:in `thinmark'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:104:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction.rb:95:in `evaluate'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/resource/catalog.rb:164:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/log.rb:147:in `with_destination'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/transaction/report.rb:108:in `as_logging_destination'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/resource/catalog.rb:163:in `apply'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:125:in `apply_catalog'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:182:in `benchmark'
/usr/lib64/ruby/1.8/benchmark.rb:308:in `realtime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:181:in `benchmark'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:124:in `apply_catalog'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/configurer.rb:190:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent/locker.rb:20:in `lock'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:45:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:119:in `with_client'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:42:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:84:in `run_in_fork'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:41:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:179:in `call'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:179:in `controlled_run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/agent.rb:39:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application/agent.rb:360:in `onetime'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application/agent.rb:326:in `run_command'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:457:in `plugin_hook'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util.rb:511:in `exit_on_fail'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/application.rb:364:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb:132:in `run'
/usr/lib64/ruby/vendor_ruby/1.8/puppet/util/command_line.rb:86:in `execute'
/usr/bin/puppet:4
Error: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/File[/etc/ssh/authorized_keys/w2008]/group: change from root to w2008 failed: Failed to set group to '4294967294': integer 4294967294 too big to convert to `int'
Notice: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/Ssh_authorized_key[w2008]: Dependency File[/etc/ssh/authorized_keys/w2008] has failures: true
Warning: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/Ssh_authorized_key[w2008]: Skipping because of failed dependencies

Kylo Ginsberg (JIRA)

unread,
Sep 12, 2015, 8:56:05 PM9/12/15
to puppe...@googlegroups.com
Kylo Ginsberg commented on Bug PUP-5208

Karsten two thoughts:

1) can you reproduce this with a current version of puppet, either 3.8.1 or (preferably) 4.2.1? If you use the puppet-agent packages that provide puppet 4.2.1, that will include ruby 2.1.6 (and I think it's ruby that is emitting the "too big to convert" exception.

2) are you setting maximum_uid? I ask because if I try this, I get:

[171]  puppet git:(stable) sudo bundle exec puppet apply -e 'file { "/tmp/pup-5208.txt": ensure => file, owner => 4294967294 }'
Notice: Compiled catalog for kylo.local in environment production in 0.44 seconds
Warning: File[/tmp/pup-5208.txt](provider=posix): Apparently using negative UID (4294967294) on a platform that does not consistently handle them
Notice: /Stage[main]/Main/File[/tmp/pup-5208.txt]/owner: owner changed 'silly' to '4294967294'
Notice: Applied catalog in 0.03 seconds

And instead I need to set maximum_uid to something huge, but then I get success:

[172]  puppet git:(stable) sudo bundle exec puppet apply -e 'file { "/tmp/pup-5208.txt": ensure => file, owner => 4294967294 }' --maximum_uid 100000000000000
Notice: Compiled catalog for kylo.local in environment production in 0.36 seconds
Notice: Applied catalog in 0.02 seconds

Karsten (JIRA)

unread,
Sep 14, 2015, 12:58:04 AM9/14/15
to puppe...@googlegroups.com
Karsten commented on Bug PUP-5208

sorry, i forgot to write in this ticket, that i change the maximum_uid value to 4294967294.

Karsten (JIRA)

unread,
Oct 13, 2015, 7:13:15 AM10/13/15
to puppe...@googlegroups.com
Karsten commented on Bug PUP-5208

sorry for the delay....
I try it with other puppet agent version:
```
rubygem-puppet-vim-3.8.2-1.2
puppet-3.8.2-5
ruby1.8-rubygem-puppet-3.8.2-1.2
rubygem-puppet-3.8.2-1.2
```
the result is the same
```
Error: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'


Error: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/File[/etc/ssh/authorized_keys/w2008]/owner: change from root to w2008 failed: Failed to set owner to '4294967294': integer 4294967294 too big to convert to `int'

Error: Failed to set group to '4294967294': integer 4294967294 too big to convert to `int'


Error: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/File[/etc/ssh/authorized_keys/w2008]/group: change from root to w2008 failed: Failed to set group to '4294967294': integer 4294967294 too big to convert to `int'
Notice: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/Ssh_authorized_key[w2008]: Dependency File[/etc/ssh/authorized_keys/w2008] has failures: true
Warning: /Stage[main]/Users::Services/Users::Virtual::Localuser[w2008]/Ssh_authorized_key[w2008]: Skipping because of failed dependencies

```
any ideas?

Karsten (JIRA)

unread,
Oct 13, 2015, 7:14:02 AM10/13/15
to puppe...@googlegroups.com
Karsten updated an issue
Change By: Karsten
Environment:
Master: Debian Jessie (puppetmaster 3.7.2-4)
Agent: SLES 11 SP3 (puppet-3. 3 8 . 1 2 - 5 1 . 6 2 )

Karsten (JIRA)

unread,
Oct 13, 2015, 7:15:03 AM10/13/15
to puppe...@googlegroups.com
Karsten updated an issue
Change By: Karsten
Environment:
Master: Debian Jessie (puppetmaster 3.7.2-4)
Agent: SLES 11 SP3 (puppet-3.8.2-1.2 , ruby 1.8.7 )

Karsten (JIRA)

unread,
Nov 9, 2015, 1:30:03 AM11/9/15
to puppe...@googlegroups.com
Karsten commented on Bug PUP-5208
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

mattison ward (JIRA)

unread,
Dec 10, 2015, 9:29:03 AM12/10/15
to puppe...@googlegroups.com
mattison ward commented on Bug PUP-5208

I have a similar issue with puppet 3.8.3 with a uid and gid > 2 million.

Error: integer 3333333333 too big to convert to `int'
Error:
content:
change from

{md5}8ac0a40d78fb871f32a4d1bccd3a159a to{md5}

b6ee926e576bbc098e7b07963f89f0aa failed: integer 3333333333 too big
to convert to `int'
Notice: Finished catalog run in 14.75 seconds
$ ls -al /opt/odbc/odbc.ini

rw-r r -. 1 sas sas 8949 Dec 9 15:41 /opt/odbc/odbc.ini
$ sudo -u sas id
uid=3333333333(sas) gid=3333333333(sas) groups=3333333333(sas)

Kylo Ginsberg (JIRA)

unread,
Aug 16, 2016, 10:23:03 PM8/16/16
to puppe...@googlegroups.com
Kylo Ginsberg assigned an issue to Unassigned
 
Change By: Kylo Ginsberg
Assignee: Kylo Ginsberg
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Branan Riley (JIRA)

unread,
May 15, 2017, 4:25:03 PM5/15/17
to puppe...@googlegroups.com
Branan Riley updated an issue
Change By: Branan Riley
Labels: help_wanted needs_repro triaged
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Jacob Helwig (JIRA)

unread,
Dec 4, 2017, 6:17:02 PM12/4/17
to puppe...@googlegroups.com
Jacob Helwig updated an issue
Change By: Jacob Helwig
Sub-team: Coremunity
This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Josh Cooper (Jira)

unread,
Mar 5, 2020, 3:17:03 AM3/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-5208
 
Re: owner uid --> integer 4294967294 too big to convert to `int'

This is no longer an issue, presumably because ruby 2.4 unified bignum and fixnum (which includes integer):

[root@vivid-alfresco ~]# puppet apply -e 'file { "/tmp/pup-5208.txt": ensure => file, owner => 4294967294 }'
Notice: Compiled catalog for vivid-alfresco.delivery.puppetlabs.net in environment production in 0.01 seconds
Notice: /Stage[main]/Main/File[/tmp/pup-5208.txt]/ensure: created
Notice: Applied catalog in 0.02 seconds
[root@vivid-alfresco ~]# ls -la /tmp/pup-5208.txt
-rw-r--r-- 1 4294967294 root 0 Mar  5 08:14 /tmp/pup-5208.txt

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages