RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1027321 - Account provider: cannot delete any user
Summary: Account provider: cannot delete any user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openlmi-providers
Version: 7.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: rc
: ---
Assignee: Tomáš Bžatek
QA Contact: Robin Hack
URL:
Whiteboard:
Depends On:
Blocks: 922084
TreeView+ depends on / blocked
 
Reported: 2013-11-06 14:53 UTC by Petr Sklenar
Modified: 2014-06-18 03:05 UTC (History)
3 users (show)

Fixed In Version: openlmi-providers-0.4.1-2.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-13 09:57:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2013-11-06 14:53:29 UTC
Description of problem:
Account provider: cannot delete any user

Version-Release number of selected component (if applicable):
openlmi-0.4.1-1.el7.noarch
openlmi-account-0.4.1-1.el7.x86_64
openlmi-tools-0.9-3.el7.noarch


How reproducible:
always

Steps to Reproduce:
copy &&paste this script:

--------------
import unittest

import lmi.shell as lmishell
import os
import shutil
import threading
import string
import random
import time

from methods import *

HOST =      "localhost"
USER =      os.environ.get("LMI_CIMOM_USERNAME", "root")
PASSWD =    os.environ.get("LMI_CIMOM_PASSWORD", "blank")

def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
   return ''.join(random.choice(chars) for x in range(size))
#setup
conn = lmishell.connect(HOST, USER, PASSWD)
cs = conn.root.cimv2.PG_ComputerSystem.first_instance()
lams = conn.root.cimv2.LMI_AccountManagementService.first_instance()

#create
myuser = "lmishell-user" + id_generator(18)
print myuser
user = lams.CreateAccount(Name=myuser, System=cs)

user_mod = conn.root.cimv2.LMI_Account.first_instance({"Name" : myuser})
grp_mod = conn.root.cimv2.LMI_Group.first_instance({"Name": myuser})
print user_mod.DeleteUser()
print grp_mod.DeleteGroup()
----------------

Actual results:
LMIReturnValue(rval=-1, rparams=NocaseDict({}), errorstr=u'CIM_ERR_FAILED: Lost connection with cimprovagt "cmpiLMI_Account".: \'DeleteUser\'')


cimserver running manually:
cimserver daemon=false forceProviderProcesses=false
<program name unknown>: symbol lookup error: /usr/lib64/cmpi/libcmpiLMI_Account.so: undefined symbol: lu_homedir_remove_for_user_if_owned


Expected results:
pass

Additional info:

Comment 1 Petr Sklenar 2013-11-06 14:56:00 UTC
Fyi
tomas bzatek found thats due to my version of:
libuser-0.59-2.el7.x86_64

with libuser-0.60-3.el7 it works fine, please add it into requires

Comment 2 Tomáš Bžatek 2013-11-06 14:56:15 UTC
(In reply to Petr Sklenar from comment #0)
> <program name unknown>: symbol lookup error:
> /usr/lib64/cmpi/libcmpiLMI_Account.so: undefined symbol:
> lu_homedir_remove_for_user_if_owned

This is a new symbol in libuser-0.60, need to add explicit Require:

Comment 4 Tomáš Bžatek 2013-11-06 17:23:20 UTC
Fixed in openlmi-providers-0.4.1-2.el7

Comment 6 Ludek Smid 2014-06-13 09:57:36 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.


Note You need to log in before you can comment on or make changes to this bug.