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

fix: align storage metadata GPRC bind port with other variable names #3169

Merged

Conversation

rpocklin
Copy link
Contributor

Description

Currently STORAGE_METADATA_GRPC_PROVIDER_ADDR environment variable used as the way to set the GRPC bind port for the service. All other services use the format <SERVICE_NAME>_GRPC_ADDR for GRPC, and <SERVICE_NAME>_HTTP_ADDR for HTTP.

Motivation and Context

This change brings it in line with the others, as it's confusing why this one is different.

How Has This Been Tested?

Simple test is to run the following:

docker run -d --name ocis -e OCIS_RUN_EXTENSIONS="storage-metadata" -e STORAGE_METADATA_GRPC_ADDR="0.0.0.0:9215" owncloud/ocis

Check port this service is bound to (expect it to bind to external address):
docker exec -it ocis /usr/bin/nc -zv 172.17.0.2:9215

Expect to see:
172.17.0.2:9215 (172.17.0.2:9215) open

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)

This is possibly a breaking change but a search of the source code finds no specific references to this variable anywhere.

Checklist:

  • Code changes

@update-docs
Copy link

update-docs bot commented Feb 14, 2022

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@rpocklin
Copy link
Contributor Author

This build has transient download issues in the docker image, can someone please re-run this?

Copy link
Contributor

@wkloucek wkloucek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ownclouders
Copy link
Contributor

💥 Acceptance test Web-Tests-ocis-smoke-ocis-storage-2 failed. Further test are cancelled...

rpocklin and others added 2 commits February 21, 2022 09:20
Currently STORAGE_METADATA_GRPC_PROVIDER_ADDR environment variable used as the way to set the GRPC bind port for the service.  All other services use the format <SERVICE_NAME>_GRPC_ADDR for GRPC, and <SERVICE_NAME>_HTTP_ADDR for HTTP.  This change brings it in line with the others, as it's confusing why this one is different.
@wkloucek wkloucek force-pushed the rpocklin-storage-metadata-grpc-env-var-fix branch from 75989e3 to 412d3e2 Compare February 21, 2022 08:20
@sonarcloud
Copy link

sonarcloud bot commented Feb 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@wkloucek wkloucek merged commit eb741be into owncloud:master Feb 21, 2022
ownclouders pushed a commit that referenced this pull request Feb 21, 2022
Merge: ff0f583 412d3e2
Author: Willy Kloucek <34452982+wkloucek@users.noreply.github.com>
Date:   Mon Feb 21 09:56:41 2022 +0100

    Merge pull request #3169 from rpocklin/rpocklin-storage-metadata-grpc-env-var-fix

    fix: align storage metadata GPRC bind port with other variable names
wkloucek added a commit to owncloud/ocis-charts that referenced this pull request Feb 23, 2022
@micbar micbar mentioned this pull request Mar 3, 2022
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants