ceph-ansible/roles/ceph-osd/tasks
Dimitri Savineau 7e5e4229b7 ceph-volume: Add PYTHONIOENCODING env variable
Since https://github.com/ceph/ceph/commit/77912c0 ceph-volume uses
stdout encoding based on LC_CTYPE and PYTHONIOENCODING environment
variables.
Thoses variables aren't set when using ansible.
Currently this commit breaks non containerized deployment on Ubuntu.

TASK [use ceph-volume to create bluestore osds] ********************
  cmd:
  - ceph-volume
  - --cluster
  - ceph
  - lvm
  - create
  - --bluestore
  - --data
  - /dev/sdb
  rc: 1
  stderr: |-
    Traceback (most recent call last):
    (...)
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in
    position 132: ordinal not in range(128)

Note that the task is failing on ansible side due to the stdout
decoding but the osd creation is successful.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
2019-04-02 12:41:55 +02:00
..
scenarios ceph-volume: Add PYTHONIOENCODING env variable 2019-04-02 12:41:55 +02:00
activate_osds.yml osd: Add support for multipath disks 2018-02-09 18:06:25 +01:00
build_devices.yml ceph-facts: generate devices when osd_auto_discovery is true 2019-02-01 12:28:12 +01:00
ceph_disk_cli_options_facts.yml remove kv store support 2018-11-30 13:45:12 +00:00
check_gpt.yml osd: fix check gpt 2017-12-20 17:42:45 +01:00
common.yml Add ceph_keyring_permissions variable to control permissions for 2018-06-28 15:48:39 +00:00
main.yml ceph-osd: Ensure lvm2 is installed 2019-03-20 22:26:45 +00:00
openstack_config.yml Force osd pool min_size value to integer 2019-03-05 19:48:09 +00:00
start_osds.yml "when" keyword should precede "block" keyword 2019-03-29 16:16:04 +00:00
system_tuning.yml "when" keyword should precede "block" keyword 2019-03-29 16:16:04 +00:00