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

Standalone Ceph Ansible role repositories have been deleted #3508

Closed
dmsimard opened this issue Jan 16, 2019 · 13 comments
Closed

Standalone Ceph Ansible role repositories have been deleted #3508

dmsimard opened this issue Jan 16, 2019 · 13 comments
Labels

Comments

@dmsimard
Copy link

The OpenStack-Ansible project has been relying on standalone ceph Ansible role repositories for deployments on stable releases of OpenStack (< Queens) while newer releases have been using ceph-ansible exclusively.

See: https://github.com/openstack/openstack-ansible/blob/f4c7cd442cedf723792ec4c01dd64c041129c0f8/ansible-role-requirements.yml#L181-L204

Removing these repositories all of a sudden is impacting CI jobs and deployments.

Is it possible to bring those repositories back while we work out what's the right way forward ? Thanks.

cc @leseb @guits @alfredodeza

@leseb
Copy link
Member

leseb commented Jan 18, 2019

Hey @dmsimard,

Sorry about that, a couple of months ago I marked these repos as deprecated in the galaxy. Last day when doing some cleaning on the Ceph org I removed these repositories.

However, everything is still present here: https://galaxy.ansible.com/ceph/ceph_ansible
You still have all the tags with the right content, so we haven't lost anything.

I believe you can recover from there.
Thanks.

@robled
Copy link

robled commented Jan 22, 2019

Is it still possible to install the ceph roles via the ansible-galaxy command? I'm not using mazer since it's tech-preview only at the moment.

@odyssey4me
Copy link

odyssey4me commented Jan 22, 2019

@robled I spent some time trying to make it work today, and it doesn't. Even if you provide the git source to ansible-galaxy, it does not just clone the repo - it modifies it, rendering an unusable role folder as a result.

@leseb
Copy link
Member

leseb commented Jan 30, 2019

@odyssey4me did you try with mazer?

@robled
Copy link

robled commented Jan 30, 2019

mazer is a no-go for me, due to this:

Mazer is experimental, and currently only available for tech-preview. Use with lots of caution! It is not intended for use in production environments, nor is it currently intended to replace the ansible-galaxy command-line tool.

Restoring ansible-galaxy support would help those who would like to use ceph-ansible in production.

@odyssey4me
Copy link

@leseb I did not. We now just git clone down the combined repo and add the path of that clone to the role paths. We've been doing that for newer builds anyway, but the old galaxy roles were still being used for old (stable) environments which had not made the switch.

@seronline
Copy link

@odyssey4me Could you please elaborate what repo you are cloning (assume https://github.com/ceph/ceph-ansible) and where you are making changes to the role paths? I'm stuck with deploying OS Ocata at this particular step (other repos have also slightly changed which I managed to fix myself)

@odyssey4me
Copy link

@seronline We use a playbook to clone down the ceph-ansible repo as specified in our ansible-role-requirements.yml file and then have the library path, action plugin path, callback plugin path, and role path set appropriately. Each of those can be set via env vars as we do, or in ansible.cfg depending on what you prefer.

@seronline
Copy link

@odyssey4me thanks for the quick and detailed response. My fear is though that OS Ansible for Ocata requires cepth version 2.2.9, as configured in my ansible-role-requirements.yml. I created a new ceph-ansible repository on my private git with version 2.2.9 which was obtained via mazer first:

~/$ mazer install ceph.ceph_ansible,2.2.9

The repo can be found here https://github.com/seronline/ceph-ansible

Going to go through the steps described in your comment and will report if it worked. If successful, I'll try to feed this back to the OpenStack Ansible group (given that Ocata is still stable and used by folks out there).

@odyssey4me
Copy link

@seronline OSA implemented changes to use the new repo correctly - if you just update your checkout, then you should be able to run a normal minor upgrade procedure for OSA.

@seronline
Copy link

@odyssey4me When checking out OSA 15.1.28 this fix does not exist: https://github.com/openstack/openstack-ansible/blob/15.1.28/ansible-role-requirements.yml and the Ocata documentation mentions that this particular release is required for Ocata to run. So cloning the latest and reverting (not upgrading) back to 15.1.28 doesn't quite help. Anyway, I managed to overcome the issue thanks to your help!

@odyssey4me
Copy link

@seronline Yes, it won't be in the last release because Ocata is in extended maintenance - meaning that there are no more releases. You'll have to use the SHA or just use the head of the branch. I would recommend that you upgrade to pike ASAP - and, in fact, upgrade through Queens to Rocky too!

@stale
Copy link

stale bot commented Oct 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 1, 2019
@stale stale bot closed this as completed Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants