-
Notifications
You must be signed in to change notification settings - Fork 5
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
[QA] Update to 10.11.0 kills primary S3 storage #582
Comments
@phil-davis @pmaier1 do you have suggestions how to handle this? In either case, we should communicate the situation and the available options well. |
Bit of a brain dump: This bit really needs thinking about. Quite a few apps actually have direct calls into the Guzzle library and code had to be edited. The existing versions of the apps have core max-version 10 - they claim that they will continue to "work" with any future version But I think it is too late for that now - there are apps in-the-wild that claim to work with all future Technically, and according to semver, the core release should probably be a major version - that means 11.0.0 - and as you say, that means every app would have to have a release to at least set max-version to 11 (and for some apps, min-version would also be 11.0.0). That is a significant downside to a major version number bump! |
It's probably a good thing to add more of the supported apps to the complete bundle anyway - so that would help some cases in the future. Maybe the online updater can be enhanced so that, when processing a core update, it also looks through the apps that are present in the installation (whether enable or disabled, doesn't much matter), and also updates all the apps to the latest version of each app that is compatible with the core version. Is there any reason that an algorithm to do that successfully can't be designed? |
Thanks, Phil. I understand that the right way to do it would be ownCloud 11. I'd really like to save the effort of releasing all apps now. Do we have other options? |
|
It already defaults to It was added here: https://github.com/owncloud/core/pull/28812/files I suspect that there is a catch-22 for installations with files_primary_s3 which is enabled as the "real" storage. After putting the 10.11.0 core code in place, access to user's storage is broken, because the old files_primary_s3 app code is still there. I wonder if we could make a version of files_primary_s3 code that detects which Guzzle is available in core, and makes the appropriate Guzzle calls. Then we could release that for 10.10 and people could update to that first. Then update core to 10.11. |
@jnweiger IMO that works - see PR #583 Can some devs review that please @janackermann @JammingBen @jvillafanez maybe? to see if I missed anything obvious. |
@jnweiger please make a new release v2.0.0-rc.2 that has the latest files_primary_s3 master code after PR #583 was merged.
If it's possible/easy also try starting from oC10.9, make sure that the rc.2 works with core oC10.9. I suspect that there will be various sites that go from earlier oC10.9 10.8 ... and upgrade straight to 10.11 |
Actually, I think that we can call this next files_primary_s3 release 1.3.0 - it will work with oC10.10 (and before) and oC10.11 (and after). So maybe there is no need to bump the major version number. |
https://github.com/owncloud/files_primary_s3/releases/tag/v2.0.0-rc.2 ready for some testing tomorrow morning. |
@kiranadh1452 please test some upgrade paths, like: Start with core oC10.9 and files_primary_s3 at the version 1.2.0 tag https://github.com/owncloud/files_primary_s3/releases/tag/v1.2.0 It will be fine for now to just use the cloned git repos, that will confirm that the code is working. Testing with tarballs can be done after release candidates are published. We want to get confidence that the current files_primary_s3 master code works with multiple oC10 previous releases and the current master code. That will make the release and upgrade workflows much nicer. |
core: v10.9
core: v10.9
core: v10.10
core: latest(master)
|
@jnweiger IMO this is solved by the current code in files_primary_s3 master. @kiranadh1452 has verified above. Please try making a new RC tarball, and try it yourself. If it works, then we can move forward to make a new release of files_primary_s3 that should be published before we release core 10.11 |
I've tested files_primary_s3 1.3.0-rc.2 with core 10.8, 10.9.1, 10.10.0, and 10.11.0-alpha.2 Updates tested
Odd observation:
|
https://www.php.net/manual/en/function.version-compare.php The problem/challenge/feature is that 10.11.0-alpha is considered to be before 10.11.0 (which it is actually, in the release process). I had not thought about that before. But core min-version was set to "10.11", and PHP version_compare is happy that 10.11.0-alpha.2 is greater than 10.11. Maybe the marketplace code is automagically adding ".0" to "10.11" before doing version_compare - that would cause an issue. I will have a look... Update: I don't easily see where this is going wrong, but I can't get the marketplace to return me any newer version of files_primary_s3. I locally changed my core to 10.11.1 and then: Now I am not sure what is really on the marketplace, so maybe I can't debug this anyway. |
Ah, sorry, the public marketplace does not have it. I did all the tests on marketplace.staging.owncloud.services instead. |
Seen with files_primary-2.0.0-rc.1 and owncloud core 10.11.0-alpha.1
files_primary_s3 2.0.0-rc.1 cannot be installed on 10.10.0 - OK (intended min-version=10.11)
files_primary_s3 2.0.0-rc.1 runs fine on 10.11.0-alpha.1 - OK
files_primary_s3 1.2.0 runs fine on 10.10.0. - OK
files_primary_s3 1.2.0 explodes on 10.11.0-alpha.1 with internal server error. - BAD
( both fresh install 10.11.0-alpha.1 and update from 10.10.0 to 10.11.0 - update details see below )
Web Interface cannot log in. Internal server error. The log has:
This will happen to all installations using files_primary_s3, when we push 10.11.0 to the online updater:
Background:
version. Both core and apps must be upgraded simultaneously to avoid this incompatibility.
Update guzzle major version from 5 to 7 core#39387
Expected behaviour
'This version of ownCloud requires files_primary_s3 version 2.0.0 - please upgrade this app.'
Manual workaround:
Improvement ideas:
automatially. This could be easily scaled to include more apps with the same problem.
max-version=10
- this could be used as a technical solution, if we call the upcoming server release owncloud 11.0.0 instead of 10.11.0Downside: all apps must be re-released with max-version=11. (My least favorite idea.)
The text was updated successfully, but these errors were encountered: