After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782810 - gitlab.gnome.org api is not avaliable
gitlab.gnome.org api is not avaliable
Status: RESOLVED INVALID
Product: sysadmin
Classification: Infrastructure
Component: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2017-05-18 21:44 UTC by Alberto Fanjul
Modified: 2017-05-19 09:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alberto Fanjul 2017-05-18 21:44:52 UTC
There is a tool to automate export from bugzilla/import to gitlab created by Alberto Ruiz

https://gitlab.com/aruiz/gitlab-gnome-tools

It is based on a project that uses gitlab api to create issues. but using against gitlab.gnome.org fails:

$ bztogl.py --target gitlab --token blablabla --product gnome-todo --bz-user albertofanjul@gmail.com --bz-password blablabla --target-product albfan/gnome-todo
Connecting to https://gitlab.gnome.org/
Traceback (most recent call last):
  • File "/home/alberto/bin/bz2gl", line 181 in <module>
    main()
  • File "/home/alberto/bin/bz2gl", line 163 in main
    target.connect()
  • File "/home/alberto/bin/bz2gl", line 49 in connect
    self.id = self.gl.projects.get(self.target_product).id
  • File "/usr/local/lib/python2.7/dist-packages/gitlab/objects.py", line 104 in get
    return self.obj_cls.get(self.gitlab, id, **args)
  • File "/usr/local/lib/python2.7/dist-packages/gitlab/objects.py", line 279 in get
    return cls(gl, id, **kwargs)
  • File "/usr/local/lib/python2.7/dist-packages/gitlab/objects.py", line 388 in __init__
    data = self.gitlab.get(self.__class__, data, **kwargs)
  • File "/usr/local/lib/python2.7/dist-packages/gitlab/__init__.py", line 437 in get
    raise_error_from_response(r, GitlabGetError)
  • File "/usr/local/lib/python2.7/dist-packages/gitlab/exceptions.py", line 188 in raise_error_from_response
    response_body=response.content)
gitlab.exceptions.GitlabGetError: 404: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /api/v3/projects/albfan/gnome-todo was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Red Hat) Server at gitlab.gnome.org Port 443</address>
</body></html>

Same command against gitlab.com work correctly
Comment 1 Alberto Fanjul 2017-05-19 09:42:41 UTC
gitlab.gnome.org us3 v4 api