<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Thanks for raising this for discussion. Although I do think that the API port humber should be expressed in a URL that the local client can immediately use for connecting a native client to the API, I am not convinced that this needs to be a separate attribute
 on the Bay resource.
<div class=""><br class="">
</div>
<div class="">In general, I think it’s a reasonable assumption that nova instances will have unique IP addresses assigned to them (public or private is not an issue here) so unique port numbers for running the API services on alternate ports seems like it may
 not be needed. I’d like to have input from at least one Magnum user explaining an actual use case for this feature before accepting this blueprint.</div>
<div class=""><br class="">
</div>
<div class="">One possible workaround for this would be to instruct those who want to run nonstandard ports to copy the heat template, and specify a new heat template as an alternate when creating the BayModel, which can implement the port number as a parameter.
 If we learn that this happens a lot, we should revisit this as a feature in Magnum rather than allowing it through an external workaround.</div>
<div class=""><br class="">
</div>
<div class="">I’d like to have a generic feature that allows for arbitrary key/value pairs for parameters and values to be passed to the heat stack create call so that this, and other values can be passed in using the standard magnum client and API without
 further modification. I’m going to look to see if we have a BP for this, and if not, I will make one.</div>
<div class=""><br class="">
</div>
<div class="">Adrian</div>
<div class=""><br class="">
</div>
<div class=""> <br class="">
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jun 11, 2015, at 6:05 PM, Kai Qiang Wu(Kennan) <<a href="mailto:wkqwu@cn.ibm.com" class="">wkqwu@cn.ibm.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<p class=""><font size="2" face="sans-serif" class="">If I understand the bp correctly,
</font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">the apiserver_port is for public access or API call service endpoint. If it is that case, user would use that info</font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">htttp(s)://<ip>:<port></font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">so port is good information for users.</font><br class="">
<br class="">
<br class="">
<font size="2" face="sans-serif" class="">If we believe above assumption is right. Then</font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">1) Some user not needed to change port, since the heat have default hard code port in that</font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">2) If some users want to change port, (through heat, we can do that)  We need add such flexibility for users.</font><br class="">
<font size="2" face="sans-serif" class="">That's  bp </font><a href="https://blueprints.launchpad.net/magnum/+spec/configurable-coe-api-port" target="_blank" class=""><font size="2" color="#1155CC" face="Arial" class=""><u class="">https://blueprints.launchpad.net/magnum/+spec/configurable-coe-api-port</u></font></a><font size="2" face="sans-serif" class=""> try
 to solve. </font><br class="">
<br class="">
<font size="2" face="sans-serif" class="">It depends on how end-users use with magnum.  </font><br class="">
<br class="">
<br class="">
<font size="2" face="sans-serif" class="">Welcome to more inputs about this, If many of us think it is not necessary to customize the ports. we can drop the bp.</font><br class="">
<br class="">
<br class="">
<font size="2" face="sans-serif" class="">Thanks </font><br class="">
<br class="">
<br class="">
<font size="2" face="sans-serif" class="">Best Wishes,</font><br class="">
<font size="2" face="sans-serif" class="">--------------------------------------------------------------------------------</font><br class="">
<font size="2" face="sans-serif" class="">Kai Qiang Wu (吴开强  Kennan)<br class="">
IBM China System and Technology Lab, Beijing<br class="">
<br class="">
E-mail: <a href="mailto:wkqwu@cn.ibm.com" class="">wkqwu@cn.ibm.com</a><br class="">
Tel: 86-10-82451647<br class="">
Address: Building 28(Ring Building), ZhongGuanCun Software Park,  <br class="">
        No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193</font><br class="">
<font size="2" face="sans-serif" class="">--------------------------------------------------------------------------------</font><br class="">
<font size="2" face="sans-serif" class="">Follow your heart. You are miracle! </font>
<br class="">
<br class="">
<span id="cid:1__=C7BBF4F1DF96CE838f9e8a93df938@cn.ibm.com"><graycol.gif></span><font size="2" color="#424282" face="sans-serif" class="">Jay Lau ---06/11/2015 01:17:42 PM---I think that we have a similar bp before:
<a href="https://blueprints.launchpad.net/magnum/+spec/override-nat" class="">https://blueprints.launchpad.net/magnum/+spec/override-nat</a></font><br class="">
<br class="">
<font size="1" color="#5F5F5F" face="sans-serif" class="">From: </font><font size="1" face="sans-serif" class="">Jay Lau <<a href="mailto:jay.lau.513@gmail.com" class="">jay.lau.513@gmail.com</a>></font><br class="">
<font size="1" color="#5F5F5F" face="sans-serif" class="">To: </font><font size="1" face="sans-serif" class="">"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" class="">openstack-dev@lists.openstack.org</a>></font><br class="">
<font size="1" color="#5F5F5F" face="sans-serif" class="">Date: </font><font size="1" face="sans-serif" class="">06/11/2015 01:17 PM</font><br class="">
<font size="1" color="#5F5F5F" face="sans-serif" class="">Subject: </font><font size="1" face="sans-serif" class="">Re: [openstack-dev] [Magnum] Discuss configurable-coe-api-port Blueprint</font><br class="">
</p>
<hr width="100%" size="2" align="left" noshade="" style="color:#8091A5; " class="">
<br class="">
<br class="">
<br class="">
<font size="3" face="serif" class="">I think that we have a similar bp before: </font>
<a href="https://blueprints.launchpad.net/magnum/+spec/override-native-rest-port" class=""><font size="3" color="#0000FF" face="serif" class=""><u class="">https://blueprints.launchpad.net/magnum/+spec/override-native-rest-port</u></font></a><font size="3" face="serif" class=""><br class="">
</font><br class="">
<font size="3" face="serif" class=""> I have some discussion before with Larsks, it seems that it does not make much sense to customize this port as the kubernetes/swarm/mesos cluster will be created by heat and end user do not need to care the ports,different
 kubernetes/swarm/mesos cluster will have different IP addresses so there will be no port conflict.</font><br class="">
