Bug 770927 - fails to create nova user due missing fuse group
Summary: fails to create nova user due missing fuse group
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openstack-nova
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-30 09:31 UTC by Ilkka Tengvall
Modified: 2012-01-02 21:52 UTC (History)
11 users (show)

Fixed In Version: openstack-nova-2011.3-14.fc16
Clone Of:
Environment:
Last Closed: 2012-01-02 21:52:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ilkka Tengvall 2011-12-30 09:31:07 UTC
Description of problem:

It seems the latest rawhide rpm fails to create the user for nova, this might be the reason my nova won't start. Package fuse doesn't create group fuse any longer as maybe expected.

Version-Release number of selected component (if applicable):
openstack-nova-2011.3-13.fc17.noarch
fuse-2.8.6-1.fc17.x86_64
fedora 16 with openstack from rawhide


How reproducible:
every time

Steps to Reproduce:
1. yum install --enablerepo rawhide openstack-nova
2. grep nova /etc/passwd
3.
  
Actual results:
no user nova gets created

Expected results:
user nova should be created

Additional info:

yum output:
--------------------------------
[root@blade5 ~]# rpm -q openstack-nova
openstack-nova-2011.3-13.fc17.noarch
[root@blade5 ~]# yum reinstall --enablerepo rawhide openstack-nova
Loaded plugins: langpacks, presto, refresh-packagekit
Setting up Reinstall Process
Resolving Dependencies
--> Running transaction check
---> Package openstack-nova.noarch 0:2011.3-13.fc17 will be reinstalled

.....

openstack-nova-2011.3-13.fc17.noarch.rpm                                                      |  59 kB     00:00
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : openstack-nova-2011.3-13.fc17.noarch                                                              1/1
useradd: group 'fuse' does not exist
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root
warning: user nova does not exist - using root

Installed:
  openstack-nova.noarch 0:2011.3-13.fc17

Complete!
[root@blade5 ~]# grep nova /etc/passwd
[root@blade5 ~]# 
--------------------------------

the test is such in the .spec:

--------------------------------
getent group nova >/dev/null || groupadd -r nova --gid 162                                                           
if ! getent passwd nova >/dev/null; then                                                                             
  useradd -u 162 -r -g nova -G nova,nobody,qemu,fuse -d %{_sharedstatedir}/nova -s /sbin/nologin -c "OpenStack Nova D
aemons" nova                                                                                                         
else                                                                                                                 
  usermod -a -G fuse nova                                                                                            
fi      
--------------------------------

and this is the result on command line for the test:
--------------------------------
[root@blade5 ~]# getent passwd root &> /dev/null; echo $?
0
[root@blade5 ~]# getent passwd nova &> /dev/null; echo $?
2
[root@blade5 ~]# rpm -q fuse
fuse-2.8.6-1.fc17.x86_64
[root@blade5 ~]# getent group fuse
[root@blade5 ~]# 
--------------------------------

Comment 1 Ilkka Tengvall 2011-12-30 09:35:37 UTC
after I manually added group fuse, it reinstalled without errors and finally nova services started:

for svc in api objectstore compute network volume scheduler; do sudo service openstack-nova-$svc start; done

Comment 2 Fedora Update System 2011-12-30 13:16:31 UTC
openstack-nova-2011.3-14.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/openstack-nova-2011.3-14.fc16

Comment 3 Fedora Update System 2011-12-30 22:53:10 UTC
Package openstack-nova-2011.3-14.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing openstack-nova-2011.3-14.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17568/openstack-nova-2011.3-14.fc16
then log in and leave karma (feedback).

Comment 4 Ilkka Tengvall 2012-01-02 07:36:29 UTC
Thanks, I tested this, it fixes the problem. I left the karma, and the package wandered to stable updates.

Comment 5 Fedora Update System 2012-01-02 21:52:56 UTC
openstack-nova-2011.3-14.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.


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