You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Pratik Bandarkar (JIRA)" <ji...@apache.org> on 2017/09/28 08:56:00 UTC
[jira] [Created] (LIBCLOUD-947) "email" field from
"service_account" has no effect while deploying instance.
Pratik Bandarkar created LIBCLOUD-947:
-----------------------------------------
Summary: "email" field from "service_account" has no effect while deploying instance.
Key: LIBCLOUD-947
URL: https://issues.apache.org/jira/browse/LIBCLOUD-947
Project: Libcloud
Issue Type: Bug
Components: Compute
Reporter: Pratik Bandarkar
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:
{code:java}
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 <===
{code}
- 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:
{code:java}
[...]
- 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
[...]
{code}
# salt --version
salt 2017.7.1 (Nitrogen)
python -c "import libcloud ; print libcloud.__version__"
2.2.1
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)