Giter Club home page Giter Club logo

Comments (2)

haroldwongms avatar haroldwongms commented on June 3, 2024

If you look at the nested templates used to create the VMs, the three mentioned parameters are passed in. There is a condition when osImageType=marketplace, marketplaceOsImage is used otherwise imageReference is used.

Don't check the OS version within the VM, look at resources.azure.com to determine the image used for the VM. The prep scripts perform a yum update so ultimately, the OS version should be identical regardless.

from openshift-container-platform.

janegilring avatar janegilring commented on June 3, 2024

I see, however, here is an example from a deployment where the following properties is defined in the parameters file:
"osImageType": {
"value": "marketplace"
},
"marketplaceOsImage": {
"value": {
"publisher": "redhat",
"offer": "rhel-byos",
"sku": "rhel-lvm76",
"version": "7.6.20190918"
}
}

The imageReference property is not defined.

In the deployed instance, when looking at the bastion VM as an example, we see the following in it's properties on https://resources.azure.com:
"storageProfile": {
"imageReference": {
"publisher": "redhat",
"offer": "rhel-byos",
"sku": "rhel-lvm76",
"version": "7.6.20190918"
},
"osDisk": {
"osType": "Linux",
"name": "ocpclustertest-infra01-osdisk",
"createOption": "FromImage",

However, when SSH' ing into the VM the output from hostnamectl indicates the OS version being 7.7:
Static hostname: ocpclustertest-bastion
Icon name: computer-vm
Chassis: vm
Machine ID: cef2ff62b1da4edb8ce8b4b26b865a2d
Boot ID: b4856b5b4b3241759baf1921095e520e
Virtualization: microsoft
Operating System: OpenShift Enterprise
CPE OS Name: cpe:/o:redhat:enterprise_linux:7.7:GA:server
Kernel: Linux 3.10.0-957.27.4.el7.x86_64
Architecture: x86-64

Could the issue be that imageReference has a default value in azuredeploy.json, hence that overrides the marketplaceOsImage specified in the parameters file?

from openshift-container-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.