User 'swift' is not added by deploy.py

Asked by Shouichi KAMIYA

Seems like user 'swift' is not added by deploy.py.
I executed

    % ./deploy.py install swift

and it failed because there is no user 'swift'.

Question information

Language:
English Edit question
Status:
Solved
For:
nova-deployment-tool Edit question
Assignee:
No assignee Edit question
Solved by:
Shouichi KAMIYA
Solved:
Last query:
Last reply:
Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) said :
#1

Hi, Kamiya,

The user "swift" is not added by deploy.py but by package swift. So the error " it failed because there is no user 'swift'" is caused by other things. Please show me the following info in order to find the reason.

1. deploy.conf
2. deploy.log

Revision history for this message
Shouichi KAMIYA (kamiya) said :
#2

Thanks guan

Sorry but I already added user swift manually and deleted the dev tool dir...
Oh, but I can re-produce the deploy.conf and here's the content.

### deploy.conf ###

[default]
puppet_server=proxy
ssh_user=nii

[nova]
nova_api=proxy
nova_objectstore=proxy
nova_compute=proxy
nova_scheduler=proxy
nova_network=proxy
nova_volume=proxy
euca2ools=proxy

mysql=proxy

glance_host=proxy

libvirt_type=kvm
network_manager=nova.network.manager.VlanManager
image_service=nova.image.glance.GlanceImageService

network_interface=eth0
network_ip_range=10.0.0.0/24

volume_group=proxy
fixed_range=10.0.0.0/8
network_size=5000

[glance]
glance=proxy
default_store=swift

[swift]
swift_proxy=proxy
swift_storage=storage1

account=system
username=root
password=testpass

storage_path=/srv/node
storage_dev=sdb1
ring_builder_replicas=1

super_admin_key=swauth

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) said :
#3

Hi, Kamiya,

I tried to reproduce the same error on the local machines with almost the same configurations. But it was ok. I suspect that you are using the different ppa repository from ppa:openstack-release/2011.2. Please confirm your ppa repository with the following command.

ls -la /etc/apt/source.list.d/

If there are something others, please delete them and then add the ppa:openstack-release/2011.2 .

BTW, whats's the os version you are using?

Revision history for this message
Shouichi KAMIYA (kamiya) said :
#4

Thanks guan

'ls -la /etc/apt/source.list.d/' gives me

total 16K
drwxr-xr-x 2 root root 4.0K Jul 27 06:33 ./
drwxr-xr-x 6 root root 4.0K Jul 31 07:32 ../
-rw-r--r-- 1 root root 148 Jul 31 06:39 openstack-release-2011_2-natty.list
-rw-r--r-- 1 root root 148 Jul 31 06:39 openstack-release-2011_2-natty.list.save

and I'm using 64 bit ubuntu 11.04.

Revision history for this message
guanxiaohua2k6 (guanxiaohua2k6) said :
#5

Thank you, Kamiya san.

I think I found the reason. Because it seems that the user swift is created by package swift, and on the storage node the package swift wasn't installed, the error " it failed because there is no user 'swift'" occurred.

I will fixed the bug, and release it soon.

Revision history for this message
Shouichi KAMIYA (kamiya) said :
#6

Great! Thanks guan.