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

Rolling Update : create ceph mgr keyring => "Error EINVAL: bad entity name" #2343

Closed
mistur opened this issue Jan 23, 2018 · 8 comments
Closed

Comments

@mistur
Copy link
Contributor

mistur commented Jan 23, 2018

Hello,

I'm doing rolling update tests from jewel to luminous and the playbook fails on "create ceph mgr keyring"

Ceph mgr keyring are created early during the update and, at this time, MONs are still running jewel version (even packages may have been upgraded, services have not been restarted yet) thus I guess, MONs don't know anything about MGR and the command failed

As soon as I restart the MONs in luminous, ceph mgr keyring are created without any issue.

ceph-ansible log :
rolling_update-mgr-error.log

ceph-ansible config for jewel deployement (ceph-ansible stable-2.2)
cluster-migration-jewel.zip

ceph-ansible config for luminous deployement (ceph-ansible stable-3.0)
cluster-migration-luminous.zip

Yoann

@mistur
Copy link
Contributor Author

mistur commented Jan 26, 2018

Hello,

Anyone available to give a look on this issue ? Thanks

Best regards,

Yoann

@leseb
Copy link
Member

leseb commented Jan 29, 2018

@leseb
Copy link
Member

leseb commented Jan 29, 2018

Since we point to the last item of the list, the previous mon should have been updated already. Thus the request should just work on any mon.

@mistur
Copy link
Contributor Author

mistur commented Jan 29, 2018

does " - inventory_hostname == groups[mon_group_name]|last" means mons daemon have been restarted ?

@mistur
Copy link
Contributor Author

mistur commented Jan 29, 2018

in this extract from my ansible-playbook log, after line 11, the playbook update ceph package to luminous, at line 358 [ceph-mon : start the monitor service] just checks if mons is started but does not restarted daemon, then at line 422, [ceph-mon : create ceph mgr keyring(s) when mon is not containerized] try to create mgr key. In this case, I restarted mons manually before, so there were no error.

mgr_error.log

@mistur
Copy link
Contributor Author

mistur commented Jan 30, 2018

You can find here the full log with -vvv with the bug :
rolling_update-mgr-error2.log.txt

mistur added a commit to mistur/ceph-ansible that referenced this issue Jan 30, 2018
    this should avoid bugs on ceph mgr keyring creation
    ceph#2343
@mistur
Copy link
Contributor Author

mistur commented Jan 30, 2018

something like that seems to fixe my issue :

mistur@bc9ae94

but I guess it may have side effect later, I don't know how to say to run the flush_handlers only in the case of rolling update

@mistur
Copy link
Contributor Author

mistur commented Feb 2, 2018

Hello,

I have migrated my cluster with --step option , I have restarted MONs after package upgrade and the playbook has ended without any issue.

Best regards,

Yoann

@mistur mistur closed this as completed Feb 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants