Este contenido no está disponible en el idioma seleccionado.

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.

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.

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

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.

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.

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

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
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat