Giter Site home page Giter Site logo

packer-builder-linode's Introduction

packer-builder-linode's People

Contributors

ajibola avatar displague avatar dradtke avatar phillc avatar sarahelizgray avatar stvnjacobs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

packer-builder-linode's Issues

"Error creating image: [404] Not found" if source image=linode/centos7

General:

  • Have you removed all sensitive information, including but not limited to access keys and passwords?
  • Have you checked to ensure there aren't other open or closed pull requests for the same bug/feature/question?

Bug Reporting

Possible duplicate of #10 (comment)

Expected Behavior

image is created from Linode disk

Actual Behavior

Linode is shutdown and Packer exits with an error like ==> linode: Error creating image: [404] Not found

Steps to Reproduce the Problem

  1. packer build ./packer/linode-build-marketplace.json
  2. wait for provisioners to complete without error and Linode to shut down
  3. image create fails with (HTTP?) 404

Environment Specifications

❯ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Pop!_OS 18.04 LTS
Release:        18.04
Codename:       bionic

❯ go version
go version go1.12.4 linux/amd64

❯ packer --version
1.3.5

Env var LINODE_TOKEN is set and is sourced by Packer to assign linode_token in the template. The token has all privileges for the Linode cloud manager account.

Screenshots, Code Blocks, and Logs

PACKER_LOG interleaved with output from packer build

2019/04/25 17:18:43 [INFO] (telemetry) ending ansible
==> linode: Shutting down Linode...
==> linode: Creating image...
2019/04/25 17:20:08 ui error: ==> linode: Error creating image: [404] Not found
==> linode: Error creating image: [404] Not found
2019/04/25 17:20:09 [INFO] (telemetry) ending linode
2019/04/25 17:20:09 ui error: Build 'linode' errored: Error creating image: [404] Not found
2019/04/25 17:20:09 Builds completed. Waiting on interrupt barrier...
2019/04/25 17:20:09 machine readable: error-count []string{"1"}
Build 'linode' errored: Error creating image: [404] Not found
2019/04/25 17:20:09 ui error: 

==> Some builds didn't complete successfully and had errors:
2019/04/25 17:20:09 machine readable: linode,error []string{"Error creating image: [404] Not found"}
2019/04/25 17:20:09 ui error: --> linode: Error creating image: [404] Not found
==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 [INFO] (telemetry) Finalizing.
==> Some builds didn't complete successfully and had errors:
--> linode: Error creating image: [404] Not found

==> Builds finished but no artifacts were created.
2019/04/25 17:20:09 waiting for all plugin processes to complete...
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited
2019/04/25 17:20:09 /home/kbingham/.packer.d/plugins/packer-builder-linode: plugin process exited
2019/04/25 17:20:09 /home/kbingham/Sites/netfoundry/bin/packer-1.3.5: plugin process exited

Packer template builders[]

    "builders": [
        {
            "type": "linode",
            "linode_token": "{{user `linode_token`}}",
    
            "region": "us-central",
            "swap_size": 256,
            "image": "linode/centos7",
            "instance_type": "g6-nanode-1",
            "instance_label": "packerbuilder-{{timestamp}}",
    
            "image_label": "nf-{{user `img_type`}}-{{user `release_version`}}",
            "image_description": "nf-{{user `img_type`}}-{{user `release_version`}}",
            
            "ssh_username": "{{user `ssh_username`}}"
        }
    ],

Additional Notes


The Linode Community is a great place to get additional support.

Build Issues

Hi,

I may be using this project incorrectly, but when checking out master, i cannot build the plugin, the error is

go build -o packer-builder-linode
# github.com/dradtke/packer-builder-linode/linode
../../go/src/github.com/dradtke/packer-builder-linode/linode/builder.go:36:61: undefined: packer.Cache
make: *** [build] Error 2

If i remove the reference to packer.Cache in the function signature, then it builds fine. However, potentially unrelated, the packer build completes but then it's unable to create the image -
linode: Error creating image: [404] Not found

Is there another branch I should be using?

Thanks

Cleanup of temporary Linode

This might be my misunderstanding of how Packer functions, but the image creation here seems to leave behind a temporary Linode. Ideally, I'd like to have this Linode be deleted after the image is created.

Is there a clean way to do that in the Packer builder?

packer-builder-linode vs linode imaging

Maybe we can have some discussion to help linode newbies get started...

One option is to install a distro via Linode's default images. Then we can modify that and create a base image. How does that compare to using packer? Also I'd like to know the difference between building a linux distro with packer for linode and building an AMI with AWS's AMI builder... They're analogous, yes?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.