ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankita Sinha (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-1690) Ranger usersync created error users. Ranger usersync got System Virtual User Group Name instead of real group name when built the unix user list.
Date Tue, 25 Jul 2017 11:00:02 GMT

    [ https://issues.apache.org/jira/browse/RANGER-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16099861#comment-16099861
] 

Ankita Sinha commented on RANGER-1690:
--------------------------------------

[~peng.jianhua], Ranger Usersync setup is failing due to this commit with the below error


{code}
ranger-1.0.0-SNAPSHOT-usersync# ./setup.sh 
INFO: moving [/etc/ranger/usersync/conf/java_home.sh] to [/etc/ranger/usersync/conf/.java_home.sh.25072017152843]
.......
Traceback (most recent call last):
  File "./setup.py", line 574, in <module>
    main()
  File "./setup.py", line 402, in main
    defaultProps = getXMLConfigMap(join(confFolderName, defaultSiteXMLFileName))
  File "./setup.py", line 155, in getXMLConfigMap
    tree = ET.parse(xmlFileName)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1182, in parse
    tree.parse(source, parser)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 656, in parse
    parser.feed(data)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1653, in feed
    self._raiseerror(v)
  File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1517, in _raiseerror
    raise err
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 22, column 21
{code}

> Ranger usersync created error users. Ranger usersync got System Virtual User Group Name
instead of real group name when built the unix user list. 
> --------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1690
>                 URL: https://issues.apache.org/jira/browse/RANGER-1690
>             Project: Ranger
>          Issue Type: Bug
>          Components: usersync
>            Reporter: peng.jianhua
>            Assignee: peng.jianhua
>              Labels: patch
>             Fix For: 1.0.0
>
>         Attachments: 0001-RANGER-1690-Ranger-usersync-created-error-users.-Ran.patch
>
>
> The ranger.usersync.unix.minGroupId is not set default value. Like ranger.usersync.unix.minUserId,
it should be set default value. Following variable equals to 0 when built the unix user list.

> minimumGroupId=Integer.parseInt(config.getMinGroupId());
> Ranger usersync may get System Virtual User Group Name instead of real group name.
> if (numGroupId < minimumGroupId)
>     continue;
> String groupName = groupId2groupNameMap.get(gid);
> This result is that the Ranger usersync created error users. 
> http://www.archivum.info/debian-bugs-closed@lists.debian.org/2006-03/03888/Bug-333706-marked-as-done-(useradd-lacks-r-option).html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message