Add inap cloud

This is a step in the process of renaming internap to inap.
This adds the new provider to allow image uploads, and adds a
corresponding Grafana dashboard.

Change-Id: I914d75daa619f7b63d6c66c4da00fac86f5784a1
Depends-On: I24b7a61236a40b4aecb61475930bd74271ba56d6
This commit is contained in:
James E. Blair 2017-08-11 09:28:57 -07:00
parent 06ab4e294e
commit 12b541d43b
3 changed files with 252 additions and 0 deletions

155
grafana/nodepool-inap.yaml Normal file
View File

@ -0,0 +1,155 @@
dashboard:
title: 'Nodepool: INAP'
templating:
- name: provider
includeAll: true
multi: true
query: stats.gauges.nodepool.provider.inap-*
refresh: true
type: query
rows:
- title: Description
height: 100px
panels:
- title: Description
content: |
**This dashboard is managed by [Grafyaml](http://docs.openstack.org/infra/system-config/grafyaml.html).**
If you would like to make changes to this dashboard, please see the grafana directory in [project-config](https://git.openstack.org/cgit/openstack-infra/project-config/tree/grafana/nodepool-inap.yaml).
type: text
- title: Nodes
showTitle: true
height: 150px
panels:
- title: Building
span: 3
sparkline:
full: true
show: true
targets:
- target: sumSeries(stats.gauges.nodepool.provider.$provider.nodes.building)
type: singlestat
valueName: current
- title: Ready
span: 3
sparkline:
full: true
show: true
targets:
- target: sumSeries(stats.gauges.nodepool.provider.$provider.nodes.ready)
type: singlestat
valueName: current
- title: In Use
span: 3
sparkline:
full: true
show: true
targets:
- target: sumSeries(stats.gauges.nodepool.provider.$provider.nodes.used)
type: singlestat
valueName: current
- title: Deleting
span: 3
sparkline:
full: true
show: true
targets:
- target: sumSeries(stats.gauges.nodepool.provider.$provider.nodes.delete)
type: singlestat
valueName: current
- title: API Operations
showTitle: true
height: 250px
panels:
- title: Create Server
type: graph
span: 4
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: aliasSub(aliasByNode(scale(stats.timers.nodepool.task.$provider.ServerCreate.mean, '0.001'), 4), 'inap-', '')
- title: Get Server
type: graph
span: 4
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: aliasSub(aliasByNode(scale(stats.timers.nodepool.task.$provider.ServerGet.mean, '0.001'), 4), 'inap-', '')
- title: Delete Server
type: graph
span: 4
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: aliasSub(aliasByNode(scale(stats.timers.nodepool.task.$provider.ServerDelete.mean, '0.001'), 4), 'inap-', '')
- title: List Servers
type: graph
span: 4
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: aliasSub(aliasByNode(scale(stats.timers.nodepool.task.$provider.ServerList.mean, '0.001'), 4), 'inap-', '')
- title: Node Launches
showTitle: true
height: 250px
panels:
- title: Ready Node Launch Attempts
type: graph
span: 4
nullPointMode: null as zero
leftYAxisLabel: "events / min"
targets:
- target: aliasSub(aliasByNode(summarize(stats_counts.nodepool.launch.provider.$provider.ready, '1m'), 4), 'inap-', '')
- title: Error Node Launch Attempts
type: graph
span: 4
nullPointMode: null as zero
leftYAxisLabel: "events / min"
targets:
- target: aliasSub(aliasByNode(smartSummarize(sumSeries(stats_counts.nodepool.launch.provider.$provider.error.*), '1m'), 4), 'inap-', '')
- title: Time to Ready
type: graph
span: 4
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: aliasSub(aliasByNode(scale(stats.timers.nodepool.launch.provider.$provider.ready.mean, '0.001'), 5), 'inap-', '')
- title: Test Nodes (MTL01)
type: graph
span: 4
stack: true
tooltip:
value_type: individual
leftYAxisLabel: "nodes"
targets:
- target: alias(stats.gauges.nodepool.provider.inap-mtl01.nodes.building, 'Building')
- target: alias(stats.gauges.nodepool.provider.inap-mtl01.nodes.ready, 'Available')
- target: alias(stats.gauges.nodepool.provider.inap-mtl01.nodes.used, 'In Use')
- target: alias(stats.gauges.nodepool.provider.inap-mtl01.nodes.delete, 'Deleting')
- target: alias(stats.gauges.nodepool.provider.inap-mtl01.max_servers, 'Max')
seriesOverrides:
- alias: Max
stack: False
- title: Job Runtimes
showTitle: true
height: 250px
panels:
- title: gate-tempest-dsvm-neutron-full
type: graph
span: 6
leftYAxisLabel: "time"
y_formats:
- s
- none
targets:
- target: alias(scale(stats.timers.nodepool.job.gate-tempest-dsvm-neutron-full-ubuntu-xenial.master.ubuntu-xenial.inap-mtl01.runtime.mean, '0.001'), 'MTL01')

View File

@ -35,6 +35,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -53,6 +54,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -72,6 +74,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -90,6 +93,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -109,6 +113,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -128,6 +133,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -146,6 +152,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -164,6 +171,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -182,6 +190,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -200,6 +209,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -219,6 +229,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -238,6 +249,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -257,6 +269,7 @@ labels:
- name: ovh-gra1
- name: ovh-bhs1
- name: internap-mtl01
- name: inap-mtl01
- name: infracloud-vanilla
- name: infracloud-chocolate
- name: citycloud-lon1
@ -673,6 +686,71 @@ providers:
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: inap-mtl01
region-name: 'mtl01'
cloud: inap
api-timeout: 60
boot-timeout: 120
max-servers: 0
rate: 0.001
template-hostname: '{image.name}-{timestamp}'
images:
- name: ubuntu-trusty
min-ram: 8000
name-filter: 'A1.8'
diskimage: ubuntu-trusty
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: ubuntu-xenial
min-ram: 8000
name-filter: 'A1.8'
diskimage: ubuntu-xenial
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: debian-jessie
min-ram: 8000
name-filter: 'A1.8'
diskimage: debian-jessie
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: fedora-25
min-ram: 8000
name-filter: 'A1.8'
diskimage: fedora-25
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: fedora-26
min-ram: 8000
name-filter: 'A1.8'
diskimage: fedora-26
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: centos-7
min-ram: 8000
name-filter: 'A1.8'
diskimage: centos-7
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: opensuse-423
min-ram: 8000
name-filter: 'A1.8'
diskimage: opensuse-423
username: jenkins
private-key: /home/nodepool/.ssh/id_rsa
config-drive: true
key-name: infra-root-keys
- name: tripleo-test-cloud-rh1
region-name: 'regionOne'
cloud: tripleo-test-cloud-rh1

View File

@ -70,6 +70,25 @@ providers:
name-filter: 'A1.8'
diskimage: ubuntu-xenial
key-name: infra-root-keys
- name: inap-mtl01
region-name: 'mtl01'
cloud: inap
api-timeout: 60
boot-timeout: 120
rate: 0.001
image-name-format: '{image.name}-{timestamp}'
diskimages:
- name: ubuntu-xenial
config-drive: true
pools:
- name: main
max-servers: 0
labels:
- name: ubuntu-xenial
min-ram: 8000
name-filter: 'A1.8'
diskimage: ubuntu-xenial
key-name: infra-root-keys
diskimages:
- name: ubuntu-xenial