#8237 Please move all pagure projects from fedora-l10n/* to fedora-docs-l10n/*
Closed: Fixed 7 months ago by jibecfed. Opened a year ago by jibecfed.

Hello,

with @asamalik , we created a proof of concept of our documentation internationalization.
For multiple reasons, it requires quite a lot of git repositories, one per Antora component.

When I started this, I never though we'll have 37! https://pagure.io/projects/fedora-l10n/%2A
I took a too generic group name, and would like to change it before making this going to production.

Can you please rename the group "fedora-l10n" to "fedora-docs-l10n"?
There basically is no user of these repository besides Adam and I.

thanks for your help


Metadata Update from @bowlofeggs:
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: pagure

a year ago

Metadata Update from @pingou:
- Issue assigned to pingou

a year ago

This involves:
- Updating the namespace in the database
- Moving all the underlying git repos (sources, docs, tickets, requests)

There will be no redirection from the old location to the new one, neither in the web UI nor in the git, so all the clones will need to be either, re-cloned or have their .git/config file adjusted.

Could you confirm you're fine with this? @jibecfed @asamalik

Thanks :)

Le 2019-09-24 10:20, Pierre-YvesChibon a écrit :

Could you confirm you're fine with this? @jibecfed @asamalik

That's fine yes, thanks a lot for your help!

Hello, when do you feel like this action can be done?
It is a blocker task for documentation internationalization and the new tr=
anslations platform, because we'll use theses as a demonstration project=2E
Sorry I did not use the right structure from the beginning=2E=2E=2E

Don't hesitate to teach me how to move them manually if this is too time c=
onsuming for you!

@jibecfed sorry for the long delay here, if I tackle this ticket tomorrow, would it be fine for you?

Well, whenever you can is fine! <3

Ok, so we have 40 projects to move:

pagure=# select id, namespace, name, parent_id, is_fork, user_id from projects where namespace='fedora-l10n';
  id  |  namespace  |                name                | parent_id | is_fork | user_id 
------+-------------+------------------------------------+-----------+---------+---------
 5924 | fedora-l10n | project                            |           | f       |     443
 4985 | fedora-l10n | docs                               |           | f       |      30
 5914 | fedora-l10n | council                            |           | f       |     443
 6845 | fedora-l10n | qa-docs                            |           | f       |     443
 6683 | fedora-l10n | fedora-coreos                      |           | f       |     443
 6686 | fedora-l10n | websites                           |           | f       |     443
 6685 | fedora-l10n | cpe                                |           | f       |     443
 6684 | fedora-l10n | rawhide-gating                     |           | f       |     443
 6682 | fedora-l10n | minimization                       |           | f       |     443
 6681 | fedora-l10n | fedora-magazine                    |           | f       |     443
 6680 | fedora-l10n | project-dashboard                  |           | f       |     443
 6187 | fedora-l10n | taiga-docs-taiga                   |           | f       |     443
 5925 | fedora-l10n | remix-building                     |           | f       |     443
 5903 | fedora-l10n | quick-docs                         |           | f       |     443
 5923 | fedora-l10n | packaging-guidelines               |           | f       |     443
 6040 | fedora-l10n | neurofedora                        |           | f       |     443
 5921 | fedora-l10n | mindshare-committee                |           | f       |     443
 5901 | fedora-l10n | mindshare                          |           | f       |     443
 5904 | fedora-l10n | mentored-projects                  |           | f       |     443
 5920 | fedora-l10n | java-packaging-howto               |           | f       |     443
 5919 | fedora-l10n | iot                                |           | f       |     443
 5918 | fedora-l10n | flatpak                            |           | f       |     443
 5917 | fedora-l10n | fesco                              |           | f       |     443
 5902 | fedora-l10n | fedora-system-administrators-guide |           | f       |     443
 5916 | fedora-l10n | fedora-silverblue                  |           | f       |     443
 4983 | fedora-l10n | fedora-install-guide               |           | f       |      30
 6052 | fedora-l10n | fedora-docs-contributing           |           | f       |     443
 5028 | fedora-l10n | fedora                             |           | f       |      30
 5899 | fedora-l10n | engineering                        |           | f       |     443
 5915 | fedora-l10n | diversity-inclusion                |           | f       |     443
 5910 | fedora-l10n | badges                             |           | f       |     443
 6032 | fedora-l10n | fedora-docs                        |           | f       |     443
 5926 | fedora-l10n | teleirc-sig                        |           | f       |     443
 5922 | fedora-l10n | modularity                         |           | f       |     443
 5913 | fedora-l10n | containers                         |           | f       |     443
 5912 | fedora-l10n | commops                            |           | f       |     443
 5911 | fedora-l10n | ci                                 |           | f       |     443
 5828 | fedora-l10n | fedora                             |      5028 | t       |    2275
 5812 | fedora-l10n | docs                               |      4985 | t       |    2275
 4984 | fedora-l10n | fedora-release-notes               |           | f       |      30
(40 rows)

38 main projects, 2 forks.

Moved the git repo on disk:

# cp -r /srv/git/repositories/fedora-l10n/ /srv/git/repositories/fedora-docs-l10n/
# cp -r /srv/git/repositories/tickets/fedora-l10n/ /srv/git/repositories/tickets/fedora-docs-l10n/
# cp -r /srv/git/repositories/requests/fedora-l10n/ /srv/git/repositories/requests/fedora-docs-l10n/
# cp -r /srv/git/repositories/docs/fedora-l10n/ /srv/git/repositories/docs/fedora-docs-l10n/
# cp -r /srv/git/repositories/forks/peartown/fedora-l10n/ /srv/git/repositories/forks/peartown/fedora-docs-l10n/

(The two forks are from the same user as we saw in the sql above).

Updated the database:

pagure=# UPDATE projects SET namespace='fedora-docs-l10n' WHERE namespace='fedora-l10n';
UPDATE 40

Moved the old repo for a temporary backup

mkdir fedora-l10n
mv /srv/git/repositories/fedora-l10n/ fedora-l10n/sources
mv /srv/git/repositories/tickets/fedora-l10n/  fedora-l10n/tickets
mv /srv/git/repositories/requests/fedora-l10n/ fedora-l10n/requests
mv /srv/git/repositories/docs/fedora-l10n/ fedora-l10n/docs
mv /srv/git/repositories/forks/peartown/fedora-l10n/ fedora-l10n/forks_peartown

https://pagure.io/projects/fedora-l10n/%2A lists 0 projects
https://pagure.io/projects/fedora-docs-l10n/* lists 38 projects

I've checked a couple and they seem to be working fine.

Let us know if you see anything that is misbehaving.

I'll wait a couple of day and delete the backups if I don't hear from you :)

Sorry for the waiting and thanks for your patience with this request.

PS: just a reminder that you will have to either re-clone your local git repo or adjust the url in the .git/config file.
@peartown this will also impact you since you're the only one who has forked some of these repos.

Or use git remote set-url origin newurl

Thanks, I assume the group also requires renaming
https://pagure.io/group/fedora-l10n

sure, I'll get right on it :)

pagure=# update pagure_group set group_name='fedora-docs-l10n' where group_name='fedora-l10n';
UPDATE 1

Done :)

Thank you @pingou for the notice. I haven't used the forks since I was told a web translation platform should be used. So, please, regard the forks as unused, not needed any more.

Since no-one reported any issue, let's close this ticket :)

Feel free to re-open it or open a new one we can help in anyway.

Thanks for your patience and sorry it took so long to get to it :(

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

8 months ago

Metadata Update from @jibecfed:
- Issue status updated to: Open (was: Closed)

7 months ago

Hello, I feel like a last step looks missing, which looks like to be related to the filesystem.

When I tried to add a new project in this namespace:

Your task failed: failed to make directory '/srv/git/repositories/fedora-docs-l10n/program_management.git': Permission denied

when I try to push content:

remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
error: le dépaquetage a échoué : unpack-objects abnormal exit
To ssh://pagure.io/fedora-docs-l10n/java-packaging-howto.git
! [remote rejected] master -> master (unpacker error)
error: impossible de pousser des références vers 'ssh://git@pagure.io/fedora-docs-l10n/java-packaging-howto.git'

There was indeed a permission mis-configuration server side.

Could you try again now?

Push content on existing repository now works fine, thanks.

But creating new repository sill raise:

Your task failed: failed to make directory '/srv/git/repositories/requests/fedora-docs-l10n/program_management.git': Permission denied

Doh! I should have realized this, it needed two more fixes

This should be good now :)

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

7 months ago

Login to comment on this ticket.

Metadata