Skip to content

salt-cloud gce specifying  #38353

Closed
Closed

Description

@Ch3LL

Description of Issue/Question

When specifying ex_disks_gce_struct with a sourceImage in a salt-cloud profile without specifying an image I see this error:

[ERROR ] The required 'image' configuration setting is missing from the 'gce-test-extra' profile, which is configured under the 'gce-config' alias.

Setup

Using the current gce-test-extra profile in the test suite located here

As you can see above it does not specify an image, and i'm assuming it is trying to use the sourceimage specified underneath ex_disks_gce_struct to boot up an ubuntu image.

ping @junckritter looks like you added this test here and feature here: #22785

Was this intentional to leave out image in that profile setup? If so it looks like this is a bug and we will need to add some logic to ensure we get pass this check for image if gce is configured to use a sourceimage.

I tested by removing the logic that checks for image just ot make sure it still works and it looks like the VM is created.

Versions Report

I tested on 2015.8.10, 2016.3.4 and 2016.11.0 and saw the same behavior.

Activity

  1. added
    pending-discussion
    on Dec 19, 2016
  2. added this to the Blocked milestone on Dec 19, 2016
  3. Ch3LL commented on Dec 22, 2016

    @Ch3LL
    ContributorAuthor

    Looks like the magic will be here: non_image_drivers = ['nova', 'virtualbox', 'libvirt'] will need to add gce to that list and add if statement that checks if driver is gce and ex_disks_gce_struct:sourceImage is set.

  4. added
    bug
    severity-medium
    P4
    RIoT
    and removed
    pending-discussion
    on Jan 3, 2017
  5. modified the milestones: Approved, Blocked on Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4RIoTSalt-Cloudbugseverity-medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions