packer 1.0.0-rc1 released

93 views
Skip to first unread message

Matthew Hooker

unread,
Mar 16, 2017, 5:02:49 PM3/16/17
to packe...@googlegroups.com
Hi All,

Today we released the first rc of packer 1.0. You can see the changelog here: https://github.com/mitchellh/packer/blob/v1.0.0-rc1/CHANGELOG.md#10rc1-march-16-2017

It would be incredibly if you could run with the RC version and report any errors you come across. We're aiming for a very stable build by 1.0, and so any help we get testing will go a long way towards that goal.

We're planning another RC release next Wednesday the 22nd, and assuming no major bugs turn up, the final 1.0.0 release on March 29th.

Thanks,
--Matt Hooker

Matthew Hooker

unread,
Mar 16, 2017, 5:29:44 PM3/16/17
to Packer
> It would be incredibly if you could...

Incredibly helpful!

Dan Linder

unread,
Mar 20, 2017, 3:22:45 PM3/20/17
to Packer
I found a but that was also in 0.12.3 but has continued into -rc1.

On Windows 10, building a RHEL 6 using the "ansible-local" provisioner like this:
    {
      "playbook_file": "ansible/main.yml",
      "role_paths": [
        "./ansible/"
      ],
      "type": "ansible-local"
    },

The build fails with this message:
    vmware-iso: Creating Ansible staging directory...
    vmware-iso: Creating directory: \tmp\packer-provisioner-ansible-local\58d02882-7a65-acd4-fb9c-50a008058b5f
    vmware-iso: Uploading main Playbook file...
==> vmware-iso: Stopping virtual machine...

Note the incorrect (for Unix) directory slashes for the staging directory.

When I enable debugging and get onto the system before it is destroyed, I see that the staging directory above is created in the root home directory:
/root/\tmp\packer-provisioner-ansible-local\58d02882-7a65-acd4-fb9c-50a008058b5f

Apparently the "directory separators" aren't being changed to reflect the Unix guest.

A workaround is to define the "staging_directory" parameter and manually create and destroy it with script provisioners.  My "ansible.sh" script creates the "/root/staging_directory/", and the "cleanup.sh" removes it.

  "provisioners": [
    {
      "execute_command": "bash '{{.Path}}'",
      "scripts": [
        "scripts/local_cd_repository.sh",
"scripts/add_epel.sh",
"scripts/ansible.sh",
"scripts/yum_cleanup.sh"
      ],
      "type": "shell"
    },
    {
      "playbook_file": "ansible/main.yml",
 "staging_directory": "/root/staging_directory/",
      "role_paths": [
        "./ansible/"
      ],
      "type": "ansible-local"
    },
{
 "type": "file",
      "source": "../../ChinaOS/ansible",
      "destination": "/root/ChinaOS"
},
    {
      "execute_command": "bash '{{.Path}}'",
      "scripts": [
        "scripts/RemoveEPEL.sh",
"scripts/cleanup.sh"
      ],
      "type": "shell"
    }
  ],


DanL

Matthew Hooker

unread,
Mar 20, 2017, 4:35:50 PM3/20/17
to Packer
Thanks for the report, Dan. I don't think we have an issue about this. Created one here: https://github.com/mitchellh/packer/issues/4689 If you wanted to reply to that, it would help in case we need to ask questions when we look into it.

Dan Linder

unread,
Mar 20, 2017, 4:45:17 PM3/20/17
to packe...@googlegroups.com
I've added a comment - I can produce a minimal JSON file and steps to reproduce this in a lab if necessary.

DanL

--
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 a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/fp-R838HAeU/unsubscribe.
To unsubscribe from this group and all its topics, 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/194d20a3-fef7-4dd2-83c8-abc9e6346508%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
***************** ************* *********** ******* ***** *** **
"If you wish to make an apple pie from scratch, 
  you must first invent the universe."
  -- Carl Sagan

"Quis custodiet ipsos custodes?"
    (Who can watch the watchmen?)
    -- from the Satires of Juvenal

"I do not fear computers, I fear the lack of them."
    -- Isaac Asimov (Author)
** *** ***** ******* *********** ************* *****************
Reply all
Reply to author
Forward
0 new messages