-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI codenvy upgrade command #1033
Comments
I can help with some of the CLI upgrade() parts + education on how the system works. There are two primary parts of the implementation;
This will probably not be that hard if you know the CLI --- but we will need two sets of images created by @skabashnyuk team so that we can practice upgrading from one format to another. If we can get those images created on dockerhub with different tags and the manifest updated, then we can test. |
Need more inputs.
|
Backup already implemented in cli so upgrade just reused that function. Upgrades file is already generated by CI system and placed into codenvy/version image which is singleton that is downloaded when you first start the system. This is all documented in the docs page :) If it will help I can implement the function that checks upgrades for a valid upgrade request. |
@skabashnyuk: is Codenvy CLI https://github.com/codenvy/codenvy/tree/master/cli ? |
Completely new product - look at codenvy.sh and cli.sh in "hackathon" branch. |
I would like to implement a part of the upgrade method the part that verifies the upgrade version is acceptable. -Tyler On Thu, Oct 27, 2016 at 12:36 PM -0400, "Dmytro Nochevnov" notifications@github.com wrote: Got it https://github.com/codenvy/codenvy/blob/hackathon/codenvy.sh Thank you. — |
@dmytro-ndp - I have implemented the logic in 'cmd_upgrade()' to check the currently installed version and then iterate through the list of upgradeable paths in the manifest to determine if the targeted upgrade to version is a version that we will accept. So now we just have to implement the upgrade logic once we have versions that are upgradeable within images. |
@vkuznyetsov We need this in the current sprint to make get this done by CheConf. Do you need additional resources/help from others to complete this task? |
This is not needed for current sprint. Upgrade() is not expected nor required for CheConf. |
Ok after some code investigation i see some points:
|
@mshaposhnik - the existing CLI has some utility methods for checking that the server is already running. You should be able to reuse that capability. Also, the CLI also has tools for downloading images against a version, so you can reuse that, too. |
Testing was performed by manually adding entries into updates manifest to allow fake updates to the same version, like nightly -> nightly |
b. "codenvy upgrade y" will do the following:
---- Access the manifest that is in ~/.codenvy/manifests/upgrades to see if x -> y is allowed
---- If not allowed, terminate with friendly error message
---- If allowed, perform upgrade sequence of (cmd_stop(), cmd_backup()?, cmd_download() to get new images, cmd_start() (which does a config and launches Codenvy tomcat which does migration), and then if any errors along the way, some sort of rollback.
The text was updated successfully, but these errors were encountered: