Skip to content
Snippets Groups Projects
  1. May 16, 2019
  2. May 07, 2019
  3. Apr 23, 2019
  4. Apr 15, 2019
  5. Apr 10, 2019
  6. Apr 03, 2019
  7. Mar 29, 2019
  8. Mar 25, 2019
  9. Mar 14, 2019
    • Dimitri Savineau's avatar
      Set the default crush rule in ceph.conf · 5c3921fb
      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>
      5c3921fb
  10. Mar 07, 2019
  11. Mar 05, 2019
  12. Mar 04, 2019
    • Kevin Coakley's avatar
      Updated 7 ansible-lint issues in the ceph-mon, ceph-osd, and ceph-rgw roles · 34cabcca
      Kevin Coakley authored
      
      The following lint issues have been resolved:
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-mon/tasks/ceph_keys.yml:2
      
      [305] Use shell only when shell functionality is required
      /home/travis/build/ceph/ceph-ansible/roles/ceph-osd/tasks/start_osds.yml:47
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-rgw/tasks/multisite/destroy.yml:2
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-rgw/tasks/multisite/destroy.yml:7
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-rgw/tasks/multisite/destroy.yml:14
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-rgw/tasks/multisite/destroy.yml:19
      
      [301] Commands should not change things if nothing needs doing
      /home/travis/build/ceph/ceph-ansible/roles/ceph-rgw/tasks/multisite/destroy.yml:24
      
      Signed-off-by: default avatarKevin Coakley <kcoakley@sdsc.edu>
      34cabcca
  13. Feb 27, 2019
  14. Feb 20, 2019
    • Patrick Donnelly's avatar
      delegate key creation to first mon · bf2c99f4
      Patrick Donnelly authored
      
      Otherwise keys get scattered over the mons and the mgr key is not copied properly.
      
      With ansible_inventory:
      
          [mdss]
                  mds-000 ansible_ssh_host=192.168.129.110 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
          [clients]
                  client-000 ansible_ssh_host=192.168.143.94 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
          [mgrs]
                  mgr-000 ansible_ssh_host=192.168.222.195 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
          [mons]
                  mon-000 ansible_ssh_host=192.168.139.173 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa' monitor_address=192.168.139.173
                  mon-002 ansible_ssh_host=192.168.212.114 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa' monitor_address=192.168.212.114
                  mon-001 ansible_ssh_host=192.168.167.177 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa' monitor_address=192.168.167.177
          [osds]
                  osd-001 ansible_ssh_host=192.168.178.128 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
                  osd-000 ansible_ssh_host=192.168.138.233 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
                  osd-002 ansible_ssh_host=192.168.197.23 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='/root/.ssh/id_rsa'
      
      We get this failure:
      
          TASK [ceph-mon : include_tasks ceph_keys.yml] **********************************************************************************************************************************************************************
          included: /root/ceph-ansible/roles/ceph-mon/tasks/ceph_keys.yml for mon-000, mon-002, mon-001
      
          TASK [ceph-mon : waiting for the monitor(s) to form the quorum...] *************************************************************************************************************************************************
          changed: [mon-000] => {
              "attempts": 1,
              "changed": true,
              "cmd": [
                  "ceph",
                  "--cluster",
                  "ceph",
                  "-n",
                  "mon.",
                  "-k",
                  "/var/lib/ceph/mon/ceph-li1166-30/keyring",
                  "mon_status",
                  "--format",
                  "json"
              ],
              "delta": "0:00:01.897397",
              "end": "2019-02-14 17:08:09.340534",
              "rc": 0,
              "start": "2019-02-14 17:08:07.443137"
          }
      
          STDOUT:
      
          {"name":"li1166-30","rank":0,"state":"leader","election_epoch":4,"quorum":[0,1,2],"quorum_age":0,"features":{"required_con":"2449958747315912708","required_mon":["kraken","luminous","mimic","osdmap-prune","nautilus"],"quorum_con":"4611087854031667199","quorum_mon":["kraken","luminous","mimic","osdmap-prune","nautilus"]},"outside_quorum":[],"extra_probe_peers":[{"addrvec":[{"type":"v2","addr":"192.168.167.177:3300","nonce":0},{"type":"v1","addr":"192.168.167.177:6789","nonce":0}]},{"addrvec":[{"type":"v2","addr":"192.168.212.114:3300","nonce":0},{"type":"v1","addr":"192.168.212.114:6789","nonce":0}]}],"sync_provider":[],"monmap":{"epoch":1,"fsid":"bb401e2a-c524-428e-bba9-8977bc96f04b","modified":"2019-02-14 17:08:05.012133","created":"2019-02-14 17:08:05.012133","features":{"persistent":["kraken","luminous","mimic","osdmap-prune","nautilus"],"optional":[]},"mons":[{"rank":0,"name":"li1166-30","public_addrs":{"addrvec":[{"type":"v2","addr":"192.168.139.173:3300","nonce":0},{"type":"v1","addr":"192.168.139.173:6789","nonce":0}]},"addr":"192.168.139.173:6789/0","public_addr":"192.168.139.173:6789/0"},{"rank":1,"name":"li985-128","public_addrs":{"addrvec":[{"type":"v2","addr":"192.168.167.177:3300","nonce":0},{"type":"v1","addr":"192.168.167.177:6789","nonce":0}]},"addr":"192.168.167.177:6789/0","public_addr":"192.168.167.177:6789/0"},{"rank":2,"name":"li895-17","public_addrs":{"addrvec":[{"type":"v2","addr":"192.168.212.114:3300","nonce":0},{"type":"v1","addr":"192.168.212.114:6789","nonce":0}]},"addr":"192.168.212.114:6789/0","public_addr":"192.168.212.114:6789/0"}]},"feature_map":{"mon":[{"features":"0x3ffddff8ffacffff","release":"luminous","num":1}],"client":[{"features":"0x3ffddff8ffacffff","release":"luminous","num":1}]}}
      
          TASK [ceph-mon : fetch ceph initial keys] **************************************************************************************************************************************************************************
          changed: [mon-001] => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "mon.",
                  "-k",
                  "/var/lib/ceph/mon/ceph-li985-128/keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "get",
                  "client.bootstrap-rgw",
                  "-f",
                  "plain",
                  "-o",
                  "/var/lib/ceph/bootstrap-rgw/ceph.keyring"
              ],
              "delta": "0:00:03.179584",
              "end": "2019-02-14 17:08:14.305348",
              "rc": 0,
              "start": "2019-02-14 17:08:11.125764"
          }
      
          STDERR:
      
          exported keyring for client.bootstrap-rgw
          changed: [mon-002] => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "mon.",
                  "-k",
                  "/var/lib/ceph/mon/ceph-li895-17/keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "get",
                  "client.bootstrap-rgw",
                  "-f",
                  "plain",
                  "-o",
                  "/var/lib/ceph/bootstrap-rgw/ceph.keyring"
              ],
              "delta": "0:00:03.706169",
              "end": "2019-02-14 17:08:14.041698",
              "rc": 0,
              "start": "2019-02-14 17:08:10.335529"
          }
      
          STDERR:
      
          exported keyring for client.bootstrap-rgw
          changed: [mon-000] => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "mon.",
                  "-k",
                  "/var/lib/ceph/mon/ceph-li1166-30/keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "get",
                  "client.bootstrap-rgw",
                  "-f",
                  "plain",
                  "-o",
                  "/var/lib/ceph/bootstrap-rgw/ceph.keyring"
              ],
              "delta": "0:00:03.916467",
              "end": "2019-02-14 17:08:13.803999",
              "rc": 0,
              "start": "2019-02-14 17:08:09.887532"
          }
      
          STDERR:
      
          exported keyring for client.bootstrap-rgw
      
          TASK [ceph-mon : create ceph mgr keyring(s)] ***********************************************************************************************************************************************************************
          skipping: [mon-000] => (item=mgr-000)  => {
              "changed": false,
              "item": "mgr-000",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=mon-000)  => {
              "changed": false,
              "item": "mon-000",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=mon-002)  => {
              "changed": false,
              "item": "mon-002",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=mon-001)  => {
              "changed": false,
              "item": "mon-001",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=mgr-000)  => {
              "changed": false,
              "item": "mgr-000",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=mon-000)  => {
              "changed": false,
              "item": "mon-000",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=mon-002)  => {
              "changed": false,
              "item": "mon-002",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=mon-001)  => {
              "changed": false,
              "item": "mon-001",
              "skip_reason": "Conditional result was False"
          }
          changed: [mon-001] => (item=mgr-000) => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "client.admin",
                  "-k",
                  "/etc/ceph/ceph.client.admin.keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "import",
                  "-i",
                  "/etc/ceph//ceph.mgr.li547-145.keyring"
              ],
              "delta": "0:00:05.822460",
              "end": "2019-02-14 17:08:21.422810",
              "item": "mgr-000",
              "rc": 0,
              "start": "2019-02-14 17:08:15.600350"
          }
      
          STDERR:
      
          imported keyring
          changed: [mon-001] => (item=mon-000) => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "client.admin",
                  "-k",
                  "/etc/ceph/ceph.client.admin.keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "import",
                  "-i",
                  "/etc/ceph//ceph.mgr.li1166-30.keyring"
              ],
              "delta": "0:00:05.814039",
              "end": "2019-02-14 17:08:27.663745",
              "item": "mon-000",
              "rc": 0,
              "start": "2019-02-14 17:08:21.849706"
          }
      
          STDERR:
      
          imported keyring
          changed: [mon-001] => (item=mon-002) => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "client.admin",
                  "-k",
                  "/etc/ceph/ceph.client.admin.keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "import",
                  "-i",
                  "/etc/ceph//ceph.mgr.li895-17.keyring"
              ],
              "delta": "0:00:05.787291",
              "end": "2019-02-14 17:08:33.921243",
              "item": "mon-002",
              "rc": 0,
              "start": "2019-02-14 17:08:28.133952"
          }
      
          STDERR:
      
          imported keyring
          changed: [mon-001] => (item=mon-001) => {
              "changed": true,
              "cmd": [
                  "ceph",
                  "-n",
                  "client.admin",
                  "-k",
                  "/etc/ceph/ceph.client.admin.keyring",
                  "--cluster",
                  "ceph",
                  "auth",
                  "import",
                  "-i",
                  "/etc/ceph//ceph.mgr.li985-128.keyring"
              ],
              "delta": "0:00:05.782064",
              "end": "2019-02-14 17:08:40.138706",
              "item": "mon-001",
              "rc": 0,
              "start": "2019-02-14 17:08:34.356642"
          }
      
          STDERR:
      
          imported keyring
      
          TASK [ceph-mon : copy ceph mgr key(s) to the ansible server] *******************************************************************************************************************************************************
          skipping: [mon-000] => (item=mgr-000)  => {
              "changed": false,
              "item": "mgr-000",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=mgr-000)  => {
              "changed": false,
              "item": "mgr-000",
              "skip_reason": "Conditional result was False"
          }
          changed: [mon-001] => (item=mgr-000) => {
              "changed": true,
              "checksum": "aa0fa40225c9e09d67fe7700ce9d033f91d46474",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/etc/ceph/ceph.mgr.li547-145.keyring",
              "item": "mgr-000",
              "md5sum": "cd884fb9ddc9b8b4e3cd1ad6a98fb531",
              "remote_checksum": "aa0fa40225c9e09d67fe7700ce9d033f91d46474",
              "remote_md5sum": null
          }
      
          TASK [ceph-mon : copy keys to the ansible server] ******************************************************************************************************************************************************************
          skipping: [mon-000] => (item=/var/lib/ceph/bootstrap-osd/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-osd/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=/var/lib/ceph/bootstrap-rgw/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rgw/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=/var/lib/ceph/bootstrap-mds/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-mds/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=/var/lib/ceph/bootstrap-rbd/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rbd/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/var/lib/ceph/bootstrap-osd/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-osd/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-000] => (item=/etc/ceph/ceph.client.admin.keyring)  => {
              "changed": false,
              "item": "/etc/ceph/ceph.client.admin.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/var/lib/ceph/bootstrap-rgw/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rgw/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/var/lib/ceph/bootstrap-mds/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-mds/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/var/lib/ceph/bootstrap-rbd/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rbd/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring)  => {
              "changed": false,
              "item": "/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring",
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => (item=/etc/ceph/ceph.client.admin.keyring)  => {
              "changed": false,
              "item": "/etc/ceph/ceph.client.admin.keyring",
              "skip_reason": "Conditional result was False"
          }
          changed: [mon-001] => (item=/var/lib/ceph/bootstrap-osd/ceph.keyring) => {
              "changed": true,
              "checksum": "095c7868a080b4c53494335d3a2223abbad12605",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/var/lib/ceph/bootstrap-osd/ceph.keyring",
              "item": "/var/lib/ceph/bootstrap-osd/ceph.keyring",
              "md5sum": "d8f4c4fa564aade81b844e3d92c7cac6",
              "remote_checksum": "095c7868a080b4c53494335d3a2223abbad12605",
              "remote_md5sum": null
          }
          changed: [mon-001] => (item=/var/lib/ceph/bootstrap-rgw/ceph.keyring) => {
              "changed": true,
              "checksum": "ce7a2d4441626f22e995b37d5131b9e768f18494",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/var/lib/ceph/bootstrap-rgw/ceph.keyring",
              "item": "/var/lib/ceph/bootstrap-rgw/ceph.keyring",
              "md5sum": "271e4f90c5853c74264b6b749650c3f2",
              "remote_checksum": "ce7a2d4441626f22e995b37d5131b9e768f18494",
              "remote_md5sum": null
          }
          changed: [mon-001] => (item=/var/lib/ceph/bootstrap-mds/ceph.keyring) => {
              "changed": true,
              "checksum": "e35e8613076382dd3c9d89b5bc2090e37871aab7",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/var/lib/ceph/bootstrap-mds/ceph.keyring",
              "item": "/var/lib/ceph/bootstrap-mds/ceph.keyring",
              "md5sum": "ed7c32277914c8e34ad5c532d8293dd2",
              "remote_checksum": "e35e8613076382dd3c9d89b5bc2090e37871aab7",
              "remote_md5sum": null
          }
          changed: [mon-001] => (item=/var/lib/ceph/bootstrap-rbd/ceph.keyring) => {
              "changed": true,
              "checksum": "ac43101ad249f6b6bb07ceb3287a3693aeae7f6c",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/var/lib/ceph/bootstrap-rbd/ceph.keyring",
              "item": "/var/lib/ceph/bootstrap-rbd/ceph.keyring",
              "md5sum": "1460e3c9532b0b7b3a5cb329d77342cd",
              "remote_checksum": "ac43101ad249f6b6bb07ceb3287a3693aeae7f6c",
              "remote_md5sum": null
          }
          changed: [mon-001] => (item=/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring) => {
              "changed": true,
              "checksum": "01d74751810f5da621937b10c83d47fc7f1865c5",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring",
              "item": "/var/lib/ceph/bootstrap-rbd-mirror/ceph.keyring",
              "md5sum": "979987f10fd7da5cff67e665f54bfe4d",
              "remote_checksum": "01d74751810f5da621937b10c83d47fc7f1865c5",
              "remote_md5sum": null
          }
          changed: [mon-001] => (item=/etc/ceph/ceph.client.admin.keyring) => {
              "changed": true,
              "checksum": "482f702cf861b41021d76de655ecf996fe9a4a4a",
              "dest": "/root/ceph-ansible/fetch/bb401e2a-c524-428e-bba9-8977bc96f04b/etc/ceph/ceph.client.admin.keyring",
              "item": "/etc/ceph/ceph.client.admin.keyring",
              "md5sum": "7581c187044fd4e0f7a5440244a6b306",
              "remote_checksum": "482f702cf861b41021d76de655ecf996fe9a4a4a",
              "remote_md5sum": null
          }
      
          TASK [ceph-mon : include secure_cluster.yml] ***********************************************************************************************************************************************************************
          skipping: [mon-000] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
      
          TASK [ceph-mon : crush_rules.yml] **********************************************************************************************************************************************************************************
          skipping: [mon-000] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-001] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
      
          TASK [ceph-mgr : set_fact docker_exec_cmd] *************************************************************************************************************************************************************************
          skipping: [mon-000] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-001] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
      
          TASK [ceph-mgr : include common.yml] *******************************************************************************************************************************************************************************
          included: /root/ceph-ansible/roles/ceph-mgr/tasks/common.yml for mon-000, mon-002, mon-001
      
          TASK [ceph-mgr : create mgr directory] *****************************************************************************************************************************************************************************
          changed: [mon-000] => {
              "changed": true,
              "gid": 167,
              "group": "ceph",
              "mode": "0755",
              "owner": "ceph",
              "path": "/var/lib/ceph/mgr/ceph-li1166-30",
              "secontext": "unconfined_u:object_r:ceph_var_lib_t:s0",
              "size": 4096,
              "state": "directory",
              "uid": 167
          }
          changed: [mon-002] => {
              "changed": true,
              "gid": 167,
              "group": "ceph",
              "mode": "0755",
              "owner": "ceph",
              "path": "/var/lib/ceph/mgr/ceph-li895-17",
              "secontext": "unconfined_u:object_r:ceph_var_lib_t:s0",
              "size": 4096,
              "state": "directory",
              "uid": 167
          }
          changed: [mon-001] => {
              "changed": true,
              "gid": 167,
              "group": "ceph",
              "mode": "0755",
              "owner": "ceph",
              "path": "/var/lib/ceph/mgr/ceph-li985-128",
              "secontext": "unconfined_u:object_r:ceph_var_lib_t:s0",
              "size": 4096,
              "state": "directory",
              "uid": 167
          }
      
          TASK [ceph-mgr : fetch ceph mgr keyring] ***************************************************************************************************************************************************************************
          skipping: [mon-000] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-002] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
          skipping: [mon-001] => {
              "changed": false,
              "skip_reason": "Conditional result was False"
          }
      
          TASK [ceph-mgr : copy ceph keyring(s) if needed] *******************************************************************************************************************************************************************
          An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
          failed: [mon-002] (item={'name': '/etc/ceph/ceph.mgr.li895-17.keyring', 'dest': '/var/lib/ceph/mgr/ceph-li895-17/keyring', 'copy_key': True}) => {
              "changed": false,
              "item": {
                  "copy_key": true,
                  "dest": "/var/lib/ceph/mgr/ceph-li895-17/keyring",
                  "name": "/etc/ceph/ceph.mgr.li895-17.keyring"
              }
          }
      
          MSG:
      
          Could not find or access 'fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring'
          Searched in:
           /root/ceph-ansible/roles/ceph-mgr/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring
           /root/ceph-ansible/roles/ceph-mgr/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring
           /root/ceph-ansible/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring
           /root/ceph-ansible/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li895-17.keyring on the Ansible Controller.
          If you are using a module and expect the file to exist on the remote, see the remote_src option
          skipping: [mon-002] => (item={'name': '/etc/ceph/ceph.client.admin.keyring', 'dest': '/etc/ceph/ceph.client.admin.keyring', 'copy_key': False})  => {
              "changed": false,
              "item": {
                  "copy_key": false,
                  "dest": "/etc/ceph/ceph.client.admin.keyring",
                  "name": "/etc/ceph/ceph.client.admin.keyring"
              },
              "skip_reason": "Conditional result was False"
          }
          An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
          failed: [mon-001] (item={'name': '/etc/ceph/ceph.mgr.li985-128.keyring', 'dest': '/var/lib/ceph/mgr/ceph-li985-128/keyring', 'copy_key': True}) => {
              "changed": false,
              "item": {
                  "copy_key": true,
                  "dest": "/var/lib/ceph/mgr/ceph-li985-128/keyring",
                  "name": "/etc/ceph/ceph.mgr.li985-128.keyring"
              }
          }
      
          MSG:
      
          Could not find or access 'fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring'
          Searched in:
           /root/ceph-ansible/roles/ceph-mgr/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring
           /root/ceph-ansible/roles/ceph-mgr/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring
           /root/ceph-ansible/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring
           /root/ceph-ansible/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li985-128.keyring on the Ansible Controller.
          If you are using a module and expect the file to exist on the remote, see the remote_src option
          skipping: [mon-001] => (item={'name': '/etc/ceph/ceph.client.admin.keyring', 'dest': '/etc/ceph/ceph.client.admin.keyring', 'copy_key': False})  => {
              "changed": false,
              "item": {
                  "copy_key": false,
                  "dest": "/etc/ceph/ceph.client.admin.keyring",
                  "name": "/etc/ceph/ceph.client.admin.keyring"
              },
              "skip_reason": "Conditional result was False"
          }
          An exception occurred during task execution. To see the full traceback, use -vvv. The error was: If you are using a module and expect the file to exist on the remote, see the remote_src option
          failed: [mon-000] (item={'name': '/etc/ceph/ceph.mgr.li1166-30.keyring', 'dest': '/var/lib/ceph/mgr/ceph-li1166-30/keyring', 'copy_key': True}) => {
              "changed": false,
              "item": {
                  "copy_key": true,
                  "dest": "/var/lib/ceph/mgr/ceph-li1166-30/keyring",
                  "name": "/etc/ceph/ceph.mgr.li1166-30.keyring"
              }
          }
      
          MSG:
      
          Could not find or access 'fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring'
          Searched in:
           /root/ceph-ansible/roles/ceph-mgr/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring
           /root/ceph-ansible/roles/ceph-mgr/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring
           /root/ceph-ansible/roles/ceph-mgr/tasks/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring
           /root/ceph-ansible/files/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring
           /root/ceph-ansible/fetch//bb401e2a-c524-428e-bba9-8977bc96f04b//etc/ceph/ceph.mgr.li1166-30.keyring on the Ansible Controller.
          If you are using a module and expect the file to exist on the remote, see the remote_src option
          skipping: [mon-000] => (item={'name': '/etc/ceph/ceph.client.admin.keyring', 'dest': '/etc/ceph/ceph.client.admin.keyring', 'copy_key': False})  => {
              "changed": false,
              "item": {
                  "copy_key": false,
                  "dest": "/etc/ceph/ceph.client.admin.keyring",
                  "name": "/etc/ceph/ceph.client.admin.keyring"
              },
              "skip_reason": "Conditional result was False"
          }
      
          NO MORE HOSTS LEFT *************************************************************************************************************************************************************************************************
           to retry, use: --limit @/root/ceph-linode/linode.retry
      
          PLAY RECAP *********************************************************************************************************************************************************************************************************
          client-000                 : ok=30   changed=2    unreachable=0    failed=0
          mds-000                    : ok=32   changed=4    unreachable=0    failed=0
          mgr-000                    : ok=32   changed=4    unreachable=0    failed=0
          mon-000                    : ok=89   changed=21   unreachable=0    failed=1
          mon-001                    : ok=84   changed=20   unreachable=0    failed=1
          mon-002                    : ok=81   changed=17   unreachable=0    failed=1
          osd-000                    : ok=32   changed=4    unreachable=0    failed=0
          osd-001                    : ok=32   changed=4    unreachable=0    failed=0
          osd-002                    : ok=32   changed=4    unreachable=0    failed=0
      
      Also, create all keys on the first mon and copy those to the other mons to be
      consistent.
      
      Signed-off-by: default avatarPatrick Donnelly <pdonnell@redhat.com>
      bf2c99f4
  15. Feb 13, 2019
    • Guillaume Abrioux's avatar
      container: use tmpfiles.d to creates /run/ceph · 00c8d451
      Guillaume Abrioux authored
      
      instead of using `RuntimeDirectory` parameter in systemd unit files,
      let's use a systemd `tmpfiles.d` to ensure `/run/ceph`.
      
      Explanation:
      
      `podman` doesn't create the `/var/run/ceph` if it doesn't exist the time
      where the container is run while `docker` used to create it.
      In case of `switch_to_containers` scenario, `/run/ceph` gets created by
      a tmpfiles.d systemd file; when switching to containers, the systemd
      unit file complains because `/run/ceph` already exists
      
      The better fix would be to ensure `/usr/lib/tmpfiles.d/ceph-common.conf`
      is removed and only rely on `RuntimeDirectory` from systemd unit file parameter
      but we come from a non-containerized environment which is already running,
      it means `/run/ceph` is already created and when starting the unit to
      start the container, systemd will still complain and we can't simply
      remove the directory if daemons are collocated.
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      00c8d451
    • Guillaume Abrioux's avatar
      switch_to_containers: do not try to redeploy monitors · 1d4c4ce2
      Guillaume Abrioux authored
      
      `ceph-mon` tries to redeploy monitors because it assumes it was not yet
      deployed since `mon_socket_stat` and `ceph_mon_container_stat` are
      undefined (indeed, we stop the daemon before calling `ceph-mon` in the
      switch_to_containers playbook).
      
      Signed-off-by: default avatarGuillaume Abrioux <gabrioux@redhat.com>
      1d4c4ce2
  16. Feb 11, 2019
  17. Feb 05, 2019
  18. Jan 22, 2019
  19. Jan 09, 2019
    • Sébastien Han's avatar
      mon: force peer addition · 99df1942
      Sébastien Han authored
      
      Somewhat something changed with the introduction of msg2 and we have to
      add each node as a peer so the monitors can form a quorum. This might be
      due to our CI environment, although adding this is completly harmless
      and solves monitors not being able to form quorum.
      
      It seems that the initial monitor map wasn't containing the right
      information about the peers (addresses like 0.0.0.0/0r1, for each rank.
      
      Signed-off-by: default avatarSébastien Han <seb@redhat.com>
      99df1942
  20. Dec 17, 2018
  21. Dec 11, 2018
  22. Dec 04, 2018
  23. Dec 03, 2018
Loading