105 Commits

Author SHA1 Message Date
armando-migliaccio
7c025fedc3 Check quantum status dependent on the plugin
There are Quantum plugins that do not require the use of an agent.
This patch relaxes the constraint in quantum-adv-test.sh by adding
the ability to customize the logic that verifies whether the test
can run or not, depending on the Quantum plugin of your choice.

Fixes bug #1177904

Change-Id: I6e2c17f43d9e1475b2eb175cceb5107a83f9aa74
2013-05-09 09:05:15 -07:00
Chris Yeoh
c2fc5f890e Fix attach volume detect in euca test
Fixes test for detecting when a volume has been successfully
attached to an instance to not just rely on the state being
in-use, but also be marked as "attached". The attachment
state will be displayed when https://review.openstack.org/#/c/27098/
goes through. The attachment state is not currently displayed
by euca-describe-volumes because of the extraneous data returned
by the API as per bug #1074901.

In the meantime the "attaching" status of the volume itself, rather
than the attachment state, suffices for the test to work properly, but in the long
term this will disappear as it is not a valid ec2 API state and
volumes will move straight to the in-use state.

Fixes bug #1170548

Change-Id: Id38f37e1a0efc991f60da35145f809d98b5f41cd
2013-04-22 10:33:07 +09:30
Jenkins
46966491ae Merge "Remove variable substituion to %NUM% to correctly invoke local command" 2013-04-15 05:35:05 +00:00
Dean Troyer
cc6b443545 Formatting cleanups, doc updates and whatnot
Change-Id: Ica8298353be22f947c8e8a03d8dc29ded9cb26dd
2013-04-09 14:05:32 -05:00
Armando Migliaccio
aacb01dc03 Remove variable substituion to %NUM% to correctly invoke local command
Referencing %NUM% must be a mistake, because with it networks are not
deleted properly. See other commands within quantum-adv-test.sh as
an example.

Fixes bug #1164018

Change-Id: Ib222d82a1b8187167606b2543bb74c28b8465b5a
2013-04-03 09:31:20 -07:00
Aaron Rosen
640f1e4c8d Change default PUBLIC_NETWORK_NAME/DEFAULT_FLOATING_POOL name
This patch changes the default network name/floating pool from nova
to pubic as the name public makes more sense than nova for a public
network.

Change-Id: I4153750c08d1510dbad3051681e8c142a79fe1a1
2013-03-26 22:39:11 -07:00
Akihiro MOTOKI
3452f8eb86 Support Quantum security group
Adds Q_USE_SECGROUP flag for quantum security group

- Added has_quantum_plugin_security_group method for each plugin.
- Set NOVA_VIF_DRIVER to the hybrid VIF driver for plugins with
  iptables based security group support.
- Specifying device_owner type on debug port in lib/quantum and
  quantum-adv-test.sh. This change makes apply quantum security
  group fro debug port

Change-Id: Ifd155798912247d85a9765ef73a2186b929237b4
2013-03-21 18:34:14 +09:00
Chmouel Boudjnah
0c3a5584c6 Enable swift by default.
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
  case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
  proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
  instead of having to specify all s- services to enable swift. This will be
  removed in the future.
- Set object server starting at 6013 instead of 6010 to not conflict
  with remote ssh x11 forwarding.

Change-Id: I890b6953b70283bfa0927fff0cf5e92f3c08455b
2013-03-06 13:16:37 +01:00
Sean Dague
f3fd44c4be Revert "Enable swift by default."
This reverts commit 5a5cbf7274a6a50bb766ec590cf885430ed5c5d0.

This breaks on a default openstack install on Ubuntu 12.10,
revert for now until this can be cleaned up to work out of the
box.

Change-Id: I185509cc30bd28e920cdab60fc92129949bd6b0d
2013-03-04 17:52:03 -05:00
Jenkins
f90b2740f7 Merge "Refactor error logging" 2013-03-04 14:12:10 +00:00
Nachi Ueno
07115eb5c0 Refactor error logging
It is hard to grep errors in current log. so in this patch,
I'm updating die function which also writes log for
screen_log_dir/error.log.
In future, we may categolize negative fault by using
this error.log.

