Closed reestr closed 7 months ago
This does not prevent execution, right? It is a WARN level.
There are two places where we check this, installer and preflights. The error reported is for preflights, which is as follows:
darwin.atleast
returns the wrong result?
And for the installer:
@anjannath, something seems off... because I do not believe we have seen this for other 14.x-based releases.
This does not prevent execution, right? It is a WARN level.
Correct, only a warning. It makes me anxious that it could have been intentional and you're ending support for Intel based Macs, for greater focus on AS.
Intel based Macs
we will follow the Apple recommendations/enforcements for this... so eventually we will have a cut-off happening. We will try to keep current version -1 (which is now 13 and 14).
The current check seems to be wrong... or perhaps there is more? @cfergeau might be able to chime in.
this is not having the same behavior on a Apple silicon mac.. running on M1 macOS 14 it doesn't show the warning message..
% sw_vers
ProductName: macOS
ProductVersion: 14.4
BuildVersion: 23E214
% crc setup
WARN Using crc_vfkit_4.15.3_arm64.crcbundle bundle, but crc_vfkit_4.14.12_arm64.crcbundle is expected for this release
INFO Using bundle path /Users/anath/.crc/cache/crc_vfkit_4.15.3_arm64.crcbundle
INFO Checking if running macOS version >= 13.x
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
INFO Checking if crc executable symlink exists
INFO Checking minimum RAM requirements
INFO Check if Podman binary exists in: /Users/anath/.crc/bin/oc
INFO Checking if running emulated on Apple silicon
INFO Checking if vfkit is installed
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /Users/anath/.crc/cache/crc_vfkit_4.15.3_arm64.crcbundle exists
INFO Checking if old launchd config for tray and/or daemon exists
INFO Checking if crc daemon plist file is present and loaded
INFO Checking SSH port availability
Your system is correctly setup for using CRC. Use 'crc start' to start the instance
Perhaps share a small test app to see if the library might be broken? As we rely on the library function.
there's a debug log of the raw output,
https://github.com/crc-org/crc/blob/0cd39c48f8b1efc3b8d667d95afe8e416b86f2ec/pkg/os/darwin/release_info.go#L24
we'll get the required info if @reestr shares the o/p for crc setup --log-level debug
or $ sysctl kern.osproductversion
@anjannath does the check INFO Checking if running macOS version >= 13.x
have a skip setting?
@anjannath - please see the following:
➜ ~ crc setup --log-level debug
DEBU CRC version: 2.33.0+c43b17
DEBU OpenShift version: 4.14.12
DEBU Podman version: 4.4.4
DEBU Running 'crc setup'
INFO Using bundle path /Users/trees/.crc/cache/crc_vfkit_4.14.12_amd64.crcbundle
INFO Checking if running macOS version >= 13.x
DEBU kern.osproductversion is: 10.16
WARN This version of macOS is going to be unsupported for CRC, Please update to macOS 13 or newer
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Checking if running on a supported CPU architecture
DEBU GOARCH is amd64 GOOS is darwin
INFO Checking if crc executable symlink exists
INFO Checking minimum RAM requirements
DEBU Total memory of system is 412316860416 bytes
INFO Checking if running emulated on Apple silicon
INFO Checking if vfkit is installed
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /Users/trees/.crc/cache/crc_vfkit_4.14.12_amd64.crcbundle exists
DEBU /Users/trees/.crc/cache/crc_vfkit_4.14.12_amd64.crcbundle exists
INFO Checking if old launchd config for tray and/or daemon exists
INFO Checking if crc daemon plist file is present and loaded
DEBU Running 'bash -c launchctl list | grep com.redhat.crc.daemon | awk '{print $1}''
INFO Checking SSH port availability
@reestr so there's a difference in the o/p of command sw_vers
vs sysctl kern.osproductversion
on your machine? on the M1 macbook pro i am testing (and just updated to the latest 14.x) i get the following o/p
[anath@anath-mac] ~ % sw_vers
ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224
[anath@anath-mac] ~ % sysctl kern.osproductversion
kern.osproductversion: 14.4.1
@anjannath does the check
INFO Checking if running macOS version >= 13.x
have a skip setting?
yes, there's a skip-check-*
config for this check..
* skip-check-mac-version Skip preflight check (true/false, default: false)
@reestr so there's a difference in the o/p of command
sw_vers
vssysctl kern.osproductversion
on your machine? on the M1 macbook pro i am testing (and just updated to the latest 14.x) i get the following o/p[anath@anath-mac] ~ % sw_vers ProductName: macOS ProductVersion: 14.4.1 BuildVersion: 23E224 [anath@anath-mac] ~ % sysctl kern.osproductversion kern.osproductversion: 14.4.1
Running those commands explicitly, I get the same output:
➜ ~ sw_vers
ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224
➜ ~ sysctl kern.osproductversion
kern.osproductversion: 14.4.1
Not really useful, but on my macos 12.7.4 intel macbook, crc debug log matches the sysctl kern.osproductversion
call:
INFO Checking if running macOS version >= 13.x
DEBU kern.osproductversion is: 12.7.4
$ sysctl kern.osproductversion
kern.osproductversion: 12.7.4
$ sw_vers
ProductName: macOS
ProductVersion: 12.7.4
BuildVersion: 21H1123
@reestr This was an updated system, from 10.x all the way to 14.x ?
What does echo $SYSTEM_VERSION_COMPAT
return ?
Note: reference here https://opensource.apple.com/source/xnu/xnu-7195.141.2/tests/system_version_compat.c.auto.html for system version retrieve
@reestr This was an updated system, from 10.x all the way to 14.x ?
Its been updated from 10.15 I think. CRC was reporting the version as 10.16, but I don't believe that is a verion which was ever released. MacOS went from 10.15 -> 11
What does
echo $SYSTEM_VERSION_COMPAT
return ?
It doesn't return anything.
Note: reference here https://opensource.apple.com/source/xnu/xnu-7195.141.2/tests/system_version_compat.c.auto.html for system version retrieve
General information
crc setup
before starting it (Yes/No)? TesCRC version
CRC status
CRC config
Host Operating System
Intel Mac Pro
Steps to reproduce
Expected
No warning about MacOS version being old
Actual
Logs
Before gather the logs try following if that fix your issue
Please consider posting the output of
crc start --log-level debug
on http://gist.github.com/ and post the link in the issue.