Skip to content
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

require osds are hammer v0.94.4 or later before upgrading past hammer #5686

Merged
merged 3 commits into from Sep 13, 2015

Conversation

liewegas
Copy link
Member

No description provided.

This is to constrain upgrades past hammer to version that include
the appropriate compatibility fixes (e.g., hobject_t encoding).

Signed-off-by: Sage Weil <sage@redhat.com>
- Do not allow post-hammer OSDs to start if the running hammer is
not a new enough hammer.
- Do not allow pre-hammer or old hammer OSDs to start once
post-hammer OSDs are in the cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
…nning

Old OSDs don't understand us.

This is useful if the osd is upgraded before the mons.

Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas added this to the infernalis milestone Aug 27, 2015
@liewegas liewegas added the core label Aug 27, 2015
@liewegas
Copy link
Member Author

see also #5687

@liewegas
Copy link
Member Author

passed wip-sage-testing

@ghost
Copy link

ghost commented Sep 1, 2015

@liewegas would you like me to write a hammer-x test that verifies this ?

@liewegas
Copy link
Member Author

@dachary that would be awesome

@ghost ghost self-assigned this Sep 10, 2015
@ghost
Copy link

ghost commented Sep 11, 2015

building liewegas-wip-hammer-feature in the gitbuilders

@ghost
Copy link

ghost commented Sep 11, 2015

teuthology-openstack --throttle 2 --verbose --key-name myself --key-filename ~/Downloads/myself --suite-branch wip-13026-hammer-stop --ceph liewegas-wip-hammer-feature --suite upgrade/hammer-x/v0-94-4-stop

fail http://167.114.248.72:8081/ubuntu-2015-09-11_15:37:48-upgrade:hammer-x:v0-94-4-stop-liewegas-wip-hammer-feature---basic-openstack/2/

If I read the logs correctly, the >= v0.94.4 OSD restarts despite two other OSDs being < v0.94.4. The teuthology test is at https://github.com/ceph/ceph-qa-suite/pull/560/files

@liewegas
Copy link
Member Author

On Fri, 11 Sep 2015, Loic Dachary wrote:

teuthology-openstack --throttle 2 --verbose --key-name myself --key-filename ~/Downloads/myself --suite-branch wip-13026-hammer-stop --ceph liewe
gas-wip-hammer-feature --suite upgrade/hammer-x/v0-94-4-stop

fail http://167.114.248.72:8081/ubuntu-2015-09-11_15:37:48-upgrade:hammer-x:v0-94-4-stop-liewegas-wip-hammer-feature---basic-openstack/2/

If I read the logs correctly, the >= v0.94.4 OSD restarts despite two other OSDs being < v0.94.4. The teuthology test is at
https://github.com/ceph/ceph-qa-suite/pull/560/files

That's okay.. you just can't upgrade to infernalis if osds are < 0.94.4...

@ghost
Copy link

ghost commented Sep 11, 2015

That's okay.. you just can't upgrade to infernalis if osds are < 0.94.4...

But that's what I read : the infernalis (9.0.3 +) OSD starts and joins the cluster which has an infernalis mon despite the two 0.94.3 OSDs running. Unless I'm misreading the logs ?

@ghost
Copy link

ghost commented Sep 11, 2015

I should add a test for liewegas@38465f0 though. I believe the current test only covers liewegas@f668c6c

@ghost
Copy link

ghost commented Sep 11, 2015

Oh, I think I understand what I'm getting wrong

@ghost
Copy link

ghost commented Sep 12, 2015

https://github.com/ceph/ceph-qa-suite/pull/560/files passes with this pull request:

teuthology-openstack --throttle 2 --verbose --key-name myself --key-filename ~/Downloads/myself --suite-branch wip-13026-hammer-stop --ceph liewegas-wip-hammer-feature --suite upgrade/hammer-x/v0-94-4-stop

@ghost ghost assigned liewegas and unassigned ghost Sep 13, 2015
@ghost
Copy link

ghost commented Sep 13, 2015

Not merging because it has the wip-sage-testing label.

Reviewed-by: Loic Dachary <ldachary@redhat.com>

once it's merged I'll write a test for #5687 as well.

liewegas added a commit that referenced this pull request Sep 13, 2015
require osds are hammer v0.94.4 or later before upgrading past hammer

Reviewed-by: Loic Dachary <ldachary@redhat.com>
@liewegas liewegas merged commit e73ac66 into ceph:master Sep 13, 2015
@liewegas liewegas deleted the wip-hammer-feature branch September 13, 2015 11:41
@liewegas
Copy link
Member Author

wip-sage-testing is fine, was just making sure i hadn't broken something stupid. Merged them both. We should manually (or automatically?) verify that this prevents what it's supposed to...

@ghost
Copy link

ghost commented Sep 13, 2015

We should manually (or automatically?) verify that this prevents what it's supposed to...

Once https://github.com/ceph/ceph-qa-suite/pull/560/files is merged it will automatically verify that it does what it's supposed to for the master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants