Fix some CI task files
Fix image_name to work with both devstack and MOS Remove hardcoded paths Add missing fake image file Use os.expanduser in glance utils Change-Id: Ie805a332f98431702b16c3b6a47f76a562e09f7a
This commit is contained in:
parent
f9f5ad73ad
commit
d565af3a6d
@ -1,4 +1,4 @@
|
|||||||
{% set image_name = "^cirros.*uec$" %}
|
{% set image_name = "^(cirros.*uec|TestVM)$" %}
|
||||||
---
|
---
|
||||||
Authenticate.validate_cinder:
|
Authenticate.validate_cinder:
|
||||||
-
|
-
|
||||||
|
0
rally-jobs/extra/fake-image.img
Normal file
0
rally-jobs/extra/fake-image.img
Normal file
@ -2,7 +2,7 @@
|
|||||||
HeatStacks.create_and_list_stack:
|
HeatStacks.create_and_list_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/default.yaml.template"
|
template_path: "~/.rally/extra/default.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -18,7 +18,7 @@
|
|||||||
HeatStacks.create_and_delete_stack:
|
HeatStacks.create_and_delete_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/default.yaml.template"
|
template_path: "~/.rally/extra/default.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/server_with_volume.yaml.template"
|
template_path: "~/.rally/extra/server_with_volume.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 2
|
times: 2
|
||||||
@ -48,10 +48,10 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/resource_group_server_with_volume.yaml.template"
|
template_path: "~/.rally/extra/resource_group_server_with_volume.yaml.template"
|
||||||
parameters:
|
parameters:
|
||||||
num_instances: 2
|
num_instances: 2
|
||||||
files: ["/home/jenkins/.rally/extra/server_with_volume.yaml.template"]
|
files: ["~/.rally/extra/server_with_volume.yaml.template"]
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 2
|
times: 2
|
||||||
@ -67,7 +67,7 @@
|
|||||||
HeatStacks.create_check_delete_stack:
|
HeatStacks.create_check_delete_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -83,8 +83,8 @@
|
|||||||
HeatStacks.create_update_delete_stack:
|
HeatStacks.create_update_delete_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_random_strings_add.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_random_strings_add.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -99,8 +99,8 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_random_strings_delete.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_random_strings_delete.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -115,8 +115,8 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_random_strings_replace.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_random_strings_replace.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -131,8 +131,8 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/autoscaling_policy.yaml.template"
|
template_path: "~/.rally/extra/autoscaling_policy.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_autoscaling_policy_inplace.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_autoscaling_policy_inplace.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -147,8 +147,8 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/resource_group.yaml.template"
|
template_path: "~/.rally/extra/resource_group.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_resource_group_increase.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_resource_group_increase.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -163,8 +163,8 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/resource_group.yaml.template"
|
template_path: "~/.rally/extra/resource_group.yaml.template"
|
||||||
updated_template_path: "/home/jenkins/.rally/extra/updated_resource_group_reduce.yaml.template"
|
updated_template_path: "~/.rally/extra/updated_resource_group_reduce.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -197,7 +197,7 @@
|
|||||||
HeatStacks.create_suspend_resume_delete_stack:
|
HeatStacks.create_suspend_resume_delete_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -230,7 +230,7 @@
|
|||||||
HeatStacks.create_snapshot_restore_delete_stack:
|
HeatStacks.create_snapshot_restore_delete_stack:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/random_strings.yaml.template"
|
template_path: "~/.rally/extra/random_strings.yaml.template"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 6
|
times: 6
|
||||||
@ -246,7 +246,7 @@
|
|||||||
HeatStacks.create_stack_and_scale:
|
HeatStacks.create_stack_and_scale:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/autoscaling_group.yaml.template"
|
template_path: "~/.rally/extra/autoscaling_group.yaml.template"
|
||||||
output_key: "scaling_url"
|
output_key: "scaling_url"
|
||||||
delta: 1
|
delta: 1
|
||||||
parameters:
|
parameters:
|
||||||
@ -264,7 +264,7 @@
|
|||||||
max: 0
|
max: 0
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
template_path: "/home/jenkins/.rally/extra/autoscaling_group.yaml.template"
|
template_path: "~/.rally/extra/autoscaling_group.yaml.template"
|
||||||
output_key: "scaling_url"
|
output_key: "scaling_url"
|
||||||
delta: -1
|
delta: -1
|
||||||
parameters:
|
parameters:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% set image_name = "^cirros.*uec$" %}
|
{% set image_name = "^(cirros.*uec|TestVM)$" %}
|
||||||
---
|
---
|
||||||
Authenticate.validate_nova:
|
Authenticate.validate_nova:
|
||||||
-
|
-
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
MistralWorkbooks.create_workbook:
|
MistralWorkbooks.create_workbook:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
definition: "/home/jenkins/.rally/extra/mistral_wb.yaml"
|
definition: "~/.rally/extra/mistral_wb.yaml"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
times: 50
|
times: 50
|
||||||
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
definition: "/home/jenkins/.rally/extra/mistral_wb.yaml"
|
definition: "~/.rally/extra/mistral_wb.yaml"
|
||||||
do_delete: true
|
do_delete: true
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
tenants: 2
|
tenants: 2
|
||||||
users_per_tenant: 2
|
users_per_tenant: 2
|
||||||
murano_packages:
|
murano_packages:
|
||||||
app_package: "/home/jenkins/.rally/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip"
|
app_package: "~/.rally/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter.zip"
|
||||||
roles:
|
roles:
|
||||||
- "admin"
|
- "admin"
|
||||||
sla:
|
sla:
|
||||||
@ -58,7 +58,7 @@
|
|||||||
tenants: 2
|
tenants: 2
|
||||||
users_per_tenant: 2
|
users_per_tenant: 2
|
||||||
murano_packages:
|
murano_packages:
|
||||||
app_package: "/home/jenkins/.rally/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
app_package: "~/.rally/extra/murano/applications/HelloReporter/io.murano.apps.HelloReporter/"
|
||||||
roles:
|
roles:
|
||||||
- "admin"
|
- "admin"
|
||||||
sla:
|
sla:
|
||||||
|
@ -919,7 +919,7 @@
|
|||||||
tenants: 1
|
tenants: 1
|
||||||
users_per_tenant: 2
|
users_per_tenant: 2
|
||||||
images:
|
images:
|
||||||
image_url: "/home/jenkins/.rally/extra/fake-image.img"
|
image_url: "~/.rally/extra/fake-image.img"
|
||||||
image_type: "qcow2"
|
image_type: "qcow2"
|
||||||
image_container: "bare"
|
image_container: "bare"
|
||||||
images_per_tenant: 1
|
images_per_tenant: 1
|
||||||
@ -948,7 +948,7 @@
|
|||||||
GlanceImages.create_and_list_image:
|
GlanceImages.create_and_list_image:
|
||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
image_location: "/home/jenkins/.rally/extra/fake-image.img"
|
image_location: "~/.rally/extra/fake-image.img"
|
||||||
container_format: "bare"
|
container_format: "bare"
|
||||||
disk_format: "qcow2"
|
disk_format: "qcow2"
|
||||||
runner:
|
runner:
|
||||||
|
@ -85,6 +85,7 @@ class GlanceScenario(scenario.OpenStackScenario):
|
|||||||
}
|
}
|
||||||
|
|
||||||
kw.update(kwargs)
|
kw.update(kwargs)
|
||||||
|
image_location = os.path.expanduser(image_location)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.isfile(image_location):
|
if os.path.isfile(image_location):
|
||||||
|
Loading…
Reference in New Issue
Block a user