Skip to main content

CentOS CI provisioner

Reason this release was yanked:

Mistagged in the repository

Project description

Info

Community Platform Engineering team (of Red Hat) is working on revamping this project and thus, have cleaned this repository by

  • marking other branches stale
  • Clean branch created for development

to see the current deployed version of Duffy in CentOS CI Infra, check stale/master branch.

Duffy

Duffy is the middle layer running ci.centos.org that manages the provisioning, maintenance and teardown / rebuild of the Nodes (physical hardware for now, VMs coming soon) that are used to run the tests in the CI Cluster.

Development

Installation

To install Duffy:

  1. Clone the repository and navigate into the project directory.
    git clone https://github.com/CentOS/duffy.git
    cd duffy
    
  2. Set up and activate a virtual environment.
    • Using native virtual environment
      python3 -m venv duffyenv
      source duffyenv/bin/activate
      
    Or
    • Using virtualenv wrapper
      virtualenv duffyenv
      source duffyenv/bin/activate
      
    Or
    • Using Poetry virtual environment shell
      poetry shell
      
  3. Install using Poetry
    poetry install
    

Running Duffy server

Viewing CLI usage

duffy --help
Usage: duffy [OPTIONS]

  Duffy is the middle layer running ci.centos.org that manages the
  provisioning, maintenance and teardown / rebuild of the Nodes (physical
  hardware for now, VMs coming soon) that are used to run the tests in the CI
  Cluster.

Options:
  -p, --portnumb INTEGER          Set the port value [0-65536]
  -6, --ipv6                      Start the server on an IPv6 address
  -4, --ipv4                      Start the server on an IPv4 address
  -l, --loglevel [critical|error|warning|info|debug|trace]
                                  Set the log level
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Starting the server at port 8080 using IP version 4 and setting the log level to trace

duffy -p 8000 -4 -l trace
 * Starting Duffy...
 * Port number : 8000
 * IP version  : 4
 * Log level   : trace
INFO:     Started server process [104283]
INFO:     Waiting for application startup.
TRACE:    ASGI [1] Started scope={'type': 'lifespan', 'asgi': {'version': '3.0', 'spec_version': '2.0'}}
TRACE:    ASGI [1] Receive {'type': 'lifespan.startup'}
TRACE:    ASGI [1] Send {'type': 'lifespan.startup.complete'}
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

Exit out of the server using Ctrl + C

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

duffy-3.3.8.tar.gz (45.7 kB view details)

Uploaded Source

Built Distribution

duffy-3.3.8-py3-none-any.whl (61.8 kB view details)

Uploaded Python 3

File details

Details for the file duffy-3.3.8.tar.gz.

File metadata

  • Download URL: duffy-3.3.8.tar.gz
  • Upload date:
  • Size: 45.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.3.12-200.fc38.x86_64

File hashes

Hashes for duffy-3.3.8.tar.gz
Algorithm Hash digest
SHA256 237c03e2ee56ee2797c8ada5b6bf9340ef5592b10385eada5a95d85c795864a2
MD5 631645c7239f29a134ac617842f73f99
BLAKE2b-256 cf65f072ca95c4d83e2b96e04c18c7f806892c6b80dcb1cd896030df16c4fed7

See more details on using hashes here.

File details

Details for the file duffy-3.3.8-py3-none-any.whl.

File metadata

  • Download URL: duffy-3.3.8-py3-none-any.whl
  • Upload date:
  • Size: 61.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/6.3.12-200.fc38.x86_64

File hashes

Hashes for duffy-3.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5ced2bddb22e0712c0a61d8781bdde77deceeeb1b862414e20e21a9baa1b5441
MD5 29e0b432a257e0c0293c159dd680fbbb
BLAKE2b-256 3947761fee38aa35094378da9fda7f8d62aee0954b2b763794c78ca61f3be170

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page