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

OpenStack port spec issue backport to v3.25 #8035

Merged

Conversation

nelljerram
Copy link
Member

@nelljerram nelljerram commented Sep 19, 2023

Description

Pick #8026 to the release-v3.25 branch.
Plus copy a lot of other recent tweaks and fixes from master that are needed for UT CI to run correctly and successfully.

Release Note

Correct policy for OpenStack sec group with no remote_ip_prefix

Correct policy for OpenStack sec group with no remote_ip_prefix
@nelljerram nelljerram requested a review from a team as a code owner September 19, 2023 14:33
@netlify
Copy link

netlify bot commented Sep 19, 2023

Deploy Preview for calico-v3-25 canceled.

Name Link
🔨 Latest commit 40ff902
🔍 Latest deploy log https://app.netlify.com/sites/calico-v3-25/deploys/6509c050ea66f30008b759b7

@marvin-tigera marvin-tigera added this to the Calico v3.25.3 milestone Sep 19, 2023
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Sep 19, 2023
@nelljerram nelljerram added docs-not-required Docs not required for this change and removed docs-pr-required Change is not yet documented labels Sep 19, 2023
@marvin-tigera marvin-tigera added docs-pr-required Change is not yet documented and removed docs-not-required Docs not required for this change labels Sep 19, 2023
In the Ussuri CI (`make -C networking-calico tox-ussuri`), we recently started getting this error
when executing the pip install line for etcd3gw:

    Traceback (most recent call last):
      File "<string>", line 2, in <module>
      File "<pip-setuptools-caller>", line 34, in <module>
      File "/code/.tox/py38/src/etcd3gw/setup.py", line 27, in <module>
        setuptools.setup(
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
        return distutils.core.setup(**attrs)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
        return run_commands(dist)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
        dist.run_commands()
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
        self.run_command(cmd)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/dist.py", line 1001, in run_command
        super().run_command(command)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
        cmd_obj.run()
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
        self.install_for_development()
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/command/develop.py", line 124, in install_for_development
        self.process_distribution(None, self.dist, not self.no_deps)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/command/easy_install.py", line 770, in process_distribution
        self.install_egg_scripts(dist)
      File "/code/.tox/py38/lib/python3.8/site-packages/setuptools/command/develop.py", line 151, in install_egg_scripts
        self.install_wrapper_scripts(dist)
      File "/code/.tox/py38/lib/python3.8/site-packages/pbr/packaging.py", line 450, in install_wrapper_scripts
        for args in override_get_script_args(dist):
      File "/code/.tox/py38/lib/python3.8/site-packages/pbr/packaging.py", line 436, in override_get_script_args
        header = easy_install.get_script_header("", executable, is_wininst)
    AttributeError: module 'setuptools.command.easy_install' has no attribute 'get_script_header'

I don't understand why, but anyway I realized that we no longer (since updating to v1.0.1) need to
install etcd3gw in this slightly odd way; we can just put `etcd3gw==1.0.1` in the requirements
files.  And it turns out that that fixes the problem at that point in the CI setup.
We had a bug in product code that was recently fixed by
projectcalico#6979.  That bug caused some port statuses to be
signalled as "None" when they should not be.

Unfortunately we also had this test (test_snapshot) that had been coded to match the bug, i.e. to
expect a port status update of "None".  The correct behaviour is that the port status should not be
changed by this passage of test code.

This was missed at the time of the 6979 PR because our UT running had a bug that allowed some tests
to fail but still reported success overall.
That happened in commit 9a8a6c9.  The failing test was missed at the time because of how
test_command was defined in .testr.conf.
@nelljerram
Copy link
Member Author

The devstack test now fails because of https://tigera.atlassian.net/browse/CORE-9844

@nelljerram nelljerram merged commit 581d688 into projectcalico:release-v3.25 Sep 19, 2023
5 of 6 checks passed
@nelljerram nelljerram deleted the port-spec-issue-v3.25 branch September 19, 2023 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-pr-required Change is not yet documented release-note-required Change has user-facing impact (no matter how small)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants