このコンテンツは選択した言語では利用できません。

Chapter 3. Known Issues


This section describes issues that users of Red Hat Container Development Kit 3.2 may encounter, as well as possible workarounds for these issues.

3.1. General Issues

Issues affecting all supported platforms.

3.1.1. Running minishift setup-cdk with --profile prevents creation of the default profile

Running minishift --profile <name> setup-cdk without an existing MINISHIFT_HOME (~/.minishift by default) prevents the setup-cdk command from creating the default minishift profile. This will cause further problems, as CDK expects the default profile to be present.

Workaround: Do not use the global --profile flag with minishift setup-cdk. Always run minishift setup-cdk before any other command for a new installation of CDK.

3.1.2. CDK cannot download the oc binary for OpenShift Container Platform 3.7

Currently, CDK cannot automatically download the oc binary for OpenShift Container Platform 3.7. However, you may manually download the oc 3.7 binary to use it. To do so, follow these steps:

  • Ensure that you have run minishift setup-cdk.
  • Manually download the oc binary for OpenShift Container Platform 3.7 from https://mirror.openshift.com/pub/openshift-v3/clients/.
  • Place the downloaded oc binary in the existing directory for oc in MINISHIFT_HOME/cache/oc/v3.6.173.0.21/.
  • Run CDK with the --ocp-tag flag with the exact version of the oc 3.7 binary. Example:

    $ minishift setup-cdk
    $ curl -O https://mirror.openshift.com/pub/openshift-v3/clients/3.7.9/linux/oc.tar.gz
    $ tar -zxvf oc.tar.gz
    $ cp oc ~/.minishift/cache/oc/v3.6.173.0.21
    $ minishift start --ocp-tag v3.7.9
    Copy to Clipboard Toggle word wrap
Note

When creating new profiles, CDK extracts the v3.6.173.0.21 oc binary from minishift rather than copying the oc binary placed in the cache. You must manually add the oc 3.7 binary to the cache for each profile to use OpenShift Container Platform 3.7. Use the following for each profile making use of the oc 3.7 binary:

  • Set the active profile via minishift profile set <profile-name>.
  • Follow the previous procedure using MINISHIFT_HOME/profiles/<profile-name>/cache/oc/v3.6.173.0.21/ as the cached oc location. Example:

    $ minishift profile set example
    $ minishift setup-cdk
    $ cp oc ~/.minishift/profiles/example/cache/oc/v3.6.173.0.21
    $ minishift start --ocp-tag v3.7.9
    Copy to Clipboard Toggle word wrap
Important

The --ocp-tag flag for minishift start expects version information in a specific format. Ensure that you prepend the oc version with "v" and replace any dashes with periods for use with the --ocp-tag flag. For example, if your oc version is 3.7.0-0.198.0, use the following:

$ minishift start --ocp-tag v3.7.0.0.198.0
Copy to Clipboard Toggle word wrap

3.1.3. Unable to get information from minishift openshift registry if minishift start fails on the first attempt

The minishift start command only creates the MINISHIFT_HOME/.machines/<vm_name>_kubeconfig file the first time a Minishift VM is started. If the minishift start procedure fails for any reason, this file may not be created. Running minishift start again will not create this file. This causes issues with the minishift openshift registry and minishift openshift service commands.

Workaround: Run minishift delete followed by minishift start to create the required file.

3.1.4. Red Hat password is printed in plain text if registration fails

The command used for registration during minishift start is printed to the console if the registration process fails. This command contains the given Red Hat user name and password in plain text.

Example output:

Error to register VM: ssh command error:
command : sudo -E subscription-manager register --auto-attach --username user@redhat.com --password 'xxxxxxxx'
err     : exit status 1
output  : Registering to: subscription.rhsm.redhat.com:443/subscription
The system has been registered with ID: 9bf93a9c-3615-428d-953d-70803121ebf7
Copy to Clipboard Toggle word wrap

