openstack-tox-pep8 consistently fails because it fails to install flake8

Bug #1996668 reported by Takashi Kajinami
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Critical
Takashi Kajinami

Bug Description

Description
===========
The openstack-tox-pep8 job is consistently failing with the following error in some repositories.
So far I'm aware this issue is observed in python-tripleoclient and tripleo-common.

```
[INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Initializing environment for https://gitlab.com/pycqa/flake8.git.
An unexpected error has occurred: CalledProcessError: command: ('/usr/bin/git', 'fetch', 'origin', '--tags')
return code: 128
expected return code: 0
stdout: (none)
stderr:
    fatal: could not read Username for 'https://gitlab.com': No such device or address
```

examples:
 https://zuul.opendev.org/t/openstack/build/1b6c9120e6d54d568bdffaf976d04893
 https://zuul.opendev.org/t/openstack/build/b2af2ddf409c4bd88933837eabc0b9d3

Manually running the tox command in my local, I found out that pre commit hook tries to install flake8 from Gitlab but the repository is no longer available there.
Because of that, Gitlab is asking authentication and results in the above message.

Changed in tripleo:
importance: Undecided → Critical
assignee: nobody → Takashi Kajinami (kajinamit)
Changed in tripleo:
status: New → In Progress
Revision history for this message
Takashi Kajinami (kajinamit) wrote :

Submitted the fixes for master: https://review.opendev.org/q/topic:bug%252F1996668

We likely need to backport it to older branches.

