summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* housekeeping: Add a non-numeric PR prefix to allow PRINC in bbappendshavanaMark Asselstine2014-09-297-7/+7
| | | | | | | | | | | | | | | | | | | | | | Although the use of PRINC is deprecated in later versions of Yocto it may still be used and if you are using this layer with older Yocto it is recommended for use in bbappends. It is therefore expected to work. PRINC expects a non-numeric prefix followed by a numeric value, as can be seen in base.bbclass pr_prefix = re.search("\D+",pr) prval = re.search("\d+",pr) if pr_prefix is None or prval is None: bb.error("Unable to analyse format of PR variable: %s" % pr) Failing to stick to this convention yields a parsing error when you attempt to use PRINC: ERROR: Unable to analyse format of PR variable Adding the non-numeric prefix allows PRINC use in bbappends to function correctly. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
* Keystone: package service/user addition sstate vardepsMark Asselstine2014-08-273-0/+3
| | | | | | | | | | | | | | Several packages utilize the keystone package service/user addition services recently added. The data passed to this service depends on the value assigned to CONTROLLER_IP (used as KEYSTONE_HOST), however, bitbake is not able to automatically determine this dependency so several tasks which should be rerun to create updated package postinst scripts are not run when CONTROLLER_IP is modified. Adding the necessary vardeps ensure these tasks are rerun and now adjustments made to CONTROLLER_IP are reflected in the generated packages. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* dhcp: fix double 'request' in dhclient.confMark Asselstine2014-08-271-1/+1
| | | | | | | | | | | | | commit 43e2b093040734d4c4b28db96a634cd2a5f3271b [dhcp: add dhcp classless static route support] had a flaw in one of do_install_append() sed expressions in the dhcp recipe that caused a duplicate 'request' keyword to be inserted in to the dhclient.conf file. The result was that results returned for the request were not as expected and the resolv.conf would be empty. Fixing up the sed expression removes the duplicate and allows things to function properly. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
* core: update core components to latest havana/stable releasesVu Tran2014-08-229-76/+16
| | | | | | | | The patch CVE-2014-0006-swift-1265665.patch is already in the latest Swift havana/stable release, so dropping it. Signed-off-by: Vu Tran <vu.tran@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* apache: resync to oe-core latestBruce Ashfield2014-08-222-0/+15
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* nova: fix FILESEXTRAPATHS warningBruce Ashfield2014-08-201-1/+1
| | | | | | | convert FILESEXTRAPATHS to FILESEXTRAPATHS_append to avoid warnings from the latest oe-core. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* lxc: resync bbappend to meta-virtualizationBruce Ashfield2014-08-191-0/+0
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* memcached: re-sync to meta-networking versionBruce Ashfield2014-08-192-15/+22
| | | | | | | | | | To avoid configuration errors, we need to get the latest meta-networking changes. This recipe will be dropped eventually, but will stay a bit longer for migration purposes. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* README: add meta-python dependencyBruce Ashfield2014-08-191-0/+1
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* python-keystone: Remove openrc file and bb references.Liam R. Howlett2014-07-312-8/+0
| | | | | | | This patch removes the openrc file from the keystone package and references to openrc in the python-kystone_git.bb file. Signed-off-by: Liam R. Howlett <Liam.Howlett@WindRiver.com>
* cirros: make root home configurableBruce Ashfield2014-07-311-3/+3
| | | | Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* qemu: add qemu 2.0.0 bbappendBruce Ashfield2014-07-312-0/+5
| | | | | | Adding a qemu 2.0.0 bbappend to sync with oe-core master. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* cloud-compute: add veth kernel moduleBruce Ashfield2014-07-311-0/+1
| | | | | | | when launching guests, libvirt may create veth links, without having the veth module on the target this fails, and no guests can be launched. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* rabbitmq: make HOME configurableBruce Ashfield2014-07-312-1/+3
| | | | | | | | | | | Since rabbitmq uses HOME as the location for the erlang cookie, rabbitmq will fail to start if that directory is not on the system. To ensure that this is configurable, we use the bitbake variable ROOT_HOME and replace a placeholder in the initscript. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* keystone: set default backend to ldapAmy Fong2014-07-311-2/+10
| | | | Signed-off-by: Amy Fong <amy.fong@windriver.com>
* aio: add support for identity.bbclassAmy Fong2014-07-312-1/+4
| | | | Signed-off-by: Amy Fong <amy.fong@windriver.com>
* Keystone: implement incremental/programatic user additionsAndy Ning2014-07-311-190/+210
| | | | | | | | | | | | | Instead of creating tenant/user/role and service/endpoint for all openstack services in keystone postinstall, now each of the services creates keystone identities by itself in its own postinstall. The existing identity.sh has been re-written to be a utility that takes parameters, and the service postinstall calls identity.sh to create its own keystone identities. The identity.sh can also be used as a tool to manually create keystone identities at run time. Signed-off-by: Andy Ning <andy.ning@windriver.com>
* Keystone: build time incremental/programatic user additionsAndy Ning2014-07-311-4/+178
| | | | | | | | | | | | | | Instead of creating tenant/user/role and service/endpoint for all openstack services in keystone postinstall, now each of the services creates keystone identities by itself in its own postinstall. The exiting identity.bbclass has been re-written so that each of the individual postinstalls will queue up keystone identity creation in /etc/keystone/service-user-setup at runtime. And service-user-setup will be run as the last postinstall to create keytstone identities for all the services. Signed-off-by: Andy Ning <andy.ning@windriver.com>
* Keystone: package service/user additionsAndy Ning2014-07-3111-19/+298
| | | | | | | | | | | Instead of creating tenant/user/role and service/endpoint for all openstack services in keystone postinstall, now each of the services creates its own keystone identities by queueing them up in its postinstall to a file /etc/keystone/service-user-setup. service-user-setup script, when run as the last postinstall, calls identity.sh with keystone identity parameters to create necessary identities for the services. Signed-off-by: Andy Ning <andy.ning@windriver.com>
* OpenLDAP READMEAmy Fong2014-07-311-0/+165
| | | | | | Add a README file pertaining to the openldap/keystone/pam usage. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* keystone: Add script to change backend to hybridAmy Fong2014-07-314-10/+56
| | | | | | | | | Adding /etc/keystone/hybrid-backend-setup and convert_keystone_backend.py to set the backend for keystone to hybrid and starts openldap and restarts keystone. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* keystone: enable openLDAP authenticationAmy Fong2014-07-311-0/+46
| | | | | | | | | Modify python-keystone to use openldap. keystone's identity and assignment backends are configured to utilitze the hybrid backend for keystone. This backend uses the SQL backend by default and goes to the ldap database if the user doesn't exist. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* ldap/pam: enable pam/ldap authenticationAmy Fong2014-07-3111-0/+341
| | | | | | | | - modify pam configuration files to use ldap - modify sshd to enable pam - modify nsswitch.conf to use ldap Signed-off-by: Amy Fong <amy.fong@windriver.com>
* keystone: Add packages to controller task for openldap/pam/keystoneAmy Fong2014-07-311-0/+1
| | | | | | | | | | | Enabling OpenLDAP support in keystone and the controller as a distro feature Add packages openldap python-ldap nss-pam-ldapd, libsasl2-modules, python-keystone-hybrid-backend, pam-plugin-mkhomedir and cyrus-sasl to the controller task Signed-off-by: Amy Fong <amy.fong@windriver.com>
* keystone: package python-keystone-hybrid-backendAmy Fong2014-07-311-0/+22
| | | | | | | This project provides two alternative backends for Keystone: hybrid SQL and LDAP backends for OpenStack Keystone Signed-off-by: Amy Fong <amy.fong@windriver.com>
* ldap/pam authentication: package nss-pam-ldapdAmy Fong2014-07-312-0/+136
| | | | | | | Package nss-pam-ldapd, this is a daemon enabling pam/ldap authentication. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* uwsgi: remove floating yajl dependencyBruce Ashfield2014-07-291-1/+5
| | | | | | | | | | | | | | | uwsgi is using pkg-config to detect whether or not yajl is present in the build. We do want to use yajl, so we add an explicit dependency and pkgconfig inherit. Without this, build errors may occur, since the build paths that don't use yajl are not supported. And finally, to prevent the searching of host include paths, we set UWSGI_REMOVE_INCLUDES and purge local directories. This ensures that only the sysroot and package config settings are used. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* openstack initscript: add resetAmy Fong2014-07-2517-34/+361
| | | | | | | | Some of the openstack data is associated with external resources (ie glance may have external files), we explicitly invoke the delete commands on those in additional to dropping and recreating the databases. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* rally add readme docVu Tran2014-07-171-0/+335
| | | | | Signed-off-by: Vu Tran <vu.tran@windriver.com>
* introduce benchmarking packagegroupVu Tran2014-07-172-0/+16
| | | | | | | | | | | | | | | | | | | Create new benchmarking packagegroup bb. Benchmarking packagegroup can be included into final image to include all required packages for benchmarking OpenStack at scale. Currently OpenStack benchmarking is provided by OpenStack component Rally. Also introducing new Yocto variable OPENSTACK_EXTRA_FEATURES which can be used to inform what feature should be included in meta-cloud-services OpenStack final image. To include benchmarking packagegroup in local.conf have OPENSTACK_EXTRA_FEATURES += " benchmarking" Signed-off-by: Vu Tran <vu.tran@windriver.com>
* rally: verification subunit2json fail to open result fileVu Tran2014-07-172-0/+37
| | | | | | | | | | | | | | | | | | Command "rally verify start" gives the following error: TRACE rally File "/usr/lib64/python2.7/site-packages/rally/verification/verifiers/tempest/subunit2json.py", line 113, in stopTestRun TRACE rally with open(self.results_file, 'wb') as results_file: TRACE rally TypeError: coercing to Unicode: need string or buffer, int found For Python 2.x, open() requires a string but not file descriptor number. However for Python 3.x, open() can either accept a string file name of a file descriptor number. So modify code to pass in open() string file name. This should work for both Python 2.x and 3.x Signed-off-by: Vu Tran <vu.tran@windriver.com>
* rally: sqlalchemy-db missing name for ENUMVu Tran2014-07-172-0/+26
| | | | | | | | | | | Command "rally-manage db recreate" gives the following error: TRACE rally File "/usr/lib64/python2.7/site-packages/sqlalchemy/dialects/postgresql/base.py", line 898, in format_type TRACE rally raise exc.CompileError("Postgresql ENUM type requires a name.") TRACE rally CompileError: Postgresql ENUM type requires a name. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* Rally verification to use existing tempestVu Tran2014-07-173-0/+127
| | | | | | | | | | | | | | | | | | | | | | | | | By default, Rally verification requires to do following things: * git clone tempest source from upstream * setup virtualenv for this tempest * setup testr environment with virtualenv above * create tempest.conf for this tempest If tempest is already installed/configured in rootfs then force Rally to use this existing tempest. A new introduced option "existing_tempest_config" in /etc/rally/rally.conf can be used to configure Rally to either use the existing tempest or to download from upstream. If the option "existing_tempest_config" is not set then follows the default path. If existing_tempest_config is set to absolute path of tempest config folder (which contains tempest "tools" and .testr.conf) then Rally uses this existing tempest. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* rally: remove ironic supportVu Tran2014-07-172-0/+88
| | | | | | | OpenStack ironic is not currently supported, so remove any code in rally that invokes ironicclient. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* introduce openstack Rally componentVu Tran2014-07-175-0/+712
| | | | | | | | | | * Add Rally bb file * Add Rally deployment json config for existing deployment * Add task example * To use custom Rally config file Signed-off-by: Vu Tran <vu.tran@windriver.com>
* add python-oslotest bb 1.0.0 fileVu Tran2014-07-171-0/+29
| | | | | | | OpenStack Rally requires oslotest. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* tempest missing tools and testr configVu Tran2014-07-171-1/+2
| | | | | | | | | | OpenStack Rally requires "tools" from tempest. Also modify tempest ".testr.conf" to allow testr to run tempest from any location. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* glance test config use latest cirros imageVu Tran2014-07-171-1/+2
| | | | | | | | | | cirros image installed at /root/images/ can be upgraded to different version. Instead of hardcoding cirros image name, let find cirros image at runtime as glance test config is not bounded to a specific cirros image. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* neutron: uuid whitespace check fixAmy Fong2014-07-171-2/+2
| | | | | | The uuid candidate may be none, need to check for this. Signed-off-by: Amy Fong <amy.fong@windriver.com>
* neutron test: nec plugin extensions locationVu Tran2014-07-172-0/+27
| | | | | | | | | | | Some of the neutron built-in testcases failed because they can not find nec plugin extensions based on the given relative path. So forcing these failure testcases to look for these extensions using absolute path. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* neutronclient: use csv flag instead of jsonKeith Holman2014-06-252-1/+69
| | | | | | | | | | | | | The tests included with neutronclient are calling neutron commands agents-list and net-list with the "-f" flag set to "json". This isn't supported and throws an exception during the test. The exception is unexpected and fails to free the resources allocated by the mox testing library causing the following tests to fail. This fix applies a patch that prevents the exception from being thrown by calling the commands with the "-f" flag set to "csv", which is supported. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* qemu: add attr and cap-ng dependenciesKeith Holman2014-06-251-1/+1
| | | | | | | | | | | | | In qemu, the virtfs configuration option requires attr and cap-ng. Adding "attr" to a PACKAGECONFIG[virtfs] doesn't work because this only adds "attr" as a package dependency but doesn't set the configuration option for generating the correct configure command line. This fix explicitly adds the two required configuration options to the configuration line since virtfs is already specified as a desired configuration option. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* packagegroup controller,compute - Add module softdogAmy Fong2014-06-242-0/+2
| | | | | | | | | | | | | | On system bootup, the softdog kernel module gets modprobed from the package sanlock-wdmd-init, but because it didn't exist, we get: Loading the softdog kernel module: FATAL: Module softdog not found. Failure Add the package kernel-module-softdog to add the kernel module softdog to the rootfs Signed-off-by: Amy Fong <amy.fong@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* dhcp: add dhcp classless static route supportAndy Ning2014-06-242-0/+108
| | | | | | | | | | | | | | dhclient needs to be configured to request classess static routes (option code 121) from dhcp server. And dhclient-script will call dhclient-exit-hooks which will parse and add the static routes received from dhcp server into the routing table. The support are built into both controller image and usb guest image, but only guest image makes use of it to add static route for instance to access metadata. Signed-off-by: Andy Ning <andy.ning@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* keystoneclient: fix keystoneclient-test packageKeith Holman2014-06-241-1/+1
| | | | | | | | | | | The keystoneclient-test package (created in the keystoneclient recipe) is currently being generated with no files. This is causing a build error. The path to the files to include in this package specify the "${D}" variable at the beginning of the path, which isn't needed. Removing this variable from the line fixes the problem. Signed-off-by: Keith Holman <Keith.Holman@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
* neutron: update uuid check error messageAmy Fong2014-06-242-0/+35
| | | | | | | | If the uuid specified has trailing whitespace, update the error message to suggest that this is the case. (ie give a more useful error message) Signed-off-by: Amy Fong <amy.fong@windriver.com>
* add python-pysnmp 4.2.5 bb fileVu Tran2014-06-232-0/+23
| | | | | | | | Ceilometer ceilometer/hardware/inspector/snmp.py and some some ceilometer builtin tests require python pysnmp package. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* add python-pecan 0.5.0 bb fileVu Tran2014-06-232-17/+25
| | | | | | | | | | | | | | | | | | | | | | | | | One of the ceilometer builtin test ceilometer.tests.api.v2.test_list_events_scenarios.TestListEvents.test_all_trailing_slash failed as it tries to test with trailing slash. The root cause is in pecan package, and the following two upstream commits fix the issue: Upstream 0e18b1f7d490695f4988d92c83bf239cf2937bf6 from https://github.com/stackforge/pecan.git branch master Upstream 573846e01209327030db146909de03e97cd8a858 from https://github.com/stackforge/pecan.git branch master Instead of back porting these commits, it's better to uprev python-pecan to 0.5.0 version which also contains these commits. Also remove meta-openstack/recipes-devtools/python/python-pecan_0.4.2.bb Signed-off-by: Vu Tran <vu.tran@windriver.com>
* add python-logutils 0.3.3 bb fileVu Tran2014-06-231-0/+23
| | | | | | | | New version of python-pecan (e.g pecan 0.5.0) requires python logutils. Signed-off-by: Vu Tran <vu.tran@windriver.com>
* ceilometer builtin skip failed unsupported db testsVu Tran2014-06-232-0/+52
| | | | | | | | | | | | | | | | | ceilometer tests against various databases: mongodb, db2, sqlalchemy, hbase. For mongodb and db2, tests use environment variables: CEILOMETER_TEST_MONGODB_URL and CEILOMETER_TEST_DB2_URL for supplying URL database connection into tests. As we do not support mangodb or db2, by not setting or setting bogus URLs to these two environment variables will cause tests to fail. These tests should be skipped as prerequisite is not satisfied. Therefore we modify ceilometer testcases for mongodb and db2 to be skipped instead of failed if CEILOMETER_TEST_MONGODB_URL and CEILOMETER_TEST_DB2_URL are not set. Signed-off-by: Vu Tran <vu.tran@windriver.com>