151 Commits

Author SHA1 Message Date
Jenkins
bd546c600f Merge "Update client-env to use openstackclient commands" 2014-04-10 16:04:03 +00:00
Steve Martinelli
2a09d0c6a8 Update neutron-adv-test to use openstackclient commands
There were a few references of keystoneclient in
exercises/neutron-adv-test.sh, this patch will change those
commands to their openstackclient equivalents.

Change-Id: I88892fcfacd3dd6354ec269b270cee3da358447a
2014-03-25 19:44:17 -05:00
Adam Gandelman
b875d01cdf Special casing for Ironic VIRT_DRIVER in exercises
Ironic on Devstack does not currently suppport security groups or
anything volume related.  Add some special casing so exercises can
be run without error against the Ironic driver.

Change-Id: I2a54d8cca06fc17894e74b4401af9423cef95635
2014-03-17 19:52:02 -07:00
Jenkins
509140e25c Merge "remove docker from devstack" 2014-03-14 14:33:19 +00:00
Steve Martinelli
2f6c30b33c Update client-env to use openstackclient commands
Updated the only instance of a keystoneclient command, to
check if the identity service is enabled.

Change-Id: If86f71c1610a79690d6c6a8eb423b6fa234372bb
2014-03-13 23:32:46 -05:00
Sergey Lukjanov
7ff8443e46 Rename all Savanna usages to Sahara
There are several backward compatibility nits.

Change-Id: I93cac543375896602d158860cc557f86e41bcb63
2014-03-12 22:25:20 +04:00
Sean Dague
7d4c7e09b4 remove docker from devstack
with I1c9bea2fdeebc4199c4f7d8fca4580a6fb7fed5b nova removed
docker from it's driver tree.

We shouldn't have driver support inside of devstack that's not
part of upstream projects (this has been a line we've been
pretty clear on with Neutron drivers in the past).

Remove docker driver accordingly.

Change-Id: Ib91d415ea1616d99a5c5e7bc3b9015392fda5847
2014-03-12 08:05:08 -04:00
Jenkins
45d5db3dff Merge "Fix intermittent error in exercises/floating_ips.sh" 2014-03-08 18:12:46 +00:00
Brian Haley
9b3602ccf6 Fix intermittent error in exercises/floating_ips.sh
Every once in a while I see this error running floating_ips.sh:

/devstack/exercises/floating_ips.sh:184:ping_check
/devstack/functions:356:_ping_check_neutron
/devstack/lib/neutron:904:die
[ERROR] /devstack/lib/neutron:904 [Fail] Could ping server

I think the problem is that it immediately tries to ping right
after the icmp rule is deleted.  Add a timeout and check so we
at least wait one second.

Change-Id: I753ec257fa12f6d2ddff1a5b1909e32d8995e173
2014-03-03 09:26:49 -05:00
Brian Haley
9bbecb7fc4 Source lib/neutron in boot_from_volume.sh
Without lib/neutron, boot_from_volume.sh generates the following
error:

  + _ping_check_neutron private 10.11.12.5 30
  /devstack/functions: line 356: _ping_check_neutron: command not found

Change-Id: Ib72c3f24d614570d69bf5dda35cbaf5847b1d1b9
2014-02-28 11:19:28 -05:00
Jenkins
f07a209ce0 Merge "Fix Neutron enabled check" 2014-02-28 07:33:34 +00:00
Dean Troyer
e2907b4838 Fix Neutron enabled check
* Remove the check for neutron enabled on a block of variable settings, there
  is no conflict and serves no purpose.
* Also floating_ips.sh and volume.sh needed to properly source lib/neutron
  for do ping_check() to work properly.

The current error in check-devstack-dsvm-neutron is not related to this fix.

