Age | Commit message (Collapse) | Author |
|
The tests included with nova require some files that are within the
"plugin" directory. This fix includes the "plugin" directory on the
target system as part of the recipe. This fix also includes a patch
that updates the tests to find the "plugin" directory where it is
installed on the target system.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
The tests included with nova require some setup and configuration
files that are within the "doc" directory. This fix includes the doc
directory on the target system as part of the recipe. This fix also
includes a patch that updates the tests to find the "doc" directory
where it is installed on the target system.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
The api-paste.ini file shipped with nova is installed into the
/etc/nova directory on a target system. The tests included with nova
expect the file to be relative to the location of the tests within the
source tree. This fix sets the absolute path to the api-paste.ini
file as it exists on the system.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Nova requires the python-coverage to be available in order for the
unit tests supplied to pass. This fix adds a recipe in order to build
the coverage tool. It also adds the dependency to the new package to
the recipe to build nova.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
The metadata service is working as the following:
- metadata is being served by nova-api on controller at port 8775.
- VM instance requests metadata by 169.254.169.254 (eg, curl http://169.254.169.254/latest/meta-data)
- metadata request comes to neutron-ns-metadata-proxy on controller in dhcp network name space.
- neutron-ns-metadata-proxy forwards the request to neutron-metadata-agent through a unix domain socket (/var/lib/neutron/metadata_proxy).
- neutron-metadata-agent sends the request to nova-api on port 8775 to be serviced.
To support metadata service, neutron-ns-metadata-proxy is baked into the controller image. Also neutron-metadata-agent startup script
(/etc/init.d/neutron-metadata-agent) and config file (/etc/neutron/metadata_agent.ini) are added to start up metadata agent at system
initialization. dhcp_agent.ini and nova.conf are updated as well.
A README.metadata is added in the Documentation/ directory.
Signed-off-by: Andy Ning <andy.ning@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
cirros 0.3.0 has a bug which ignores classless static routes passed by
dhcp option 121. This static route is needed for the instance to access
metadata service from 169.254.169.254. 0.3.2 has this bug fixed.
Details about this bug can be found at: https://bugs.launchpad.net/cirros/+bug/1190372
Updated documents that reference specific version of cirros as well.
Note: 0.3.2 download URI (SRC_URI) has been changed from "https://launchpad.net/cirros/trunk" to "http://download.cirros-cloud.net", since cirros binary downloads are all in the new URI.
Signed-off-by: Andy Ning <andy.ning@windriver.com>
|
|
Barbican tests fail because white space is not being properly parsed
by the iso8601 python package. This fix updates the barbican code
using a patch file to strip white space from the date before passing
it to the is8601 package for parsing.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Barbican expects configuration files for its tests to be in the same
location as they appear in the source tree. However, during
deployment configuration files are put into the /etc/barbican
directory. This fix patches the tests to find the configuration files
in the directory they are placed by the barbican recipe.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Novaclient contains a test that fails because it can't
find the path to the test certficate. This is because
the test is based off of running the test from the base
of the source tree. This fix changes the path to look
for the certificate from a relative path to the absolute
path allowing the test to be ran from any directory.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
* Build failed with this error:
| x86-64-wrswrap-linux-gnu-g++ -m64 --sysroot=/media/vtran/1-build/build_temp/build-ovp-1/bitbake_build/tmp/sysroots/intel-xeon-core -O2 -pipe -g -fvisibility-inlines-hidden -c -o gptpart.o gptpart.cc
| In file included from guid.cc:22:0:
| guid.h:29:23: fatal error: uuid/uuid.h: No such file or directory
due to missing "util-linux" in DEPENDS.
* Also got this warning:
WARNING: QA Issue: gptfdisk: /sbin/cgdisk, installed in the base_prefix, requires a shared library under exec_prefix (/usr): libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00000000dead4000)
Move binaries to /usr/sbin/ instead of /sbin/
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The setup.py script that is included with the cloud-init code
is setup to install files into the "/usr/lib" directory. On
64-bit machines the target directory should be "/usr/lib64".
This generates a warning when using bitbake. This fix performs
a search and replace on the setup.py file to set the correct
output directory. This fix also adds a symbolic link to each
script from the /etc/cloud directory to make the scripts
available from a more obvious location.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
When running the keystone tests, the tests ensures that
keystone is being tested against the latest version of
keystone-client available by downloading keystone-client from
source using git. However, on the target system
keystone-client is installed as a separate package and it is
undesirable to download a newer version to test against. This
fix comments out the portion of the testing code that attempts
to retrieve keystone-client from source code using git.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Some Keystone tests create temporary files, usually
databases for testing. These files are stored in the
"tmp" directory under the "tests" directory in Keystone.
The fix creates this directory so these tests don't fail
on failing to create temporary files because the path
doesn't exist.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Keystone tests define the location of certificate files
as the location of the files in the source tree. However,
when installed on the system files are put in different
locations. This change patches the configuration file
for some tests to contain the full path to the tests
directories.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Some tests provided by Keystone tests signing with an
example certificate and signing key. If these certificates
are not found these particular tests will hang. Thus, in
order for these tests to pass we must install the example
certificates to the system. This fix updates the install
script for Keystone to include installing the example
certificates.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Keystone tests are designed to run on the source tree.
However, Keystone is installed on a system with files
in various directories. This fix patches the testing
source files to be able to find the files on the
distribution. This fix incorporates the changes of
a previous patch file into a new patch file that is
generated, since the previous patch are related and
close to eachother in the source and it is easier to
maintain less patch files.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Openstack components provide a run_tests.sh script for
running unit tests. Some of these tests expect the
openstack-nose plugin to be installed. This fix provides
a recipe for the building that plugin in order to allow
the various run_tests.sh scripts to run.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
The bitbake recipe file for building Keystone is inconsistent
with the use of tabs versus spaces. According to guidelines
for the Yocto project (style guide), the tabs should be
replaced with spaces in the case of indenting for lists. The
style guide can be found at:
https://wiki.yoctoproject.org/wiki/Recipe_&_Patch_Style_Guide
This fix changes the Keystone recipe file to use spaces instead
of tabs in list of files and package dependencies.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Colorama is a python interface for sending ASCII terminal
codes to facilitate setting cursor locations and outputting
color to terminal windows. This change provides a recipe for
obtaining the colorama package.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Some packages require the termcolor package, which is used
to generate colour output on terminal screens. This change
provides a recipe for installing the termcolor package.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
When populating the Openstack rootfs with rabbitmq-server package,
you get the following warnings:
WARNING: QA Issue: rabbitmq-server: Found a reference to /usr/ in
rabbitmq-server-3.2.4-r2/packages-split/rabbitmq-server/sbin/rabbitmq-env
WARNING: QA Issue: Shell scripts in base_bindir and base_sbindir
should not reference anything in exec_prefix
This patch silence the warning by telling the build system to not
throw warnings if a script in base_[bindir | sbindir | libdir ] makes
what it considers an unsafe reference to exec_prefix.
The reference though to exec_prefix in this case is very safe, since
it is only part of variable directing other scripts to
rabbitmq-server's plugins directory.
Signed-off-by: Mustapha Lansana <Mustapha.Lansana@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
GPT fdisk (gptfdisk) is a disk partitioning tool loosely modeled on
Linux fdisk, but used for modifying GUID Partition Table (GPT) disks.
When prepare disk device for ceph with ceph-disk, it's required sgdisk
util from gptfdisk to perform disk partition. So add gptfdisk.bb.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
The tests included Horizon expect all files to be in a single
location in order to be run directly from the source tree. The
recipe for installing Horizon on the system installs Horizon
as a python site-package and puts files in different locations
depending on the file type. In order to have the tests support
this type of install we need to explicitly indicate the full path
of the test files to exclude in order to have the tests run
successfully. This fix adds the absolute path to the test
locations allows the Horizon tests to pass as expected.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Nose is a package to support unit testing of python source code.
Node-exclude is a plugin extending Nose to specify directories
to exclude from testing via the command line. Some packages
require this plugin to be installed in order to run all the tests
successfully. This fix creates recipe to install the node-exclude
plugin on the target system.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Horizon provides unit tests for testing its deployment in
target environment. These tests make use of django-nose
testing framework. This provides a recipe for building
django-nose and adds a dependency from Horizon on this
recipe.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
Currently, the run_tests.sh script provided by the horizon
package requires the command "coverage" to be available
even if the "-c" option (test with code coverage) is not
specified on the command line. This fix patches the test
script to remove the calls to the "coverage" tool and calls
the test script directly if the "-c" option is not provided.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
|
|
uwsgi needs uuid/uuid.h to be present, otherwise we get the following
build error:
| In file included from core/utils.c:1:0:
| ./uwsgi.h:188:23: fatal error: uuid/uuid.h: No such file or directory
| #include <uuid/uuid.h>
| ^
| compilation terminated.
Adding a e2fsprogs dependency gets the header file properly installed before
the build starts.
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
There are some missing ceilometer meters (e.g. vcpu) which have
origin from notification. This is due to ceilometer-agent-notification
service is not started on controller node.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
If a builder doesn't have the C locale an error can occur:
| DEBUG: Executing shell function do_compile
| /bin/sh: warning: setlocale: LC_ALL: cannot change locale (C.UTF-8)
| ERROR: While executing gem ... (ArgumentError)
| invalid byte sequence in US-ASCII
| WARNING: ..../mime-types-1.25.1-r0/temp/do_compile/run.do_compile.5389:95 exit 1 from
| LANG="C.UTF-8" LC_ALL="C.UTF-8" gem build $gem
| ERROR: Function failed: do_compile (see ..../mime-types-1.25.1-r0/temp/do_compile/log.do_compile.5389 for further information)
Use the en_US locale instead which tends to be more widely available
and from the looks of things usually recommended.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
|
|
Two testcases:
* tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant[gate]
* tempest.api.compute.admin.test_simple_tenant_usage.TenantUsagesTestJSON.test_get_usage_tenant_with_non_admin_user[gate]
fail with the following reason:
2014-05-26 22:46:23,929 Response Body: {"tenant_usage": {}}
}}}
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/tempest/api/compute/admin/test_simple_tenant_usage.py", line 92, in test_get_usage_tenant_with_non_admin_user
self.assertEqual(len(tenant_usage), 8)
File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 322, in assertEqual
self.assertThat(observed, matcher, message)
File "/usr/lib64/python2.7/site-packages/testtools/testcase.py", line 412, in assertThat
raise MismatchError(matchee, matcher, mismatch, verbose)
MismatchError: 0 != 8
These 2 testcases first spawn a VM for a new tenant, sleep for 2s
and then request "tenant usage" stat from nova-compute. However, the
"tenant usage" stat returned is empty and thus testcases fail.
Increase sleep to 20s to make sure nova-compute has enough time to collect
stat
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
Some OpenStack components expect the system to contain a
syslog user for logging purposes and fail if one doesn't
exist. This fix adds the syslog user and group within the
sysklogd package since it responsible for the system
logging capabilities of the system. This fix also adds a
dependency between the package requiring the syslog user
to exist.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
By default cinder-backup driver is swift. To test
ceph cinder-backup driver, the backup_driver in
cinder.conf must be set to ceph. Update README.ceph-openstack
to reflect this.
Also change "$" to "#" for test steps which are not commands.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
The Fix-rbd-backend-not-working-for-none-admin-ceph-user.patch patch
was removed when Nova was updating to latest, and this causes nova-compute
fails to use Ceph cluster.
Re-apply the patch.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
Using the /etc/init.d/tgtd script, allows the service be started
multiple times, but only the last instance can be stopped using
the script. This fix ensures that the service isn't running
before attempting to start the service multiple times.
Signed-off-by: Keith Holman <Keith.Holman@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
|
|
To support tempest, modify keystone identity.sh
script to:
* add user with username=alt_demo, tenant=alt_demo,
and password=password into keystone.
* add user "admin" into tenant "demo".
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
Currently glance keystone endpoints URLs include
"v2/" at the end (e.g. http://<glance server ip>:9292:v2/).
This means glance should only be talked to using v2.
For tempest image testcases, image_client.py gets URLs
from keystones and appends additional version into
these URL strings (e.g. htt://<glance server ip>:9292:v2/v2/images)
which causes glance not to understand the command and return error:
NotFound: Object not found
Details: 404 Not Found
The resource could not be found.
In our case, we use the "v2" from URLs.
We also disable v1 image testcases as it's not possible
to test v1 with current glance endpoind URLs.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
commit 2b5287db8116ef8e3ed5e4fc211296e6293b5dcc upstream
https://github.com/openstack/tempest.git
This commit switches the image api tests from auto detecting which
api versions are available to having them explicitly set in the config
file. This is to make it explicit which tests are expected to be run
instead of assuming that everything is expected to work.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
As now Openstack Heat component is enabled,
so allow tempest to test Heat as well.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
As cinder-volume supports multiple backend drivers:
nfs, glusterfs, ceph, and lvm-iscsi, it's good
to allow tempest to test cinder-volume multi-backend.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
|
|
subprocess.check_output() doesn't exist in older python2.6*
Rewriting as subprocess.Popen
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
Make ruby binaries more accessible by creating symlinks from
${libdir}/ruby/gems/${ruby version}/bin/ to /usr/bin
RDEPENDS needs to be package specific
coderay needs to depends on yard
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
Use chef-solo to help reconfigure and deployment of controller
and compute nodes. Install script downloaded from this link
(https://www.opscode.com/chef/install.sh) and the attached archives created from it.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
YARD is a documentation generation tool for the Ruby
programming language. It enables the user to generate consistent,
usable documentation that can be exported to a number of formats very
easily, and also supports extending for custom Ruby constructs such as
custom class level definitions.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
This gem is a C binding to the excellent YAJL JSON
parsing and generation library.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
Universal capture of stdout and stderr and handling of
child process pid for windows, *nix, etc.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
A simple option parser with an simple syntax and API.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|
|
A simple HTTP and REST client for Ruby, inspired by the
Sinatra's microframework style of specifying actions: get, put, post,
delete.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Amy Fong <amy.fong@windriver.com>
|