]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Replace 'master' branch references with 'main'
authorZack Cerza <zack@cerza.org>
Tue, 24 May 2022 17:26:42 +0000 (11:26 -0600)
committerZack Cerza <zack@cerza.org>
Tue, 24 May 2022 20:21:18 +0000 (14:21 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
53 files changed:
.github/workflows/ci.yml
.github/workflows/dependencies.yml
docs/LAB_SETUP.rst
docs/README.rst
docs/docker-compose/teuthology/teuthology.sh
docs/intro_testers.rst
docs/libcloud_backend.rst
docs/openstack_backend.rst
docs/siteconfig.rst
examples/3node_rgw.yaml
roles/overrides.yaml
scripts/openstack.py
scripts/suite.py
teuthology/dispatcher/__init__.py
teuthology/misc.py
teuthology/openstack/bootstrap-teuthology.sh
teuthology/openstack/openstack-centos-7.0-user-data.txt
teuthology/openstack/openstack-centos-7.1-user-data.txt
teuthology/openstack/openstack-centos-7.2-user-data.txt
teuthology/openstack/openstack-debian-8.0-user-data.txt
teuthology/openstack/openstack-opensuse-15.0-user-data.txt
teuthology/openstack/openstack-opensuse-42.1-user-data.txt
teuthology/openstack/openstack-opensuse-42.2-user-data.txt
teuthology/openstack/openstack-opensuse-42.3-user-data.txt
teuthology/openstack/openstack-sle-12.1-user-data.txt
teuthology/openstack/openstack-sle-12.2-user-data.txt
teuthology/openstack/openstack-sle-12.3-user-data.txt
teuthology/openstack/openstack-sle-15.0-user-data.txt
teuthology/openstack/openstack-sle-15.1-user-data.txt
teuthology/openstack/test/test_openstack.py
teuthology/packaging.py
teuthology/run.py
teuthology/suite/run.py
teuthology/suite/test/test_init.py
teuthology/suite/test/test_run_.py
teuthology/suite/test/test_util.py
teuthology/suite/util.py
teuthology/task/ansible.py
teuthology/task/buildpackages/common.sh
teuthology/task/buildpackages/make-deb.sh
teuthology/task/buildpackages/make-rpm.sh
teuthology/task/ceph_ansible.py
teuthology/task/hadoop.py
teuthology/task/install/__init__.py
teuthology/task/kernel.py
teuthology/task/lockfile.py
teuthology/task/mpi.py
teuthology/test/integration/test_suite.py
teuthology/test/task/test_ansible.py
teuthology/test/test_misc.py
teuthology/test/test_packaging.py
teuthology/test/test_worker.py
teuthology/worker.py

index 7cd4c28a6e02cab0e6c0fc148655173fbfaf522d..1875598fde847e11866a95faa0dd6ba04da8f544 100644 (file)
@@ -3,7 +3,7 @@ name: CI
 on:
   pull_request:
     branches:
-      - master
+      - main
   workflow_dispatch:
 
 jobs:
@@ -27,4 +27,4 @@ jobs:
       - name: Run unit tests
         run: tox -e py3
       - name: Run docs build
-        run: tox -e docs
\ No newline at end of file
+        run: tox -e docs
index 5729a887c480fd1c88ee8d878c5d01a8cd0f9a82..9417e9f6686c5eaf3eb9c5f66662a30ad686f591 100644 (file)
@@ -3,7 +3,7 @@ name: dependencies
 on:
   pull_request:
     branches:
-      - master
+      - main
   workflow_dispatch:
 
 jobs:
@@ -22,7 +22,7 @@ jobs:
       - name: Checkout default branch
         uses: actions/checkout@v3
         with:
-          ref: master
+          ref: main
           path: teuthology
       - name: virtualenv
         run: |
index a25026166ba3d0eff45cbaa33d927852a85a7649..b2fbbe0534bd89c5be3db179eec5769d7b935834 100644 (file)
@@ -27,12 +27,12 @@ Create a separate user for paddles and puplito. We used 'paddles' and 'pulpito'.
 
 paddles
 -------
-Follow instructions at https://github.com/ceph/paddles/blob/master/README.rst
+Follow instructions at https://github.com/ceph/paddles/blob/main/README.rst
 
 
 pulpito
 -------
-Follow instructions at https://github.com/ceph/pulpito/blob/master/README.rst
+Follow instructions at https://github.com/ceph/pulpito/blob/main/README.rst
 
 
 Starting up
@@ -92,8 +92,8 @@ Scheduler
 As 'teuthology', do the following::
 
     mkdir ~/src
-    git clone https://github.com/ceph/teuthology.git src/teuthology_master
-    pushd src/teuthology_master/
+    git clone https://github.com/ceph/teuthology.git src/teuthology_main
+    pushd src/teuthology_main/
     ./bootstrap
     popd
 
@@ -103,13 +103,13 @@ Worker
 As 'teuthworker', do the following::
 
     mkdir ~/src
-    git clone https://github.com/ceph/teuthology.git src/teuthology_master
-    pushd src/teuthology_master/
+    git clone https://github.com/ceph/teuthology.git src/teuthology_main
+    pushd src/teuthology_main/
     ./bootstrap
     popd
     mkdir ~/bin
-    wget -O ~/bin/worker_start https://raw.githubusercontent.com/ceph/teuthology/master/docs/_static/worker_start.sh
-    echo 'PATH="$HOME/src/teuthology_master/virtualenv/bin:$PATH"' >> ~/.profile
+    wget -O ~/bin/worker_start https://raw.githubusercontent.com/ceph/teuthology/main/docs/_static/worker_start.sh
+    echo 'PATH="$HOME/src/teuthology_main/virtualenv/bin:$PATH"' >> ~/.profile
     source ~/.profile
     mkdir -p ~/archive/worker_logs
     worker_start magna 1
@@ -120,7 +120,7 @@ Submitting Nodes
 
 First::
 
-    wget https://raw.githubusercontent.com/ceph/teuthology/master/docs/_static/create_nodes.py
+    wget https://raw.githubusercontent.com/ceph/teuthology/main/docs/_static/create_nodes.py
 
 Edit ``create_nodes.py`` to generate the hostnames of the machines you want to submit to paddles.
 
index ea03ef4ca251946cec7702c01b2cfd122a32238d..58b03f0c175178e85624c6d9cd785f0922d8f53c 100644 (file)
@@ -110,7 +110,7 @@ will be used.  It will run on mira machines and send an email to
 bob.smith@foo.com when it's completed. For more details on
 ``teuthology-suite``, please consult the output of ``teuthology-suite --help``.
 Read more about running integration tests using teuthology at `docs.ceph.com
-<http://docs.ceph.com/docs/master/dev/developer_guide/running-tests-using-teuth/>`__.
+<http://docs.ceph.com/docs/main/dev/developer_guide/running-tests-using-teuth/>`__.
 
 In order for a queued task to be run, a teuthworker thread on
 ``teuthology.front.sepia.ceph.com`` needs to remove the task from the queue.
index 050f2893edb908737ddcc23cc6801f115acd03e9..54fdbe8203473eb1ecd3ea3e31b710976bddb31e 100755 (executable)
@@ -21,14 +21,14 @@ if [ -z "$TEUTHOLOGY_WAIT" ]; then
         --teuthology-branch $TEUTHOLOGY_BRANCH \
         --ceph-repo https://github.com/ceph/ceph.git \
         --suite-repo https://github.com/ceph/ceph.git \
-        -c master \
+        -c main \
         -m $MACHINE_TYPE \
         --limit 1 \
         -n 100 \
         --suite teuthology:no-ceph \
         --filter-out "libcephfs,kclient,stream,centos,rhel" \
         -d ubuntu -D 20.04 \
-        --suite-branch master \
+        --suite-branch main \
         --subset 9000/100000 \
         -p 75 \
         --seed 349 \
index d5361af26f2ee9ae600cce1c62da947e26ea17c8..2abf9747442e0381dbe6f6d4d1c38b190c59b8d7 100644 (file)
@@ -18,7 +18,7 @@ Terminology
 
 In the abstract, each set of tests is defined by a `suite`. All of our suites
 live in the `ceph` git repository in the `qa/suites/ directory
-<https://github.com/ceph/ceph/tree/master/qa/suites/>`__ .
+<https://github.com/ceph/ceph/tree/main/qa/suites/>`__ .
 Each subdirectory in `suites` is a suite; they may also have "sub-suites" which
 may aid in scheduling, for example, tests for a specific feature.
 
@@ -32,10 +32,10 @@ Each `job` definition contains a list of `tasks` to execute, along with
 with what functions each node will perform.
 
 To go into more depth regarding suite design, see the `README
-<https://github.com/ceph/ceph/blob/master/qa/README>`__.
+<https://github.com/ceph/ceph/blob/main/qa/README>`__.
 
 One example of this is the `smoke
-<https://github.com/ceph/ceph/tree/master/qa/suites/smoke>`__ suite.
+<https://github.com/ceph/ceph/tree/main/qa/suites/smoke>`__ suite.
 
 
 Scheduling
@@ -45,19 +45,19 @@ Most testing happens by scheduling `runs`. The way we do that is using the
 
 To get a preview of what `teuthology-suite` might do, try::
 
-    teuthology-suite -v -m mira --ceph-repo http://github.com/ceph/ceph.git -c master --suite-repo http://github.com/ceph/ceph.git -s smoke --dry-run
+    teuthology-suite -v -m mira --ceph-repo http://github.com/ceph/ceph.git -c main --suite-repo http://github.com/ceph/ceph.git -s smoke --dry-run
 
 The `-m mira` specifies `mira` as the machine type. Machine types are dependent
 on the specific lab in use. The `--ceph-repo http://github.com/ceph/ceph.git`
-specifies from which git repository to pull `-c master`. Similarly,
+specifies from which git repository to pull `-c main`. Similarly,
 `--suite-repo` is specifying where to find the QA branch. The default for
 `--ceph-repo` and `--suite-repo` is `http://github.com/ceph/ceph-ci.git` which
-is usually what you will want. For `master`, you must always use
+is usually what you will want. For `main`, you must always use
 `http://github.com/ceph/ceph.git` as it does not exist on the ceph-ci
 repository.
 
 Assuming a build is available, that should pretend to schedule several jobs. If
-it complains about missing packages, try swapping `master` with `jewel` or one
+it complains about missing packages, try swapping `main` with `jewel` or one
 of the other Ceph stable branches.
 
 To see even more detail, swap `-v` with `-vv`. It will print out each job
index 7296022d965d370fc3ea336eb1492b3deb4099ae..84bdf7d9aa388ed4bc8d7e26297a3fe01ec3f1f1 100644 (file)
@@ -7,8 +7,8 @@ This is an *experimental* provisioning backend that eventually intends to suppor
 Prerequisites
 -------------
 * An account with an OpenStack provider that supports Nova and Cinder
-* A DNS server supporting `RFC 2136 <https://tools.ietf.org/html/rfc2136>`_. We use `bind <https://www.isc.org/downloads/bind/>`_ and `this ansible role <https://github.com/ceph/ceph-cm-ansible/blob/master/roles/nameserver/README.rst>`_ to help configure ours.
-* An `nsupdate-web <https://github.com/zmc/nsupdate-web>`_ instance configured to update DNS records. We use `an ansible role <https://github.com/ceph/ceph-cm-ansible/blob/master/roles/nsupdate_web/README.rst>`_ for this as well. 
+* A DNS server supporting `RFC 2136 <https://tools.ietf.org/html/rfc2136>`_. We use `bind <https://www.isc.org/downloads/bind/>`_ and `this ansible role <https://github.com/ceph/ceph-cm-ansible/blob/main/roles/nameserver/README.rst>`_ to help configure ours.
+* An `nsupdate-web <https://github.com/zmc/nsupdate-web>`_ instance configured to update DNS records. We use `an ansible role <https://github.com/ceph/ceph-cm-ansible/blob/main/roles/nsupdate_web/README.rst>`_ for this as well. 
 * Configuration in `teuthology.yaml` for this backend itself (see :ref:`libcloud_config`) and `nsupdate-web`
 * You will also need to choose a maximum number of nodes to be running at once, and create records in your paddles database for each one - making sure to set `is_vm` to `True` for each.
 
index 9cd686f3283af487967316eb65b8ee83e891264b..36f8fdf2bad60794e308037da59b137bc6cd10cb 100644 (file)
@@ -68,17 +68,17 @@ Usage
   and uploads a cloud image to the OpenStack provider. ::
 
     $ teuthology-openstack --key-filename myself.pem --key-name myself --suite dummy
-    Job scheduled with name ubuntu-2015-07-24_09:03:29-dummy-master---basic-openstack and ID 1
+    Job scheduled with name ubuntu-2015-07-24_09:03:29-dummy-main---basic-openstack and ID 1
     2015-07-24 09:03:30,520.520 INFO:teuthology.suite:ceph sha1: dedda6245ce8db8828fdf2d1a2bfe6163f1216a1
     2015-07-24 09:03:31,620.620 INFO:teuthology.suite:ceph version: v9.0.2-829.gdedda62
-    2015-07-24 09:03:31,620.620 INFO:teuthology.suite:teuthology branch: master
-    2015-07-24 09:03:32,196.196 INFO:teuthology.suite:ceph-qa-suite branch: master
-    2015-07-24 09:03:32,197.197 INFO:teuthology.repo_utils:Fetching from upstream into /home/ubuntu/src/ceph-qa-suite_master
-    2015-07-24 09:03:33,096.096 INFO:teuthology.repo_utils:Resetting repo at /home/ubuntu/src/ceph-qa-suite_master to branch master
-    2015-07-24 09:03:33,157.157 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_master/suites/dummy generated 1 jobs (not yet filtered)
+    2015-07-24 09:03:31,620.620 INFO:teuthology.suite:teuthology branch: main
+    2015-07-24 09:03:32,196.196 INFO:teuthology.suite:ceph-qa-suite branch: main
+    2015-07-24 09:03:32,197.197 INFO:teuthology.repo_utils:Fetching from upstream into /home/ubuntu/src/ceph-qa-suite_main
+    2015-07-24 09:03:33,096.096 INFO:teuthology.repo_utils:Resetting repo at /home/ubuntu/src/ceph-qa-suite_main to branch main
+    2015-07-24 09:03:33,157.157 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_main/suites/dummy generated 1 jobs (not yet filtered)
     2015-07-24 09:03:33,158.158 INFO:teuthology.suite:Scheduling dummy/{all/nop.yaml}
-    2015-07-24 09:03:34,045.045 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_master/suites/dummy scheduled 1 jobs.
-    2015-07-24 09:03:34,046.046 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_master/suites/dummy -- 0 jobs were filtered out.
+    2015-07-24 09:03:34,045.045 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_main/suites/dummy scheduled 1 jobs.
+    2015-07-24 09:03:34,046.046 INFO:teuthology.suite:Suite dummy in /home/ubuntu/src/ceph-qa-suite_main/suites/dummy -- 0 jobs were filtered out.
 
     2015-07-24 11:03:34,104.104 INFO:teuthology.openstack:
     web interface: http://167.114.242.13:8081/
@@ -142,7 +142,7 @@ Each target (i.e. a virtual machine or instance in the OpenStack
 parlance) created by the OpenStack backend are exactly the same. By
 default they have at least 8GB RAM, 20GB disk, 1 cpus and no disk
 attached. It is equivalent to having the following in the
-`~/.teuthology.yaml <https://github.com/ceph/teuthology/blob/master/docs/siteconfig.rst>`_ file::
+`~/.teuthology.yaml <https://github.com/ceph/teuthology/blob/main/docs/siteconfig.rst>`_ file::
 
     openstack:
       ...
index 27040cba6866b64dce6c9a52b449882a7f9a2e72..5bc98e98d6f415e62b2de619f19b87904c6e8b3d 100644 (file)
@@ -94,7 +94,7 @@ Here is a sample configuration with many of the options set and documented::
     # {uri} is ref/tag if 'tag' is set in the job yaml file
     #       or ref/branch if 'branch' is set in the job yaml file
     #       or sha1/sha1 if 'sha1' is set in the job yaml file
-    #       or ref/master
+    #       or ref/main
     # {pkg_type} is either 'deb' or 'rpm' depending on the host on which the
     #            packages are to be installed
     # {dist} If lsb_release -si is Fedora the value is:
index a21dab01f6f025296eab3094668bce072c5676ac..e0a42e2ffd2155b61b98458fced743b3cc65b040 100644 (file)
@@ -1,7 +1,7 @@
 interactive-on-error: true
 overrides:
   ceph:
-    branch: master
+    branch: main
     fs: xfs
 roles:
 - - mon.a
index 8d48e99defb443d96d04107404a5a66789f402ec..f6188573eccb22a101225046d95c7ba7e7f95dee 100644 (file)
@@ -1,6 +1,6 @@
 nuke-on-error: true
 kernel:
-  branch: master
+  branch: main
 overrides:
   ceph:
     branch: BRANCH_NAME
index 0d21519ff3b2e8c04776753ea95c9aa123d59858..a9f09332efd661bd097b3a7ecc5ff5f2d6bbd37f 100644 (file)
@@ -49,7 +49,7 @@ def get_suite_parser():
     parser.add_argument(
         '-c', '--ceph',
         help='The ceph branch to run against',
-        default=os.getenv('TEUTH_CEPH_BRANCH', 'master'),
+        default=os.getenv('TEUTH_CEPH_BRANCH', 'main'),
     )
     parser.add_argument(
         '-k', '--kernel',
@@ -69,7 +69,7 @@ def get_suite_parser():
     parser.add_argument(
         '--suite-branch',
         help='Use this suite branch instead of the ceph branch',
-        default=os.getenv('TEUTH_SUITE_BRANCH', 'master'),
+        default=os.getenv('TEUTH_SUITE_BRANCH', 'main'),
     )
     parser.add_argument(
         '-e', '--email',
@@ -251,8 +251,8 @@ def get_openstack_parser():
     )
     parser.add_argument(
         '--teuthology-branch',
-        help="use this teuthology branch instead of master",
-        default=os.getenv('TEUTH_BRANCH', 'master'),
+        help="use this teuthology branch instead of main",
+        default=os.getenv('TEUTH_BRANCH', 'main'),
     )
     parser.add_argument(
         '--ceph-workbench-git-url',
@@ -260,8 +260,8 @@ def get_openstack_parser():
     )
     parser.add_argument(
         '--ceph-workbench-branch',
-        help="use this ceph-workbench branch instead of master",
-        default='master',
+        help="use this ceph-workbench branch instead of main",
+        default='main',
     )
     parser.add_argument(
         '--upload',
index 62fd7b2adcaad1041de6cfbf11e0f34febd11845..5cafee024cbea6d2e613bc7cb42b09b81fa23f91 100644 (file)
@@ -60,7 +60,7 @@ Standard arguments:
                               the suite repo and contains non-empty string.
                               There is `teuthology_branch` present in one of
                               the user or system `teuthology.yaml` configuration
-                              files respectively, otherwise use `master`.
+                              files respectively, otherwise use `main`.
   -m <type>, --machine-type <type>
                               Machine type [default: {default_machine_type}]
   -d <distro>, --distro <distro>
@@ -191,7 +191,7 @@ Scheduler arguments:
 |                 | used for urgent release testing.                                |
 +-----------------+-----------------------------------------------------------------+
 | 75 <= N < 100   | Tech Leads regularly schedule integration tests with this       |
-|                 | priority to verify pull requests against master.                |
+|                 | priority to verify pull requests against main.                  |
 +-----------------+-----------------------------------------------------------------+
 | 100 <= N < 150  | This priority is used for QE validation of point releases.      |
 +-----------------+-----------------------------------------------------------------+
@@ -209,7 +209,7 @@ Scheduler arguments:
                             config.get_ceph_git_url()),
     default_suite_repo=defaults('--suite-repo',
                             config.get_ceph_qa_suite_git_url()),
-    default_ceph_branch=defaults('--ceph-branch', 'master'),
+    default_ceph_branch=defaults('--ceph-branch', 'main'),
     default_job_threshold=config.job_threshold,
 )
 
index 9f7fa257e40ea2519cb698c6ce8bdc3ba7dbe255..14218835b18ec52aea266c0403aa9ee7ec16cf89 100644 (file)
@@ -85,8 +85,8 @@ def main(args):
     result_proc = None
 
     if teuth_config.teuthology_path is None:
-        fetch_teuthology('master')
-    fetch_qa_suite('master')
+        fetch_teuthology('main')
+    fetch_qa_suite('main')
 
     keep_running = True
     job_procs = set()
index 72d1ca8fdd4a12655b50aa02a0798983ece1bb7b..6a6651e7222403e357ea127e991b1d675172ffc6 100644 (file)
@@ -227,13 +227,13 @@ def get_ceph_binary_url(package=None,
         assert tag is None, "cannot set both sha1 and tag"
     else:
         # gitbuilder uses remote-style ref names for branches, mangled to
-        # have underscores instead of slashes; e.g. origin_master
+        # have underscores instead of slashes; e.g. origin_main
         if tag is not None:
             ref = tag
             assert branch is None, "cannot set both branch and tag"
         else:
             if branch is None:
-                branch = 'master'
+                branch = 'main'
             ref = branch
 
         sha1_url = urljoin(BASE, 'ref/{ref}/sha1'.format(ref=ref))
index ea349fab2c3507131c569367c6cebca82585d778..df433315ed361c6a18d1a10fb4b39a91dc4bf0da 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash -ex
 TEUTH_PATH=${1:-"teuthology"}
 TEUTH_GIT=${2:-"https://github.com/ceph/teuthology"}
-TEUTH_BRANCH=${3:-"master"}
+TEUTH_BRANCH=${3:-"main"}
 
 mkdir -p $TEUTH_PATH
 git init $TEUTH_PATH
index b7ab7ab56162bf8e57a3af17988c356b621528de..475aaaa3774c3cc2f87bceb1fb3db54764d7888c 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 system_info:
index b7ab7ab56162bf8e57a3af17988c356b621528de..475aaaa3774c3cc2f87bceb1fb3db54764d7888c 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 system_info:
index b7ab7ab56162bf8e57a3af17988c356b621528de..475aaaa3774c3cc2f87bceb1fb3db54764d7888c 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 system_info:
index 48052e01f0581e18e07b0311150d0c32471d4ec7..61180663cd54a935d410554e4828dd8e3f38d532 100644 (file)
@@ -18,7 +18,7 @@ packages:
  - git
  - ntp
 runcmd:
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
  - echo '{username} ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
 final_message: "{up}, after $UPTIME seconds"
index 9c10056a29061bd1fc11a65f6c45d5a9d132d3c0..7cbbc852ff2c08dd49cc52ebf2cb4d486d19d173 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index b5cec8cbb691cbc4dce2d613c2cfadc34e1d44ce..1860ef1400d09fb1109c4d00be40a4ab7acfa8ab 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index bb48c7863fdbfc702e23185fbf58ed0c8dc0be84..c8ca72c6265a4d867a353534f9322eb70f1ed838 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index 02c86e41a60971e9254bc60f9a414f49c55fcd9e..ee7d4fd7b48e4dcd1576e498c5fb3d5907e15b2f 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index 48f45bd7c58d495a6917ab3e56084b007673d581..820cd9c26b001a07602cee5a9032ffff5408f52b 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
  - SuSEfirewall2 stop
 preserve_hostname: true
index c6211af70e317d9b6b5f3e1c5cae1383f57952c9..6977f381e04d2e5aed16ed4ebb6abc4e79961307 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
  - SuSEfirewall2 stop
 preserve_hostname: true
index 192025747ca229c23e06e8d6c5c600b314c1478f..fa1d2267c57c6bdf4ee5dc28ae300edfc364096e 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
  - SuSEfirewall2 stop
 preserve_hostname: true
index f76d39aa7b0e0860962a132bb1e7c4b90fd6e125..0fb900879708d50c69f56d8e9fe22e1acbadf773 100644 (file)
@@ -6,7 +6,7 @@ bootcmd:
  - ( curl --silent http://169.254.169.254/2009-04-04/meta-data/hostname | sed -e 's/[\.-].*//' ; eval printf "%03d%03d%03d%03d.{lab_domain}" $(curl --silent http://169.254.169.254/2009-04-04/meta-data/local-ipv4 | tr . ' ' ) ) | tee /etc/hostname
  - hostname $(cat /etc/hostname)
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index 51f550d6902f6458be61e1a5e63b67d6ec229d4e..2bdd6eea113e577f09cbdfe09f2e05c3e5ba21da 100644 (file)
@@ -3,7 +3,7 @@ bootcmd:
  - echo nameserver {nameserver} | tee /etc/resolv.conf
  - echo search {lab_domain} | tee -a /etc/resolv.conf
  - ( echo ; echo "MaxSessions 1000" ) >> /etc/ssh/sshd_config
-# See https://github.com/ceph/ceph-cm-ansible/blob/master/roles/cobbler/templates/snippets/cephlab_user
+# See https://github.com/ceph/ceph-cm-ansible/blob/main/roles/cobbler/templates/snippets/cephlab_user
  - ( echo 'Defaults !requiretty' ; echo 'Defaults visiblepw' ) | tee /etc/sudoers.d/cephlab_sudo ; chmod 0440 /etc/sudoers.d/cephlab_sudo
 preserve_hostname: true
 users:
index f57061bb592444c80bd96fdd8677edffea963485..7e5f4359cbef1f24d61d4b0df126ff8bd903b895 100644 (file)
@@ -1630,7 +1630,7 @@ openstack keypair delete {key_name} || true
         teuthology_argv = [
             '--suite', 'upgrade/hammer',
             '--dry-run',
-            '--ceph', 'master',
+            '--ceph', 'main',
             '--kernel', 'distro',
             '--flavor', 'gcov',
             '--distro', 'ubuntu',
index 9d30a2bfedcdedfd8f5076482ee3eff275a890e4..9aece1271d0b8b80cd628220c34f11a74368642b 100644 (file)
@@ -395,12 +395,12 @@ def _get_config_value_for_remote(ctx, remote, config, key):
 
         config = {
             'all':
-                {'branch': 'master'},
+                {'branch': 'main'},
             'branch': 'next'
         }
         _get_config_value_for_remote(ctx, remote, config, 'branch')
 
-    would return 'master'.
+    would return 'main'.
 
     :param ctx: the argparse.Namespace object
     :param remote: the teuthology.orchestra.remote.Remote object
@@ -652,9 +652,9 @@ class GitbuilderProject(object):
         remote, the sha1 from the config will be used.
 
         If a tag, branch or sha1 can't be found it will default to use the
-        build from the master branch.
+        build from the main branch.
 
-        :returns: A string URI. Ex: ref/master
+        :returns: A string URI. Ex: ref/main
         """
         ref_name, ref_val = next(iter(self._choose_reference().items()))
         if ref_name == 'sha1':
@@ -669,7 +669,7 @@ class GitbuilderProject(object):
         Decide which to use.
 
         :returns: a single-key dict containing the name and value of the
-                  reference to use, e.g. {'branch': 'master'}
+                  reference to use, e.g. {'branch': 'main'}
         """
         tag = branch = sha1 = None
         if self.remote:
@@ -712,8 +712,8 @@ class GitbuilderProject(object):
             warn('sha1')
             return dict(sha1=sha1)
         else:
-            log.warning("defaulting to master branch")
-            return dict(branch='master')
+            log.warning("defaulting to main branch")
+            return dict(branch='main')
 
     def _get_base_url(self):
         """
index ceccfd8f699e32de79a8f6cd879de5c8c809992c..e065495cff1f8e35a04ae42659644a5b3ee2f35b 100644 (file)
@@ -80,7 +80,7 @@ def fetch_tasks_if_needed(job_config):
     except ImportError:
         log.info("Tasks not found; will attempt to fetch")
 
-    ceph_branch = job_config.get('branch', 'master')
+    ceph_branch = job_config.get('branch', 'main')
     suite_repo = job_config.get('suite_repo')
     if suite_repo:
         teuth_config.ceph_qa_suite_git_url = suite_repo
index 69a97c566e2bac1b0b1272eb6fc9af7d44392a87..6427548cf5a89033806f575837955c3e22e8222a 100644 (file)
@@ -220,7 +220,7 @@ class Run(object):
         of the teuthology config files ``$HOME/teuthology.yaml``
         or ``/etc/teuthology.yaml`` correspondingly.
 
-        Use ``master``.
+        Use ``main``.
 
         Generate exception if the branch is not present in the repo.
 
@@ -244,7 +244,7 @@ class Run(object):
                         log.warning(
                             'The teuthology branch config is empty, skipping')
         if not teuthology_branch:
-            teuthology_branch = config.get('teuthology_branch', 'master')
+            teuthology_branch = config.get('teuthology_branch', 'main')
 
         teuthology_sha1 = util.git_ls_remote(
             'teuthology',
@@ -279,7 +279,7 @@ class Run(object):
         suite_repo_project_or_url = self.args.suite_repo or 'ceph-qa-suite'
         suite_branch = self.args.suite_branch
         ceph_branch = self.args.ceph_branch
-        if suite_branch and suite_branch != 'master':
+        if suite_branch and suite_branch != 'main':
             if not util.git_branch_exists(
                 suite_repo_project_or_url,
                 suite_branch
@@ -292,12 +292,12 @@ class Run(object):
                 suite_branch = ceph_branch
             else:
                 log.info(
-                    "branch {0} not in {1}; will use master for"
+                    "branch {0} not in {1}; will use main for"
                     " ceph-qa-suite".format(
                         ceph_branch,
                         suite_repo_name
                     ))
-                suite_branch = 'master'
+                suite_branch = 'main'
         return suite_branch
 
     def choose_suite_hash(self, suite_branch):
@@ -516,7 +516,7 @@ class Run(object):
 Use the following testing priority
 10 to 49: Tests which are urgent and blocking other important development.
 50 to 74: Testing a particular feature/fix with less than 25 jobs and can also be used for urgent release testing.
-75 to 99: Tech Leads usually schedule integration tests with this priority to verify pull requests against master.
+75 to 99: Tech Leads usually schedule integration tests with this priority to verify pull requests against main.
 100 to 149: QE validation of point releases.
 150 to 199: Testing a particular feature/fix with less than 100 jobs and results will be available in a day or so.
 200 to 1000: Large test runs that can be done over the course of a week.
index 49f88fdcb87aab9a052213a238f9943946720681..4c9e0f03d93439ec9d0fd2f7d572a8c0f390df94 100644 (file)
@@ -174,7 +174,7 @@ class TestSuiteMain(object):
                 exists=fake_false,
             ):
                 main([
-                    '--ceph', 'master',
+                    '--ceph', 'main',
                     '--suite', suite_name,
                     '--throttle', throttle,
                     '--machine-type', machine_type,
@@ -198,7 +198,7 @@ class TestSuiteMain(object):
             m['package_version_for_hash'].return_value = 'fake-9.5'
             config.suite_verify_ceph_hash = False
             main([
-                '--ceph', 'master',
+                '--ceph', 'main',
                 '--suite', suite_name,
                 '--suite-dir', suite_dir,
                 '--suite-relpath', '',
@@ -226,7 +226,7 @@ class TestSuiteMain(object):
             m['package_version_for_hash'].return_value = 'fake-9.5'
             config.suite_verify_ceph_hash = True
             main([
-                '--ceph', 'master',
+                '--ceph', 'main',
                 '--suite', suite_name,
                 '--suite-dir', suite_dir,
                 '--suite-relpath', '',
index f6c3cb16e7af8679555787dbf40b9a909dfe6ea4..48b2866e524fba237bc538955a54575908a0e381 100644 (file)
@@ -49,8 +49,8 @@ class TestRun(object):
         # neuter choose_X_branch
         m_git_validate_sha1.return_value = self.args_dict['ceph_sha1']
         m_choose_ceph_version.return_value = self.args_dict['ceph_sha1']
-        self.args_dict['teuthology_branch'] = 'master'
-        self.args_dict['suite_branch'] = 'master'
+        self.args_dict['teuthology_branch'] = 'main'
+        self.args_dict['suite_branch'] = 'main'
         m_git_ls_remote.return_value = 'suite_sha1'
 
         runobj = self.klass(self.args)
@@ -162,7 +162,7 @@ class TestRun(object):
         m_qa_teuthology_branch_exists.return_value = False
         self.args_dict = {
             'base_yaml_paths': [],
-            'ceph_branch': 'master',
+            'ceph_branch': 'main',
             'machine_type': 'smithi',
             'flavor': 'default',
             'kernel_branch': 'testing',
@@ -192,10 +192,10 @@ class TestScheduleSuite(object):
             suite='suite',
             suite_relpath='',
             suite_dir='suite_dir',
-            suite_branch='master',
+            suite_branch='main',
             ceph_branch='ceph_branch',
             ceph_sha1='ceph_sha1',
-            teuthology_branch='master',
+            teuthology_branch='main',
             kernel_branch=None,
             flavor='flavor',
             distro='ubuntu',
index 270245f9967180dba4080bcd706315b67b6af4ce..d4c8541f5d0b03e76baf14214f88ab177763d3e4 100644 (file)
@@ -23,7 +23,7 @@ def test_git_branch_exists(m_check_output, project_or_url):
     assert False == util.git_branch_exists(
         project_or_url, 'nobranchnowaycanthappen')
     m_check_output.return_value = b'HHH branch'
-    assert True == util.git_branch_exists(project_or_url, 'master')
+    assert True == util.git_branch_exists(project_or_url, 'main')
 
 
 @pytest.fixture
@@ -81,9 +81,9 @@ class TestUtil(object):
         mock_resp.ok = True
         mock_resp.json.return_value = "some json"
         m_get.return_value = mock_resp
-        result = util.get_branch_info("teuthology", "master")
+        result = util.get_branch_info("teuthology", "main")
         m_get.assert_called_with(
-            "https://api.github.com/repos/ceph/teuthology/git/refs/heads/master"
+            "https://api.github.com/repos/ceph/teuthology/git/refs/heads/main"
         )
         assert result == "some json"
 
@@ -133,7 +133,7 @@ class TestUtil(object):
     def test_git_ls_remote(self, m_get_ceph_git_url, git_repository):
         m_get_ceph_git_url.return_value = git_repository
         assert util.git_ls_remote('ceph', 'nobranch') is None
-        assert util.git_ls_remote('ceph', 'master') is not None
+        assert util.git_ls_remote('ceph', 'main') is not None
 
     @patch('teuthology.suite.util.requests.get')
     def test_find_git_parent(self, m_requests_get):
index d272442d5c09158bed7b8786b0bb2d7b7df11546..69f1f5037690b83095646d11843d3a7ca561cd0a 100644 (file)
@@ -36,7 +36,7 @@ def fetch_repos(branch, test_name):
 
     The reason the teuthology repo is also fetched is that currently we use
     subprocess to call teuthology-schedule to schedule jobs so we need to make
-    sure it is up-to-date. For that reason we always fetch the master branch
+    sure it is up-to-date. For that reason we always fetch the main branch
     for test scheduling, regardless of what teuthology branch is requested for
     testing.
 
@@ -46,9 +46,9 @@ def fetch_repos(branch, test_name):
         # When a user is scheduling a test run from their own copy of
         # teuthology, let's not wreak havoc on it.
         if config.automated_scheduling:
-            # We use teuthology's master branch in all cases right now
+            # We use teuthology's main branch in all cases right now
             if config.teuthology_path is None:
-                fetch_teuthology('master')
+                fetch_teuthology('main')
         suite_repo_path = fetch_qa_suite(branch)
     except BranchNotFoundError as exc:
         schedule_fail(message=str(exc), name=test_name)
@@ -100,7 +100,7 @@ def get_gitbuilder_hash(project=None, branch=None, flavor=None,
     # Alternate method for github-hosted projects - left here for informational
     # purposes
     # resp = requests.get(
-    #     'https://api.github.com/repos/ceph/ceph/git/refs/heads/master')
+    #     'https://api.github.com/repos/ceph/ceph/git/refs/heads/main')
     # hash = .json()['object']['sha']
     (arch, release, _os) = get_distro_defaults(distro, machine_type)
     if distro is None:
index 8b5f575027bbbaf649f6b2dd7d7fe2d49cd92730..a89ec911d99e7f7371d85914bd1db90a1595c324 100644 (file)
@@ -49,7 +49,7 @@ class Ansible(Task):
         repo:       A path or URL to a repo (defaults to '.'). Given a repo
                     value of 'foo', ANSIBLE_ROLES_PATH is set to 'foo/roles'
         branch:     If pointing to a remote git repo, use this branch. Defaults
-                    to 'master'.
+                    to 'main'.
         hosts:      A list of teuthology roles or partial hostnames (or a
                     combination of the two). ansible-playbook will only be run
                     against hosts that match.
@@ -143,7 +143,7 @@ class Ansible(Task):
         if repo.startswith(('http://', 'https://', 'git@', 'git://')):
             repo_path = fetch_repo(
                 repo,
-                self.config.get('branch', 'master'),
+                self.config.get('branch', 'main'),
             )
         else:
             repo_path = os.path.abspath(os.path.expanduser(repo))
@@ -391,7 +391,7 @@ class CephLab(Ansible):
 
     - ansible.cephlab:
         repo: {git_base}ceph-cm-ansible.git
-        branch: master
+        branch: main
         playbook: cephlab.yml
 
     If a dynamic inventory is used, all hosts will be assigned to the
index 51490ac19a45d83fbd62e07b7e607adb637c45e3..4bc18adc37116f4c3d7cdc8da32ee46c34794223 100644 (file)
@@ -16,7 +16,7 @@
 #
 function install_deps() {
     if [ ! -f install-deps.sh ]; then
-        git archive --remote=git://git.ceph.com/ceph.git master install-deps.sh | tar -xvf -
+        git archive --remote=git://git.ceph.com/ceph.git main install-deps.sh | tar -xvf -
     fi
     #
     # drop the following hack when trusty is not supported anymore
@@ -127,7 +127,7 @@ function test_link_same() {
     touch $d/sha1/$sha1_branch3
     link_same $d/ref $d/secondary $sha1_branch3
     test $(readlink --canonicalize $d/ref/branch3) = $d/sha1/$sha1_branch3 || return 1
-    test $(readlink --canonicalize $d/ref/master) = $d/sha1/$sha1_branch3 || return 1
+    test $(readlink --canonicalize $d/ref/main) = $d/sha1/$sha1_branch3 || return 1
 
     touch $d/sha1/$tag2
     link_same $d/ref $d/secondary $tag2
index df93e162f046f5219a13ca89ee3c391213d4ad10..fb7f4176d93d518d5bde3ae10e9d0c1fe2889ed7 100755 (executable)
@@ -17,7 +17,7 @@
 
 # 
 # Create and upload a deb repository with the same naming conventions
-# as https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-deb.sh
+# as https://github.com/ceph/autobuild-ceph/blob/main/build-ceph-deb.sh
 #
 set -xe
 
index 87dd0054e2d6a7b35b97f3263162f0dbd2f9e5f2..11cac7000046334ca7d1bede5b5843bd780a1c89 100755 (executable)
@@ -17,7 +17,7 @@
 
 # 
 # Create and upload a RPM repository with the same naming conventions
-# as https://github.com/ceph/autobuild-ceph/blob/master/build-ceph-rpm.sh
+# as https://github.com/ceph/autobuild-ceph/blob/main/build-ceph-rpm.sh
 #
 
 set -xe
index 18321d9e103efc1f4c161246cb156f36e4b05d0d..0e7d483c30da390ab1a9d06ff87061c8f2a6d107 100644 (file)
@@ -22,7 +22,7 @@ class CephAnsible(Task):
 
     - ceph-ansible:
         repo: {git_base}ceph-ansible.git
-        branch: mybranch # defaults to master
+        branch: mybranch # defaults to main
         ansible-version: 2.4 # defaults to 2.5
         vars:
           ceph_dev: True ( default)
@@ -73,7 +73,7 @@ class CephAnsible(Task):
         if 'ceph_dev_key' not in vars:
             vars['ceph_dev_key'] = 'https://download.ceph.com/keys/autobuild.asc'
         if 'ceph_dev_branch' not in vars:
-            vars['ceph_dev_branch'] = ctx.config.get('branch', 'master')
+            vars['ceph_dev_branch'] = ctx.config.get('branch', 'main')
         self.cluster_name = vars.get('cluster', 'ceph')
 
     def setup(self):
@@ -378,7 +378,7 @@ class CephAnsible(Task):
                 'python-dev'
             ])
         ansible_repo = self.config['repo']
-        branch = 'master'
+        branch = 'main'
         if self.config.get('branch'):
             branch = self.config.get('branch')
         ansible_ver = 'ansible==2.5'
index 6e78bf671d1a0c7a17b5b510e3506f44dbf256dc..7754a769593cd7e4ac483173d7cf00a9c3d0e835 100644 (file)
@@ -260,7 +260,7 @@ def install_hadoop(ctx, config):
                 dist = "precise",
                 arch = "x86_64",
                 flavor = "default",
-                branch = "master")
+                branch = "main")
 
         run.wait(
             hadoops.run(
index bc481d8f9da7a55102afee9fa6904c817096fcdb..686ab5e0530d40b648fd1bf77c314c50e00a9508 100644 (file)
@@ -542,8 +542,8 @@ def task(ctx, config):
           sha1: 1234
 
     where sha1 matches the --ceph argument. For instance if
-    teuthology-suite is called with --ceph master, the sha1 will be
-    the tip of master. If called with --ceph v0.94.1, the sha1 will be
+    teuthology-suite is called with --ceph main, the sha1 will be
+    the tip of main. If called with --ceph v0.94.1, the sha1 will be
     the v0.94.1 (as returned by git rev-parse v0.94.1 which is not to
     be confused with git rev-parse v0.94.1^{commit})
 
index a27b23096c88e63cf0e6045b766c377a7a838397..23c164cd53d48944b1666232a9343b51a6277df0 100644 (file)
@@ -32,7 +32,7 @@ from teuthology.task.install.deb import install_dep_packages
 
 log = logging.getLogger(__name__)
 
-CONFIG_DEFAULT = {'branch': 'master'}
+CONFIG_DEFAULT = {'branch': 'main'}
 TIMEOUT_DEFAULT = 300
 
 VERSION_KEYS = ['branch', 'tag', 'sha1', 'deb', 'rpm', 'koji', 'koji_task']
@@ -1136,7 +1136,7 @@ def task(ctx, config):
     This can be a branch, tag, or sha1 of ceph-client.git or a local
     kernel package.
 
-    To install ceph-client.git branch (default: master)::
+    To install ceph-client.git branch (default: main)::
 
         kernel:
           branch: testing
@@ -1205,7 +1205,7 @@ def task(ctx, config):
           client.1:
             branch: more_specific
           osd.3:
-            branch: master
+            branch: main
 
     To wait 3 minutes for hosts to reboot (default: 300)::
 
index a52b0ffb3e111beac0c4e35f72fba6692fbbe9f4..63ff9f3b120776a1ca6e69f83c114d5613098c14 100644 (file)
@@ -94,7 +94,7 @@ def task(ctx, config):
                     'wget',
                     '-nv',
                     '--no-check-certificate',
-                    'https://raw.github.com/gregsfortytwo/FileLocker/master/sclockandhold.cpp',
+                    'https://raw.github.com/gregsfortytwo/FileLocker/main/sclockandhold.cpp',
                     '-O', '{tdir}/lockfile/sclockandhold.cpp'.format(tdir=testdir),
                     run.Raw('&&'),
                     'g++', '{tdir}/lockfile/sclockandhold.cpp'.format(tdir=testdir),
index ade4a5ccec8145c015d65791abc74510e388c8d3..6c709fd1711a8e1d671f8dd9847c01050dfc5648 100644 (file)
@@ -89,7 +89,7 @@ def task(ctx, config):
     mpiexec = config['exec'].replace('$TESTDIR', testdir)
     hosts = []
     remotes = []
-    master_remote = None
+    main_remote = None
     if 'nodes' in config:
         if isinstance(config['nodes'], str) and config['nodes'] == 'all':
             for role in  teuthology.all_roles(ctx.cluster):
@@ -97,17 +97,17 @@ def task(ctx, config):
                 ip,port = remote.ssh.get_transport().getpeername()
                 hosts.append(ip)
                 remotes.append(remote)
-            (master_remote,) = ctx.cluster.only(config['nodes'][0]).remotes.keys()
+            (main_remote,) = ctx.cluster.only(config['nodes'][0]).remotes.keys()
         elif isinstance(config['nodes'], list):
             for role in config['nodes']:
                 (remote,) = ctx.cluster.only(role).remotes.keys()
                 ip,port = remote.ssh.get_transport().getpeername()
                 hosts.append(ip)
                 remotes.append(remote)
-            (master_remote,) = ctx.cluster.only(config['nodes'][0]).remotes.keys()
+            (main_remote,) = ctx.cluster.only(config['nodes'][0]).remotes.keys()
     else:
         roles = ['client.{id}'.format(id=id_) for id_ in teuthology.all_roles_of_type(ctx.cluster, 'client')]
-        (master_remote,) = ctx.cluster.only(roles[0]).remotes.keys()
+        (main_remote,) = ctx.cluster.only(roles[0]).remotes.keys()
         for role in roles:
             (remote,) = ctx.cluster.only(role).remotes.keys()
             ip,port = remote.ssh.get_transport().getpeername()
@@ -121,17 +121,17 @@ def task(ctx, config):
     if 'workdir' in config:
         workdir = ['-wdir', config['workdir'].replace('$TESTDIR', testdir) ]
 
-    log.info('mpi rank 0 is: {name}'.format(name=master_remote.name))
+    log.info('mpi rank 0 is: {name}'.format(name=main_remote.name))
 
     # write out the mpi hosts file
     log.info('mpi nodes: [%s]' % (', '.join(hosts)))
-    teuthology.write_file(remote=master_remote,
+    teuthology.write_file(remote=main_remote,
                           path='{tdir}/mpi-hosts'.format(tdir=testdir),
                           data='\n'.join(hosts))
-    log.info('mpiexec on {name}: {cmd}'.format(name=master_remote.name, cmd=mpiexec))
+    log.info('mpiexec on {name}: {cmd}'.format(name=main_remote.name, cmd=mpiexec))
     args=['mpiexec', '-f', '{tdir}/mpi-hosts'.format(tdir=testdir)]
     args.extend(workdir)
     args.extend(mpiexec.split(' '))
-    master_remote.run(args=args, )
+    main_remote.run(args=args, )
     log.info('mpi task completed')
-    master_remote.run(args=['rm', '{tdir}/mpi-hosts'.format(tdir=testdir)])
+    main_remote.run(args=['rm', '{tdir}/mpi-hosts'.format(tdir=testdir)])
index 02c39d17c44eb7ec4b4a38a043178b46bb1169d5..04a4c122b60d139c707ce0f060f975dc1da965b5 100644 (file)
@@ -13,35 +13,35 @@ class TestSuiteOnline(object):
 
     def test_ceph_hash_simple(self):
         resp = requests.get(
-            'https://api.github.com/repos/ceph/ceph/git/refs/heads/master')
+            'https://api.github.com/repos/ceph/ceph/git/refs/heads/main')
         ref_hash = resp.json()['object']['sha']
         assert suite.get_hash('ceph') == ref_hash
 
     def test_kernel_hash_saya(self):
         # We don't currently have these packages.
-        assert suite.get_hash('kernel', 'master', 'default', 'saya') is None
+        assert suite.get_hash('kernel', 'main', 'default', 'saya') is None
 
-    def test_all_master_branches(self):
+    def test_all_main_branches(self):
         # Don't attempt to send email
         config.results_email = None
-        job_config = suite.create_initial_config('suite', 'master',
-                                                 'master', 'master', 'testing',
+        job_config = suite.create_initial_config('suite', 'main',
+                                                 'main', 'main', 'testing',
                                                  'default', 'centos', 'plana')
         assert ((job_config.branch, job_config.teuthology_branch,
-                 job_config.suite_branch) == ('master', 'master', 'master'))
+                 job_config.suite_branch) == ('main', 'main', 'main'))
 
     def test_config_bogus_kernel_branch(self):
         # Don't attempt to send email
         config.results_email = None
         with raises(suite.ScheduleFailError):
-            suite.create_initial_config('s', None, 'master', 't',
+            suite.create_initial_config('s', None, 'main', 't',
                                         'bogus_kernel_branch', 'f', 'd', 'm')
 
     def test_config_bogus_flavor(self):
         # Don't attempt to send email
         config.results_email = None
         with raises(suite.ScheduleFailError):
-            suite.create_initial_config('s', None, 'master', 't', 'k',
+            suite.create_initial_config('s', None, 'main', 't', 'k',
                                         'bogus_flavor', 'd', 'm')
 
     def test_config_bogus_ceph_branch(self):
@@ -55,30 +55,30 @@ class TestSuiteOnline(object):
         # Don't attempt to send email
         config.results_email = None
         with raises(suite.ScheduleFailError):
-            suite.create_initial_config('s', 'bogus_suite_branch', 'master',
+            suite.create_initial_config('s', 'bogus_suite_branch', 'main',
                                         't', 'k', 'f', 'd', 'm')
 
     def test_config_bogus_teuthology_branch(self):
         # Don't attempt to send email
         config.results_email = None
         with raises(suite.ScheduleFailError):
-            suite.create_initial_config('s', None, 'master',
+            suite.create_initial_config('s', None, 'main',
                                         'bogus_teuth_branch', 'k', 'f', 'd',
                                         'm')
 
     def test_config_substitution(self):
         # Don't attempt to send email
         config.results_email = None
-        job_config = suite.create_initial_config('MY_SUITE', 'master',
-                                                 'master', 'master', 'testing',
+        job_config = suite.create_initial_config('MY_SUITE', 'main',
+                                                 'main', 'main', 'testing',
                                                  'default', 'centos', 'plana')
         assert job_config['suite'] == 'MY_SUITE'
 
     def test_config_kernel_section(self):
         # Don't attempt to send email
         config.results_email = None
-        job_config = suite.create_initial_config('MY_SUITE', 'master',
-                                                 'master', 'master', 'testing',
+        job_config = suite.create_initial_config('MY_SUITE', 'main',
+                                                 'main', 'main', 'testing',
                                                  'default', 'centos', 'plana')
         assert job_config['kernel']['kdb'] is True
 
index ec426d710275ff7eac18317fb0918ae88923268c..bfef00d174285003f0da34a07045b4bf921f9901 100644 (file)
@@ -141,7 +141,7 @@ class TestAnsibleTask(TestTask):
         task = self.klass(self.ctx, self.task_config)
         task.find_repo()
         m_fetch_repo.assert_called_once_with(self.task_config['repo'],
-                                             'master')
+                                             'main')
 
     @patch('teuthology.task.ansible.fetch_repo')
     def test_find_repo_git(self, m_fetch_repo):
@@ -151,7 +151,7 @@ class TestAnsibleTask(TestTask):
         task = self.klass(self.ctx, self.task_config)
         task.find_repo()
         m_fetch_repo.assert_called_once_with(self.task_config['repo'],
-                                             'master')
+                                             'main')
 
     def test_playbook_none(self):
         del self.task_config['playbook']
@@ -533,7 +533,7 @@ class TestCephLabTask(TestAnsibleTask):
                             'ceph-cm-ansible.git')
         task = self.klass(self.ctx, dict())
         task.find_repo()
-        m_fetch_repo.assert_called_once_with(repo, 'master')
+        m_fetch_repo.assert_called_once_with(repo, 'main')
 
     def test_playbook_file(self):
         fake_playbook = [dict(fake_playbook=True)]
index c765c04c1f48849c949933cee404d87b3f839c66..97b499f7cb657c02658ceac7be0c880d500fd24f 100644 (file)
@@ -181,13 +181,13 @@ def test_get_http_log_path():
     # Inktank configuration
     archive_server = "http://qa-proxy.ceph.com/teuthology/"
     config.archive_server = archive_server
-    archive_dir = "/var/lib/teuthworker/archive/teuthology-2013-09-12_11:49:50-ceph-deploy-master-testing-basic-vps"
+    archive_dir = "/var/lib/teuthworker/archive/teuthology-2013-09-12_11:49:50-ceph-deploy-main-testing-basic-vps"
     job_id = 31087
     path = misc.get_http_log_path(archive_dir, job_id)
-    assert path == "http://qa-proxy.ceph.com/teuthology/teuthology-2013-09-12_11:49:50-ceph-deploy-master-testing-basic-vps/31087/"
+    assert path == "http://qa-proxy.ceph.com/teuthology/teuthology-2013-09-12_11:49:50-ceph-deploy-main-testing-basic-vps/31087/"
 
     path = misc.get_http_log_path(archive_dir)
-    assert path == "http://qa-proxy.ceph.com/teuthology/teuthology-2013-09-12_11:49:50-ceph-deploy-master-testing-basic-vps/"
+    assert path == "http://qa-proxy.ceph.com/teuthology/teuthology-2013-09-12_11:49:50-ceph-deploy-main-testing-basic-vps/"
 
 
 def test_is_type():
@@ -202,7 +202,7 @@ def test_is_type():
         is_client('client')
     assert not is_client('foo.bar.baz')
     assert not is_client('ceph.client')
-    assert not is_client('hadoop.master.0')
+    assert not is_client('hadoop.main.0')
 
 
 def test_is_type_in_cluster():
index 98db2e380c8cb5c8739f283ca541dfcc530cd46a..e497bb690704cb546cba41ad28097d58b121a089 100644 (file)
@@ -562,7 +562,7 @@ class TestShamanProject(TestBuilderProject):
                 .test_init_from_remote_base_url(
                     "https://shaman.ceph.com/api/search?status=ready"
                     "&project=ceph&flavor=default"
-                    "&distros=ubuntu%2F20.04%2Fx86_64&ref=master"
+                    "&distros=ubuntu%2F20.04%2Fx86_64&ref=main"
                 )
 
     def test_init_from_remote_base_url_debian(self):
@@ -580,7 +580,7 @@ class TestShamanProject(TestBuilderProject):
                 .test_init_from_remote_base_url_debian(
                     "https://shaman.ceph.com/api/search?status=ready"
                     "&project=ceph&flavor=default"
-                    "&distros=debian%2F7.1%2Fx86_64&ref=master"
+                    "&distros=debian%2F7.1%2Fx86_64&ref=main"
                 )
 
     def test_init_from_config_base_url(self):
@@ -662,13 +662,13 @@ class TestShamanProject(TestBuilderProject):
                 "job_name": "ceph-dev-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic",
                 "package_manager_version": "17.0.0-8856.g534fc6d9"
             },
-            "url": "https://3.chacra.ceph.com/r/ceph/master/534fc6d936bd506119f9e0921ff8cf8d47caa323/centos/8/flavors/default/",
+            "url": "https://3.chacra.ceph.com/r/ceph/main/534fc6d936bd506119f9e0921ff8cf8d47caa323/centos/8/flavors/default/",
             "modified": "2021-11-06 21:40:40.669823",
             "distro_version": "8",
             "project": "ceph",
             "flavor": "default",
-            "ref": "master",
-            "chacra_url": "https://3.chacra.ceph.com/repos/ceph/master/534fc6d936bd506119f9e0921ff8cf8d47caa323/centos/8/flavors/default/",
+            "ref": "main",
+            "chacra_url": "https://3.chacra.ceph.com/repos/ceph/main/534fc6d936bd506119f9e0921ff8cf8d47caa323/centos/8/flavors/default/",
             "archs": [
                 "x86_64",
                 "arm64",
@@ -699,7 +699,7 @@ class TestShamanProject(TestBuilderProject):
             "url": "https://jenkins.ceph.com/job/ceph-dev-build/ARCH=arm64,AVAILABLE_ARCH=arm64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic/48556/",
             "log_url": "https://jenkins.ceph.com/job/ceph-dev-build/ARCH=arm64,AVAILABLE_ARCH=arm64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic/48556//consoleFull",
             "flavor": "default",
-            "ref": "master",
+            "ref": "main",
             "distro": "centos"
         },
         {
@@ -721,7 +721,7 @@ class TestShamanProject(TestBuilderProject):
             "url": "https://jenkins.ceph.com/job/ceph-dev-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic/48556/",
             "log_url": "https://jenkins.ceph.com/job/ceph-dev-build/ARCH=x86_64,AVAILABLE_ARCH=x86_64,AVAILABLE_DIST=centos8,DIST=centos8,MACHINE_SIZE=gigantic/48556//consoleFull",
             "flavor": "default",
-            "ref": "master",
+            "ref": "main",
             "distro": "centos"
         }
     ]
@@ -730,7 +730,7 @@ class TestShamanProject(TestBuilderProject):
         config = dict(
             os_type="centos",
             os_version="8",
-            branch='master',
+            branch='main',
             arch='x86_64',
             flavor='default',
         )
index ae92e2441a626d9231e273d212efa9d4015e9224..87d3af88ca844310d0dff1add72e999c5d16bd08 100644 (file)
@@ -147,7 +147,7 @@ class TestWorker(object):
             "job_id": "1",
             "worker_log": "worker_log",
             "archive_path": "archive/path",
-            "teuthology_branch": "master"
+            "teuthology_branch": "main"
         }
         process = Mock()
         process.poll.return_value = "not None"
@@ -206,10 +206,10 @@ class TestWorker(object):
             config['name'],
             config['job_id'],
         )
-        assert got_config['teuthology_branch'] == 'master'
-        assert m_fetch_teuthology.called_once_with_args(branch='master')
+        assert got_config['teuthology_branch'] == 'main'
+        assert m_fetch_teuthology.called_once_with_args(branch='main')
         assert teuth_bin_path == '/teuth/path/virtualenv/bin'
-        assert m_fetch_qa_suite.called_once_with_args(branch='master')
+        assert m_fetch_qa_suite.called_once_with_args(branch='main')
         assert got_config['suite_path'] == '/suite/path'
 
     def build_fake_jobs(self, m_connection, m_job, job_bodies):
index 7210c8417b7acafc40b947efe4093402d79089c8..b99fab33d7546d5ff02e6d9009ec604fdf4c7949 100644 (file)
@@ -79,8 +79,8 @@ def main(ctx):
     result_proc = None
 
     if teuth_config.teuthology_path is None:
-        fetch_teuthology('master')
-    fetch_qa_suite('master')
+        fetch_teuthology('main')
+    fetch_qa_suite('main')
 
     keep_running = True
     while keep_running:
@@ -144,9 +144,9 @@ def prep_job(job_config, log_file_path, archive_dir):
         archive_dir, safe_archive, str(job_id))
     job_config['archive_path'] = archive_path_full
 
-    # If the teuthology branch was not specified, default to master and
+    # If the teuthology branch was not specified, default to main and
     # store that value.
-    teuthology_branch = job_config.get('teuthology_branch', 'master')
+    teuthology_branch = job_config.get('teuthology_branch', 'main')
     job_config['teuthology_branch'] = teuthology_branch
     teuthology_sha1 = job_config.get('teuthology_sha1')
     if not teuthology_sha1:
@@ -170,9 +170,9 @@ def prep_job(job_config, log_file_path, archive_dir):
             teuth_path = fetch_teuthology(branch=teuthology_branch,
                                           commit=teuthology_sha1)
         # For the teuthology tasks, we look for suite_branch, and if we
-        # don't get that, we look for branch, and fall back to 'master'.
+        # don't get that, we look for branch, and fall back to 'main'.
         # last-in-suite jobs don't have suite_branch or branch set.
-        ceph_branch = job_config.get('branch', 'master')
+        ceph_branch = job_config.get('branch', 'main')
         suite_branch = job_config.get('suite_branch', ceph_branch)
         suite_sha1 = job_config.get('suite_sha1')
         suite_repo = job_config.get('suite_repo')