Node pool management for a distributed test infrastructure
Project description
Nodepool
Nodepool is a service used by the OpenStack CI team to deploy and manage a pool of devstack images on a cloud server for use in OpenStack project testing.
Developer setup
Make sure you have pip installed:
wget https://bootstrap.pypa.io/get-pip.py
sudo python get-pip.py
Install dependencies:
sudo pip install bindep
sudo apt-get install $(bindep -b nodepool)
mkdir src
cd ~/src
git clone git://git.openstack.org/openstack-infra/system-config
git clone git://git.openstack.org/openstack-infra/nodepool
cd nodepool
sudo pip install -U -r requirements.txt
sudo pip install -e .
If you’re testing a specific patch that is already in gerrit, you will also want to install git-review and apply that patch while in the nodepool directory, ie:
git review -x XXXXX
Create or adapt a nodepool yaml file. You can adapt an infra/system-config one, or fake.yaml as desired. Note that fake.yaml’s settings won’t Just Work - consult ./modules/openstack_project/templates/nodepool/nodepool.yaml.erb in the infra/system-config tree to see a production config.
If the cloud being used has no default_floating_pool defined in nova.conf, you will need to define a pool name using the nodepool yaml file to use floating ips.
Export variable for your ssh key so you can log into the created instances:
export NODEPOOL_SSH_KEY=`cat ~/.ssh/id_rsa.pub | awk '{print $2}'`
Start nodepool with a demo config file (copy or edit fake.yaml to contain your data):
export STATSD_HOST=127.0.0.1
export STATSD_PORT=8125
nodepool-launcher -d -c tools/fake.yaml
All logging ends up in stdout.
Use the following tool to check on progress:
nodepool image-list
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nodepool-3.0.1.tar.gz
.
File metadata
- Download URL: nodepool-3.0.1.tar.gz
- Upload date:
- Size: 152.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5769bc8b4d6e48c5e728ac1c3db33e4cc9714fe67c54e54d536e6d4aa7668aa3 |
|
MD5 | ad0552c82d026dc5a8007bd67990d239 |
|
BLAKE2b-256 | 7cde4587a59d540a50ca07fb78c6acee21f4af0dfbcaa7b7c803e10a1d30509e |
Provenance
File details
Details for the file nodepool-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: nodepool-3.0.1-py3-none-any.whl
- Upload date:
- Size: 168.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c9dc77a55fa5da6dcfdc31d0fb77e7430ea5bc3b34c7ddaef1c1dceb152e84 |
|
MD5 | 1447a8585e73b270af90c501f85d2f7e |
|
BLAKE2b-256 | e51f401fad075fd47897a9ed913fd326f0ec4d10452c3a810a0b31243fd519b6 |