[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Upgrade V3 to nightly version



Hi all,

indeed michael, i want to update my V3 stable oo-install to pre-V4 because I need a new feature (alias with same domain apps). 

I will try your solution Marian thx :)

Thx Harrison for your reply, I understand better now.
Otherwise do you have a release date for the next version of origin V4  (month, year) ?  

I will contact you if I have a problem to install.

Bye.
Kevin.




2014-06-24 21:25 GMT+02:00 N. Harrison Ripps <hripps redhat com>:
Hey Kevin--

On Jun 24, 2014, at 10:42, Marian Ignev <m ignev gmail com> wrote:

> Hi Kevin,
>
> try this: https://lists.openshift.redhat.com/openshift-archives/dev/2014-June/msg00078.html

If you just want to stand up Origin "pre v4", then Marian's pointed you to the right place above. By default, the oo-install version on that branch uses the nightly builds of the OpenShift RPMs.

Upgrading Origin from one version to the next is another whole discussion.

Marian outlines the options below but allow me to expand upon them. Also:

>
> Поздрави,
> Мариан Игнев
>
> ---
> www: http://m.ignev.net/
> twitter: @mignev
>
>
>
> 2014-06-24 17:37 GMT+03:00 Marian Ignev <m ignev gmail com>:
> Hi Michael,
> i think i understand the situation, but the interesting part of the versioning here is there aren't version 3.0.1, 3.1.1 and so on :))) Versions here are v1, v2, v3 which means by convention broken APIs if semver.org is followed. ... and at this point i think that everything ... i mean every commit after the relevant release is count as change for the next release.

True statement. Origin doesn't have point releases.

>
> If this is not true, someone of redhat guys can correct me. But I understand the development process in this way!
>
>
> 2014-06-24 17:23 GMT+03:00 The Dude <michael mcconachie hotmail com>:
>
> Marian, I think what Kevin is saying that he wants to upgrade from OSOV3 (Stable) to OSOV3 (Latest).
>
> I can't remember for sure, but didn't you want to go from 2.0 --> 3.0?  Just checking.
>
> MM
>
>
>
> From: m ignev gmail com
> Date: Tue, 24 Jun 2014 11:55:51 +0300
> Subject: Re: Upgrade V3 to nightly version
> To: kevintibi hotmail com
> CC: users lists openshift redhat com
>
>
> Hi Kevin,
> i tried to upgrade only the broker and i broke it, when i tried to test new team functionality. I found there are some differences in the mongodb schema. May be there are a lot of differences but unfortunately they aren't documented nowhere.
>
> Few months ago when i asked the question like you, guys from redhad told me that there is not any possibility to upgrade from old version to the newest one and if i want to migrate to the newest one there are 2 options:
>
> - New installation with the new version of origin

This is the 'side by side' upgrade. The idea here is that you stand up a new Origin system, recreate users, namespaces and apps in the new system, and then push app code from local repos into the new Nodes. Most of this could be done by leveraging the broker APIs, save for the git work.

> - You have to understand what is changed in new version and have to write own migration scripts

This is the 'in-place' upgrade. OpenShift Origin does not have a utility for performing in-place upgrades. There's been a lot of discussion about this, so allow me to address directly what is going on.

First off, full disclosure: For every new release of OpenShift Enterprise, Red Hat developers comb through months of commits to craft a utility that will enable in-place upgrades. This utility is rebuilt from one version of OSE to the next; the logic inside the utility is only useful if you are moving from the intended "old" version to the intended "new" version of OSE. Creating this in-place upgrade utility is extremely resource intensive; multiple developers work on this for multiple weeks.

Now, there is nothing to say that the Origin community could not go through a similar effort. I am going to be creating the Origin v4 branches in our GitHub repos very soon, and at that point anyone could start the process of reviewing commits from the December release of v3 on forward and constructing a utility that could perform the same sort of 'in-place' upgrade that Red Hat builds for OSE.

