Fix nodepool setup scripts
The devstack cache steps were being run as the ubuntu user; make sure they are run as jenkins. Also update the nodepool configuration file to current values and include the jenkins credential id. Change-Id: Icbe8bee3b1800e28034cd36d4d328a6793d55b0e
This commit is contained in:
parent
772af71625
commit
86b0f3bfd5
@ -329,6 +329,7 @@ node 'nodepool.openstack.org' {
|
||||
statsd_host => 'graphite.openstack.org',
|
||||
jenkins_api_user => hiera('jenkins_api_user'),
|
||||
jenkins_api_key => hiera('jenkins_api_key'),
|
||||
jenkins_credentials_id => hiera('jenkins_credentials_id'),
|
||||
rackspace_username => hiera('nodepool_rackspace_username'),
|
||||
rackspace_password => hiera('nodepool_rackspace_password'),
|
||||
rackspace_project => hiera('nodepool_rackspace_project'),
|
||||
|
@ -26,7 +26,7 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get \
|
||||
rm -rf ~/workspace-cache
|
||||
mkdir -p ~/workspace-cache
|
||||
|
||||
pushd ~/workspace-cache
|
||||
cd ~/workspace-cache
|
||||
git clone https://review.openstack.org/p/openstack-dev/devstack
|
||||
git clone https://review.openstack.org/p/openstack-dev/grenade
|
||||
git clone https://review.openstack.org/p/openstack-dev/pbr
|
||||
@ -54,9 +54,9 @@ git clone https://review.openstack.org/p/openstack/python-swiftclient
|
||||
git clone https://review.openstack.org/p/openstack/requirements
|
||||
git clone https://review.openstack.org/p/openstack/swift
|
||||
git clone https://review.openstack.org/p/openstack/tempest
|
||||
popd
|
||||
|
||||
. /etc/lsb-release
|
||||
cd /opt/nodepool-scripts/
|
||||
python ./devstack-cache.py $DISTRIB_CODENAME
|
||||
|
||||
sync
|
||||
|
@ -24,7 +24,7 @@ sudo bash -xe install_puppet.sh
|
||||
sudo git clone https://review.openstack.org/p/openstack-infra/config.git \
|
||||
/root/config
|
||||
sudo /bin/bash /root/config/install_modules.sh
|
||||
if [ -z $NODEPOOL_SSH_KEY ] ; then
|
||||
if [ -z "$NODEPOOL_SSH_KEY" ] ; then
|
||||
sudo puppet apply --modulepath=/root/config/modules:/etc/puppet/modules \
|
||||
-e "class {'openstack_project::slave_template': }"
|
||||
else
|
||||
|
@ -19,4 +19,4 @@
|
||||
HOSTNAME=$1
|
||||
|
||||
./prepare_node.sh $HOSTNAME
|
||||
./prepare_devstack.sh $HOSTNAME
|
||||
sudo -u jenkins -i /opt/nodepool-scripts/prepare_devstack.sh $HOSTNAME
|
||||
|
@ -8,6 +8,7 @@ class openstack_project::nodepool(
|
||||
$statsd_host = '',
|
||||
$jenkins_api_user ='',
|
||||
$jenkins_api_key ='',
|
||||
$jenkins_credentials_id ='',
|
||||
$rackspace_username ='',
|
||||
$rackspace_password ='',
|
||||
$rackspace_project ='',
|
||||
|
@ -3,6 +3,7 @@ dburi: 'mysql://nodepool:<%= mysql_password %>@localhost/nodepool'
|
||||
|
||||
cron:
|
||||
cleanup: '*/5 * * * *'
|
||||
check: '*/15 * * * *'
|
||||
update-image: '14 2 * * *'
|
||||
|
||||
zmq-publishers:
|
||||
@ -46,7 +47,7 @@ providers:
|
||||
password: '<%= hpcloud_password %>'
|
||||
project-id: '<%= hpcloud_project %>'
|
||||
auth-url: 'https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0'
|
||||
max-servers: 93
|
||||
max-servers: 83
|
||||
images:
|
||||
- name: devstack-precise
|
||||
base-image: 'Ubuntu Precise 12.04 LTS Server 64-bit 20121026 (b)'
|
||||
@ -60,7 +61,7 @@ providers:
|
||||
password: '<%= hpcloud_password %>'
|
||||
project-id: '<%= hpcloud_project %>'
|
||||
auth-url: 'https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0'
|
||||
max-servers: 93
|
||||
max-servers: 83
|
||||
images:
|
||||
- name: devstack-precise
|
||||
base-image: 'Ubuntu Precise 12.04 LTS Server 64-bit 20121026 (b)'
|
||||
@ -74,7 +75,7 @@ providers:
|
||||
password: '<%= hpcloud_password %>'
|
||||
project-id: '<%= hpcloud_project %>'
|
||||
auth-url: 'https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0'
|
||||
max-servers: 93
|
||||
max-servers: 83
|
||||
images:
|
||||
- name: devstack-precise
|
||||
base-image: 'Ubuntu Precise 12.04 LTS Server 64-bit 20121026 (b)'
|
||||
@ -87,6 +88,7 @@ targets:
|
||||
url: 'https://jenkins01.openstack.org/'
|
||||
user: '<%= jenkins_api_user %>'
|
||||
apikey: '<%= jenkins_api_key %>'
|
||||
credentials-id: '<%= jenkins_credentials_id %>'
|
||||
images:
|
||||
- name: devstack-precise
|
||||
providers:
|
||||
@ -101,6 +103,7 @@ targets:
|
||||
url: 'https://jenkins02.openstack.org/'
|
||||
user: '<%= jenkins_api_user %>'
|
||||
apikey: '<%= jenkins_api_key %>'
|
||||
credentials-id: '<%= jenkins_credentials_id %>'
|
||||
images:
|
||||
- name: devstack-precise
|
||||
providers:
|
||||
|
Loading…
x
Reference in New Issue
Block a user