Ask Your Question
1

Openstack testing on single server how?

asked 2015-01-13 08:08:18 -0500

mickey gravatar image

Hello,

i am quite desperated and need help. I just became for testing by my company a single online server, for implementing Object Storage, also wished is a Dashboard. I need help finding a way testing all of this on a single server. The Server is running with Debian and there are no guides how to install only these Components like Dashboard and Swift. I know the requirements say that 3 Server for Swift is required. I dont have that much servers... Can anybode help?

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

answered 2015-01-14 08:41:19 -0500

mickey gravatar image

updated 2015-01-14 08:47:57 -0500

hi guys, thx for reply :)

i resetted the server and set it up with ubuntu 12, cause i found the Swift all in one tutorial. but i stuck at the last steps for testing. i get an unknown error, so i checked out the syslog and what i got was:

Jan 14 14:50:18 testOpenStack swift: ERROR with Account server 10.0.0.2:1002/sdc re: Trying to GET /v1/a: #012Traceback (most recent call last):#012 File "/root/$ Jan 14 14:50:18 testOpenStack swift: ERROR with Account server 10.0.0.1:1001/sdb re: Trying to GET /v1/a: #012Traceback (most recent call last):#012 File "/root/$ Jan 14 14:50:18 testOpenStack swift: ERROR with Account server 10.0.0.0:1000/sda re: Trying to POST /a: #012Traceback (most recent call last):#012 File "/root/sw$ Jan 14 14:50:18 testOpenStack swift: ERROR with Account server 10.0.0.1:1001/sdb re: Trying to PUT /a: #012Traceback (most recent call last):#012 File "/root/swi$ Jan 14 14:50:18 testOpenStack swift: Base DELETE returning 503 for (204, 204, 404) (client_ip: 1.2.3.4)

after the step testing:

curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0

i have to check if i can get an account with:

curl -v -H 'X-Auth-Token: token-from-x-auth-token-above>' url-from-x-storage-url-above>

its actually telling me the following error: -bash: syntax error near unexpected token `newline'

any ideas?

edit flag offensive delete link more

Comments

i checked out the troubleshooting steps. got in the last line that error: Traceback (most recent call last): Exception: Could not bind to 127.0.0.1:6010 after trying for 30 seconds

mickey gravatar imagemickey ( 2015-01-14 09:06:57 -0500 )edit
0

answered 2015-01-13 12:49:00 -0500

GLaupre gravatar image

updated 2015-01-13 12:49:54 -0500

Hello,

If you want to be sure add

MULTI_HOST=false

in your localrc

Additionally, there are services that are automatically enabled, you want maybe them to be disabled as well.

In your devstack directory, open the file stackrc and jump to the line about 45 to look for

# this allows us to pass ENABLED_SERVICES
if [[ -z "$ENABLED_SERVICES" ]]; then
# core compute (glance / keystone / nova (+ nova-network))
ENABLED_SERVICES=g-api,g-reg,key,n-api,n-crt,n-obj,n-cpu,n-net,n-cond,n-sch,n-xvnc,n-cauth
# cinder
ENABLED_SERVICES+=,c-sch,c-api,c-vol
# heat
ENABLED_SERVICES+=,h-eng,h-api,h-api-cfn,h-api-cw
# dashboard
ENABLED_SERVICES+=,horizon
# additional services
ENABLED_SERVICES+=,rabbit,tempest,mysql
fi

You will see all services which start by default:

Make sure you disabled the ones you don't want in your localrc using DISABLE_SERVICE=xxx or disable_service xxx

edit flag offensive delete link more
0

answered 2015-01-13 18:00:49 -0500

mrbriancollins gravatar image

you could try packstack. it should auto deploy a swift ring as an example...... I got it to work on my config. plus it will work with one machine https://openstack.redhat.com/Quickstart

edit flag offensive delete link more

Comments

Yes indeed, you can try the packstack: all-in-one package

GLaupre gravatar imageGLaupre ( 2015-01-13 19:07:40 -0500 )edit
0

answered 2015-01-13 09:59:01 -0500

jeffrey-olsen gravatar image

updated 2015-01-13 15:38:05 -0500

Go through the normal steps to clone devstack but don't run ./stack.sh just yet.

go to:

cd devstack

rm local.conf and then create it again so the contents within the file are blank. Then paste the configuration below, save it and then run ./stack.sh

[[local|localrc]]

# Credentials
DATABASE_PASSWORD=devstack
ADMIN_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=devstack
RABBIT_PASSWORD=devstack

# Services
ENABLED_SERVICES=rabbit,mysql,key
ENABLED_SERVICES+=,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,n-novnc,n-cauth
ENABLED_SERVICES+=,neutron,q-svc,q-agt,q-dhcp,q-l3,q-meta,q-lbaas
ENABLED_SERVICES+=,s-proxy,s-object,s-container,s-account
ENABLED_SERVICES+=,g-api,g-reg
ENABLED_SERVICES+=,horizon

# Branches
KEYSTONE_BRANCH=stable/juno
NOVA_BRANCH=stable/juno
NEUTRON_BRANCH=stable/juno
SWIFT_BRANCH=stable/juno
GLANCE_BRANCH=stable/juno
HORIZON_BRANCH=stable/juno

# Swift Configuration
SWIFT_REPLICAS=1
SWIFT_HASH=66a3d6b56c1f479c8b4e70ab5c2000f5

# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

3 followers

Stats

Asked: 2015-01-13 08:08:18 -0500

Seen: 297 times

Last updated: Jan 14 '15