Skip to content

Fix squid cephadm e2e - #70799

Open
afreen23 wants to merge 5 commits into
ceph:squidfrom
rhcs-dashboard:fix-squid-cephadm-e2e
Open

afreen23 wants to merge 5 commits into
ceph:squidfrom
rhcs-dashboard:fix-squid-cephadm-e2e

Conversation

@afreen23

@afreen23 afreen23 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

nizamial09 and others added 4 commits August 3, 2026 23:32
I have a new script added for starting the kcli cluster called
quick-bootstrap.sh

The goal is to use that script to download the ceph image on local
(rather than inside vm) and then copy them over to all the vms that is
being spawned by the kcli. This way all the hosts will get the ceph
image which will make the deployment loads faster.

Another thing I added is to add some dnf.conf to improve
parallel_downlaods and get the fastest server to install deps

eg:
```
╰─$ ./quick-bootstrap.sh -h                                                                                    255 ↵
+ set +x
Usage: ./quick-bootstrap.sh [OPTIONS]

Options:
  -u, --use-cached-image     Uses the existing podman image in local. Only use this if there is such an image present.
  -dir, --ceph-dir             Use this to provide the local ceph directory. eg. --ceph-dir=/path/to/ceph
  -e, --expanded-cluster     To add all the hosts and deploy OSDs on top of it.
  -h, --help             Display this help message.

Example:
  ./quick-bootstrap.sh --use-cached-image

```

```
./quick-bootstrap.sh -u --ceph-dir=/home/nia/projects/ceph
```

Signed-off-by: Nizamudeen A <[email protected]>
(cherry picked from commit 6f5612a)
Also ceph/ceph-build#2562
Signed-off-by: Nizamudeen A <[email protected]>
(cherry picked from commit 8293aa3)
the tests seems waiting to fetch the prometheus details incase the
cephadm ran into error and it just waits there for more than an hour
without any progress. fixing that and some minor improvements.

an example log: https://jenkins.ceph.com/job/ceph-dashboard-cephadm-e2e/12287/consoleFull

Signed-off-by: Nizamudeen A <[email protected]>
(cherry picked from commit 17cc323)
with_libvirt wraps commands in sg libvirt -c "$1", adding an extra
shell layer. Nested double quotes inside the outer double-quoted
string caused the argument to be split — with_libvirt received a
truncated $1, producing "Unterminated quoted string" on the remote
shell.

Drop the unnecessary inner double quotes around cephadm shell
arguments since cephadm shell accepts the command as separate args.
Use single quotes for the grep pattern inside the double-quoted
string so it survives the sg subshell.

Signed-off-by: Afreen Misbah <[email protected]>
(cherry picked from commit ae1fee0)
@afreen23
afreen23 requested a review from a team as a code owner August 3, 2026 19:27
@afreen23
afreen23 requested review from Pegonzal and aaSharma14 August 3, 2026 19:27
@github-actions github-actions Bot added this to the squid milestone Aug 3, 2026
@afreen23 afreen23 changed the title Fix squid cephadm e2e Fix squid cephadm e2e Aug 3, 2026
@afreen23

afreen23 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ceph Release Engineering Audit Report

Automated Redmine Linkage Audit

The following tracking irregularities were found:

  • Orphaned Main PR: Could not find a Redmine tracker for main PR #60017. Please create a ticket, set its 'Pull Request ID', populate the 'Backport' field, and ensure it is in the 'Pending Backport' state.
  • Orphaned Main PR: Could not find a Redmine tracker for main PR #68178. Please create a ticket, set its 'Pull Request ID', populate the 'Backport' field, and ensure it is in the 'Pending Backport' state.
  • Orphaned Main PR: Could not find a Redmine tracker for main PR #59691. Please create a ticket, set its 'Pull Request ID', populate the 'Backport' field, and ensure it is in the 'Pending Backport' state.
  • Orphaned Main PR: Could not find a Redmine tracker for main PR #69116. Please create a ticket, set its 'Pull Request ID', populate the 'Backport' field, and ensure it is in the 'Pending Backport' state.

