[
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='[email protected]')
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: [email protected]"
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