#6875 Modernize libravatar and deploy a test cloud instance
Closed: Fixed 5 years ago Opened 5 years ago by clime.

  • Describe what you need us to do:

Libravatar is shutting down but I think the service should be continued given the integration it has (Fedora, Debian, Mozilla, Linux kernel, Gitlab, Liberapay and many others). So it would be nice to modernize it and deploy and initial instance in the cloud to see if it can be maintained.

  • When do you need this? (YYYY/MM/DD)
    2018/09/01

  • When is this no longer needed or useful? (YYYY/MM/DD)
    2019/01/01

  • If we cannot complete your request, what is the impact?
    Not much but some services we have (like Bodhi, COPR) will no longer be displaying avatars for their users.


Metadata Update from @kevin:
- Issue assigned to clime
- Issue priority set to: Waiting on Asignee (was: Needs Review)
- Issue tagged with: request-for-resources

5 years ago

I am all for porting this to a modern version of python and helping in anyway I can.

VMs, code, you name it. This is important to myself and many others and I think the best way this can survive is to first modernize the code base.

@clime feel free to ping me on IRC or shoot me an email sadin@fpo

So, where is location for the code to send PRs?

Hello, I was contacted by Oliver Falk who has actually taken it somewhere already. Modernized libravatar (https://git.linux-kernel.at/oliver/ivatar) and deployed a test openshift instance here: http://ivatar-ivatar.1d35.starter-us-east-1.openshiftapps.com/. He asked me we could set it up in our Openshift. Would it be possible?

If there are any questions, I'm subscribed to this issue now; So please don't hesitate to get in contact with me.

On 06/15/2018 02:44 AM, clime wrote:

He asked me we could set it up in our Openshift. Would it be possible?

I imagine that it probably needs some kind of persistent storage for the
images. Do we have a solution for that in our OpenShift yet?

He asked me we could set it up in our Openshift. Would it be possible?

Possible most likely, but is that for testing purposes or something long term?

He asked me we could set it up in our Openshift. Would it be possible?

Possible most likely, but is that for testing purposes or something long term?

Well, not sure but I would probly say the question was if we can setup something rather long-term.

He asked me we could set it up in our Openshift. Would it be possible?
Possible most likely, but is that for testing purposes or something long term?

Well, not sure but I would probly say the question was if we can setup something rather long-term.

Actually, the original Oliver's question from the email is:

I wonder if there is a chance this gets sponsored by Red Hat or you have the posibility to host it on OpenShift and allow me access!?

Hey there.
Currently the setup is a bit different from the old/original version. I do store the images in the database and resize them on-the-fly (since computers are faster these days than there were when the software was originally developed :-) ).
What needs persistent storage is the MariaDB database instance. The frontend servers can be scaled and are stateless, but I don't think more than one is required (initially).

Short additional note: The original idea of having the images in the file system also had the benefit, that one could easily mirror everything on another host (eg. using rsync). I've chosen not to do this any longer, since nobody wanted to mirror the old service and I'm pretty sure the same will apply to the new service.

ok, is there any chance it could support postgresql? Or it's tied to mariadb?

ok, is there any chance it could support postgresql? Or it's tied to mariadb?

PostgreSQL db backend is now supported.

As Michal suggested (by mail), can someone please grant me tenant access to Fedora OpenShift, where libravatar/ivatar will be running?

Thats not how our openshift is setup. We use ansible to deploy apps... see:

https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/playbooks/openshift-apps
and
https://infrastructure.fedoraproject.org/cgit/ansible.git/tree/roles/openshift

We hope to have a dev openshift instance soon where we can just grant people access and they can play with their apps as they like, but it's still not in place. If you would like to take a stab at staging ansible setup we could give that a try.

Would this provide service for all current users of libravatar or just Fedora?

For all of course! It‘s still a free/open and federated service, public available to everyone!

@kevin I guessed so. :-(
We‘ll let‘s see how I can access it at the end; Esp. For debugging purposes if something fails.

Instead of the "staging" openshift, we can always fallback to fedorainfracloud, I think. I would like to give the OpenShift a shot though.

For all of course! It‘s still a free/open and federated service, public available to everyone!

+1! Let's get this written up in a bunch of places. I know it sounds silly, but should we do some stickers of libravatar powered by Fedora? (@mattdm)

A fresh logo would be awesome. Stickers are welcome.
I‘m currently on holiday with bad internet (and not really time). So if someone wants to write it to some places, feel free.

@oliver let's wait for you to get back from vacation and then if you like the idea, open a ticket with Fedora Design.

@bex Back from 'holiday' (actually scouts camp with lots of kidz). Where should we continue?

I've deployed http://209.132.184.138/ in fedorainfracloud.org. So that can be potentially used for running the instance. The deployment is based on httpd+mod_wsgi+virtualenv+PosgreSQL. I've created 500GB persistent volume for the DB. I think this option is maybe more suitable for running new libravatar given that the current Fedora OpenShift is only "staging"? I would like to have a look at that option as well, however, even to just see that fedorainfracloud.org is more suitable. What do you think?

@bex Back from 'holiday' (actually scouts camp with lots of kidz). Where should we continue?

I suggest you open a ticket with Fedora Design https://pagure.io/design/issues and see if they can help us with the logo design for the new project. I suspect hosting and other issues are well taken care of by Fedora Infra, but if not we can talk to OSAS. Lastly, if Fedora design can't help us (resource constraints), OSAS may have a designer who can help.

To be clear we do have production and staging openshift clusters. I was just suggesting we start by deploying to staging, and only after everything was working move to production.

A cloud instance is fine with me for now as well however, perhaps we use that for now, and move to openshift after everything is working smoothly?

Is there going to be a handoff of the old data/domain? Or we are starting afresh?

Thanks for working on this @clime and @oliver !

Shall we keep this open until we have a viable working install? Or shall we close it and you can just open further tickets for any further resources you need?

I would like to try to deploy the OpenShift staging instance as well just to try the technology out and then probably let everyone else decide what's preferred. Would it be possible?

It would maybe be good if we have some open ticket that keeps track of libravatar until we have a new stable instance deployed somewhere given that some Fedora services use the service. I think it can be this one but it could also be a new one.

As for the domain, there is a plan to keep the old libravatar running a bit longer on a temporary VM. The hand-off of the old domain and data needs to be discussed. Right now, the author of original libravatar (and the domain owner) decided to run libravatar a little bit longer on a new VM so that there is enough time for the transfer to Oliver's platform.

@clime We can eventually create staging instance, but the standard RFR process lists a few requirements that must be fulfilled first.

FYI: https://blog.libravatar.org/posts/Libravatar.org_is_not_going_away/

Thank you for posting this.

It means services using libravatar in Fedora can chill.

Therefore, this issue can be closed. I will try to open a new one for libravatar in Fedora OpenShift.

I suggest you open a ticket with Fedora Design https://pagure.io/design/issues
and see if they can help us with the logo design for the new project. [ ... ]

Here we go: https://pagure.io/design/issue/613

Thanks for working on this @clime and @oliver !

My pleasure working with you guys on this!
Having some showcase OpenShift app, serving real purpose is good for all of us!

Thanks everyone! I'll take a look at the openshift ticket (Althought it may be after next week since I will be at flock).

:bust_in_silhouette:

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

5 years ago

Login to comment on this ticket.

Metadata