Skip to content

[23248] Fix DS initialization on "any" if no interfaces are available#5850

Merged
cferreiragonz merged 4 commits into
masterfrom
bug/23248
Jun 16, 2025
Merged

[23248] Fix DS initialization on "any" if no interfaces are available#5850
cferreiragonz merged 4 commits into
masterfrom
bug/23248

Conversation

@cferreiragonz

@cferreiragonz cferreiragonz commented Jun 4, 2025

Copy link
Copy Markdown
Contributor

Description

This PR fixes a bug in which the Discovery Server initialization failed when configured to listen on any (0.0.0.0) if no interfaces were available.
It also adds a new suite of tests creating an scenario simulating that no interfaces are available, extending the test_transport functionality of simulate_no_interfaces.

This PR fixes #5835.

@Mergifyio backport 3.2.x 2.14.x

Contributor Checklist

  • Commit messages follow the project guidelines.
  • The code follows the style guidelines of this project.
  • Tests that thoroughly check the new feature have been added/Regression tests checking the bug and its fix have been added; the added tests pass locally
  • N/A Any new/modified methods have been properly documented using Doxygen.
  • N/A Any new configuration API has an equivalent XML API (with the corresponding XSD extension)
  • Changes are backport compatible: they do NOT break ABI nor change library core behavior.
  • Changes are API compatible.
    -N/A New feature has been added to the versions.md file (if applicable).
  • N/A New feature has been documented/Current behavior is correctly described in the documentation.
  • Applicable backports have been included in the description.

Reviewer Checklist

  • The PR has a milestone assigned.
  • The title and description correctly express the PR's purpose.
  • Check contributor checklist is correct.
  • If this is a critical bug fix, backports to the critical-only supported branches have been requested.
  • Check CI results: changes do not issue any warning.
  • Check CI results: failing tests are unrelated with the changes.

@cferreiragonz cferreiragonz added this to the v3.2.3 milestone Jun 4, 2025
@github-actions github-actions Bot added the ci-pending PR which CI is running label Jun 4, 2025
@cferreiragonz
cferreiragonz requested review from richiprosima and removed request for richiprosima June 4, 2025 14:45
@cferreiragonz cferreiragonz added the needs-review PR that is ready to be reviewed label Jun 5, 2025
@MiguelCompany

Copy link
Copy Markdown
Member

@cferreiragonz Test BlackboxTests_DDS_PIM.MockedInterfaces.DDSDiscoveryNoInterfaces.DS_listens_on_any_if_there_are_no_interfaces failed on Windows

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz
cferreiragonz requested review from richiprosima and removed request for richiprosima June 6, 2025 06:26
@cferreiragonz

Copy link
Copy Markdown
Contributor Author

@cferreiragonz Test BlackboxTests_DDS_PIM.MockedInterfaces.DDSDiscoveryNoInterfaces.DS_listens_on_any_if_there_are_no_interfaces failed on Windows

I have refactored the test (called dds.commmunication.ds_init_with_no_interfaces now) and it relies on docker. Let's wait for new CI

@rsanchez15 rsanchez15 modified the milestones: v3.2.3, v3.3.0 Jun 9, 2025
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@cferreiragonz
cferreiragonz requested review from richiprosima and removed request for richiprosima June 12, 2025 06:30
@cferreiragonz cferreiragonz removed the ci-pending PR which CI is running label Jun 12, 2025
Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
@Carlosespicur
Carlosespicur self-requested a review June 16, 2025 05:27
@github-actions github-actions Bot added the ci-pending PR which CI is running label Jun 16, 2025
@cferreiragonz cferreiragonz removed the needs-review PR that is ready to be reviewed label Jun 16, 2025
@cferreiragonz
cferreiragonz merged commit 4e6a68f into master Jun 16, 2025
17 checks passed
@cferreiragonz
cferreiragonz deleted the bug/23248 branch June 16, 2025 12:35
@cferreiragonz

Copy link
Copy Markdown
Contributor Author

@Mergifyio backport 3.2.x 2.14.x

@mergify

mergify Bot commented Jun 16, 2025

Copy link
Copy Markdown
Contributor

backport 3.2.x 2.14.x

✅ Backports have been created

Details

mergify Bot pushed a commit that referenced this pull request Jun 16, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
mergify Bot pushed a commit that referenced this pull request Jun 16, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
MiguelCompany pushed a commit that referenced this pull request Jun 20, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
MiguelCompany pushed a commit that referenced this pull request Jul 1, 2025
…#5876)

* Refs #23248: Add regression test



* Refs #23248: Use localhost if no interfaces are found



* Refs #23248: Fix permissions of .bash



* Refs #23248: NITs



---------


(cherry picked from commit 4e6a68f)

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
EugenioCollado pushed a commit that referenced this pull request Jul 2, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
EugenioCollado pushed a commit that referenced this pull request Jul 10, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
EugenioCollado pushed a commit that referenced this pull request Jul 10, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
EugenioCollado pushed a commit that referenced this pull request Jul 10, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
cferreiragonz added a commit that referenced this pull request Jul 22, 2025
* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)
cferreiragonz added a commit that referenced this pull request Jul 24, 2025
…#5877)

* Fix DS initialization on "any" if no interfaces are available (#5850)

* Refs #23248: Add regression test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Use localhost if no interfaces are found

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: Fix permissions of .bash

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

* Refs #23248: NITs

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
(cherry picked from commit 4e6a68f)

* Add GUID to DS test

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>

---------

Signed-off-by: cferreiragonz <carlosferreira@eprosima.com>
Co-authored-by: Carlos Ferreira González <carlosferreira@eprosima.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-pending PR which CI is running

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[23248] Discovery server fails to start on UDP 0.0.0.0 when no LAN connection is available

4 participants