Automated Backport Parity Review - Multiple PRs Detected

This backport appears to pull commits from multiple main PRs including: PR #59691, PR #60017, PR #68178, PR #69116.

This must be made explicit in the backport PR description. Furthermore, each backport tracker ticket associated with these main PRs must be linked to this PR.


Commit Parity Visualizer

BACKPORT PR #70799 SOURCE PR SOURCE STATUS
19538c3 mgr/dashboard: fix indefinite loop in cephadm dashboard e2e PR #59691 17cc323 mgr/dashboard: fix indefinite loop in cephadm dashboard e2e
cb00317 mgr/dashboard: improve the kcli bootstrap process PR #60017 6f5612a mgr/dashboard: improve the kcli bootstrap process
8e5134e mgr/dashboard: run kcli commands in libvritd group PR #68178 8293aa3 mgr/dashboard: run kcli commands in libvritd group
e0b8a9a mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster PR #69116 ae1fee0 mgr/dashboard: fix nested shell quoting in cephadm e2e start-cluster

Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.

This does not necessarily indicate an issue but a maintainer should review.

**Click to expand conflict summaries.**

Deviation in Backport 8e5134e (cherry-pick of 8293aa3)

Affected File(s)

Range Diff

Click to expand
--- Original (8293aa38)
+++ Backport (8e5134e6)
@@ -2,3 +2,4 @@
 
 Also https://github.com/ceph/ceph-build/pull/2562/
 Signed-off-by: Nizamudeen A <[email protected]>
+(cherry picked from commit 8293aa38bd9c9abca6353ebbdb64401bf3263017)

================================================================================
RANGE DIFF
================================================================================