3.1.5. minishift version creates the MINISHIFT_HOME directory

Calling the minishift version command before running minishift setup-cdk causes the default MINISHIFT_HOME directory (~/.minishift) to be created. This leads to minishift setup-cdk prompting for confirmation to overwrite the contents of MINISHIFT_HOME.

Workaround: Type y to confirm. This warning may be ignored.

3.1.6. The "latest" tag is not supported with --ocp-tag

The --ocp-tag flag for the minishift start command does not support the "latest" tag.

Workaround: If you want to use any OCP image other than the default, you need to find the version number of the specific image you want and select that version. You can find the image using --ocp-tag help. The tag will be in the format "v.X.Y.Z".

3.2. Issues on Linux

This section describes CDK issues that affect users on a Linux host.

3.2.1. minishift start fails on systems with a non-English locale

Note

This issue is related to the KVM hypervisor. The VirtualBox hypervisor is not affected.

The pre-flight check used by minishift start will fail if the operating system’s locale is not English. This is due to the check for active libvirt networks testing for English-specific text.

Workaround: Export LC_ALL=C to the shell environment of Linux:

$ export LC_ALL=C
$ minishift start
Copy to Clipboard Toggle word wrap

3.3. Issues on Microsoft Windows

This section describes CDK issues that affect users on a Microsoft Windows host.

3.3.1. Windows Command Prompt and PowerShell improperly parse JSON patches for the minishift openshift config set command

Windows Command Prompt and PowerShell have problems with parsing JSON into the minishift openshift config set command. Special attention is required when using this command on Windows.

The workaround for Windows Command Prompt environments is to escape the quotes so that the JSON content is correctly parsed:

C:\Users\CDK> minishift.exe openshift config set --patch "{\"routingConfig\": {\"subdomain\": \"192.168.99.101.nip.io\"}}"
Copy to Clipboard Toggle word wrap

The workaround for Windows PowerShell environments is to use a variable to store the JSON content:

PS C:\Users\CDK> $json='{\"routingConfig\": {\"subdomain\": \"192.168.99.101.nip.io\"}}'
PS C:\Users\CDK> echo $json
{\"routingConfig\": {\"subdomain\": \"192.168.99.101.nip.io\"}}
PS C:\Users\CDK> minishift.exe openshift config set --patch $json
Patching OpenShift configuration /var/lib/origin/openshift.local.config/master/master-config.yaml with {"routingConfig": {"subdomain": "192.168.99.101.nip.io"}}
Copy to Clipboard Toggle word wrap

3.3.2. minishift openshift config set --patch may fail on some Windows 7 and 10 hosts

The reason for this failure is currently unknown.

Workaround: Configure the OpenShift cluster from inside of the provisioned VM using minishift ssh:

C:\Users\CDK> minishift.exe ssh
[docker@minishift ~]$ docker exec -t origin /usr/bin/openshift ex config patch /var/lib/origin/openshift.local.config/master/master-config.yaml --patch='<json-to-be-applied-to-the-cluster>'
Copy to Clipboard Toggle word wrap
トップに戻る
Red Hat logoGithubredditYoutubeTwitter

詳細情報

試用、購入および販売

コミュニティー

Red Hat ドキュメントについて

Red Hat をお使いのお客様が、信頼できるコンテンツが含まれている製品やサービスを活用することで、イノベーションを行い、目標を達成できるようにします。 最新の更新を見る.

多様性を受け入れるオープンソースの強化

Red Hat では、コード、ドキュメント、Web プロパティーにおける配慮に欠ける用語の置き換えに取り組んでいます。このような変更は、段階的に実施される予定です。詳細情報: Red Hat ブログ.

会社概要

Red Hat は、企業がコアとなるデータセンターからネットワークエッジに至るまで、各種プラットフォームや環境全体で作業を簡素化できるように、強化されたソリューションを提供しています。

Theme

© 2025 Red Hat