<br class="">
<font size="3" face="serif" class="">2015-06-11 9:35 GMT+08:00 Kai Qiang Wu <</font><a href="mailto:wkqwu@cn.ibm.com" target="_blank" class=""><font size="3" color="#0000FF" face="serif" class=""><u class="">wkqwu@cn.ibm.com</u></font></a><font size="3" face="serif" class="">>:</font>
<ul style="padding-left: 9pt" class="">
<font size="2" color="#222222" face="Arial" class="">I’m moving this whiteboard to the ML so we can have some discussion to refine it, and then go back and update the whiteboard. </font><font size="3" face="serif" class=""><br class="">
</font><font size="2" color="#222222" face="Arial" class=""><br class="">
Source:</font><a href="https://blueprints.launchpad.net/magnum/+spec/configurable-coe-api-port" target="_blank" class=""><font size="2" color="#1155CC" face="Arial" class=""><u class="">https://blueprints.launchpad.net/magnum/+spec/configurable-coe-api-port</u></font></a><font size="3" face="serif" class=""><br class="">
<br class="">
</font><font size="2" color="#222222" face="Arial" class=""><br class="">
@Sdake and I have some discussion now, but may need more input from your side.</font><font size="3" face="serif" class=""><br class="">
<br class="">
</font><font size="2" color="#222222" face="Arial" class=""><br class="">
1. keep apserver_port in baymodel, it may only allow admin to have (if we involved policy) create that baymodel, have less flexiblity for other users.</font><font size="3" face="serif" class=""><br class="">
<br class="">
</font><font size="2" color="#222222" face="Arial" class=""><br class="">
2. apiserver_port was designed in baymodel, if moved from baymodel to bay, it is big change, and if we have other better ways. (it also may apply for<br class="">
other configuration fileds, like </font><font size="2" color="#333333" face="Consolas" class="">dns-nameserver</font><font size="2" color="#2F2F2F" face="Arial" class=""> </font><font size="2" color="#222222" face="Arial" class="">etc.)</font><font size="3" face="serif" class=""><br class="">
<br class="">
<br class="">
</font><font size="2" color="#222222" face="Arial" class=""><br class="">
Thanks</font><font size="3" face="serif" class=""><br class="">
<br class="">
<br class="">
</font><font size="2" face="sans-serif" class=""><br class="">
Best Wishes,<br class="">
--------------------------------------------------------------------------------<br class="">
Kai Qiang Wu (吴开强  Kennan)<br class="">
IBM China System and Technology Lab, Beijing<br class="">
<br class="">
E-mail: </font><a href="mailto:wkqwu@cn.ibm.com" target="_blank" class=""><font size="2" color="#0000FF" face="sans-serif" class=""><u class="">wkqwu@cn.ibm.com</u></font></a><font size="2" face="sans-serif" class=""><br class="">
Tel: 86-10-82451647<br class="">
Address: Building 28(Ring Building), ZhongGuanCun Software Park,  <br class="">
        No.8 Dong Bei Wang West Road, Haidian District Beijing P.R.China 100193<br class="">
--------------------------------------------------------------------------------<br class="">
Follow your heart. You are miracle! </font><br class="">
<font size="3" face="serif" class=""><br class="">
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: </font><a href="http://OpenStack-dev-request@lists.openstack.org/?subject:unsubscribe" target="_blank" class=""><font size="3" color="#0000FF" face="serif" class=""><u class="">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</u></font></a><font size="3" color="#0000FF" face="serif" class=""><u class=""><br class="">
</u></font><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank" class=""><font size="3" color="#0000FF" face="serif" class=""><u class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</u></font></a><font size="3" face="serif" class=""><br class="">
</font></ul>
<font size="3" face="serif" class=""><br class="">
<br class="">
<br class="">
-- </font><br class="">
<font size="3" face="serif" class="">Thanks,<br class="">
</font><br class="">
<font size="3" face="serif" class="">Jay Lau (Guangya Liu)</font><tt class=""><font size="2" class="">__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
</font></tt><tt class=""><font size="2" class=""><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></font></tt><tt class=""><font size="2" class=""><br class="">
</font></tt><br class="">
</div>
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</body>
</html>