Rackspace has migrated their PHP bindings from php-cloudfiles to php-opencloud. We are unable to download the old bindings anymore.

This module needs to be updated to reflect php-opencloud or the php-cloudfiles bindings need to be available otherwise new users will not be able to use this module.

Comments

arpieb’s picture

Sorry about the delayed reply - not sure why I wasn't notified when this was posted. They changed the entire SDK and deprecated the old one without notice? *SIGH*

Looking into flipping it over this week to use the all-new SDK.

arpieb’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Assigned: Unassigned » arpieb
Category: support » task
lionslair’s picture

Yes. I have a new d6 site gone live (yes it has been in development for a long time) the files directory is around 3.5 gig. did not work via cron so ran it manually via drush. Made the archive and compressed the tar. Then returned and said that it got an unknown response from rackspace cloud files and could not copy to the destination.

I assume this is because of the issue mentioned above. I also noticed the PHP bindings for php-cloudfiles are gone too.

arpieb’s picture

OK, as a total stopgap while I'm getting the code migrated to the new OpenCloud framework, I have uploaded the last copy of php-cloudfiles that I had to a temporary Bitbucket repo here:

https://bitbucket.org/arpieb/php-cloudfiles

Once I have the migration to the new code completed, I will be deleting that repo.

If you can hold off for the OpenCloud support to be built, I would highly recommend it! This repo has only been added for those who might be dead in the water right now (crapped out backups, trying to restore a site, etc). Otherwise, I would recommend using local or FTP-based backups for the interim.

arpieb’s picture

OK, this is a bit of a mess if I do say so myself... The new php-opencloud library requires PHP 5.3.0 or newer as it leverages PHP namespace constructs introduced then. Simply updating this module is probably not going to be an option since sites could be running on older versions of PHP, which would cause an update to break their site (yep, you'd get a PHP segfault on those language constructs failing).

It looks like the best plan of action is to:

  • Mark this module as maintenance-only and let it run on the copy of php-cloudfiles I have on Bitbucket for those running older versions of PHP.
  • Start a new module (backup_migrate_opencloud?) that uses the new 5.3-based php-opencloud library to provide Cloudfiles backups (and maybe even generic OpenStack targeting as well). The new module would require PHP 5.3.0 minimum, enforced by the info file (which will preclude use on any sites running an older version of PHP).

Thoughts? Rants? Suggestions? Please feel free to chime in...

-R

lionslair’s picture

Yes I agree. This would be a good way to approach it. The strange thing is I can see the backups sometimes working for most of the sites already with containers created on cloud files. However the drupal 6 site that finally went live last week is not generating backups and I think it is because the containers do not already exist.

For site already using it it seems to work I think. However new sites it is not creating containers in order to copy backups too.

I think making the new module backup_migrate_opencloud is a good solution.

lionslair’s picture

Any progress on this?

arpieb’s picture

Been out of the country for two weeks on a boat - so nope. :)

I plan on digging back into it once I get my day job work sussed out this week.

lionslair’s picture

Thanks for the reply.

arpieb’s picture

OK, actively working on this one. I've already spun up the new module space on d.o at Backup & Migrate OpenCloud and have started digging into the OpenCloud API. According to the legacy library README, the old API will go dead on Aug 1, 2013, so my plans are to get something completed by July 1, 2013, so we have a month to test it and move to the new module.

The only kicker is going to be that any D6 sites running on PHP older than 5.3 are not going to be supported, so they need to be looking for an alternate solution.

Updating this project's page accordingly...

lionslair’s picture

Thanks for the update. Let me know if you need help testing it.

arpieb’s picture

OK, got the new module stubbed out, and have the site talking to a Rackspace Cloudfiles server via the new OpenCloud API. Trying to resolve some config errors (there are a few more settings due to the nature of the new API) but so far it looks promising.

I'm trying to keep the module Drupal-core agnostic so I can backport it to D6 with as little pain and suffering as possible. :)

I'm shooting to release 7.x-1.0-alpha1 early next week, with a D6 backport following quickly.

arpieb’s picture

Status: Active » Closed (won't fix)

New module is up, 7.x-1.0-alpha1 release is available at Backup & Migrate OpenCloud. Closing this issue. Please address any concerns regarding this topic in the new module's issue queue going forward.

Thanks!