1:  8293aa38bd9 ! 1:  8e5134e6fb0 mgr/dashboard: run kcli commands in libvritd group
    @@ Commit message
     
         Also https://github.com/ceph/ceph-build/pull/2562/
         Signed-off-by: Nizamudeen A <[email protected]>
    +    (cherry picked from commit 8293aa38bd9c9abca6353ebbdb64401bf3263017)
     
      ## src/pybind/mgr/dashboard/ci/cephadm/run-cephadm-e2e-tests.sh ##
     @@
    @@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: for arg in "$@"; do
      
      # Build dashboard frontend (required to start the module).
      cd ${CEPH_DEV_FOLDER}/src/pybind/mgr/dashboard/frontend
    -@@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: npm run build ${FRONTEND_BUILD_OPTS} &
    +@@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: fi
    + npm run build ${FRONTEND_BUILD_OPTS} &
    + 
      cd ${CEPH_DEV_FOLDER}
    - : ${VM_IMAGE:='fedora42'}
    - : ${VM_IMAGE_URL:='https://download.fedoraproject.org/pub/fedora/linux/releases/42/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-42-1.1.x86_64.qcow2'}
    +-: ${VM_IMAGE:='fedora40'}
    +-: ${VM_IMAGE_URL:='https://download.fedoraproject.org/pub/fedora/linux/releases/40/Cloud/x86_64/images/Fedora-Cloud-Base-Generic.x86_64-40-1.14.qcow2'}
     -kcli download image -p ceph-dashboard -u ${VM_IMAGE_URL} ${VM_IMAGE}
     -kcli delete plan -y ceph || true
    ++: ${VM_IMAGE:='fedora42'}
    ++: ${VM_IMAGE_URL:='https://download.fedoraproject.org/pub/fedora/linux/releases/42/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-42-1.1.x86_64.qcow2'}
     +with_libvirt "kcli download image -p ceph-dashboard -u ${VM_IMAGE_URL} ${VM_IMAGE}"
     +with_libvirt "kcli delete plan -y ceph || true"
      # Compile cephadm locally for the shared_ceph_folder to pick it up
    @@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: npm run build ${FRONTEND_B
     -    kcli ssh -u root -- ceph-node-00 'journalctl -n 100 --no-pager -t cloud-init'
     +    with_libvirt "kcli ssh -u root -- ceph-node-00 'journalctl -n 100 --no-pager -t cloud-init'"
      done
    - 
    --kcli ssh -u root ceph-node-00 'cephadm shell "ceph config set mgr mgr/prometheus/exclude_perf_counters false"'
    ++
     +with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph config set mgr mgr/prometheus/exclude_perf_counters false"'"
    - 
    - get_prometheus_running_count() {
    --    echo $(kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch ls --service_name=prometheus --format=json"' | jq -r '.[] | .status.running')
    ++
    ++get_prometheus_running_count() {
     +    echo $(with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch ls --service_name=prometheus --format=json"' | jq -r '.[] | .status.running'")
    - }
    - 
    - # check if the prometheus daemon is running on jenkins node
    -@@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: if [[ -n "${JENKINS_HOME}" ]]; then
    - 
    -     # grafana ip address is set to the fqdn by default.
    -     # kcli is not working with that, so setting the IP manually.
    --    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-alertmanager-api-host http://192.168.100.100:9093"'
    --    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-prometheus-api-host http://192.168.100.100:9095"'
    --    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-grafana-api-url https://192.168.100.100:3000"'
    --    kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch apply node-exporter --placement 'count:2'"'
    ++}
    ++
    ++# check if the prometheus daemon is running on jenkins node
    ++# before starting the e2e tests
    ++if [[ -n "${JENKINS_HOME}" ]]; then
    ++    retry=0
    ++    PROMETHEUS_RUNNING_COUNT=$(get_prometheus_running_count)
    ++    # retrying for 10 times to see if we can get the prometheus count
    ++    # otherwise this would run indefinitely and bloat up the machine
    ++    while [[ $retry -lt 10 && $PROMETHEUS_RUNNING_COUNT -lt 1 ]]; do
    ++        if [[ ${retry} -gt 0 ]]; then
    ++            echo "Retry attempt to get the prometheus count..." ${retry}
    ++        fi
    ++        PROMETHEUS_RUNNING_COUNT=$(get_prometheus_running_count)
    ++        retry=$((retry +1))
    ++        sleep 10
    ++    done
    ++
    ++    if [[ ${retry} -ge 10 ]]; then
    ++        exit 1
    ++    fi
    ++
    ++    # grafana ip address is set to the fqdn by default.
    ++    # kcli is not working with that, so setting the IP manually.
     +    with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-alertmanager-api-host http://192.168.100.100:9093"'"
     +    with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-prometheus-api-host http://192.168.100.100:9095"'"
     +    with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-grafana-api-url https://192.168.100.100:3000"'"
     +    with_libvirt "kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch apply node-exporter --placement 'count:2"'"'
    - fi
    ++fi
     
      ## src/pybind/mgr/dashboard/ci/cephadm/utils.sh (new) ##
     @@

Deviation in Backport 19538c3 (cherry-pick of 17cc323)

Affected File(s)

Range Diff

Click to expand
--- Original (17cc3237)
+++ Backport (19538c3f)
@@ -7,3 +7,4 @@
 an example log: https://jenkins.ceph.com/job/ceph-dashboard-cephadm-e2e/12287/consoleFull
 
 Signed-off-by: Nizamudeen A <[email protected]>
+(cherry picked from commit 17cc32377154ffe59354a2f64f6cd706e078aeef)

================================================================================
RANGE DIFF
================================================================================

1:  17cc3237715 ! 1:  19538c3fd36 mgr/dashboard: fix indefinite loop in cephadm dashboard e2e
    @@ Commit message
         an example log: https://jenkins.ceph.com/job/ceph-dashboard-cephadm-e2e/12287/consoleFull
     
         Signed-off-by: Nizamudeen A <[email protected]>
    +    (cherry picked from commit 17cc32377154ffe59354a2f64f6cd706e078aeef)
     
      ## src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh ##
     @@ src/pybind/mgr/dashboard/ci/cephadm/bootstrap-cluster.sh: cephadm_shell="$CEPHADM shell --fsid ${fsid} -c /etc/ceph/ceph.conf -k /etc/ceph
    @@ src/pybind/mgr/dashboard/ci/cephadm/run-cephadm-e2e-tests.sh: cypress_run () {
     -cypress_run ["cypress/e2e/orchestrator/workflow/*.feature","cypress/e2e/orchestrator/workflow/*-spec.ts"]
     -cypress_run "cypress/e2e/orchestrator/grafana/*.feature"
     +cypress_run ["cypress/e2e/orchestrator/workflow/*.feature","cypress/e2e/orchestrator/workflow/*-spec.ts","cypress/e2e/orchestrator/grafana/*.feature"]
    -
    - ## src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh ##
    -@@ src/pybind/mgr/dashboard/ci/cephadm/start-cluster.sh: while [[ -z $(kcli ssh -u root -- ceph-node-00 'journalctl --no-tail --no-pager
    -     fi
    -     kcli ssh -u root -- ceph-node-00 'journalctl -n 100 --no-pager -t cloud-init'
    - done
    -+
    -+kcli ssh -u root ceph-node-00 'cephadm shell "ceph config set mgr mgr/prometheus/exclude_perf_counters false"'
    -+
    -+get_prometheus_running_count() {
    -+    echo $(kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch ls --service_name=prometheus --format=json"' | jq -r '.[] | .status.running')
    -+}
    -+
    -+# check if the prometheus daemon is running on jenkins node
    -+# before starting the e2e tests
    -+if [[ -n "${JENKINS_HOME}" ]]; then
    -+    retry=0
    -+    PROMETHEUS_RUNNING_COUNT=$(get_prometheus_running_count)
    -+    # retrying for 10 times to see if we can get the prometheus count
    -+    # otherwise this would run indefinitely and bloat up the machine
    -+    while [[ $retry -lt 10 && $PROMETHEUS_RUNNING_COUNT -lt 1 ]]; do
    -+        if [[ ${retry} -gt 0 ]]; then
    -+            echo "Retry attempt to get the prometheus count..." ${retry}
    -+        fi
    -+        PROMETHEUS_RUNNING_COUNT=$(get_prometheus_running_count)
    -+        retry=$((retry +1))
    -+        sleep 10
    -+    done
    -+
    -+    if [[ ${retry} -ge 10 ]]; then
    -+        exit 1
    -+    fi
    -+
    -+    # grafana ip address is set to the fqdn by default.
    -+    # kcli is not working with that, so setting the IP manually.
    -+    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-alertmanager-api-host http://192.168.100.100:9093"'
    -+    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-prometheus-api-host http://192.168.100.100:9095"'
    -+    kcli ssh -u root ceph-node-00 'cephadm shell "ceph dashboard set-grafana-api-url https://192.168.100.100:3000"'
    -+    kcli ssh -u root ceph-node-00 'cephadm shell "ceph orch apply node-exporter --placement 'count:2'"'
    -+fi

How to proceed:

  • Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git Conflicts: block intact) and include an explanation for changes.
  • Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
  • Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting /audit override.

Be familiar with the rules and guidelines for writing backports.


🛟 Need Help?

If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.

📋 Component Lead / Release Manager

To override the audit failure, apply releng-audit-override label or comment /audit override.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Aug 3, 2026
@afreen23
afreen23 force-pushed the fix-squid-cephadm-e2e branch 2 times, most recently from c461064 to f580ced Compare August 4, 2026 10:17
The fedora42 cloud image has been removed from Fedora servers,
causing all cephadm e2e builds to fail with 404. Use fedora44
with dl.fedoraproject.org direct URL instead of the flaky
download.fedoraproject.org CDN redirector.

Signed-off-by: Afreen Misbah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dashboard pybind releng-audit-fail Release engineering: failed backport verification audit.

Projects

Status: New

Development

Successfully merging this pull request may close these issues.

2 participants