Needs work
Project:
Hosting
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Feb 2010 at 19:55 UTC
Updated:
29 Apr 2016 at 10:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
adrian commentedwe can only do this once we have the queue out of hostmaster.
Comment #2
adrian commentedComment #3
steven jones commentedComment #4
clemens.tolboomIf this is done it should be in HEAD
Comment #5
ergonlogicClosed #454312: self-provisionning support as a duplicate of this issue.
Comment #6
helmo commentedHere's a first stab at this, currently adding it to hosting_tasks_extra but could be just as well to the hosting module.
It adds a new task type to just the hostmaster site which in the backend triggers the existing hostmaster-migrate code.
TODO:
Comment #7
ergonlogicNeat! So, just to be clear, updating Provision would still be a manual process? FWIW, the more of the back-end code that we move into front-end
drush/dirs, the fewer updates to Provision will be required.Comment #8
helmo commentedYes, updating provision is out of scope here. When installed as Debian package we don't even have write access to those files.
Comment #9
ergonlogicRight, so how do we handle an upgrade where the backend needs an update too? It seems like we could pretty easily get ourselves in pretty serious trouble. Might there be some way, in
hostmaster-migratepresumably, to flag that the new platform requires an upgrade to Provision, and fails gracefully? Doeshosting.drush.incget bootstrapped on a verify of the hostmaster platform? Maybe something like this could work:Comment #10
helmo commentedAdding such a version check sounds like a good idea.
I'm not sure that the new platform is bootstrapped early enough...
drush_provision_hostmaster_migrate_validate calls provision-verify on the new platform which calls drush make. So I guess we could add some checking code at the end of that function.
Comment #11
ergonlogicwouldn't be bootstrapped at the platform level. However, maybe we can add the minimum Provision version to
sites/all/drush/drushrc.php, since that'd make it easy to access. For example, this works:Comment #12
helmo commented#2648450: hosting_queued fails to restart itself seems to have now solved the queued part.