vmware / vic

vSphere Integrated Containers Engine is a container runtime for vSphere.
http://vmware.github.io/vic
Other
640 stars 173 forks source link

Photon OS config files in VCH point to internal build repo #7550

Open stuclem opened 6 years ago

stuclem commented 6 years ago

VIC version:

vic-machine-windows.exe version v1.3.1-16055-afdab46

Deployment details:

What was the vic-machine create command used to deploy the VCH?

vic-machine-windows create --bridge-network vic-bridge --image-store datastore1 --name tdnftest2 --no-tlsverify

Steps to reproduce:

  1. Deploy VCH & enable SSH access.
  2. SSH into VCH.
  3. Open /etc/yum.repos.d/photon-updates-local.repo and /etc/yum.repos.d/photon-local.repo in a text editor.

Actual behavior:

Both files include the line baseurl=http://192.168.31.16/photon-updates. This is an internal build repo.

Expected behavior:

The files should include URLs to the external repos:

Additional details as necessary:

Discovered by @tschwaller as a part of his assistance in documenting how to install packages in the VCH by using tdnf (see PR https://github.com/vmware/vic-product/pull/1355 and https://github.com/vmware/vic-product/issues/1058).

Opening this issue on request from @hickeng in https://github.com/vmware/vic-product/pull/1355#discussion_r175580065.

rogeliosanchez commented 6 years ago

Pinging @anchal-agrawal for further triage/estimation.

anchal-agrawal commented 6 years ago

Requesting @hickeng for an estimate of the effort involved here. I think this should be labeled priority/p2 - deferring to George.

hickeng commented 6 years ago

Think there's two ways we can do this:

  1. use a proper mirror configuration or caching proxy instead of the current approach of modifying the repo config.
  2. update the ISO staging scripts to copy the "official" repo config after the packages are installed.

Estimate for (2) is 2. I'll defer to @mhagen-vmware for estimate of configuration of caching proxy and or mirror.