You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/02/27 18:22:45 UTC
[jira] [Commented] (LIBCLOUD-881) Error in GCE driver in
ex_create_multiple_nodes function
[ https://issues.apache.org/jira/browse/LIBCLOUD-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15886266#comment-15886266 ]
ASF GitHub Bot commented on LIBCLOUD-881:
-----------------------------------------
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 <ha...@gmail.com>
Date: 2017-02-27T18:12:30Z
[LIBCLOUD-881] Fix error in GCE driver in ex_create_multiple_nodes function
----
> Error in GCE driver in ex_create_multiple_nodes function
> --------------------------------------------------------
>
> Key: LIBCLOUD-881
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-881
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Reporter: Miguel Caballer
> Labels: gce
>
> If I use the ex_create_multiple_nodes to create a set of nodes in the GCE compute driver I get this error:
> 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)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)