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 Copiar enlaceEnlace copiado en el portapapeles!
Issues affecting all supported platforms.
3.1.1. Running minishift setup-cdk with --profile prevents creation of the default profile Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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
ocbinary for OpenShift Container Platform 3.7 from https://mirror.openshift.com/pub/openshift-v3/clients/. -
Place the downloaded
ocbinary in the existing directory forocin MINISHIFT_HOME/cache/oc/v3.6.173.0.21/. Run CDK with the
--ocp-tagflag with the exact version of theoc3.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
$ 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.9Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
oclocation. 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
$ 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.9Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
$ minishift start --ocp-tag v3.7.0.0.198.0
3.1.3. Unable to get information from minishift openshift registry if minishift start fails on the first attempt Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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
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
3.1.5. minishift version creates the MINISHIFT_HOME directory Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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
$ export LC_ALL=C
$ minishift start
3.3. Issues on Microsoft Windows Copiar enlaceEnlace copiado en el portapapeles!
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 Copiar enlaceEnlace copiado en el portapapeles!
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:
minishift.exe openshift config set --patch "{\"routingConfig\": {\"subdomain\": \"192.168.99.101.nip.io\"}}"
C:\Users\CDK> minishift.exe openshift config set --patch "{\"routingConfig\": {\"subdomain\": \"192.168.99.101.nip.io\"}}"
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"}}
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"}}
3.3.2. minishift openshift config set --patch may fail on some Windows 7 and 10 hosts Copiar enlaceEnlace copiado en el portapapeles!
The reason for this failure is currently unknown.
Workaround: Configure the OpenShift cluster from inside of the provisioned VM using minishift ssh:
minishift.exe 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>'