Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 14. Troubleshooting cloud-init
After running the cloud-init utility, you can troubleshoot cloud-init by examining configuration and log files, then rerunning cloud-init from the command line to apply the fixes.
For general configuration issues, review the
cloud-initconfiguration files:-
Examine the
/etc/cloud/cloud.cfgconfiguration file. Check which modules are included undercloud_init_modules,cloud_config_modules, andcloud_final_modules. -
Check directives (
*.cfgfiles) in the/etc/cloud/cloud.cfg.ddirectory.
-
Examine the
If the root partition was not automatically extended, check log messages for the
growpartutility.Notegrowpartdoes not support LVM. If your root partition is based in LVM, the root partition is not automatically extended upon first boot.-
Review the
/var/log/cloud-init.logand/var/log/cloud-init-output.logfiles for details on any specific issue.
-
Review the
If the file system was not extended, check log messages for
resizefs# grep resizefs /var/log/cloud-init.log
Rerun cloud-init commands as root.
Rerun
cloud-initwith only the init modules:# /usr/bin/cloud-init -d initRerun
cloud-initwith all modules in the configuration:# /usr/bin/cloud-init -d modulesDelete the
cloud-initcache and forcecloud-initto run after boot:# rm -rf /var/lib/cloud/ && /usr/bin/cloud-init -d initClean directories and simulate a clean instance:
# rm -rf /var/lib/cloud/instances/ # rm -rf /var/lib/cloud/instance # rm -rf /var/lib/cloud/data/ # rebootRerun the
cloud-initutility:# cloud-init init --local # cloud-init init