tags: added: ci
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to ansible-role-collect-logs (master)
Changed in tripleo:
milestone: none → antelope-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-validations (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to validations-libs (master)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to validations-common (master)
Revision history for this message
Marios Andreou (marios-b) wrote :

Adding for context as the change has been workflowed (no related-bug:) ... Arx fixed this issue for ansible-role-collect-logs with https://review.opendev.org/c/openstack/ansible-role-collect-logs/+/864399

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on ansible-role-collect-logs (master)

Change abandoned by "Takashi Kajinami <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/ansible-role-collect-logs/+/864633
Reason: this is done by https://review.opendev.org/c/openstack/ansible-role-collect-logs/+/864399

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-common/+/864686

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/c/openstack/tripleo-common/+/864689

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to validations-libs (stable/1.6)

Fix proposed to branch: stable/1.6
Review: https://review.opendev.org/c/openstack/validations-libs/+/864710

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to validations-common (stable/1.6)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/python-tripleoclient/+/864714

Revision history for this message
Jiri Podivin (jpodivin) wrote :

Backports proposed for affected projects with stable branches. In some cases we have to work with conflicts, as the there are some patches missing. But it's only a minor issue.

Otherwise we would have to backport a considerable number of other changes.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-ci (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
Committed: https://opendev.org/openstack/tripleo-ci/commit/59c2c842149ddcad2fd1ca4015e936d592e379f9
Submitter: "Zuul (22348)"
Branch: master

commit 59c2c842149ddcad2fd1ca4015e936d592e379f9
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 10:07:53 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    This also makes sure that functional jobs are skipped when pre commit
    config is changed, to avoid the failing job graph freeze when updating
    only .pre-commit-config.yaml.

    Closes-Bug: #1996668
    Change-Id: I79143651e432cb4a62dafdb94c839d0d782b4f9f

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to validations-common (master)

Reviewed: https://review.opendev.org/c/openstack/validations-common/+/864637
Committed: https://opendev.org/openstack/validations-common/commit/6759dde977ecb78ca33e8cea9dd1f0c715d6aae1
Submitter: "Zuul (22348)"
Branch: master

commit 6759dde977ecb78ca33e8cea9dd1f0c715d6aae1
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:11:16 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I774c163376ccbd7ce43be12386834a68e18c2bec

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-common (stable/zed)

Fix proposed to branch: stable/zed
Review: https://review.opendev.org/c/openstack/tripleo-common/+/864718

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/864635
Committed: https://opendev.org/openstack/tripleo-validations/commit/6dc57261eb67399dc72a852c9fd336df96f8ae98
Submitter: "Zuul (22348)"
Branch: master

commit 6dc57261eb67399dc72a852c9fd336df96f8ae98
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:09:24 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0735454daa5fc83ea37c278b98f22870d4dfa135

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (master)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/864601
Committed: https://opendev.org/openstack/tripleo-common/commit/0cb5354521ff5786824c431766e92da6f2ff1c5a
Submitter: "Zuul (22348)"
Branch: master

commit 0cb5354521ff5786824c431766e92da6f2ff1c5a
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 09:58:49 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0a30b9ae7ccc2d5faf67e78c1f2d04cea446cecc

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/864631
Committed: https://opendev.org/openstack/python-tripleoclient/commit/4429d31c862c3245edc050120458f9b1a70d7dd1
Submitter: "Zuul (22348)"
Branch: master

commit 4429d31c862c3245edc050120458f9b1a70d7dd1
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 10:49:08 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: Ia16711e0bc6683346963507a1d2dc8b093daca62

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/864718
Committed: https://opendev.org/openstack/tripleo-common/commit/d4504185e3d5103e0d32c0f9900d32af3ebd5eb5
Submitter: "Zuul (22348)"
Branch: stable/zed

commit d4504185e3d5103e0d32c0f9900d32af3ebd5eb5
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 09:58:49 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0a30b9ae7ccc2d5faf67e78c1f2d04cea446cecc
    (cherry picked from commit 0cb5354521ff5786824c431766e92da6f2ff1c5a)

tags: added: in-stable-zed
tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/864686
Committed: https://opendev.org/openstack/tripleo-common/commit/4bd4da429fb52f9afd106afb0b66be1ce4547de6
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 4bd4da429fb52f9afd106afb0b66be1ce4547de6
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 09:58:49 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0a30b9ae7ccc2d5faf67e78c1f2d04cea446cecc
    (cherry picked from commit 0cb5354521ff5786824c431766e92da6f2ff1c5a)
    (cherry picked from commit d4504185e3d5103e0d32c0f9900d32af3ebd5eb5)

tags: added: in-stable-train
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-common (stable/train)

Reviewed: https://review.opendev.org/c/openstack/tripleo-common/+/864689
Committed: https://opendev.org/openstack/tripleo-common/commit/1fe8eca11125c5eff2a78cf07c4ee97d22dfd7b5
Submitter: "Zuul (22348)"
Branch: stable/train

commit 1fe8eca11125c5eff2a78cf07c4ee97d22dfd7b5
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 09:58:49 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Conflicts:
            .pre-commit-config.yaml

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0a30b9ae7ccc2d5faf67e78c1f2d04cea446cecc
    (cherry picked from commit 0cb5354521ff5786824c431766e92da6f2ff1c5a)
    (cherry picked from commit d4504185e3d5103e0d32c0f9900d32af3ebd5eb5)
    (cherry picked from commit 4bd4da429fb52f9afd106afb0b66be1ce4547de6)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/864719
Committed: https://opendev.org/openstack/python-tripleoclient/commit/8b9c3b6bd96fdc452cfe62ad8235abd656796308
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 8b9c3b6bd96fdc452cfe62ad8235abd656796308
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 10:49:08 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: Ia16711e0bc6683346963507a1d2dc8b093daca62
    (cherry picked from commit 4429d31c862c3245edc050120458f9b1a70d7dd1)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/python-tripleoclient/+/864714
Committed: https://opendev.org/openstack/python-tripleoclient/commit/f898f3f50e8822c2fbe448aaee288622e85c0718
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit f898f3f50e8822c2fbe448aaee288622e85c0718
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 10:49:08 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: Ia16711e0bc6683346963507a1d2dc8b093daca62
    (cherry picked from commit 4429d31c862c3245edc050120458f9b1a70d7dd1)
    (cherry picked from commit 8b9c3b6bd96fdc452cfe62ad8235abd656796308)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to validations-libs (master)

Reviewed: https://review.opendev.org/c/openstack/validations-libs/+/864636
Committed: https://opendev.org/openstack/validations-libs/commit/0cd855c450f67b01e01275e0a7602d2fa3b1e9ab
Submitter: "Zuul (22348)"
Branch: master

commit 0cd855c450f67b01e01275e0a7602d2fa3b1e9ab
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:10:11 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    (@matbu: moving podman CI job to non-voting to unblock this patch)

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I5e50c0e9ffe2ab8cc527f2f2b4c887b09c5b1431

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to validations-libs (stable/1.6)

Reviewed: https://review.opendev.org/c/openstack/validations-libs/+/864710
Committed: https://opendev.org/openstack/validations-libs/commit/bdc2a5d3179e6bdc026a96be570d874fdc8e49fe
Submitter: "Zuul (22348)"
Branch: stable/1.6

commit bdc2a5d3179e6bdc026a96be570d874fdc8e49fe
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:10:11 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Conflicts:
            .zuul.yaml

    This backport does not contain the change in .zuul.yaml because
    the podman job does not exist in stable/1.6.

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I5e50c0e9ffe2ab8cc527f2f2b4c887b09c5b1431
    (cherry picked from commit 0cd855c450f67b01e01275e0a7602d2fa3b1e9ab)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to validations-common (stable/1.6)

Reviewed: https://review.opendev.org/c/openstack/validations-common/+/864711
Committed: https://opendev.org/openstack/validations-common/commit/a76f2c470d59183e4a145cfad093e9309ca5de6a
Submitter: "Zuul (22348)"
Branch: stable/1.6

commit a76f2c470d59183e4a145cfad093e9309ca5de6a
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:11:16 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I774c163376ccbd7ce43be12386834a68e18c2bec
    (cherry picked from commit 6759dde977ecb78ca33e8cea9dd1f0c715d6aae1)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-validations (stable/wallaby)

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/tripleo-validations/+/864983

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/864983
Committed: https://opendev.org/openstack/tripleo-validations/commit/0b6b0089f2819d7615c0975588373eb7ecb08b3a
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 0b6b0089f2819d7615c0975588373eb7ecb08b3a
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:09:24 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0735454daa5fc83ea37c278b98f22870d4dfa135
    (cherry picked from commit 6dc57261eb67399dc72a852c9fd336df96f8ae98)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-validations (stable/zed)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-validations (stable/zed)

Reviewed: https://review.opendev.org/c/openstack/tripleo-validations/+/865379
Committed: https://opendev.org/openstack/tripleo-validations/commit/2dbaaced1c97c043ff65e1cbb106b40a024731e6
Submitter: "Zuul (22348)"
Branch: stable/zed

commit 2dbaaced1c97c043ff65e1cbb106b40a024731e6
Author: Takashi Kajinami <email address hidden>
Date: Wed Nov 16 11:09:24 2022 +0900

    Pull flake8 from Github

    It seems flake8 is no longer available in Gitlab. This change switches
    the source from Gitlab to Github to avoid the following failure.

    fatal: could not read Username for 'https://gitlab.com': No such device
    or address

    Closes-Bug: #1996668
    Depends-on: https://review.opendev.org/c/openstack/tripleo-ci/+/864603
    Change-Id: I0735454daa5fc83ea37c278b98f22870d4dfa135
    (cherry picked from commit 6dc57261eb67399dc72a852c9fd336df96f8ae98)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 20.0.0

This issue was fixed in the openstack/python-tripleoclient 20.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common 18.0.0

This issue was fixed in the openstack/tripleo-common 18.0.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/validations-common 1.9.0

This issue was fixed in the openstack/validations-common 1.9.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/validations-libs 1.9.0

This issue was fixed in the openstack/validations-libs 1.9.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-common train-eol

This issue was fixed in the openstack/tripleo-common train-eol release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.