You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Chris Adams (JIRA)" <ji...@apache.org> on 2012/12/04 03:33:58 UTC

[dev] [jira] [Created] (LIBCLOUD-267) Support for CDN purges

Chris Adams created LIBCLOUD-267:
------------------------------------

             Summary: Support for CDN purges
                 Key: LIBCLOUD-267
                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
             Project: Libcloud
          Issue Type: New Feature
          Components: Storage
            Reporter: Chris Adams
            Priority: Minor


The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:

http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-267) Support for CDN purges

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511074#comment-13511074 ] 

Tomaz Muraus commented on LIBCLOUD-267:
---------------------------------------

Added new ex_purge_object_from_cdn method and confirmed that it's working by testing it with the CloudFiles API - http://svn.apache.org/viewvc?view=revision&revision=1417732
                
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Resolved] (LIBCLOUD-267) Support for CDN purges

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Muraus resolved LIBCLOUD-267.
-----------------------------------

    Resolution: Fixed
      Assignee: Tomaz Muraus
    
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Assignee: Tomaz Muraus
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-267) Support for CDN purges

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13511055#comment-13511055 ] 

Tomaz Muraus commented on LIBCLOUD-267:
---------------------------------------

Yeah, this actually makes sense.

No problem, I'll remove this method from trunk and add a new one for purging a single object.
                
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-267) Support for CDN purges

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509540#comment-13509540 ] 

Tomaz Muraus commented on LIBCLOUD-267:
---------------------------------------

I've added this functionality as an extension method in trunk - http://svn.apache.org/viewvc?view=revision&revision=r1416790.

Keep in mind that I've added this feature reluctantly, because it's not even documented in the Rackspace CloudFiles API documentation -http://docs.rackspace.com/files/api/v1/cf-devguide/content/Purge_CDN-Enabled_Containers_or_Objects-d1e2747.html.

I assume the reason for not documenting it is, that it puts extra load on the CDN provider and people could abuse it...
                
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Comment Edited] (LIBCLOUD-267) Support for CDN purges

Posted by "Tomaz Muraus (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509540#comment-13509540 ] 

Tomaz Muraus edited comment on LIBCLOUD-267 at 12/4/12 6:46 AM:
----------------------------------------------------------------

I've added this functionality as an extension method in trunk - http://svn.apache.org/viewvc?view=revision&revision=r1416790.

Keep in mind that I've added this feature reluctantly, because it's not even documented in the Rackspace CloudFiles API documentation -http://docs.rackspace.com/files/api/v1/cf-devguide/content/Purge_CDN-Enabled_Containers_or_Objects-d1e2747.html.

I assume the reason for not documenting it is, that it puts extra load on the CDN provider and people could abuse it...

Please let me know if you find any problems while testing it, I actually haven't had time to test it with Rackspace API yet.
                
      was (Author: kami):
    I've added this functionality as an extension method in trunk - http://svn.apache.org/viewvc?view=revision&revision=r1416790.

Keep in mind that I've added this feature reluctantly, because it's not even documented in the Rackspace CloudFiles API documentation -http://docs.rackspace.com/files/api/v1/cf-devguide/content/Purge_CDN-Enabled_Containers_or_Objects-d1e2747.html.

I assume the reason for not documenting it is, that it puts extra load on the CDN provider and people could abuse it...
                  
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[dev] [jira] [Commented] (LIBCLOUD-267) Support for CDN purges

Posted by "Chris Adams (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LIBCLOUD-267?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13509735#comment-13509735 ] 

Chris Adams commented on LIBCLOUD-267:
--------------------------------------

I'm sorry, I should have tested that by hand first. It looks like they've quietly discontinued that feature as I now receive a 405 Method not allowed error attempting to issue a purge.

    Traceback (most recent call last):
      File "/Users/cadams/Projects/simple-cloud-site/bin/publish-site", line 113, in <module>
        main()
      File "/Users/cadams/Projects/simple-cloud-site/bin/publish-site", line 108, in main
        driver.ex_purge_from_cdn(container, email='chris@improbable.org')
      File "/Users/cadams/.virtualenvs/simple-cloud-site-py3/lib/python3.3/site-packages/libcloud/storage/drivers/cloudfiles.py", line 420, in ex_purge_from_cdn
        cdn_request=True)
      File "/Users/cadams/.virtualenvs/simple-cloud-site-py3/lib/python3.3/site-packages/libcloud/storage/drivers/cloudfiles.py", line 159, in request
        raw=raw)
      File "/Users/cadams/.virtualenvs/simple-cloud-site-py3/lib/python3.3/site-packages/libcloud/common/openstack.py", line 461, in request
        return super(OpenStackBaseConnection, self).request(**kwargs)
      File "/Users/cadams/.virtualenvs/simple-cloud-site-py3/lib/python3.3/site-packages/libcloud/common/base.py", line 605, in request
        connection=self)
      File "/Users/cadams/.virtualenvs/simple-cloud-site-py3/lib/python3.3/site-packages/libcloud/common/base.py", line 93, in __init__
        raise Exception(self.parse_error())
    Exception: 405 Method Not Allowed

A quick test with curl shows the object-level purging works, so it would appear that this is the only viable feature at the moment:

http://docs.rackspace.com/files/api/v1/cf-devguide/content/Purge_CDN-Enabled_Objects-d1e3858.html

curl -i -XDELETE -H "X-Auth-Token: …" -H "X-Purge-Email: chris@improbable.org" https://cdn1.clouddrive.com/v1/…/container_name/index.html

                
> Support for CDN purges
> ----------------------
>
>                 Key: LIBCLOUD-267
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-267
>             Project: Libcloud
>          Issue Type: New Feature
>          Components: Storage
>            Reporter: Chris Adams
>            Priority: Minor
>              Labels: cloudfiles, rackspace
>
> The Cloud Files backend could support the edge CDN purging feature which the native cloudfiles library handles:
> http://packages.python.org/python-cloudfiles/cloudfiles.container.Container-class.html#purge_from_cdn

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira