Skip to content

Make dev-env logs less noisy for Make - #1705

Open
UncivilizedGhost wants to merge 1 commit into
metal3-io:mainfrom
Nordix:noise_remover
Open

Make dev-env logs less noisy for Make#1705
UncivilizedGhost wants to merge 1 commit into
metal3-io:mainfrom
Nordix:noise_remover

Conversation

@UncivilizedGhost

Copy link
Copy Markdown
Member

Remove git detachedhand advice message.
Add quiet flages to apt-get pip install, docker full, skopeo copy and kind create cluster to remove unnessary detail.
Reduce clusterctl init verbosiry to level 3.
Add Firewalld Ansible task to avoid error
Modify virsh Ansible tasks to not appar as errors since they are expected.

Category Clean Modification Example of Removed/Suppressed Output
1 git config --global advice.detachedHead false Note: switching to '6.2.0'. You are in 'detached HEAD' state... Turn off this advice by setting config variable advice.detachedHead to false
2 apt-get -q flag added Get:1 https://cli.github.com/packages stable InRelease [3917 B], Fetched 3917 B in 1s (6595 B/s), Reading package lists...
3 pip install -q flag added Collecting ansible==10.7.0, Using cached ansible-10.7.0-py3-none-any.whl.metadata (8.0 kB), Successfully installed MarkupSafe-3.0.3 PyYAML-6.0.3 ansible-10.7.0...
4 docker pull --quiet flag added Using default tag: latest, latest: Pulling from metal3-io/vbmc, Digest: sha256:ba34b6c57325d6a..., Status: Image is up to date for quay.io/metal3-io/vbmc:latest
5 skopeo copy --quiet flag added Getting image source signatures, Copying blob sha256:d3c894b5b2b0fa..., Copying config sha256:217ab2f6b797d7..., Writing manifest to image destination
6 kind create cluster -q flag added Creating cluster "kind"... ✓ Ensuring node image 🖼 ✓ Preparing nodes 📦 ✓ Starting control-plane 🕹️ Thanks for using kind! 😊
7 clusterctl init -v3 instead of -v5 Creating CustomResourceDefinition="challenges.acme.cert-manager.io", Creating ServiceAccount="cert-manager-cainjector", Creating Issuer="test-selfsigned" (×44 retries), hundreds more lines
8 Firewalld Ansible task: check-then-skip instead of stop-and-ignore fatal: [localhost]: FAILED! => {"msg": "Could not find the requested service firewalld: host"}, ...ignoring
9 virsh Ansible tasks: failed_when: false on pool/volume checks fatal: [localhost]: FAILED! => {"stderr": "error: failed to get pool 'oooq_pool'...Storage pool not found"}, ...ignoring

This will reduce logs by around 400 lines.

@metal3-io-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign smoshiur1237 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 30, 2026
@UncivilizedGhost

Copy link
Copy Markdown
Member Author

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-13

@UncivilizedGhost

Copy link
Copy Markdown
Member Author

/copilot-review

@metal3-io-bot
metal3-io-bot requested a review from Copilot June 30, 2026 13:32
@metal3-io-bot

Copy link
Copy Markdown
Collaborator

Copilot code review has been requested by @UncivilizedGhost. Please allow a few moments for the review to be added.

Copilot AI 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.

Pull request overview

This pull request reduces the verbosity/noise of make runs in metal3-dev-env by suppressing expected/low-signal output from package installs, container image operations, cluster creation, and Ansible tasks.

Changes:

  • Add “quiet”/lower-verbosity flags for apt-get, pip, container runtime pulls/pushes, skopeo copy, kind create cluster, and clusterctl init.
  • Adjust Ansible tasks to avoid reporting expected virsh/firewalld conditions as errors.
  • Suppress Git’s detached-HEAD advice during runs.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
01_prepare_host.sh Adds quieter apt-get/pip usage and suppresses Git detached-HEAD advice.
02_configure_host.sh Quiets container image pushes/removals and skopeo copy output during local registry population.
03_launch_mgmt_cluster.sh Reduces clusterctl init verbosity, quiets kind create cluster, and quiets runtime image push.
ansible.cfg Disables Ansible deprecation warnings to reduce log noise.
host_cleanup.sh Attempts to undo the Git detached-HEAD advice suppression during cleanup.
lib/image_prepull.sh Quiets container runtime image pulls during pre-pull.
vm-setup/roles/firewall/tasks/iptables.yaml Adds a check to only stop firewalld when present (avoids expected “not found” errors).
vm-setup/roles/libvirt/tasks/vm_setup_tasks.yml Uses failed_when: false + rc checks so expected virsh “not found” cases don’t appear as fatal errors.
Comments suppressed due to low confidence (1)

host_cleanup.sh:9

  • Unconditionally unsetting advice.detachedHead can delete an existing user preference. If you suppress it during setup, it’s safer to restore the previous value captured during setup (and only touch the global config when that capture file exists). Also, sourcing common.sh before restoration ensures ${WORKING_DIR} is defined.
set -x
# Remove detachedHEAD advice suppression set during make
git config --global --unset advice.detachedHead || true

# shellcheck disable=SC1091
source lib/logging.sh
# shellcheck disable=SC1091
source lib/common.sh

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread 01_prepare_host.sh
@UncivilizedGhost
UncivilizedGhost force-pushed the noise_remover branch 2 times, most recently from 7159ec4 to 5201df9 Compare July 1, 2026 07:05
@UncivilizedGhost

Copy link
Copy Markdown
Member Author

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-13

Remove git detachedhand advice message.
Add quiet flages to apt-get pip install, docker full, skopeo copy and kind create cluster
to remove unnessary detail.
Reduce clusterctl init  verbosiry to level 3.
Add Firewalld Ansible task to avoid error
Modify virsh Ansible tasks to not appar as errors since they are expected.

Reduce logs by ~400 lines.

Signed-off-by: Saad Zia <saad.zia@est.tech>
@UncivilizedGhost

Copy link
Copy Markdown
Member Author

/retest

@Sunnatillo

Copy link
Copy Markdown
Member

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants