Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug output of googlecompute shows askStep instead of actual step names #4670

Closed
webervin opened this issue Mar 15, 2017 · 3 comments · Fixed by #4672 or mitchellh/multistep#9
Closed
Labels
bug builder/google stage/waiting-on-upstream This issue is waiting on an upstream change

Comments

@webervin
Copy link

==> googlecompute: Pausing after run of step 'askStep'. Press enter to continue.
==> googlecompute: Deleting instance...
    googlecompute: Instance has been deleted!
==> googlecompute: Pausing after run of step 'askStep'. Press enter to continue.
==> googlecompute: Creating image...
==> googlecompute: Pausing after run of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Deleting disk...
    googlecompute: Disk has been deleted!
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'askStep'. Press enter to continue.
  • Packer version from packer version
packer -version
0.12.3
  • Host platform
# osx 10.11.6 'el capitan'
uname -a
Darwin xp.local 15.6.0 Darwin Kernel Version 15.6.0: Mon Jan  9 23:07:29 PST 2017; root:xnu-3248.60.11.2.1~1/RELEASE_X86_64 x86_64
@mwhooker
Copy link
Contributor

mwhooker commented Mar 15, 2017

unable to reproduce. Please post your full config and command used to invoke packer.

~/dev/packertest ᐅ packer build -debug 4670.json
Debug mode enabled. Builds will not be parallelized.
googlecompute output will be in this color.

==> googlecompute: Checking image does not exist...
==> googlecompute: Pausing after run of step 'StepCheckExistingImage'. Press enter to continue.
==> googlecompute: Using existing SSH private key
==> googlecompute: Pausing after run of step 'StepCreateSSHKey'. Press enter to continue.
==> googlecompute: Using image: coreos-alpha-1298-1-0-v20170122
==> googlecompute: Creating instance...
    googlecompute: Loading zone: us-central1-a
    googlecompute: Loading machine type: n1-standard-1
    googlecompute: Loading network: default
    googlecompute: Requesting instance creation...
    googlecompute: Waiting for creation operation to complete...
    googlecompute: Instance has been created!
    googlecompute: Instance: packer-58c9c68d-da12-d8aa-7fbc-76a5509ab404 started in us-central1-a
==> googlecompute: Pausing after run of step 'StepCreateInstance'. Press enter to continue.
==> googlecompute: Pausing after run of step 'StepCreateWindowsPassword'. Press enter to continue.
==> googlecompute: Waiting for the instance to become running...
    googlecompute: Public IP: 35.184.66.126
    googlecompute: IP: 35.184.66.126
==> googlecompute: Pausing after run of step 'StepInstanceInfo'. Press enter to continue.
==> googlecompute: Waiting for SSH to become available...
==> googlecompute: Connected to SSH!
==> googlecompute: Pausing after run of step 'StepConnect'. Press enter to continue.
==> googlecompute: Pausing after run of step 'StepProvision'. Press enter to continue.
==> googlecompute: Deleting instance...
    googlecompute: Instance has been deleted!
==> googlecompute: Pausing after run of step 'StepTeardownInstance'. Press enter to continue.
==> googlecompute: Creating image...
==> googlecompute: Pausing after run of step 'StepCreateImage'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepCreateImage'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepTeardownInstance'. Press enter to continue.
==> googlecompute: Deleting disk...
    googlecompute: Disk has been deleted!
==> googlecompute: Pausing before cleanup of step 'StepProvision'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepConnect'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepInstanceInfo'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepCreateWindowsPassword'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepCreateInstance'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepCreateSSHKey'. Press enter to continue.
==> googlecompute: Pausing before cleanup of step 'StepCheckExistingImage'. Press enter to continue.
Build 'googlecompute' finished.

==> Builds finished. The artifacts of successful builds are:
--> googlecompute: A disk image was created: debug-1489618573
~/dev/packertest ᐅ cat 4670.json
{
    "builders": [
        {
            "account_file": "gce-account.json",
            "image_name": "debug-{{ timestamp }}",
            "project_id": "smooth-hub-157510",
            "source_image": "coreos-alpha-1298-1-0-v20170122",
            "ssh_private_key_file": "/Users/mwhooker/.ssh/id_rsa",
            "ssh_username": "core",
            "type": "googlecompute",
            "zone": "us-central1-a"
        }
    ]
}

@mwhooker
Copy link
Contributor

Oh I see, you need to pass -debug -on-error=ask to repro

@mwhooker mwhooker added the stage/waiting-on-upstream This issue is waiting on an upstream change label Mar 15, 2017
mwhooker added a commit that referenced this issue Mar 15, 2017
mwhooker added a commit that referenced this issue Mar 16, 2017
@webervin
Copy link
Author

thanks

mwhooker added a commit that referenced this issue Mar 16, 2017
dacamp pushed a commit to dacamp/packer that referenced this issue Mar 17, 2017
mwhooker added a commit that referenced this issue Mar 30, 2017
dayglojesus pushed a commit to dayglojesus/packer that referenced this issue Apr 6, 2017
@ghost ghost locked and limited conversation to collaborators Apr 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug builder/google stage/waiting-on-upstream This issue is waiting on an upstream change
Projects
None yet
2 participants