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 2015/05/13 20:24:00 UTC

[jira] [Commented] (LIBCLOUD-699) GCE Compute driver cannot accept ex_nic_gce_struct for create_node

    [ https://issues.apache.org/jira/browse/LIBCLOUD-699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14542367#comment-14542367 ] 

ASF GitHub Bot commented on LIBCLOUD-699:
-----------------------------------------

GitHub user erjohnso opened a pull request:

    https://github.com/apache/libcloud/pull/518

    [google compute] fix network options for create_node

    Minor fix to detect network option conflicts as described in https://issues.apache.org/jira/browse/LIBCLOUD-699

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/erjohnso/libcloud jira699

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/libcloud/pull/518.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 #518
    
----

----


> GCE Compute driver cannot accept ex_nic_gce_struct for create_node
> ------------------------------------------------------------------
>
>                 Key: LIBCLOUD-699
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-699
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>            Reporter: Jason DeTiberus
>            Assignee: Eric Johnson
>
> If you specify the {{ex_nic_gce_struct}} param for the {{create_node}} or {{ex_create_multiple_nodes}}
> Any value other than {{None}} and the test for {{if network and ex_nic_gce_struct:}} in {{_create_node_req}} fails due to network having a default value of 'default'.
> As a workaround I tried to set network to '', since that would have caused it to pass the comparison test, however that leads to an error from the following snippet:
> {code}
>         if not hasattr(ex_network, 'name'):
>             ex_network = self.ex_get_network(ex_network)
> {code}
> Which returns with the following error:
> {code}
> error: {'locationType': 'parameter', 'domain': 'global', 'message': "Invalid value 'None'. Values must match the following regular expression: '[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?'", 'reason': 'invalidParameter', 'location': 'network'}
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)