libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] Matir opened a new issue #1497: GCE Driver Does Not Support VMs Without Any Service Accounts
Date Fri, 25 Sep 2020 21:07:01 GMT

Matir opened a new issue #1497:
URL: https://github.com/apache/libcloud/issues/1497


   ## Summary
   
   There does not appear to be any way to create a VM on GCE without any service accounts.
   
   ## Detailed Information
   
   Providing the argument `ex_service_accounts=[]` to `create_node` still results in the same
behavior as `ex_service_accounts=None`, where the default GCE service account is used on the
instance.
   
   GCE does support VMs without any service accounts attached, so I believe this should be
a supported configuration.  I've worked around it with the following "stupid monkeypatch",
but I believe a proper solution should be included:
   
   ```
   driver._build_service_accounts_gce_list = lambda *args, **kwargs: []
   ```
   
   I believe a small change to accept an empty list is the appropriate fix, and I'm happy
to provide it, but filing this bug for discussion on the proposal.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message