libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiroshi Yoshikawa (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LIBCLOUD-715) Can't list a template image of CloudStack Project
Date Thu, 28 May 2015 08:15:17 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hiroshi Yoshikawa updated LIBCLOUD-715:
---------------------------------------
    Description: 
There is no way to specify _CloudStack Project ID_ when calling *list_images()* method.
So you can't get a project specific template image, and can't create a VM using such a template.

I suggest adding _project_ parameter in *list_images()* method as below:

{code:title=cloudstack.py|borderStyle=solid}
def list_images(self, location=None, project=None):  # add 'project='
    args = {
        'templatefilter': 'executable'
    }
    if location is not None:
        args['zoneid'] = location.id

    if project is not None:                # add project-id setting
        args['projectid'] = project.id
    ...
{code}


  was:
There is no way to specify _CloudStack Project ID_ in *list_images()*'s arguments.
So you can't get a project specific template image, and can't create a VM using such a template.

I suggest adding _project_ parameter in *list_images()* method as below:

{code:title=cloudstack.py|borderStyle=solid}
def list_images(self, location=None, project=None):  # add 'project='
    args = {
        'templatefilter': 'executable'
    }
    if location is not None:
        args['zoneid'] = location.id

    if project is not None:                # add project-id setting
        args['projectid'] = project.id
    ...
{code}



> Can't list a template image of CloudStack Project
> -------------------------------------------------
>
>                 Key: LIBCLOUD-715
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-715
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>         Environment: CloudStack 4.3.0.2
>            Reporter: Hiroshi Yoshikawa
>            Priority: Minor
>
> There is no way to specify _CloudStack Project ID_ when calling *list_images()* method.
> So you can't get a project specific template image, and can't create a VM using such
a template.
> I suggest adding _project_ parameter in *list_images()* method as below:
> {code:title=cloudstack.py|borderStyle=solid}
> def list_images(self, location=None, project=None):  # add 'project='
>     args = {
>         'templatefilter': 'executable'
>     }
>     if location is not None:
>         args['zoneid'] = location.id
>     if project is not None:                # add project-id setting
>         args['projectid'] = project.id
>     ...
> {code}



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

Mime
View raw message