[FACT-1427] identity.privileged fact is not set on zlinux based sles11 Created: 2016/05/19  Updated: 2016/10/05  Resolved: 2016/06/27

Status: Closed
Project: Facter
Component/s: None
Affects Version/s: None
Fix Version/s: FACT 3.3.0

Type: Bug Priority: Normal
Reporter: John Duarte Assignee: John Duarte
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to FACT-1426 Triage acceptance failures on zlinux ... Closed
Template:
Release Notes: Not Needed

 Description   

Using puppet-agent at sha 6719e02 containing facter at sha be447f8, the identity fact does not contain a privileged value on sles11 running on zlinux.

identity fact on sles 11 running on zlinux

As root

 # facter identity
{
  gid => 0,
  group => "root",
  uid => 0,
  user => "root"
}

Expected value

{
  gid => 0,
  group => "root",
  uid => 0,
  user => "root",
  privileged => "true"
}



 Comments   
Comment by John Duarte [ 2016/05/19 ]

Hrm.. This doesn't work for me on sles11-x86_64 either. Maybe there is something I am missing.

Reproduction steps

  1. Check out facter at sha a91b01e
  2. Run test using acceptance rake task against puppet-agent 1.5.0

    SHA=1.5.0 TEST_TARGET=sles11-64a TESTS='tests/facts/sles.rb'  be rake ci:test:aio
    

Results

Failed Tests Cases:
  Test Case tests/facts/sles.rb reported: #<Minitest::Assertion: Expected: "true"
  Actual: "">

Comment by John Duarte [ 2016/06/27 ]

Need to retest.

Comment by John Duarte [ 2016/06/27 ]

As of puppet-agent at SHA 74a8b34, the identity.privileged fact is present and set to true for the root user as expected on sles-11 deployed on zlinux.

acceptance-sandbox:~ # rpm -qa | grep puppet
puppet-agent-1.5.2.169.g74a8b34-1.sles11
acceptance-sandbox:~ # facter os
{
  architecture => "s390x",
  distro => {
    codename => "n/a",
    description => "SUSE Linux Enterprise Server 11 (s390x)",
    id => "SUSE LINUX",
    release => {
      full => "11",
      major => "11"
    },
    specification => "core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-s390x:core-3.2-s390x:core-4.0-s390x:desktop-4.0-noarch:desktop-4.0-s390:desktop-4.0-s390x:graphics-2.0-noarch:graphics-2.0-s390:graphics-2.0-s390x:graphics-3.2-noarch:graphics-3.2-s390:graphics-3.2-s390x:graphics-4.0-noarch:graphics-4.0-s390:graphics-4.0-s390x"
  },
  family => "Suse",
  hardware => "s390x",
  name => "SLES",
  release => {
    full => "11.4",
    major => "11",
    minor => "4"
  },
  selinux => {
    enabled => false
  }
}
acceptance-sandbox:~ # facter identity
{
  gid => 0,
  group => "root",
  privileged => true,
  uid => 0,
  user => "root"
}

Generated at Wed Jan 22 03:47:57 PST 2020 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.