Skip to content

Commit

Permalink
Rename ovf keys for registry port (vmware#1642)
Browse files Browse the repository at this point in the history
Changes the ovf key names for management_portal.port and
registry.port so they do not conflict on the HTML5 client in
vSphere 6.7. Fixes vmware#1624.

(cherry picked from commit 7c07bfe)
  • Loading branch information
Jason Morris authored and zjs committed Jun 23, 2018
1 parent 3bbb391 commit 31c6807
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions installer/build/bootable/config/builder.ovf
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ EVALUATION LICENSE. If You are licensing the Software for evaluation purposes, Y
<ProductSection ovf:class="registry" ovf:required="false">
<Info>Registry Properties</Info>
<Category>3. Registry Configuration</Category>
<Property ovf:key="port" ovf:qualifiers="MinValue(1),MaxValue(65535)" ovf:type="int" ovf:userConfigurable="true" ovf:value="443">
<Property ovf:key="registry_port" ovf:qualifiers="MinValue(1),MaxValue(65535)" ovf:type="int" ovf:userConfigurable="true" ovf:value="443">
<Label>3.1. Registry Port</Label>
<Description>Specifies the port on which registry will be published.</Description>
</Property>
Expand All @@ -262,7 +262,7 @@ EVALUATION LICENSE. If You are licensing the Software for evaluation purposes, Y
<ProductSection ovf:class="management_portal" ovf:required="false">
<Info>Management Portal Properties</Info>
<Category>4. Management Portal Configuration</Category>
<Property ovf:key="port" ovf:qualifiers="MinValue(1),MaxValue(65535)" ovf:type="int" ovf:userConfigurable="true" ovf:value="8282">
<Property ovf:key="management_portal_port" ovf:qualifiers="MinValue(1),MaxValue(65535)" ovf:type="int" ovf:userConfigurable="true" ovf:value="8282">
<Label>4.1. Management Portal Port</Label>
<Description>Specifies the port on which Management Portal will be published.</Description>
</Property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ APPLIANCE_TLS_CERT="$(ovfenv -k appliance.tls_cert | sed -E ':a;N;$!ba;s/\r{0,1}
APPLIANCE_TLS_PRIVATE_KEY="$(ovfenv -k appliance.tls_cert_key | sed -E ':a;N;$!ba;s/\r{0,1}\n//g')"
APPLIANCE_TLS_CA_CERT="$(ovfenv -k appliance.ca_cert | sed -E ':a;N;$!ba;s/\r{0,1}\n//g')"

ADMIRAL_PORT="$(ovfenv -k management_portal.port)"
REGISTRY_PORT="$(ovfenv -k registry.port)"
ADMIRAL_PORT="$(ovfenv -k management_portal.management_portal_port)"
REGISTRY_PORT="$(ovfenv -k registry.registry_port)"
NOTARY_PORT="$(ovfenv -k registry.notary_port)"
FILESERVER_PORT="$(ovfenv -k appliance.config_port)"
HOSTNAME=""
Expand Down
4 changes: 2 additions & 2 deletions installer/docs/BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ docker run -it --net=host -v $GOPATH/src/github.com/vmware/vic-product/installer
--net:Network="VM Network" \
--prop:appliance.root_pwd="password" \
--prop:appliance.permit_root_login=True \
--prop:management_portal.port=8282 \
--prop:registry.port=443 \
--prop:management_portal.management_portal_port=8282 \
--prop:registry.registry_port=443 \
/test-bin/$(ls -1t bin | grep "\.ova") \
vi://$VC_USER:$VC_PASSWORD@$VC_IP/$VC_COMPUTE
```
Expand Down
2 changes: 1 addition & 1 deletion installer/fileserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func Init(conf *config) {

if ip, err := ip.FirstIPv4(ip.Eth0Interface); err == nil {
conf.serverHostname = getHostname(ovf, ip)
if port, ok := ovf.Properties["management_portal.port"]; ok {
if port, ok := ovf.Properties["management_portal.management_portal_port"]; ok {
conf.admiralPort = port
}
}
Expand Down
2 changes: 1 addition & 1 deletion installer/fileserver/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func registerWithPSC(ctx context.Context) error {
if err != nil {
return err
}
admiralPort := ovf.Properties["management_portal.port"]
admiralPort := ovf.Properties["management_portal.management_portal_port"]

// Out of the box users
defCreateUsers, foundCreateUsers := ovf.Properties["default_users.create_def_users"]
Expand Down

0 comments on commit 31c6807

Please sign in to comment.