Skip to content

Instantly share code, notes, and snippets.

@simonswine
Created July 15, 2017 11:14
Show Gist options
  • Select an option

  • Save simonswine/17273d199265cd4769e2baf59abb9621 to your computer and use it in GitHub Desktop.

Select an option

Save simonswine/17273d199265cd4769e2baf59abb9621 to your computer and use it in GitHub Desktop.
$ terraform apply
libvirt_cloudinit.master: Refreshing state... (ID: /var/lib/libvirt/images/k8s-master-clou...g;5969f69a-6d83-db3b-fc21-3194e29f6138)
libvirt_network.network: Refreshing state... (ID: f9d0bfad-c7ec-46c1-bc0e-0ed393322f7d)
libvirt_volume.centos-7: Refreshing state... (ID: /var/lib/libvirt/images/base-centos-7-1706.qcow2)
libvirt_volume.master: Refreshing state... (ID: /var/lib/libvirt/images/k8s-master-1.qcow2)
libvirt_domain.master: Refreshing state... (ID: 55cc32b2-2d7f-4656-a4ba-359d40df3a12)
libvirt_cloudinit.master: Destroying... (ID: /var/lib/libvirt/images/k8s-master-clou...g;5969f69a-6d83-db3b-fc21-3194e29f6138)
libvirt_cloudinit.master: Destruction complete
libvirt_cloudinit.master: Creating...
local_hostname: "" => "master-1"
name: "" => "k8s-master-cloudinit-1.img"
pool: "" => "default"
user_data: "" => "#cloud-config\n\nrepo_update: true\nrepo_upgrade: all\n\nruncmd:\n- rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm\n- yum update -y\n- yum install -y epel-release\n- yum install -y git puppet-agent vim socat python-pip at jq unzip\n- pip install awscli\n- rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org\n- rpm -ivh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm\n- yum --enablerepo=elrepo-kernel install -y kernel-ml\n- grub2-set-default 0\n- grub2-mkconfig -o /boot/grub2/grub.cfg\n- reboot\n"
libvirt_cloudinit.master: Creation complete (ID: /var/lib/libvirt/images/k8s-master-clou...g;5969f781-c8e4-39e3-a09b-3aab465aea97)
libvirt_domain.master: Modifying... (ID: 55cc32b2-2d7f-4656-a4ba-359d40df3a12)
cloudinit: "/var/lib/libvirt/images/k8s-master-cloudinit-1.img;5969f69a-6d83-db3b-fc21-3194e29f6138" => "/var/lib/libvirt/images/k8s-master-cloudinit-1.img;5969f781-c8e4-39e3-a09b-3aab465aea97"
Error applying plan:
1 error(s) occurred:
* libvirt_domain.master: 1 error(s) occurred:
* libvirt_domain.master: Can't retrieve volume /var/lib/libvirt/images/k8s-master-cloudinit-1.img;5969f781-c8e4-39e3-a09b-3aab465aea97
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment