Giter Club home page Giter Club logo

ceph-formula's Introduction

ceph-formula

Formulas to set up and configure a Ceph cluster.

Available states

ceph

Install and configure Ceph

ceph.mon ----------

Install and configure Ceph monitor.

ceph.osd ----------

Install and configure Ceph OSDs.

ceph.repo

Configures the official Ceph (upstream) repository on target system (either download.ceph.org or www.suse.com mirror).

The state relies on ceph:use_upstream_repo pillar boolean value-

  • True (default): adds the upstream repository to install packages from.
  • False: makes sure that the repository configuration is absent.

The ceph:release pillar controls which release to install. Defaults to luminous.

Usage

For a list of all available options, look at: ceph/defaults.yaml - also have a look at the pillar.example and map.jinja.

Supports GNU Linux (Ubuntu, Fedora, Centos, Suse)

ceph-formula's People

Contributors

aboe76 avatar gravyboat avatar myii avatar nmadhok avatar noelmcloughlin avatar rbjorklin avatar smakar-vs avatar stamak avatar timwsuqld avatar whiteinge avatar wwentland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ceph-formula's Issues

pkgrepo.managed fails on OpenSUSE

The ceph.repo state fails on OpenSUSE 15

          ID: ceph-repo
    Function: pkgrepo.managed
        Name: ceph-opensuse-luminous
      Result: False
     Comment: Failed to configure repo 'ceph-opensuse-luminous': Zypper command failure: Repository 'ceph-opensuse-luminous' is invalid.
              [ceph-opensuse-luminous|https://download.opensuse.org/repositories/filesystems:/ceph:/luminous/openSUSE_Leap_15.0/x86_64] Valid metadata not found at specified URL
              Please check if the URIs defined for this repository are pointing to a valid repository.

              Skipping repository 'ceph-opensuse-luminous' because of the above error.
              Could not refresh the repositories because of errors.
     Started: 09:52:25.266551
    Duration: 2592.005 ms
     Changes:

[BUG] ceph.repo state error - timeout

Your setup

Formula commit hash / release tag

latest

Versions reports (master & minion)

Salt 3000.3+ds-1

Pillar / config used

ceph:
  use_upstream_repo: true

Bug details

Describe the bug

[ERROR   ] Failed to configure repo 'deb https://download.ceph.com/debian-nautilus/ bionic main': Error: HTTP 599: Timeout while connecting reading https://download.ceph.com/keys/release.asc

Steps to reproduce the bug

Expected behaviour

Attempts to fix the bug

Additional context

ENH: Create ceph-formula (potential inspiration)

[BUG] Fedora repo URL returns 404

Your setup

Formula commit hash / release tag

1c189fd

Versions reports (master & minion)

# salt-master --versions-report
Salt Version:
          Salt: 3004.2

Dependency Versions:
          cffi: Not Installed
      cherrypy: Not Installed
      dateutil: Not Installed
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.1.2
       libgit2: Not Installed
      M2Crypto: 0.38.0
          Mako: Not Installed
       msgpack: 1.0.3
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: Not Installed
  pycryptodome: 3.12.0
        pygit2: Not Installed
        Python: 3.10.5 (main, Jun  6 2022, 18:49:26) [GCC 12.1.0]
  python-gnupg: Not Installed
        PyYAML: 6.0
         PyZMQ: 23.2.0
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist: arch
        locale: utf-8
       machine: x86_64
       release: 5.18.10-arch1-1
        system: Linux
       version: Arch Linux
# salt-minion --versions-report
Salt Version:
          Salt: 3004.2

Dependency Versions:
          cffi: 1.15.0
      cherrypy: 18.6.1
      dateutil: 2.8.1
     docker-py: Not Installed
         gitdb: Not Installed
     gitpython: Not Installed
        Jinja2: 3.0.3
       libgit2: Not Installed
      M2Crypto: 0.38.0
          Mako: 1.1.4
       msgpack: 1.0.3
  msgpack-pure: Not Installed
  mysql-python: Not Installed
     pycparser: 2.20
      pycrypto: 2.6.1
  pycryptodome: 3.15.0
        pygit2: Not Installed
        Python: 3.10.4 (main, Mar 25 2022, 00:00:00) [GCC 12.0.1 20220308 (Red Hat 12.0.1-0)]
  python-gnupg: Not Installed
        PyYAML: 6.0
         PyZMQ: 22.3.0
         smmap: Not Installed
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.4

System Versions:
          dist: fedora 36
        locale: utf-8
       machine: x86_64
       release: 5.17.5-300.fc36.x86_64
        system: Linux
       version: Fedora Linux 36

Pillar / config used

ceph:
  release: quincy
  use_upstream_repo: true

Bug details

Describe the bug

The package URL for Fedora doesn't seem to be available upstream anymore. Only 'el7' and 'el8' RPMs are available:

$ cat osmap.yaml
(...)
Fedora:
  pkg_repo:
    baseurl: '{{ repo.official }}/rpm-{{ repo.release }}/{{ repo.oscode }}/$basearch'
(...)
wget -qO- https://download.ceph.com/rpm-quincy/
<html>
<head><title>Index of /rpm-quincy/</title></head>
<body>
<h1>Index of /rpm-quincy/</h1><hr><pre><a href="../">../</a>
<a href="el7/">el7/</a>                                               23-Jun-2022 19:06                   -
<a href="el8/">el8/</a>                                               23-Jun-2022 19:06                   -
</pre><hr></body>
</html>

Steps to reproduce the bug

`salt 'minion1' state.apply ceph.repo

Attempts to fix the bug

Maybe the RHEL packages will work with Fedora, and it's just a matter of matching the right EL versions to the Fedora versions. I haven't tested this yet.

Additional context

Please correct me if I'm wrong, but this formula seems to be abandoned.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.