Skip to content
Snippets Groups Projects
  1. Apr 11, 2019
  2. Apr 10, 2019
  3. Apr 09, 2019
    • Dimitri Savineau's avatar
      rgw: change default frontend on nautilus · d17b1b48
      Dimitri Savineau authored
      
      As discussed in ceph/ceph#26599, beast is now the default frontend
      for rados gateway with nautilus release.
      Add rgw_thread_pool_size variable with 512 as default value and keep
      backward compatibility with num_threads option when using civetweb.
      Update radosgw_civetweb_num_threads to reflect rgw_thread_pool_size
      change.
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      d17b1b48
    • Dimitri Savineau's avatar
      container-common: Enable docker on boot for ubuntu · 37816570
      Dimitri Savineau authored
      
      docker daemon is automatically started during package installation
      but the service isn't enabled on boot.
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      37816570
    • Matthew Vernon's avatar
      UCA: Uncomment UCA variables in defaults, fix consequent breakage · 9dd913cf
      Matthew Vernon authored
      
      The Ubuntu Cloud Archive-related (UCA) defaults in
      roles/ceph-defaults/defaults/main.yml were commented out, which means
      if you set `ceph_repository` to "uca", you get undefined variable
      errors, e.g.
      
      ```
      The task includes an option with an undefined variable. The error was: 'ceph_stable_repo_uca' is undefined
      
      The error appears to have been in '/nfs/users/nfs_m/mv3/software/ceph-ansible/roles/ceph-common/tasks/installs/debian_uca_repository.yml': line 6, column 3, but may
      be elsewhere in the file depending on the exact syntax problem.
      
      The offending line appears to be:
      
      - name: add ubuntu cloud archive repository
        ^ here
      
      ```
      
      Unfortunately, uncommenting these results in some other breakage,
      because further roles were written that use the fact of
      `ceph_stable_release_uca` being defined as a proxy for "we're using
      UCA", so try and install packages from the bionic-updates/queens
      release, for example, which doesn't work. So there are a few `apt` tasks
      that need modifying to not use `ceph_stable_release_uca` unless
      `ceph_origin` is `repository` and `ceph_repository` is `uca`.
      
      Closes: #3475
      Signed-off-by: default avatarMatthew Vernon <mv3@sanger.ac.uk>
      9dd913cf
    • Dimitri Savineau's avatar
      ceph-facts: use last ipv6 address for mon/rgw · fd4b0ec7
      Dimitri Savineau authored
      When using monitor_address_block or radosgw_address_block variables
      to configure the mon/rgw address we're getting the first ip address
      from the ansible facts present in that cidr.
      When there's VIP on that network the first filter could return the
      wrong value.
      This seems to affect only IPv6 setup because the VIP addresses are
      added to the ansible facts at the beginning of the list. This is the
      opposite (at the end) when using IPv4.
      This causes the mon/rgw processes to bind on the VIP address.
      
      Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1680155
      
      
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      fd4b0ec7
    • François Lafont's avatar
      ceph-rgw: Fix bad paths which depend on the clustername · 4c3e77d8
      François Lafont authored
      
      The path of the RGW environment file (in the /var/lib/ceph/radosgw/
      directory) depends on the Ceph clustername. It was not taken into
      account in the Ansible role `ceph-rgw`.
      
      Signed-off-by: default avatarflaf <francois.lafont.1978@gmail.com>
      4c3e77d8
    • Guillaume Abrioux's avatar
      mgr: manage mgr modules when mgr and mon are collocated · cbfdbab1
      Guillaume Abrioux authored
      
      When mgrs are implicitly collocated on monitors (no mgrs in mgrs group).
      That include was skipped because of this condition :
      
      `inventory_hostname == groups[mgr_group_name][0]`
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      cbfdbab1
    • Guillaume Abrioux's avatar
      mgr: wait for all mgr to be available · f596cc17
      Guillaume Abrioux authored
      
      before managing mgr modules, we must ensure all mgr are available
      otherwise we can hit failure like following:
      
      ```
      stdout:Error ENOENT: all mgr daemons do not support module 'restful', pass --force to force enablement
      ```
      
      It happens because all mgr are not yet available when trying to manage
      with mgr modules.
      
      Closes: #3100
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      f596cc17
  4. Apr 08, 2019
  5. Apr 06, 2019
  6. Apr 04, 2019
  7. Apr 03, 2019
  8. Apr 02, 2019
    • Dimitri Savineau's avatar
      ceph-volume: Add PYTHONIOENCODING env variable · 7e5e4229
      Dimitri Savineau authored
      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: default avatarDimitri Savineau <dsavinea@redhat.com>
      7e5e4229
  9. Mar 29, 2019
  10. Mar 28, 2019
    • Guillaume Abrioux's avatar
      remove all NBSPs on master branch · f55e2b08
      Guillaume Abrioux authored
      
      Similar to #3658
      
      Since there's too many changes between master and stable branches let's
      commit directly in each branches instead of trying to backport this
      commit.
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
    • Dimitri Savineau's avatar
      container: Add python3-docker on Ubuntu bionic · 40a8e116
      Dimitri Savineau authored
      
      When installing python-minimal on Ubuntu bionic, this will add the
      /usr/bin/python symlink to the default python interpreter.
      On bionic, this isn't python2 but python3.
      
      $ /usr/bin/python --version
      Python 3.6.7
      
      The python docker library is only installed for python2 which causes
      issues when running the purge-docker-cluster playbook. This playbook
      uses the ansible docker modules and requires to have python bindings
      installed on the remote host.
      Without the bindings we can see python error reported by the docker
      module.
      
      msg: Failed to import docker or docker-py - No module named 'docker'.
      Try `pip install docker` or `pip install docker-py` (Python 2.6)
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      40a8e116
  11. Mar 25, 2019
  12. Mar 20, 2019
    • Dimitri Savineau's avatar
      ceph-osd: Ensure lvm2 is installed · 179fdfbc
      Dimitri Savineau authored
      
      When using osd_scenario lvm, we never check if the lvm2 package is
      present on the host.
      When using containerized deployment and docker on CentOS/RedHat this
      package will be automatically installed as a dependency but not for
      Ubuntu distribution.
      OSD deployed via ceph-volume require the lvmetad.socket to be active
      and running.
      
      Resolves: #3728
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      179fdfbc
  13. Mar 18, 2019
    • Guillaume Abrioux's avatar
      osd: backward compatibility with old disk_list.sh location · 987bdac9
      Guillaume Abrioux authored
      
      Since all files in container image have moved to `/opt/ceph-container`
      this check must look for new AND the old path so it's backward
      compatible. Otherwise it could end up by templating an inconsistent
      `ceph-osd-run.sh`.
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      987bdac9
    • Dimitri Savineau's avatar
      ceph-validate: fail if there's no ipaddr available in monitor_address_block subnet · 5c39735b
      Dimitri Savineau authored
      
      When using monitor_address_block to determine the ip address of the
      monitor node, we need an ip address available in that cidr to be
      present in the ansible facts (ansible_all_ipv[46]_addresses).
      Currently we don't check if there's an ip address available during
      the ceph-validate role.
      As a result, the ceph-config role fails due to an empty list during
      ceph.conf template creation but the error isn't explicit.
      
      TASK [ceph-config : generate ceph.conf configuration file] *****
      fatal: [0]: FAILED! => {"msg": "No first item, sequence was empty."}
      
      With this patch we will fail before the ceph deployment with an
      explicit failure message.
      
      Resolves: rhbz#1673687
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      5c39735b
  14. Mar 16, 2019
  15. Mar 14, 2019
    • wumingqiao's avatar
      ceph-mgr: run mgr_modules.yml only on the first mgr host · 31617afc
      wumingqiao authored
      
      the task will be delegated to mons[0] for all mgr hosts, so we can just run it on the first host and have the same effect.
      
      Signed-off-by: default avatarwumingqiao <wumingqiao@beyondcent.com>
      31617afc
    • Dimitri Savineau's avatar
      Set the default crush rule in ceph.conf · d8538ad4
      Dimitri Savineau authored
      Currently the default crush rule value is added to the ceph config
      on the mon nodes as an extra configuration applied after the template
      generation via the ansible ini module.
      
      This implies two behaviors:
      
      1/ On each ceph-ansible run, the ceph.conf will be regenerated via
      ceph-config+template and then ceph-mon+ini_file. This leads to a
      non necessary daemons restart.
      
      2/ When other ceph daemons are collocated on the monitor nodes
      (like mgr or rgw), the default crush rule value will be erased by
      the ceph.conf template (mon -> mgr -> rgw).
      
      This patch adds the osd_pool_default_crush_rule config to the ceph
      template and only for the monitor nodes (like crush_rules.yml).
      The default crush rule id is read (if exist) from the current ceph
      configuration.
      The default configuration is -1 (ceph default).
      
      Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1638092
      
      
      
      Signed-off-by: default avatarDimitri Savineau <dsavinea@redhat.com>
      d8538ad4
  16. Mar 12, 2019
Loading