GitHub user rkashapov opened a pull request:
https://github.com/apache/libcloud/pull/995
[LIBCLOUD-881] Fix error in GCE driver in ex_create_multiple_nodes fuâ¦
â¦nction
### Description
I've encountered an error when I tried to create multiple nodes with GCE
driver. Here is a traceback:
```
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
4644, in ex_create_multiple_nodes
self._multi_create_node(status, node_attrs)
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
7633, in _multi_create_node
ex_automatic_restart=node_attrs['ex_automatic_restart'])
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
7533, in _create_node_req
nic_gce_struct=ex_nic_gce_struct, use_selflinks=use_selflinks)
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
4058, in _create_instance_properties
is_boot=True, use_selflinks=use_selflinks)]
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
4198, in _build_disk_gce_struct
obj=disk_type, get_selflinks=use_selflinks, objname='disktype')
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
4241, in _get_selflink_or_name
obj = getobj(obj)
File
"/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/gce.py", line
6517, in ex_get_disktype
request = '/zones/%s/diskTypes/%s' % (zone.name, name)
```
### Status
- done, ready for review
### Checklist (tick everything that applies)
- [x] [Code
linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
(required, can be done after the PR checks)
- [ ] Documentation
- [ ] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html)
- [ ]
[ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
(required for bigger changes)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rkashapov/libcloud
881_fix_gce_ex_create_multiple_nodes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/libcloud/pull/995.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #995
----
commit 145c27e8a97a34851d2035dd4478d08d4bc676d2
Author: Rustam Kashapov <[email protected]>
Date: 2017-02-27T18:12:30Z
[LIBCLOUD-881] Fix error in GCE driver in ex_create_multiple_nodes function
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---