Change-Id: I1c458aaa787ffb98c945aefc3afa80c6861a405f
2014-02-27 15:37:11 -06:00
Ian Wienand
aee18c749b Enforce function declaration format in bash8
Check that function calls look like ^function foo {$ in bash8, and fix
all existing failures of that check.  Add a note to HACKING.rst

Change-Id: Ic19eecb39e0b20273d1bcd551a42fe400d54e938
2014-02-28 07:59:03 +11:00
Dean Troyer
e4fa721322 Begin is_service_enabled() cleanup
This converts the special cases in the is_service_enabled() function to call
individual functions declared by the projects.  This allows projects that
are not in the DevStack repo and called via the extras.d plugin to handle
an equivalent service alias.

* Ceilometer
* Cinder
* Glance
* Neutron
* Nova
* Swift

TODO: remove the tests from is_service_enabled() after a transition period

Patch Set 2: Rebased

Change-Id: Ic78be433f93a9dd5f46be548bdbd4c984e0da6e7
2014-02-07 10:06:21 -06:00
Anita Kuno
0d4bd7e610 Silence commands to echo copyright notices
This patch silences commands that echoed copyright notices to the
devstack logs. The copyright notices are moved to the top of the
file as comments.

Change-Id: I8d474a366af2954c168ba8d07329392f56e8e75a
2014-02-02 15:29:31 -06:00
Jenkins
c560cd121a Merge "Run neutron-debug with admin tenant in neutron-adv-test" 2014-01-15 21:25:20 +00:00
Jenkins
9cda7566b0 Merge "Skip Nova exercises if Nova is not enabled" 2014-01-15 18:38:27 +00:00
Jakub Libosvar
52a7b6ecba Run neutron-debug with admin tenant in neutron-adv-test
Because neutron-debug create-probe needs admin role only, demo tenants
cannot create ports. neutron-debug is wrapped in order to run it only
with admin tenant.

Change-Id: Ib65e8639858c597345c6a5fdc0192b40f34a0300
Closes-Bug: #1269090
2014-01-14 19:07:29 +01:00
Kiall Mac Innes
a16c821024 Skip Nova exercises if Nova is not enabled
This allows for ./exercises.sh to complete sucessfully when nova is not
enabled / installed.

Change-Id: If969e14f5106c15007146e8fad1da27d131828c8
2014-01-12 19:51:33 +00:00
armando-migliaccio
05952e3fcc Configuration changes required to support VMware NSX plugin
(Formerly known as Nicira NVP plugin).

Following Neutron change 79fbeb7ebebc0dfbe143aee96fbc250d1b9e7582,
this patch introduces the new naming scheme for Neutron VMware NSX
plugin configuration.

Related-blueprint: nvp-third-part-support (aka bp vmware-nsx-third-party)
Partial-implements blueprint: nicira-plugin-renaming

Change-Id: If7790887661507bfdec6d2b97c0f99609039aa73
2014-01-05 08:01:16 -08:00
Jenkins
19bff77d20 Merge "Fix Issues in Marconi integration" 2013-12-17 15:31:33 +00:00
Malini Kamalambal
0f7ad6bba6 Fix Issues in Marconi integration
This patch fixes a couple of issues, that prevents marconi from running
on devstack.

Change-Id: I47060a0334ad6f90f1402b34c83bb6ad22f723d4
Closes-Bug: #1260820
2013-12-13 12:45:49 -05:00
Dean Troyer
526b79f988 Eradicate last of underscores in options
The --ip_range in stack.sh remains due to nova-manage needing to be fixed.

(Rebased 05Dec2013)

Change-Id: Ic0f93d41b6edfdc5deb82ae820e2c0c5a8bce24e
2013-12-05 12:25:26 -06:00
Jenkins
f7ab12db01 Merge "Add marconi support to devstack" 2013-12-05 17:10:57 +00:00
Jenkins
02ef0dbfb0 Merge "add assertions for blind grep" 2013-12-05 00:19:49 +00:00
Flaper Fesp
06b345e509 Add marconi support to devstack
Marconi has an optional dependency on keystone for authentication. This
code was tested with everything enabled and also with the following
localrc:

    STACK_USER=fedora
    SERVICE_TOKEN=secrete
    ADMIN_PASSWORD=secrete
    MYSQL_PASSWORD=secrete
    RABBIT_PASSWORD=secrete
    SERVICE_PASSWORD=secrete

    disable_all_services
    enable_service qpid
    enable_service key
    enable_service mysql
    enable_service marconi-server

Implements blueprint marconi-devstack-integration
Implements blueprint devstack-support

Change-Id: I13495bcc5c5eb66cee641894e9f84a0089460c8b
2013-11-27 11:09:21 +01:00
Sean Dague
861463fa59 Remove docker exercise
No other hypervisor has a dedicated exercise, docker should be
tested just by testing the nova APIs, not on it's own.

Change-Id: Ifc788815380e8502449171410dea8260786a1e79
2013-10-31 11:08:49 -04: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
Jenkins
46b511f200 Merge "Added Savanna Project" 2013-10-23 00:28:14 +00: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
922c8ae680 clean up whitespace issues on exercises and friends
Change-Id: I812a73e46ddd4d5fed4d304d9ef92c1de243f497
2013-10-22 13:02:29 -04:00
Jenkins
334e46997e Merge "exercices: aggregates needs to be more flexible" 2013-10-22 12:40:05 +00:00
Denis Egorenko
a45a0a0276 Added Savanna Project
Added services Savanna, Savanna Dashboard, Savanna python client.

Implements blueprint devstack-savanna-support
Implements blueprint devstack-integration

Change-Id: I8725f59a0cc9aef4817988470313136c56711cf1
2013-10-22 12:12:25 +04:00
DennyZhang
acb52e5db6 detect failure of 'keystone token-get'
When 'keystone token-get' fails, the caller can't detect the failure.
This cause troulbe shooting a bit complicated.

Change-Id: I3c58c5fd0e92a87e87546ea797904e08646a1097
Closes-Bug: #1238412
2013-10-20 10:01:52 -05:00
Sahid Orentino Ferdjaoui
75e851a6de exercices: aggregates needs to be more flexible
The actual regex checks a result in python format and
because of the change in the bug 1132961, Jekins failed.

I have update the regex to work with the old result
and the new result.

Change-Id: I393e1358f99be5f20d9ac8b3e214355a453ecfcb
Closes-Bug: 1239726
2013-10-16 08:41:22 +00:00
Nikhil Manchanda
0cccad43aa Added Trove (Database as a Service).
- Added changes to stackrc for the Trove Repos.
- Added support to devstack for "install", "configure",
  "init", and "run"

implements blueprint:trove-devstack-integration

Change-Id: Ib3f6daad33e629f764a174b80762c808ce8588e2
2013-09-11 23:48:07 +00:00
Dean Troyer
2aa2a89cdb Add support for Docker as Nova hypervisor
* Add basic support for hypervisor plugins in lib/nova_plugins
* Add lib/nova_plugins/hypervisor-docker to use Docker as a Nova
  hypervisor.
* Add tools/install_docker.sh to install the Docker daemon and
  registry container, download base image and import
* Configure Nova to use docker plugin
* Add docker exercise and skip unsupported ones

Nova blueprint: new-hypervisor-docker

Change-Id: I9e7065b562dce2ce853def583ab1165886612227
2013-08-28 22:36:48 -05:00
Nachi Ueno
6769b166b1 Added functions for get a ip on an instance
The cause of some gating failure looks like
because of getting ip address on instance.
However current exercise didn't log the return value.
In this commit, we add get_instance_ip function with
error hanlding support, and apply it on the execise.

Change-Id: I8e17ba68093faafe58a98eb780a032368eea38aa
2013-08-13 17:08:47 -07:00
Attila Fazekas
1a794a3d9e Show ip address before associating address
In order to see is the instance has a fixed ip at the moment.

Change-Id: I506f2f099a03e8b63f1f2daeb564ed72f1322a68
2013-08-06 15:34:04 +02:00
Chris Behrens
c62c2b9b66 Fix various things when n-cell is enabled
1) Use the newer cell_type configuration option instead of overriding
the compute_api_class.

