Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-947

"email" field from "service_account" has no effect while deploying instance.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Compute
    • None

    Description

      I am trying to deploy instances on GCP using salt-cloud. The "email" field from "service_account"(/etc/salt/cloud.profiles.d/test-profile.conf) has no effect while deploying instance. Always "default" email is assigned to the "service_account".

      Steps to reproduce the issue:

      • Install "python2-libcloud" package on salt-master OR install libcloud with `pip install apache-libcloud`.
      • configure "/etc/salt/cloud.profiles.d/test-profile.conf" as below:
      test123:
        image: "centos-7-v20170719"
        size: "f1-micro"
        location: "us-central1-a"
        network: "default"
        subnetwork: "default"
        tags: '["gateway"]'
        metadata: '{""}'
        use_persistent_disk: "False"
        delete_boot_pd: "True"
        deploy: "True"
        make_master: "False"
        external_ip: "ephemeral"
        ssh_username: "centos"
        ssh_keyfile: "/root/.ssh/id_rsa"
        provider: gcp
        preemptible: false
        ex_service_accounts:
          - scopes:
            - storage-full
            - datastore
            - taskqueue
            - sql-admin
            - logging-write
            - compute-rw
            email: trinity1@cp100-170315.iam.gserviceaccount.com <===
      
      • deploy instance:
        salt-cloud -p test123 --out-file pratik1.txt pratik1
      • After deployment of the instance, check output of `gcloud compute instances describe pratik1`

      serviceAccounts:

      [...]
      - email: 632197330628-compute@developer.gserviceaccount.com   <===
        scopes:
        - https://www.googleapis.com/auth/devstorage.full_control
        - https://www.googleapis.com/auth/datastore
        - https://www.googleapis.com/auth/taskqueue
        - https://www.googleapis.com/auth/sqlservice.admin
        - https://www.googleapis.com/auth/logging.write
        - https://www.googleapis.com/auth/compute
      [...]
      
      1. salt --version
        salt 2017.7.1 (Nitrogen)

      python -c "import libcloud ; print libcloud._version_"
      2.2.1

      Attachments

        Activity

          People

            Unassigned Unassigned
            pbandark Pratik Bandarkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: