Questo contenuto non è disponibile nella lingua selezionata.
Chapter 3. Known Issues
This section describes issues that users of Red Hat Container Development Kit 2.3 may encounter, as well as possible workarounds for these issues.
3.1. General Issues Copia collegamentoCollegamento copiato negli appunti!
Issues affecting all supported platforms.
3.1.1. DNS service provided by xip.io only works with an Internet connection Copia collegamentoCollegamento copiato negli appunti!
DNS addressing provided by the external xip.io service is unavailable without a working Internet connection.
3.1.2. Red Hat Subscription Delay Copia collegamentoCollegamento copiato negli appunti!
After signing up for a Red Hat Developers account, you must wait approximately fifteen minutes to allow the new account information to propagate to the Red Hat Subscription Management system before the Container Development Environment can be registered.
3.1.3. The nodejs-4-rhel7 Container Image Does Not Work Behind Proxy Copia collegamentoCollegamento copiato negli appunti!
The nodejs-4-rhel7 Docker-formatted container image, which is available from the Red Hat Atomic Registry, does not work when the Container Development Environment is connected to the Internet through a proxy server.
3.1.4. Credentials Defined in Global Vagrantfile Ignored by vagrant-registration Copia collegamentoCollegamento copiato negli appunti!
To enable automatic registration of the Container Development Environment Vagrant box, credentials for to Red Hat Subscription must be defined in the Vagrantfiles that are supplied in the Red Hat Container Tools ZIP file. Credentials defined in the user’s global Vagrantfile in /home/<username>/.vagrant.d/ are ignored by the vagrant-registration plugin.
3.1.5. Certificate Error upon Log in to OpenShift Copia collegamentoCollegamento copiato negli appunti!
An insecure certificate causes an error when using oc login. Use the --insecure-skip-tls-verify=true option with the oc login command to prevent the warning about insecure connection.
3.1.6. Vagrant Reload Does Not Work behind Proxy Copia collegamentoCollegamento copiato negli appunti!
When using the Container Development Environment behind a proxy server, the vagrant reload command does not work properly, which results in OpenShift applications not loading. To avoid this issue, halt and restart your Container Development Environment Vagrant box using the vagrant halt and vagrant start commands.
3.1.7. Installation of Client Binaries Using vagrant-service-manager Does Not Support Relative Paths Copia collegamentoCollegamento copiato negli appunti!
Using the --path option with the install-cli command of the vagrant-service-manager plugin does not work as expected. The following error is shown:
3.1.8. Vagrant Box Will Not Start if PROXY_USER or PROXY_PASSWORD Are Not Set Copia collegamentoCollegamento copiato negli appunti!
If either of the environment variables, PROXY_USER or PROXY_PASSWORD, is unset, the vagrant up command does not work as expected. If they are unset, Vagrant may also log many events more rapidly than expected. There are two workarounds:
Export the environment variables PROXY_USER and PROXY_PASSWD to an empty string.
export PROXY_USER='' export PROXY_PASSWORD=''
$ export PROXY_USER='' $ export PROXY_PASSWORD=''Copy to Clipboard Copied! Toggle word wrap Toggle overflow Comment out the relevant parts of the Vagrantfile by inserting the
#character at the beginning of each of these lines:config.registration.proxy = PROXY = ENV['PROXY'] config.registration.proxyUser = PROXY_USER = ENV['PROXY_USER'] # if ENV.key?('PROXY_USER') config.registration.proxyPassword = PROXY_PASSWORD = ENV['PROXY_PASSWORD'] # if ENV.key?('PROXY_PASSWORD')config.registration.proxy = PROXY = ENV['PROXY'] config.registration.proxyUser = PROXY_USER = ENV['PROXY_USER'] # if ENV.key?('PROXY_USER') config.registration.proxyPassword = PROXY_PASSWORD = ENV['PROXY_PASSWORD'] # if ENV.key?('PROXY_PASSWORD')Copy to Clipboard Copied! Toggle word wrap Toggle overflow
3.1.9. The Vagrant VM May Run Out of Space Unexpectedly Copia collegamentoCollegamento copiato negli appunti!
In some circumstances, the filesystem may become full more quickly than expected. This impact can be minimized by running oadm-prune periodically. Filesystems that fill up can have an additional volume added to the affected volume group, to extend the runtime of the system. As the filesystem becomes full, growing log files may also fill the remaining space.
3.1.10. The vagrant-service-manager Plugin Does Not Install the Correct Version of the oc Binary by Default Copia collegamentoCollegamento copiato negli appunti!
The install-cli command provided by the vagrant-service-manager plugin does not install the 1.3.1 version recommended for OpenShift Container Platform version 3.3.1.3, which is supplied by the Container Development Environment by default. The correct version can be installed using the following command:
vagrant service-manager install-cli openshift --cli-version 1.3.1
$ vagrant service-manager install-cli openshift --cli-version 1.3.1
3.1.11. The Filesystem May Become Full After Several Days Copia collegamentoCollegamento copiato negli appunti!
In some circumstances, the filesystem may become full more quickly than expected. This impact can be minimized by running oadm-prune periodically. Filesystems that fill up can have an additional volume added to the affected volume group, to extend the runtime of the system. As the filesystem becomes full, growing log files may also the remaining space.
3.2. Issues on Microsoft Windows Copia collegamentoCollegamento copiato negli appunti!
This section describes issues that only affect users using Container Development Kit on a Microsoft Windows host system.
3.2.1. The vagrant-registration Plugin on Cygwin Bash Does Not Hide Password Copia collegamentoCollegamento copiato negli appunti!
When the vagrant-registration plugin is used in interactive mode in the Cygwin Bash terminal, the entered password is visible in the standard input. The following warning will be printed:
Error! Your console doesn't support hiding input. We'll ask for input again below, but we WILL NOT be able to hide input. If this is a problem for you, ctrl-C to exit and fix your stdin.
Error! Your console doesn't support hiding input. We'll ask for
input again below, but we WILL NOT be able to hide input. If this
is a problem for you, ctrl-C to exit and fix your stdin.
3.3. Issues on Red Hat Enterprise Linux Copia collegamentoCollegamento copiato negli appunti!
This section describes issues that only affect users using Container Development Kit on a Red Hat Enterprise Linux host system.
3.3.1. The docker Command Cannot Communicate with Container Development Kit Copia collegamentoCollegamento copiato negli appunti!
The /usr/bin/docker wrapper on Red Hat Enterprise Linux 7 overwrites the DOCKER_CERT_PATH environment variable, which means that the Docker client does not work properly with the Docker service provided by the Container Development Environment. To work around this issue, use directly the docker-current command.
3.3.2. libvirt Fails to Unlink Virtual Machine Image Copia collegamentoCollegamento copiato negli appunti!
On Red Hat Enterprise Linux 7.2, the vagrant destroy command does not properly delete the virtual machine storage image. To work around this libvirt bug, you need to change the ownership of the image file and perform several steps using the virsh command.
Deleting libvirt Images
Substitute vagrant_box_image.img with the libvirt image file name used on your system in all steps of this procedure. Use the virsh vol-list default command to list all images.
Change the ownership of the image file:
chown root:root /var/lib/libvirt/images/vagrant_box_image.img
# chown root:root /var/lib/libvirt/images/vagrant_box_image.imgCopy to Clipboard Copied! Toggle word wrap Toggle overflow Output volume information:
virsh vol-dumpxml vagrant_box_image.img --pool default
# virsh vol-dumpxml vagrant_box_image.img --pool defaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow Delete the image:
This can be done in two alternative ways. Use the second one if the first one does not work.
Use the
vol-deletecommand withvirsh:virsh vol-delete vagrant_box_image.img --pool default
# virsh vol-delete vagrant_box_image.img --pool defaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow Alternatively, delete the file directly and refresh the volume pool:
rm /var/lib/libvirt/images/vagrant_box_image.img virsh pool-refresh default
# rm /var/lib/libvirt/images/vagrant_box_image.img # virsh pool-refresh defaultCopy to Clipboard Copied! Toggle word wrap Toggle overflow
Restart the
libvirtddaemon:systemctl restart libvirtd
# systemctl restart libvirtdCopy to Clipboard Copied! Toggle word wrap Toggle overflow
3.3.3. Installation May Fail on Red Hat Enterprise Linux 7 Copia collegamentoCollegamento copiato negli appunti!
Installing the vagrant-service-manager plugin may fail on Red Hat Enterprise Linux 7 due to missing dependencies. You can install the missing packages with:
sudo yum -y install @'Development Tools' sudo yum -y install libvirt-devel rh-ruby22-ruby-devel
# sudo yum -y install @'Development Tools'
# sudo yum -y install libvirt-devel rh-ruby22-ruby-devel
The Vagrant plugins should then be installed:
vagrant plugin install vagrant-service-manager vagrant plugin install vagrant-registration vagrant-sshfs vagrant plugin list
# vagrant plugin install vagrant-service-manager
# vagrant plugin install vagrant-registration vagrant-sshfs
# vagrant plugin list
3.3.4. Kubernetes Causes Openshift to Stop or Prevent Openshift From Starting Copia collegamentoCollegamento copiato negli appunti!
Kubernetes startup will cause the openshift service in a VM to stop. Starting openshift after Kubernetes may also fail with an error. This problem can be verified with the command vagrant service-manager status openshift.