Change-Id: I70a8cfe67ed408284f5c88c762c6bb8acb8ecdb2
2013-02-28 11:54:24 -08:00
Chmouel Boudjnah
5a5cbf7274 Enable swift by default.
- Set by default SWIFT_REPLICAS to 1 since this is the most common use
  case when using it in devstack.
- If we have swift_replicas to 1 launch the object container account and
  proxy servers in foreground in screen.
- Allow any s- services if we have just 'swift' in service enabled
  instead of having to specify all s- services to enable swift. This will be
  removed in the future.

Change-Id: I496f79e14f99bd7e9f2c7deee12a4b6e935c3a5b
2013-02-22 18:50:08 +01:00
Mate Lakat
c497a05ea2 Fix aggregates exercise
Fixes bug 1131244

aggregates.sh was making assumptions on the working directory. Thus it
failed, if the current working directory is not devstack. This pathch
makes the sourcing to use the full path for openrc.

Change-Id: I10c83c88112ead97b43873e1034b0e76e4f889f4
2013-02-21 15:25:51 +00:00
Dean Troyer
da85cdadd9 Exercise cleanup
* Make common steps consistent
* Make comments consistent

aggregates.sh
boot_from_volume.sh
client-args.sh
client-env.sh
euca.sh
floating_ips.sh
sec_groups.sh
swift.sh
volumes.sh

Change-Id: Ib93dcdfdead93c259e3cd184fbc5ccc0a4a87c9a
2013-02-15 12:34:33 -06:00
Dean Troyer
029598ea74 Fix secgroups exercise on postgres
This should fix the failing (but non-voting) postgres gate tests.

Why does postgresql change the value '0.0.0.0/00' to '0.0.0.0/0'?
Clearly the correct value for the network CIDR bits is with only
one zero but even an incorrect value shouldn't be changing.

SQLalchemy is given this for the column:
        Column('cidr', String(length=255)),

Change-Id: Ib19dad23789654664e90518087e5a462fa8b8034
2013-01-17 12:15:12 -06:00
Attila Fazekas
a1e1b5c192 Case correct InvalidInstanceID.NotFound
Change-Id: Iab067398205f51d640355ef91f0896afaecc4dea
2013-01-16 08:38:17 +01:00
Attila Fazekas
3860a9252a Have ecua.sh to accept the correct error code
ecua.sh will accept both the current and the correct error code

Change-Id: I364e411986b9780fd5c5df29697753f04a9a4935
2013-01-14 13:46:24 +01:00
Dean Troyer
15bda3e463 Handle existing security group rules in volume exercise
Change-Id: I0aa3bc0c6179f92a12c1e9bbace61597778ffa1f
2013-01-11 15:09:14 -06:00
Adam Gandelman
756c842a77 Properly wait until volumes are gone in volumes.sh
A logic error in volume exercise's wait for volume deletion
causes the test to do the opopsite, and continue on even tho
the volume is in in the 'deleting' state.  If using a volume
backend that can quickly delete volumes (ceph), and the volume
is gone before entering the wait, the loop will spin, timeout
and fail the test.

Change-Id: I8e3d2aaa04e6a165e0dee32bedac97d35e13d5eb
2013-01-04 13:37:49 -08:00
Dean Troyer
6d04fd7ba5 Holiday docs and comment formatting cleanup
Change-Id: Ia4ca88c67d3b94e306a79a669805a2fa1b0dc069
2012-12-28 18:03:10 -06:00
Michael Still
796342c06e Handle the new behaviour for invalid instances.
The behaviour of this case changed with bug/836978. Requesting the
status of an invalid instance will now return an error message
including the instance id, so we need to filter that out.

Resolves the devstack elements of bug 836978.

Change-Id: I385eb6f04cff90e1ddc0b79d835fbbdf92e4e9ff
2012-12-28 11:22:20 +11:00
Sean Dague
ac25b0359a turn debug on for euca-upload-bundle
this spuriously fails in devstack gate, and need to turn
this on to get to the bottom of the fails.

Change-Id: I7d5c1b4d3230efacdd8a3b89e5e40e98ac894a1d
2012-12-19 11:15:46 -05:00
Jenkins
2a255d9922 Merge "Update aggregates test for aggregates bp" 2012-12-18 12:52:52 +00:00
Armando Migliaccio
b0d8a8288b make volume size parametric in boot_from_volume
Fixes bug #1090007

Change-Id: Ifa13b0b7b62be75805db2730cb7154406f0c1b94
2012-12-13 17:02:24 +00:00
Joe Gordon
5c1bedd1ed Update aggregates test for aggregates bp
Instead of implementing availability zones in the service table,
availability zones will be implemented using general aggregate metadata.

So when an aggregate is created it will already have metadata.

Part of blueprint aggregate-based-availability-zones

Change-Id: I0fd22399b99a14087fef63fc91d0baef746efbed
2012-12-12 12:20:01 +00:00
Mate Lakat
1e32d0ab19 exercises/euca: Fix volume timeout
Fixes bug 1087656

In euca exercise, the timeout for one of the volume operations was
specified as ASSOCIATE_TIMEOUT, whereas the timeout error message was
mentioning RUNNING_TIMEOUT. This fix changes the timeout to
RUNNING_TIMEOUT so that it is consistent with the error message.

As RUNNING is usually larger than ASSOCIATE, it leaves more time for the
volume operation.

Change-Id: Ic016c7920ae6e4ec9a476bb5612b7df9eed01c75
2012-12-07 12:46:15 +00:00
Nachi Ueno
8bc21f6476 move setup_quantum to stack.sh
sudo is only allowed in stack.sh on the CI, so move setup_quantum code
to the stack.sh.
also fixes quantum debug command setup for linuxbridge and ryu

Change-Id: I11bc0aa242a690e25acc088b3e9f483ceab38f26
2012-12-05 17:55:08 -08:00
Sean Dague
0da8dbd0a3 create a horizon exercise for sanity check
from time to time horizon gets broken in devstack and it
takes a while to figure out why. Put a sanity check into
devstack exercises that checks for horizon front page being
up and not just a stack trace to use as a simple gate.

Change-Id: I13a6c59881f618d5194b1625b67115013c9cb6c2
2012-11-30 16:46:09 -05:00
Jenkins
7a51891cb4 Merge "Remove support for nova-volume" 2012-11-14 21:58:47 +00:00
Joe Gordon
6fd2811726 Remove support for nova-volume
* nova-volume has been removed in Grizzly
* part of delete-nova-volume

Change-Id: Iba91d69950767823d77aaaa93243b0f476dbb04d
2012-11-14 13:21:58 -08:00
Jenkins
b459d0e3ba Merge "Make exercise.sh with quantum work" 2012-11-14 16:30:55 +00:00
Nachi Ueno
5db5bfa28f Make exercise.sh with quantum work
- added support for quantum-debug command
- added ping and ssh method for quantum

Change-Id: Iebf8a0e9e2ed2bb56bee6533e69827e6caa2bc82
2012-11-13 10:40:59 -08:00
John Griffith
161e2807a9 Update devstack exercises to call cinderclient
Exercises use nova volume-* commands still.  This works fine,
however moving forward now that cinder is the default volume service
we should use the cinderclient explicitly for the applicable calls.

Attach/Detach are still novaclient commands, however the others
(create, delete, list, etc) should be cinderclient.

Change-Id: I336de1b69a32eee6c91655b0a5bf8541b243f2f0
2012-11-05 15:13:36 -07:00
Nachi Ueno
fda946e3eb Added ping_check and ssh_check functions and use it in exercise.sh
Change-Id: I69d41c9db527f60f250b6af36b2d8e9d0dd39684
2012-10-25 21:52:31 -07:00
Eoghan Glynn
fc65cfed55 Directly create bootable volume based on image ID.
Now that a bootable volume can be created directly based on
image ID, we can dispense with the complexity around using
a builder instance to acheive the same effect.

Change-Id: Ied1f6863a4dd21685e2f135841b9e2c4d499675f
2012-10-20 14:18:06 +01:00
John Griffith
082a3da01f Remove extraneous timing messages from volumes.sh
Change: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b
added some timing messages around the volume operations in
exercises/volumes.sh.  This was a good idea, but some
useless timing info was added to failed cases, this patch
pulls that back out.  The only parameter used to detect
failure is a timeout, so outputing the time elapses in
these cases is useless.

Change-Id: I609a803a7293aa8a8e3cec186984de59bfe9b409
2012-10-06 22:26:39 -06:00
John Griffith
496ffc74bb Add timing info to volume exercises.
Looking at some failures lately in Jenkins/Devstack runs and it would
be handy to see if failures were time-out related versus flat out failed
operations.

More interestingly it might be worthwile to harvest the completion time
info from the jenkins logs and keep track of any significant deviations
introduced by code changes.

Change-Id: I3bbcc5b9f8a4da2fcdb9f6f70913c2d6bc6e2b9b
2012-09-26 15:11:11 -06:00
Vishvananda Ishaya
dc9e2880a3 Modify euca test to get zone using describe
This modifies the euca test to include describe-availability-zones
so that it is covered. This allows us to not need to hard-code a
zone name for the volume tests.

Change-Id: Iaae0589d4338d948981ca6e2229d2ceb73ff38ef
2012-09-21 23:20:06 +00:00
Vishvananda Ishaya
8efdbacce3 Change default zone back to nova
Change-Id: I9a097ab77c6b9fab3f33a245bca3bc0037f67fd1
2012-09-21 00:23:41 +00:00
Jenkins
026b305c3a Merge "Fix errors in client-* exercises" 2012-09-13 01:49:56 +00:00
Dean Troyer
834805350a Fix errors in client-* exercises
Change-Id: Ib100c7a2a4bb7f7c02cf4a66cb8bcf506aa11339
2012-09-12 14:45:48 -05:00
Chuck Short
37258958ce Add volume tests to exercises/euca.sh
Excercise euca2ools volumes commands when
exercising the other euca2ools as well.

Change-Id: Ia43bd233c63224eac5e851b3b8a3dbdbf3b5e1f0
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2012-09-11 09:24:04 -05:00
Dean Troyer
c5dfecd818 Fix RST formatting errors
Clean up some shocco RST errors

Change-Id: I9afa0f155f2bfcc73638ae11447c693579288355
2012-09-08 14:21:44 -05:00
Maru Newby
6c32c6edab Fix quantum exercise script to use private CIDRs.
* Addresses bug 1047024

Change-Id: Iba5a369b94a6c0e14edea9d13079a80a85adf907
2012-09-06 13:47:49 -07:00
Jenkins
6a1c849773 Merge "Fix aggregates test with multi host setup" 2012-09-05 18:15:24 +00:00
Mate Lakat
178b8402d9 Fix aggregates test with multi host setup
Fixes bug 1046222.

The aggregate exercise assumed that you have only one compute node, thus
it failed with syntax error for two hosts. With this fix, the exercise
will pick the first compute host, and use that for the tests.

Change-Id: I85d76552295d640e1a9d86fbbed781f15529d047
2012-09-05 10:42:10 +01:00
Dean Troyer
96288ba9a9 Clean up security groups in exercises
* fix problem with deleting security groups too early in
  floating_ips.sh and euca.sh
* create and clean up security groups
* cosmetic cleanups

Change-Id: Ie45e03f889c540ec83f27a02b10e787060c5d4d7
2012-09-04 17:56:16 -05:00
Dan Wendlandt
ea23e68664 Exercise quantum v2 api without namespace
Added quantum_v2.sh for quantum v2 api exercise.

Quantum exercise script requires the following settings:
- Q_USE_NAMESPACE=False
- LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver

And the following services enabled:
- quantum, q-svc, q-agt, q-dhcp

Change-Id: I5767f94c94187a4ca0fd189244fa6f5781519ab4
2012-08-22 05:53:17 -07:00
Monty Taylor
9fbeeddc3b Support the possibility of using entry-points.
If console scripts are generated via entry-points, they will go into
/usr/local/bin on python setup.py develop and they will not be found in
/opt/stack/$PROJECT/bin any more. This patch supports a transition to
entry-points console scripts, but should still allow the old thing too.

Change-Id: I816f5f796ad00ac55a8352743ba01723df140072
2012-08-17 19:04:54 -04:00
Jenkins
839d370c05 Merge "Improve exercises/aggregates.sh" 2012-08-15 20:35:57 +00:00