However, as I pointed out above, the upgrade utility is not an easily maintainable piece of code. For each release, you are talking about the potential for a total rewrite based on what changes OpenShift has undergone. That means that this huge effort needs to be done not once, but once per Origin release. This is one of the mains reason why Origin does not have an in-place upgrade utility right now.

On a few other occasions on this list, I have advocated for a different approach to this problem, which is a little more like the 'side by side' upgrade, but without having to deal directly with hosted application source code. The idea is to enhance the rhc utility 'snapshot' and 'restore' functionality so that apps can be snapshotted on one Origin instance and restored to a separate instance. I like this idea better because:

1. It is something that could maintained from one version of Origin to the next
2. It is useful not only for upgrades, but for moving apps around in hybrid-/multi- cloud implementations

So, with these two avenues open to us, the only thing either of these ideas is waiting on is resources. If you are a developer and you are interested in contributing to either of these efforts, contact me here, or via e-mail, or on IRC. As Origin tech lead I will be happy to advise on utility designs, and also happy to coordinate folks if enough developers express an interest in helping out.

Probably more of an answer than you bargained for, Kevin :-) But this question has come up often so hopefully this information is helpful for everyone.

Cheers,
Harrison

>
>
> 2014-06-24 2:17 GMT+03:00 Kevin Tibi <kevintibi hotmail com>:
> Hi,
>
> i would like to upgrade my openshift origin. I work on V3 stable version (Dec 2013) with Centos 6.5 (1broker + 1 node). I can not find the procedure.
>
> Can you advise me the procedure?
>
> I already add the repo nightly and yum update give me :
>
>
> =============================================================================================================================================================================================================================================
>  Package                                                                       Arch                                 Version                                                        Repository                                           Size
> =============================================================================================================================================================================================================================================
> Updating:
>  facter                                                                        x86_64                               1.6.18-3.el6oso                                                openshift-origin-deps                                62 k
>  mongodb                                                                       x86_64                               2.4.6-3.el6oso                                                 openshift-origin-deps                                36 M
>  mongodb-server                                                                x86_64                               2.4.6-3.el6oso                                                 openshift-origin-deps                               5.2 M
>  openshift-origin-broker-util                                                  noarch                               1.26.0-1.git.58.5a59aed.el6                                    origin-base                                         108 k
>  openshift-origin-console                                                      noarch                               1.16.2-1.git.1328.758b838.el6                                  origin-base                                         905 k
>  openshift-origin-msg-common                                                   noarch                               1.20.1-1.git.0.910e86c.el6                                     origin-base                                         5.6 k
>  openshift-origin-util-scl                                                     noarch                               1.18.1-1.git.0.574600e.el6                                     origin-base                                         3.8 k
>  rhc                                                                           noarch                               1.27.0-1.git.2.16a4f0d.el6                                     origin-base                                         608 k
>  ruby193-libyaml                                                               x86_64                               0.1.4-5.1.el6                                                  openshift-origin-deps                                51 k
>  ruby193-mcollective-client                                                    noarch                               2.4.1-2.el6oso                                                 openshift-origin-deps                                11 k
>  ruby193-mcollective-common                                                    noarch                               2.4.1-2.el6oso                                                 openshift-origin-deps                               137 k
>  ruby193-mod_passenger                                                         x86_64                               3.0.21-3.el6oso                                                openshift-origin-deps                               215 k
>  ruby193-ruby                                                                  x86_64                               1.9.3.448-40.1.el6                                             openshift-origin-deps                                61 k
>  ruby193-ruby-irb                                                              noarch                               1.9.3.448-40.1.el6                                             openshift-origin-deps                                74 k
>  ruby193-ruby-libs                                                             x86_64                               1.9.3.448-40.1.el6                                             openshift-origin-deps                               2.6 M
>  ruby193-rubygem-actionpack                                                    noarch                               1:3.2.8-5.3.el6                                                openshift-origin-deps                               283 k
>  ruby193-rubygem-bigdecimal                                                    x86_64                               1.1.0-40.1.el6                                                 openshift-origin-deps                                70 k
>  ruby193-rubygem-io-console                                                    x86_64                               0.3-40.1.el6                                                   openshift-origin-deps                                44 k
>  ruby193-rubygem-jquery-rails                                                  noarch                               3.1.0-1.el6oso                                                 openshift-origin-deps                               174 k
>  ruby193-rubygem-moped                                                         noarch                               1.5.1-1.el6oso                                                 openshift-origin-deps                                45 k
>  ruby193-rubygem-passenger                                                     x86_64                               3.0.21-3.el6oso                                                openshift-origin-deps                               143 k
>  ruby193-rubygem-passenger-native                                              x86_64                               3.0.21-3.el6oso                                                openshift-origin-deps                               506 k
>  ruby193-rubygem-passenger-native-libs                                         x86_64                               3.0.21-3.el6oso                                                openshift-origin-deps                                12 k
>  ruby193-rubygem-rake                                                          noarch                               0.9.2.2-40.1.el6                                               openshift-origin-deps                                79 k
>  ruby193-rubygem-state_machine                                                 noarch                               1.1.2-9.el6oso                                                 openshift-origin-deps                               456 k
>  ruby193-rubygem-stomp                                                         noarch                               1.2.14-1.el6oso                                                openshift-origin-deps                                38 k
>  ruby193-runtime                                                               x86_64                               1-11.el6                                                       openshift-origin-deps                               1.0 M
>  rubygem-openshift-origin-admin-console                                        noarch                               1.23.0-1.git.151.5a59aed.el6                                   origin-base                                         362 k
>  rubygem-openshift-origin-auth-remote-user                                     noarch                               1.21.1-1.git.0.d2ee279.el6                                     origin-base                                         194 k
>  rubygem-openshift-origin-common                                               noarch                               1.26.0-1.git.95.5a59aed.el6                                    origin-base                                          47 k
>  rubygem-openshift-origin-console                                              noarch                               1.27.0-1.git.5.5a59aed.el6                                     origin-base                                         4.8 M
>  rubygem-openshift-origin-controller                                           noarch                               1.27.0-1.git.60.5a59aed.el6                                    origin-base                                         663 k
>  rubygem-openshift-origin-dns-nsupdate                                         noarch                               1.16.2-1.git.1125.eb17ebf.el6                                  origin-base                                          24 k
>  rubygem-openshift-origin-msg-broker-mcollective                               noarch                               1.26.1-1.git.0.32c1271.el6                                     origin-base                                          94 k
> Installing for dependencies:
>  ruby193-rubygem-net-ldap                                                      noarch                               0.3.1-1.el6oso                                                 openshift-origin-deps                                49 k
>  ruby193-rubygem-net-scp                                                       noarch                               1.1.2-1.el6oso                                                 openshift-origin-deps                                44 k
>  ruby193-rubygem-net-ssh                                                       noarch                               2.7.0-1.el6oso                                                 openshift-origin-deps                                91 k
>  ruby193-rubygem-syslog-logger                                                 noarch                               1.6.8-1.el6oso                                                 openshift-origin-deps                               5.9 k
>  rubygem-net-scp                                                               noarch                               1.1.2-1.el6oso                                                 openshift-origin-deps                                47 k
>
> Transaction Summary
> =============================================================================================================================================================================================================================================
> Install       5 Package(s)
> Upgrade      34 Package(s)
>
> Can i update with yum on my broker and node ?
>
> Otherwise do you have a date for the next version of origin?
>
> Thx
> Kevin.
>
>
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
>
> _______________________________________________ users mailing list users lists openshift redhat com http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>
>
> _______________________________________________
> users mailing list
> users lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/users


_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]