Troubleshooting Abiquo Chef Integration
Troubleshoot Chef Configuration
Server URL
- Check your server URL. Remember that the API may be served from a different location to the Server Web GUI.
Chef Server | Default Protocol | Default Port | Default API URL |
---|---|---|---|
Chef Community (pre v11) | http | 4000 | |
Chef Community (v11+) | https | 443 | |
Hosted Chef Server | https | none - 443 |
Abiquo Server
- Check the time on your Abiquo Server.
- Check connectivity between the Abiquo Server and the Chef Server.
Chef Clients
- Check that the client names are exactly the same as the client names in the Chef Server.
- Check that the Chef admin client has admin permissions.
Default Validator Client Names and Keys
Hosted Chef Server | Default |
---|---|
Validator Name | organization-validator |
Validator key | organization-validator.pem OR validation.pem |
Chef Community | Default |
---|---|
Validator name | chef-validator |
Validator key | validation.pem |
Diagnosing Common Chef Problems
Chef client does not work when booting virtual machine: "Synchronize the clock on your host"
Symptoms: The log /var/log/chef-client.log contains the error "synchronize the clock on your host"
Problem: The clock on the virtual machine is not syncronized.
Solution: Synchronize the clock with UTP on the virtual machine OR set the right date time in the hypervisor you are deploying with.
Troubleshooting Chef VM
Chef enabled VMs have two important software pieces installed:
1. Chef Client
2. Cloud-init version 0.7.9+
Cloud-init starts when the VM boots and is responsible for launching the Chef Client with the information from the Abiquo platform injected into the Configuration Drive.
Log files
There are two log files where info and error messages are reported by those two clients:
- Chef-client: /var/log/chef-client.log includes any problem related to the Chef client run (when downloading or applying recipes).
- Cloud-init: /var/log/cloud-init-output.log contains both stdout and stderr from all cloud-init stages
The Abiquo support staff will request these log files when required.
Configuration Files
Chef client configuration
Everything required by the Chef client to run is stored in '/etc/chef'. If the directory is empty or does not exist, the problem is usually related to the Abiquo Chef agent.
Configuration drive
Abiquo creates a configuration drive ISO disk that contains Chef cloud-init data. See Automate first boot with Configuration drive and cloud-init
Network interface information
The VM must be able to reach the Chef server.
Abiquo Support staff will request the output of the following command (from within the VM) when required:
ifconfig -a
Sample ouput:
Problems deploying VMs with Chef
First Run Fails
If a problem occurs when you first run the chef-client, the chef client will not be registered on the Chef Server. There will be a message like the following in the chef log file.
Copyright © 2006-2022, Abiquo Holdings SL. All rights reserved