2) A nova-cells service is started for both the API cell (region) and
the compute cell (child).  The screen names were both 'n-cell' which
caused both services to log to the same log file.  The screen names have
been changed to n-cell-region and n-cell-child.

3) Security groups are not supported with cells.  Multiple exercises are
patched to use the 'default' security group instead of creating a new
one.  Additionally, if one uses the 'default' security group, do not try
to delete it, as one can never delete the default.

4) Disable the floating_ips and aggregates exercises when n-cell is
enabled, as they are not supported by cells.

5) Related to #4, disable the floating_ips tests within euca.sh

6) Update the README.md.  No services need to be disabled, and one only
needs to enable the n-cell service.

Change-Id: I9782d1e3cda3c9dd3daefa15c043f5b06473cb87
2013-07-26 11:11:25 -07:00
Dean Troyer
53fe11a822 More neutron renames
Rename quantum-adv-test.sh and the package prereq files in files/*/quantum

Change-Id: I4dab635c2ae79f1f42a9cfdadbf7a4d06cf2b925
2013-07-08 15:49:35 -05:00
Mark McClain
b05c876994 update for name change to Neutron
Note: Nova and Horizon are not updated until those projects have
migrated.

Change-Id: I256ef20e7caadd9c96e6dd908c5d8b69ca5c4aeb
2013-07-07 00:15:11 -04:00
Joe Gordon
4640026cc1 Fix spelling mistakes
git ls-files | misspellings -f -
Source: https://github.com/lyda/misspell-check

Change-Id: I7d63578734ca5cc1ec865a7d024c1a013d1ada87
2013-06-30 04:32:27 -07:00
Kui Shi
a8a11cf1f6 exercise euca.sh check the volume just created
In devstack, the exercises/euca.sh test the "VOLUME". it should always
check the volume which was just created. Because there may be volumes
left by the last failed euca.sh, then the variable VOLUME
VOLUME=`euca-describe-volumes | cut -f2`
will be assigned a list of volumes, which is not expected.

Fixes bug #1191424

Change-Id: Ie004c9cfeaef4a8a313866d21d45c7b41f1b2ba0
2013-06-16 10:28:23 +08:00
Jeremy Stanley
18b0906e1f Correct InvalidInstanceID.NotFound test.
* exercises/euca.sh: The match filtering InvalidInstanceID.NotFound
is cleaned up to eliminate numerous leaning toothpicks, and now also
actually works. The previous version was incorporating literal
square brackets into the pattern where I think a character list
match may have been intended instead, but was not actually necessary
anyway.

Change-Id: I765a20000e7b6ba6deadce8cad3bbc9559fcdd0d
2013-06-10 00:28:06 +00:00
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