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

When you change the port of your gateway using the "geneos set gateway <gateway_name> port=xxxx" command #152

Closed
pgalbavy-itrs opened this issue Jun 26, 2023 · 1 comment · Fixed by #160
Assignees
Labels
enhancement New feature or request

Comments

@pgalbavy-itrs
Copy link
Collaborator

          Another observation. After using this new version of the Geneos utility, there seems to be an issue when you change the port of your gateway using the "geneos set gateway <gateway_name> port=xxxx" command.

My test gateway initially got assigned the default 7039 port and I was able to start my gateway with it.

-bash-4.2$ geneos ls
Type Names Host Flag Port Version Home
gateway test_gateway A localhost 7039 active_prod:6.2.0 /home/geneos/gateway/gateways/test_gateway

However, I tried updating my port from 7039 to 7040 using the "geneos set gateway <gateway_name> port=xxxx" command."

-bash-4.2$ geneos set gateway test_gateway port=7040

The command seem to update the port when you run the "geneos ps" or "geneos show gateway" command.

-bash-4.2$ geneos ls
Type Names Host Flag Port Version Home
gateway test_gateway A localhost 7040 active_prod:6.2.0 /home/geneos/gateway/gateways/test_gateway

-bash-4.2$ geneos show gateway test_gateway | grep port
"port": "7040",

However, the in the instance.setup.xml doesn't get updated.

-bash-4.2$ pwd
/home/geneos/gateway/gateways/test_gateway
-bash-4.2$ grep -i port instance.setup.xml

7039

I was able to find this out as I was not able to start my gateway after updating my port from 7039 to 7040.

Originally posted by @gadvincula in #148 (comment)

@pgalbavy-itrs pgalbavy-itrs added the enhancement New feature or request label Jun 26, 2023
@pgalbavy-itrs pgalbavy-itrs self-assigned this Jun 26, 2023
@pgalbavy-itrs
Copy link
Collaborator Author

This is expected behaviour. Currently you have to explicitly rebuild the configs - this is to avoid unexpected changes.

Setting the gateway port is unusual in that it is a gateway configuration file change and not a command line option change, unlike other components.

It may be a good approach to kick off an automatic rebuild after setting certain values (or even all values) for instances that have marked config::rebuild=always and/or instance config files for gateways, as this is hardwired anyway - this being the intent of the user.

Will add it to work to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant