I just tried to create an OpenShift 4.7 cluster using a vCenter appliance that was configured with the "tiny" size from the installer. This gives it 2 vcpus and 10GB RAM. I was using Installer Provided Infrastructure (IPI) on vSphere 6.7. The cluster creation failed with a timeout. I looked at the vCenter server performance stats and saw that it was using all of its CPU and memory. So I destroyed the cluster and doubled the resources on the vCenter VM. I then ran the cluster creation again, and everything completed as expected.
Monday, March 22, 2021
Wednesday, March 17, 2021
Overprovisioning vCPUs in ESXi as a VMWare guest
Background
Solution
As you can see, my ESXi guest (32 vCPUs) has three guest VMs that are using a total of 42 vCPUs, and they're all running fine. If all of the vCPUs get busy, performance will degrade, but I don't expect that to ever happen in my lab.
Tuesday, March 16, 2021
Troubleshooting Red Hat CodeReady Containers
Background
Environment
Guest VM
crc VM log file
virsh command
virsh list --all
virt-manager
You can then click on the crc VM to see the console. There is no way to actually log into the crc VM because you can only log in via the core user's private key (shown later). Googling around, I see that password access has been requested/suggested, but there appears to be no plan to implement it at this time.
crc VM
crc pods log files
ssh -i ~/.crc/machines/crc/id_ecdsa core@api.crc.testing
That's all for now
As I said in the beginning, I just included a few tools, but this is more than in the product documentation. CRC and OpenShift are really complex frameworks that rely on tons of components like libvirt, Kubernetes, and tons of other complex components. It is understandable why it's so hard to troubleshoot. However, I personally believe that the development team could include more logging information in the web console itself so that users/operators of the system have access to the data without having to separately open a terminal window.Monday, March 15, 2021
Increasing the crc VM disk size for CodeReady Containers
Background
Versions and hardware specs
Start
First Issue
libguestfs-tools
libguestfs-xfs
Increase the disk size of the crc.qcow2 image
CRC_MACHINE_IMAGE=${HOME}/crc.qcow2
sudo qemu-img resize ${CRC_MACHINE_IMAGE} +900G
sudo cp ${CRC_MACHINE_IMAGE}
${CRC_MACHINE_IMAGE}.ORIGINAL
# user qemu needs access to the file AND the directory
containing the file.
sudo chown qemu.qemu crc*
sudo mv crc* /tmp
cd /tmp
sudo virt-resize --expand /dev/vda4
${CRC_MACHINE_IMAGE}.ORIGINAL ${CRC_MACHINE_IMAGE}
# The above command took 30+ minutes on my machine.
This is
what success looks like at the end of the command:
Resize
operation completed with no errors.
carefully
check that the resized disk boots and works correctly.
Before deleting the old disk,
Copy the crc.qcow2 file back
Get the sha256sum value and size of the file
sha256sum crc.qcow2
01839ceda9cad333d7ae9f5033a54c528698ec70bdde2077a7669efd9cf923c9
Edit the crc-bundle-info.json file
Why?
Now run 'crc start'
INFO Creating CodeReady Containers VM for
OpenShift 4.7.0...
Error creating machine: Error creating the
VM: Error creating machine: Error in driver during machine creation: current
disk image capacity is bigger than the requested size (999653638144 >
33285996544)
ssh -i ~/.crc/machines/crc/id_ecdsa core@api.crc.testing
Thursday, March 11, 2021
VMWare Workstation 16 Pro on Windows 10 Shared Folders Not Available In Linux Guest
This is a small problem with an easy fix, but I wanted to document it for others.
Running VMWare Workstation 16 Pro on Windows 10 Pro, when you create a Linux guest VM with Shared Folders enabled, the shared folders don't always show up in the guest VM. In the guest VM, you should see any shared folders under /mnt/hgfs. The problem is that they aren't seen there, even if you reboot the guest VM. The silly fix is to disable shared folders for the VM from VM->Settings->Options and SAVE that. Then go back into VM->Settings->Options and enable shared folders and SAVE that. Your shared folders should now be available under /mnt/hgfs.
Monday, March 8, 2021
We're still your go-to experts for all IBM ITSM products
While we've been posting about other products, our primary focus remains the IBM suite of ITSM tools, such as:
IBM Tivoli Monitoring
ITCAM
Netcool Operations Insight (and the individual products that make it up)
Watson AIOps
Instana
Our consultants have decades of experience in ITSM and ESM, and we can ensure that your implementation is successful.
Wednesday, March 3, 2021
Deleting newlines or merging two lines in a file using Notepad++
It took me longer than it should have to find this link explaining how to delete a newline or merge two lines in Notepad++:
https://stackoverflow.com/questions/11084086/notepad-merge-2-lines-into-1-line
Here's the text from the answer in case the above link disappears at some point:
Use the extended replace functionality and replace "\r\nname" with " name"
Substitute appropriate line ending characters for \r\n depending on the file.
If it is from windows, use \r\n
If it is from unix, use \n
If it is from mac, use \r
Basically, you need to find and replace the appropriate characters, and it works just like one would expect. Finding the complete set of correct characters was the key for me. Specifically, I wasn't finding "\r\n" (CRLF, the Windows newline characters). Using the above, I was able to successfully delete some spurious newlines in my data.