[PUP-7053] Test utf8_user_comments.rb fails to create user with UTF-8 comment on AIX Created: 2016/12/30  Updated: 2017/03/22  Resolved: 2017/01/05

Status: Closed
Project: Puppet
Component/s: Types and Providers
Affects Version/s: PUP 4.8.2, PUP 4.9.4
Fix Version/s: PUP 4.9.0

Type: Bug Priority: Normal
Reporter: Kurt Wall Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance Criteria:
  • AIX test creates user with UTF-8 comment
Team: Agent
Story Points: 1
Sprint: AP 2017-01-11
Release Notes: Not Needed
QA Risk Assessment: Manual

 Description   

The user provider on AIX (5.3 at least) fails to create user with a UTF-8 GECOS string. The complaint is that the user name is too long. From tests/resource/user/utf8_user_comments.rb:

            pe-aix-53-acceptance.delivery.puppetlabs.net (pe-aix-53-acceptance) 02:48:42$ env LANG="POSIX" puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.7956
              Notice: Compiled catalog for pe-aix-53-acceptance.delivery.puppetlabs.net in environment production in 0.11 seconds
              Info: Applying configuration version '1483094925'
              Error: Could not create user quux94122: Execution of '/usr/bin/mkuser gecos=Aۿ quux94122' returned 86: Error adding "quux94122" : Name is too long.
              Error: /Stage[main]/Main/User[quux94122]/ensure: change from absent to present failed: Could not create user quux94122: Execution of '/usr/bin/mkuser gecos=Aۿ quux94122' returned 86: Error adding "quux94122" : Name is too long.
              Notice: Applied catalog in 0.48 seconds
            
            pe-aix-53-acceptance.delivery.puppetlabs.net (pe-aix-53-acceptance) executed in 4.13 seconds
            Exited: 4
            Beaker::Host::CommandFailure: Host 'pe-aix-53-acceptance.delivery.puppetlabs.net' exited with 4 running:
             env LANG="POSIX" puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.7956

See



 Comments   
Comment by Kurt Wall [ 2016/12/30 ]

PIng Moses Mendoza because he added the test. Anything you need from me to work on this?

Comment by Kurt Wall [ 2016/12/30 ]

Darnit. Accidentally pulled the wrong ticket into the sprint. Fixing it.

Comment by Moses Mendoza [ 2016/12/30 ]

Oops - yes, this is indeed my fault. AIX user names by default are limited to 8 characters - and I forgot this.

Comment by Moses Mendoza [ 2016/12/30 ]

PR raised

Comment by Branan Riley [ 2016/12/30 ]

merged in https://github.com/puppetlabs/puppet/commit/9d4188fc7a11e6a7823707788e20f5950bd57c02

Comment by Kurt Wall [ 2017/01/03 ]

Going to pull this through to Testing while I, um, test it with a manual run.

Comment by Kurt Wall [ 2017/01/05 ]

Validated in puppet-agent 1.8.2.393.ge573003. https://jenkins.puppetlabs.com/view/puppet-agent/view/manual/view/master/job/platform_puppet-agent_intn-van-sys_suite-manual-puppet-master/68/SLAVE_LABEL=beaker,TEST_TARGET=aix-53-power/testReport/(root)/tests_resource_user/utf8_user_comments_rb/

Comment by Kenn Hussey [ 2017/01/13 ]

Moses Mendoza or Branan Riley please provide release notes for this issue.

Generated at Sat Dec 07 21:29:47 PST 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.