-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubespray deployment fails on run growpart task when root partition is on logical volume #9747
Comments
The deployment was succesfull with this temporary workaround: - name: check if growpart needs to be run
command: growpart -N {{ device }} {{ partition }}
failed_when: False
changed_when:
- "'NOCHANGE:' not in growpart_needed.stdout"
- "'FAILED:' not in growpart_needed.stdout"
register: growpart_needed
environment:
LC_ALL: C |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
I'm also seeing this issue running on RHEL8 based vm's on azure:
From the comment: # Running growpart seems to be only required on Azure, as other Cloud Providers do this at boot time I'm guessing newly created vm's in azure need their disk resized? We're using terraform & packer and do not need to resize the disks. I suggest we add a variable to allow disabling the I can create a PR for this. |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Environment:
Cloud provider or hardware configuration:
Virtual machines on Azure.
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Linux 5.15.0-6.80.3.1.el9uek.x86_64 x86_64
NAME="Oracle Linux Server"
VERSION="9.1"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="9.1"
PLATFORM_ID="platform:el9"
PRETTY_NAME="Oracle Linux Server 9.1"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:9:1:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://github.com/oracle/oracle-linux"
ORACLE_BUGZILLA_PRODUCT="Oracle Linux 9"
ORACLE_BUGZILLA_PRODUCT_VERSION=9.1
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=9.1
Version of Ansible (
ansible --version
):ansible [core 2.11.11]
Version of Python (
python --version
):Python 3.6.8
Kubespray version (commit) (
git rev-parse --short HEAD
):919e666
Network plugin used:
Calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):https://gist.github.com/belissner/e71990f51416310245e16ab868dca319#file-gistfile1-txt
Command used to invoke ansible:
Output of ansible run:
Anything else do we need to know:
If the root partition is on LV , the task
run growpart
fails inkubespray/roles/kubernetes/preinstall/tasks/0120-growpart-azure-centos-7.yml
.The
check if growpart needs to be run
task register the following:The task
run growpart
will be triggerd, because thechanged_when: "'NOCHANGE:' not in growpart_needed.stdout"
statement incheck if growpart needs to be run
task will be true, but it will fail because thedevice
andpartition
variables are/dev/mapper/rootvg-rootlv
The text was updated successfully, but these errors were encountered: