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

RHEL 6 Mount Facts Display "N/A" for UUID #36077

Closed
jamesmarshall24 opened this issue Feb 12, 2018 · 1 comment · Fixed by #36128
Closed

RHEL 6 Mount Facts Display "N/A" for UUID #36077

jamesmarshall24 opened this issue Feb 12, 2018 · 1 comment · Fixed by #36128
Assignees
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects

Comments

@jamesmarshall24
Copy link

jamesmarshall24 commented Feb 12, 2018

ISSUE TYPE
  • Bug Report
COMPONENT NAME

setup

ANSIBLE VERSION
ansible 2.6.0 (devel 30adc2f124) last updated 2018/02/12 16:26:41 (GMT -400)
  config file = /Users/user/.ansible.cfg
  configured module search path = [u'/Users/user/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/user/ansible-venv/devel/git-ansible/lib/ansible
  executable location = /Users/user/ansible-venv/devel/git-ansible/bin/ansible
  python version = 2.7.10 (default, Jul 15 2017, 17:16:57) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)]
CONFIGURATION

HOST_KEY_CHECKING(/Users/user/.ansible.cfg) = False

OS / ENVIRONMENT

N/A

SUMMARY

Facts returned for ansible_mounts against RHEL 6 hosts result in "N/A" rather than printing the UUID

STEPS TO REPRODUCE
ansible rhel-68-box -m setup -a "filter=ansible_mounts"
EXPECTED RESULTS

Same UUID as displayed from

$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx. 1 root root 11 Feb 12 16:15 05d6faee-1d92-462b-be37-aaa0097875e8 -> ../../xvda1
ACTUAL RESULTS
rhel-68-box | SUCCESS => {
    "ansible_facts": {
        "ansible_mounts": [
            {
                "block_available": 1981017,
                "block_size": 4096,
                "block_total": 2547273,
                "block_used": 566256,
                "device": "/dev/xvda1",
                "fstype": "ext4",
                "inode_available": 598737,
                "inode_total": 655360,
                "inode_used": 56623,
                "mount": "/",
                "options": "rw",
                "size_available": 8114245632,
                "size_total": 10433630208,
                "uuid": "N/A"
            }
        ]
    },
    "changed": false,
    "failed": false
}
$ cat /etc/redhat-release && lsblk --list --noheadings --paths --output NAME,UUID --exclude 2
Red Hat Enterprise Linux Server release 6.8 (Santiago)
lsblk: unrecognized option '--paths'
@ansibot
Copy link
Contributor

ansibot commented Feb 12, 2018

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot ansibot added affects_2.6 This issue/PR affects Ansible v2.6 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Feb 12, 2018
@jctanner jctanner added this to TODO in CEM Feb 12, 2018
@Akasurde Akasurde removed the needs_triage Needs a first human triage before being processed. label Feb 13, 2018
@mkrizek mkrizek self-assigned this Feb 13, 2018
@mkrizek mkrizek moved this from TODO to IN PROGRESS in CEM Feb 13, 2018
@mkrizek mkrizek moved this from IN PROGRESS to DONE in CEM Feb 16, 2018
alikins pushed a commit that referenced this issue Feb 16, 2018
* facts: fix device uuid's on el6

Fixes #36077
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 7, 2018
@ansible ansible locked and limited conversation to collaborators Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. module This issue/PR relates to a module. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
No open projects
CEM
DONE
Development

Successfully merging a pull request may close this issue.

4 participants