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

Add site:key=httpport to scripts #2629

Closed
wiede-man opened this issue Mar 10, 2017 · 5 comments
Closed

Add site:key=httpport to scripts #2629

wiede-man opened this issue Mar 10, 2017 · 5 comments

Comments

@wiede-man
Copy link

wiede-man commented Mar 10, 2017

Hi,

I need to use port 8081 for HTTP as 80 and 443 are used by different applications on the xCAT master.
It's nice to see that the httpport value in the site table is working (stateful installation is starting), but scripts need to be adapted to get the postscripts process working.

I have modified the post.xcat script and my kickstart templates are pointing to the modified one.
The changes to get it working are:

[root@xcatmaster /]# diff /install/custom/install/rh/scripts/post.xcat.modified /opt/xcat/share/xcat/install/scripts/post.xcat
4,5d3
< # Modified 2017-02-21 for different default http port
< #
13d10
< export HTTPPORT=#TABLE:site:key=httpport:value#
94c91
< wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused  -e robots=off -nH --cut-dirs=2 --reject "index.html*" --no-parent -t 20 -T 60 http://$MASTER_IP:$HTTPPORT$INSTALLDIR/postscripts/ -P /xcatpost
---
> wget -l inf -N -r --waitretry=10 --random-wait --retry-connrefused  -e robots=off -nH --cut-dirs=2 --reject "index.html*" --no-parent -t 20 -T 60 http://$MASTER_IP$INSTALLDIR/postscripts/ -P /xcatpost
116c113
< wget -N --waitretry=10 --random-wait --retry-connrefused -t 20 -T 60 http://$MASTER_IP:$HTTPPORT$TFTPDIR/mypostscripts/mypostscript.$NODE  -P /xcatpost 2> /tmp/wget.log
---
> wget -N --waitretry=10 --random-wait --retry-connrefused -t 20 -T 60 http://$MASTER_IP$TFTPDIR/mypostscripts/mypostscript.$NODE  -P /xcatpost 2> /tmp/wget.log

Is there a chance to get this implemented by default in future releases? Unless changed in the site table, $HTTPPORT should always be 80.

@immarvin
Copy link
Contributor

hi @wiede-man , I searched the code, it seems there are lots of places missing support for site.httpport attribute , we will try to find out all the places which missedsite.httpport support and create a fix for this in the next release

@wiede-man
Copy link
Author

Thank you! I appreciate that a lot.

@immarvin immarvin added this to the 2.13.3 milestone Mar 21, 2017
@immarvin immarvin modified the milestones: 2.14, 2.13.3, 2.13.4 Mar 21, 2017
@immarvin immarvin removed this from the 2.13.4 milestone Apr 24, 2017
@thilo-maurer
Copy link
Contributor

thilo-maurer commented Aug 22, 2018

I need the same thing!

One irritation:

httpport:    The port number that the booting/installing nodes should contact the
             http server on the MN/SN on. It is your responsibility to configure
             the http server to listen on that port - xCAT will not do that.
  • Ok, which config files do I have to change?
  • Is it enough to change /etc/apache2/ports.conf?
  • @wiede-man Which ones did you change?

@whowutwut whowutwut added this to the 2.14.4 milestone Aug 23, 2018
@thilo-maurer
Copy link
Contributor

@robin2008 robin2008 modified the milestones: 2.14.4, 2.14.5 Oct 15, 2018
@robin2008
Copy link
Member

Let's put this high priority and done it in 2.14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants