Failed to initialize build 'openstack': post-processor type not found: shell-local

88 views
Skip to first unread message

Lorena Lobato

unread,
Aug 5, 2016, 12:02:47 PM8/5/16
to Packer
Hello,

I am getting this error all the time that I try to run a post-processor for Openstack:

Failed to initialize build 'openstack': post-processor type not found: shell-local

My template is:

{
  "builders": [
    {
      "type": "openstack",
      "region": "cern",
      "ssh_username": "root",
      "ssh_keypair_name": "packerkey",
      "ssh_private_key_file": "/root/.ssh/pakerkey",
      "image_name": "imagecompressed01",
      "source_image": "02d1622c-eff6-427d-83aa-7e34bb1c860e",
      "flavor": "3",
      "ssh_timeout": "40m"
    }
  ],
  "provisioners": [
    {
      "type": "file",
      "source": "/etc/yum.conf",
      "destination": "/etc/yum.conf",
      "source": "/etc/yum-puppet.repos.d",
      "destination": "/etc/yum-puppet.repos.d"
    },
    {
    "type": "shell",
    "inline": [
      "yum -y update",
      "yum clean all"
    ]}],
   "post-processors": [
    {
    "type": "shell-local",
    "inline": [
      "/usr/bin/qemu-img convert -c -f qcow2 -O qcow2 imagecompressed01 imagecompressedpacker01.qcow2",
      "/usr/bin/glance image-create --name BatchCondorCC7_compressed --container-format bare --disk-format qcow2 --file imagecompressedpacker01.qcow2 --is-public True --progress"
      ]
    }]
}

Am I doing something wrong or it is that is not possible to do have post-processors for OS?


Cheers
Lore

Alvaro Miranda Aguilera

unread,
Aug 5, 2016, 12:04:51 PM8/5/16
to packe...@googlegroups.com

On Fri, Aug 5, 2016 at 6:02 PM, Lorena Lobato <loren...@gmail.com> wrote:
e not found: shell-local

Hello,

Can you confirm you are on the latest version of packer?

Thanks
Alvaro


--

Lorena Lobato

unread,
Aug 5, 2016, 12:23:27 PM8/5/16
to Packer
Hello Alvaro,

Thanks for your prompt answer. I have this version:

# packer --version
0.8.5

I have a puppetize node running with packer with the configuration from https://forge.puppet.com/counsyl/packer/

Thanks
Lore

Alvaro Miranda Aguilera

unread,
Aug 5, 2016, 12:51:29 PM8/5/16
to packe...@googlegroups.com
Current version is 0.10.1


post-provisioner shell local is quite new addition. I would suggest to upgrade when possible.

Thanks
Alvaro.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/a83991ef-f6a1-4cfe-8e82-c3fcf1ad5724%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Lorena Lobato

unread,
Aug 8, 2016, 10:37:25 AM8/8/16
to Packer
Hi Alvaro,

Updated packer to 0.10.1 in my puppet module and now everything working.

Thanks so much for your help
Lore
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.



--
Reply all
Reply to author
Forward
0 new messages