227 Commits

Author SHA1 Message Date
Chmouel Boudjnah
f36a9b2136 No need to loop over with pkill -f
I guess four times is better than one but if we need four times to kill
swift processes there is something pretty bad with it.

Change-Id: Id2ea2f4ca60feb9fddc7b3181063760d2044b421
2014-02-03 23:44:47 +01:00
Chmouel Boudjnah
891277fbbd s3_token has been moved to keystoneclient.
Change-Id: I6ffe756d517d11f323bd0c5d3b877d9a9f739a3b
2014-02-03 21:07:03 +00:00
Jenkins
9b4fe5d0ce Merge "Copy container-sync-realms.conf in /etc/swift" 2014-01-31 17:06:38 +00:00
Dean Troyer
4237f590b7 Generate Tempest service list rather than hard-code it
The list of services that Tempest used to set its 'service_available'
config values was hard-coded. To be plugin-friendly have each
service (project) add its name to the TEMPEST_SERVICES variable
and use that for setting the 'service_avilable' values.

Change-Id: I208efd7fd0798b18ac2e6353ee70b773e84a2683
2014-01-29 17:25:45 -06:00
Chmouel Boudjnah
f2c1a712e8 Copy container-sync-realms.conf in /etc/swift
We need the new container-sync realms configuration or we will get a
nasty harmless error opening file at swift proxy startup.

Change-Id: If939da305dcb9403c418219032ac6b50b0099bd3
Closes-Bug: 1274295
2014-01-29 21:40:26 +00:00
Dean Troyer
bb8227ce69 Fix Swift process kill
stop_swift() was not killing all swift processes properly.  Change to
manually clean up all screen services with pkill.

Closes-bug: 1268794
Change-Id: Ibb7a2e0dd10a313609f05963264087f82f6f00e2
2014-01-27 16:03:53 -06:00
Dirk Mueller
25049cd23d Use --tenant-id, not --tenant_id
Change-Id: I0e3d65d5b69ac82cbf7ee6ffc41ead369af8c126
2014-01-09 13:55:28 +01:00
Chmouel Boudjnah
63d9f3e550 Fix bad copy and paste in lib/swift
Change-Id: I3b7526b52867525b1d7aa634aa8163c520a92f97
2013-12-21 01:21:59 -08:00
Jenkins
ae3f335626 Merge "Fix the amount of workers spawned for non proxies" 2013-12-12 19:29:12 +00:00
Chmouel Boudjnah
86d9aed67d Fix the amount of workers spawned for non proxies
We were running as auto so swift would spawn a lot of processes
consuming memory and CPU which are not really neeeded in a devstack env
(and bad for the jenkins vm).

Closes-Bug: 1259548
Change-Id: I6b5266186168fe99568dda5453b436c2f9cfedb3
2013-12-10 15:38:51 +00:00
Jenkins
02ef0dbfb0 Merge "add assertions for blind grep" 2013-12-05 00:19:49 +00:00
Jenkins
bddaf0afb6 Merge "Allow deploying keystone with SSL certificates" 2013-12-04 05:36:40 +00:00
Peter Portante
8afc893536 Use the swift logging adapter for txn IDs
Change-Id: I2b2308eb9606279cffc1965fc3b86e9597d63e87
Signed-off-by: Peter Portante <peter.portante@redhat.com>
2013-11-26 11:53:57 -05:00
Peter Portante
cee4b3bddf Shorten PKI token logging
Log only the first 12 characters of auth-token for the Swift
API, since PKI based auth-tokens from keystone can huge (>> 2K).

Also tidy up a comment.

Change-Id: Ib784e8ecdcb7e371fe03458c7fd82b4460fa82b9
Signed-off-by: Peter Portante <peter.portante@redhat.com>
2013-11-26 11:53:57 -05:00
Jamie Lennox
bd24a8d0f8 Allow deploying keystone with SSL certificates
Allow providing certificates through environment variables to be used
for keystone, and provide the basis for doing this for other services.
It cannot be used in conjunction with tls-proxy as the service provides
it's own encrypted endpoint.

Impletmenting: blueprint devstack-https
Change-Id: I8cf4c9c8c8a6911ae56ebcd14600a9d24cca99a0
2013-11-25 22:27:51 +00:00
Jenkins
e2ebd2315e Merge "Make use of STACK_USER instead of relying on USER" 2013-11-22 13:47:12 +00:00
Joe Gordon
d254da5213 Set swift timeouts higher
Devstack is commonly run in a small slow environment, so bump the
timeouts up.

node_timeout is how long between read operations a node takes to
respond to the proxy server
conn_timeout is all about how long it takes a connect() system call to
return

Change-Id: Ib437466a3fc9274b8aa49b19e4fe7fa26f553419
Co-Authored-By: Peter Portante <peter.portante@redhat.com>
Related-Bug: #1252514
2013-11-20 11:29:33 -08:00
Stephan Renatus
e578effb33 Make use of STACK_USER instead of relying on USER
Quite easily one ends up calling ./stack.sh in an environment that,
albeit being user "stack" (for example), doesn't quite meet the
expectations of devstack.  The errors that follow can be rather hard to
track down, as the dependency on `USER` is not mentioned.

To remedy this situation, this commit

- uses STACK_USER instead of USER and
- mentions that dependency in the script headers of lib/*

Change-Id: If4cdc39b922ea64b4c0893a0e695ec06349fccc5
2013-11-19 13:39:58 +01:00
Joe Gordon
66c5424980 Bump SWIFT_LOOPBACK_DISK_SIZE_DEFAULT over swift max_file_size
Swift is returning 50x error codes because its disk is too small, set
size bigger then max_file_size in an attempt to fix the problem, or at
least reduce it.

"we create a 4GB device, but swift thinks it can write 5GB, hence fail"
--sdague

This patch based off of Iccd6368e4df71abb5ccfe7d361c64d86e1071d35

Change-Id: Ib56a98cd74e7edf1fa90facc25c72632d43180f1
Related-Bug: #1225664
2013-11-12 16:38:02 -08:00
Jenkins
b7c11a0f98 Merge "Fix some Markdown formatting issues" 2013-10-31 14:19:15 +00:00
Jenkins
8e285072c9 Merge "Fix shocco errors and warnings" 2013-10-31 14:18:32 +00:00
Jenkins
04067ca16d Merge "Enables Swift crossdomain middleware by default" 2013-10-31 13:35:46 +00:00
Joe H. Rahme
1ce2ffd15f Enables Swift crossdomain middleware by default
This step is needed to enable its testing in Tempest. The patch adds a
variable SWIFT_EXTRAS_MIDDLEWARE_NO_AUTH that holds a list of
middlewares inserted in the pipeline before authentication middlewares
(tempauth, keystoneauth, ...).

Change-Id: I1927103feff997a354ccf82ccf12aa77db083ad3
2013-10-25 17:26:47 +02:00
Adam Spiers
6a5aa7c6a2 Fix some Markdown formatting issues
Address miscellaneous issues with Markdown formatting in comments which
are consumed by shocco when generating the online documentation.

Change-Id: I953075cdbddbf1f119c6c7e35f039e2e54b79078
2013-10-24 17:38:19 +01:00
Adam Spiers
cb961597cc Fix shocco errors and warnings
A few Markdown-oriented issues were causing Docutils errors to
leak into the end-user docs on http://devstack.org

Change-Id: I51fa9698afb1bfb48596478d83bd1fdcd84ac52e
2013-10-24 15:43:05 +01:00
DennyZhang
23178a997a add assertions for blind grep
blind grep is error-prone.
Add assertions for errors we can not handle

Change-Id: Ibe19085545ecc848498506e8b8ee14e71825b273
2013-10-22 17:12:18 -05:00
Sean Dague
101b424842 fix whitespace in the rest of lib/*
this brings this in line with bash8 checker

Change-Id: Ib34a2292dd5bc259069457461041ec9cd4fd2957
2013-10-22 13:02:23 -04:00
Jenkins
d248502331 Merge "lib/swift variable changes and dd replaced by truncate" 2013-10-14 18:47:21 +00:00
Attila Fazekas
e6024413ae lib/swift variable changes and dd replaced by truncate
- ${SWIFT_DATA_DIR}/drives/images/swift.img replaced by
${SWIFT_DISK_IMAGE}.

- using truncate -s command instead of dd over seeking

Change-Id: I0dd29af3247ba7819ef0c74775412074b6b62017
2013-10-04 08:58:26 +02:00
Cyril Roelandt
d9883407e9 Revert "Revert "Swift: configure Ceilometer when it is enabled""
Commit 6650fda680310e71b5dda7764bf4033f670d90f0 is no longer needed:
https://review.openstack.org/#/c/46048 has been merged.

This reverts commit 6650fda680310e71b5dda7764bf4033f670d90f0.

Change-Id: I47d28a292667eb8ece2061c0ef19c7c925e5747c
2013-09-27 15:21:23 +00:00
Jamie Lennox
5470701e10 Fix swift httpd on fedora
Implements a fedora equivalent of ubuntu's sites-enabled and moves
enabling of mod_wsgi to the installation period so that it doesn't have
to be handled in a platform dependant way later.

Fixes: bug 1226363
Change-Id: I85325179f1792d985b0375572abfe8c8a82fecc3
2013-09-24 10:48:01 +10:00
Jenkins
e4bf7fd239 Merge "Remove change_apache_user_group function" 2013-09-23 16:30:41 +00:00
Jenkins
9c3b0cc4e4 Merge "Allow replacing a user variable in a swift template" 2013-09-18 14:57:28 +00:00
Attila Fazekas
3418c1caa5 Increase default swift storage
Swift storage is used as glance image back-end. Tempest have cinder to
uploads 1 GiB image from cinder in twice.

In parallel execution in cause an issue, bacuse the current default size is
1_000_000 KiB.

Increasing the default swit storage size from 1_000_000 KiB 4_000_000
KiB when tempest is enabled.

Fixing bug 1225664

Change-Id: Iccd6368e4df71abb5ccfe7d361c64d86e1071d35
2013-09-18 15:46:08 +02:00
Jamie Lennox
5a3d770793 Remove change_apache_user_group function
This function allowed you to change the process running user for all of
apache. This is better handled on a per-process basis.

Change-Id: I165adc0c49fc328f34835856b49983c4e189f143
Fixes: bug 1226346
Fixes: bug 1225853
2013-09-17 11:45:32 +10:00
Jamie Lennox
d582460147 Allow replacing a user variable in a swift template
Prepare for a change in swift templates that will have a %USER%
variable.

Change-Id: I611ae7f82de7f2e6a38ce3de38d0600fa8687bff
Partial-Bug: 1226346
2013-09-17 11:45:32 +10:00
Clark Boylan
6650fda680 Revert "Swift: configure Ceilometer when it is enabled"
This reverts commit f208aafa35996c98de40c1388bbebf326ab2ed20. This
commit broke swift functional tests because the ceilometer middleware
changes HTTP 404 responses into zero byte responses. This results in
BadStatusLine exceptions. Back out the use of ceilometer middleware
until it can be fixed.

Change-Id: Ie25269b58334c40dc1ecae985326af1cf29c3af4
2013-09-10 16:41:08 -07:00
Cyril Roelandt
f208aafa35 Swift: configure Ceilometer when it is enabled
This allows the storage.objects.{incoming,outgoing}.bytes measurements to be
easily used.

Closes-Bug: #1221097
Change-Id: If988a85930d7df1e043997763c3b5ebd720d6d86
2013-09-09 20:18:37 +00:00
Jorge Valderrama Romero
f39ee96f1d Fix deprecated params user_id, role_id, tenant_id
Update keystone cli by changing parameter options (user_id, role_id and tenant_id)
to use '-' rather than '_' in the method user_role_add and consequently the method
user_role_remove without maintain backward compatibility because these are deprecated.

python-keystoneclient - Bug #1150434
Change-Id: Ia5113718eb050cf7dba443b8d0caf3bdaa1730f0
2013-09-02 17:54:27 +02:00
Jenkins
2ac6870830 Merge "Don't add bulk middleware." 2013-08-06 13:59:31 +00:00
Chmouel Boudjnah
1fba1aa6bc Don't add bulk middleware.
- The bulk middleware is already in the sample.
- Fixes bug 1207108

Change-Id: I569ecb734ac2e59716e5f24fa96e97d216cdc1a3
2013-08-02 00:40:05 +02:00
zhang-hare
d98a5d0a58 enable apache2 server as front end for swift
1.install apache and wsgi module
2.config apache2 vhost and wsgi files for proxy,
account, container and object server.
3.refactor apache functions from horizon and swift
into lib/apache

Change-Id: I3a5d1e511c5dca1e6d01a1adca8fda0a43d4f632
Implements: blueprint enable-apache-frontend-for-swift
2013-07-29 11:15:21 +08:00
Chmouel Boudjnah
5cac378cde Configure tempauth along keystoneauth.
- This would help testing the two auth server for functional testing.
- Fixes bug 1202233.

Change-Id: Ie0bc642873585ab02083aed543720b4a9b17cb02
2013-07-17 15:29:58 +00:00
Jenkins
50300856d8 Merge "Disable fallocate and set max_file_size to default" 2013-07-17 13:20:01 +00:00
Jenkins
343c51ec93 Merge "Fix vm_test_mode" 2013-07-17 13:08:12 +00:00
Chmouel Boudjnah
35633f097a Fix vm_test_mode
- It was previously incorrectly generated.
- Fixes bug 1201694.

Change-Id: I802bbd0ced8f12064189db7d707fbb6ca09113bb
2013-07-16 07:35:13 +00:00
Chmouel Boudjnah
82c0996d48 Disable fallocate and set max_file_size to default
- We used to set max_file_size to 10000 to get the functional tests
  passing on devstack but this was the wrong way. We are now disabling
  fallocate like done in saio to get the large objects test passing.
- Fixes bug 1201077.

Change-Id: I33058352f5abfb06f2a992890cbc7339cedc0ad3
2013-07-16 07:18:12 +00:00
Chmouel Boudjnah
ba31305497 Move swift stuff out of keystone-data.sh
- Fixes bug 1199918.

Change-Id: I808bdd74a94c8e0ca126b9bee1bfd53eafa189a9
2013-07-11 00:01:03 +02:00
Chmouel Boudjnah
0ce91a5cba Configure swift functional test suite.
- Implements blueprint configure-swift-functional-tests.

Change-Id: I8eeedb83e59d8a305d3072ba7506f74afc21c0d1
2013-07-10 08:02:02 +00:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00