Dmitrii Shcherbakov 4822b45230 py3: use binary mode for opening image files
If binary mode is not used when running with python3 glance image
uploads fail as files are opened with encoding='UTF-8' by default.

It results in the following confusing error message:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfb in position 3:
invalid start byte

(Pdb) e
UnicodeDecodeError('utf-8', b'QFI\xfb\x00\x00\

0xfb is a QCOW magic string and is invalid from UTF-8 standard
perspective. From the QCOW2 spec:

Byte  0 -  3:   magic
                QCOW magic string ("QFI\xfb")

Tracing have shown that the error comes from python-glanceclient when a
file handle passed to it is attempted to be used for sending image
chunks.

Change-Id: I6bb31fe1d3f79a8fd4707a5576204dee69a3f307
Depends-On: I4991acccefd4754e209feafd5e24d03c76c283f8
Closes-Bug: #1819274
2019-03-20 14:56:07 +00:00
2019-02-06 10:18:45 -05:00
2019-02-27 15:02:42 +01:00
2019-02-28 19:57:45 +02:00
2019-02-06 10:18:45 -05:00
2016-06-27 15:39:13 +03:00
2015-11-10 16:33:29 -08:00
2017-10-12 12:13:18 +03:00
2018-02-20 16:55:59 +00:00
2018-01-16 12:17:17 +08:00
2019-03-07 18:28:16 +02:00
2013-08-03 09:17:25 -07:00
2018-08-15 00:46:20 -04:00
2018-12-19 11:22:54 -05:00
2015-09-22 10:45:07 +00:00
2018-08-17 15:42:54 +03:00
2019-01-11 07:06:02 +00:00
2019-03-07 18:28:16 +02:00

rally-openstack

Rally plugins for OpenStack platform

Usage

# Install this package (will install rally if not installed)
pip install rally-openstack

# List all installed plugins
rally plugin list --platform openstack

# Create OpenStack Env

cat <<EOT >> env.yaml
---
openstack:
  auth_url: "https://keystone.net/identity"
  region_name: RegionOne
  https_insecure: False
  users:
    - username: user_that_runs_commands
      password: his password
      project_name: project_that_users_belong_to
EOT

rally env create --name my_openstack --spec env.yaml

# Check that you provide correct credentials
rally env check

# Collect key Open Stack metrics
rally task start ./tasks/openstack_metrics/task.yaml --task-args {"image_name": "image_to_use", "flavor_name": "flavor_to_use"}

# Generate Report
rally task report --out report.html
Description
A collection of plugins for Rally framework designed for the OpenStack platform.
Readme 18 MiB
Languages
Python 99.4%
HTML 0.3%
Shell 0.3%