📖
Isu's Wiki
  • Welcome to Isu's Wiki
  • Linux
    • SSH Automatic Login
    • Nginx HTTPS
    • Nginx Login Page
    • OpenVPN Server
    • PPTP Client Settings
    • LVM Allocation
    • Partition and Mount
    • Vagrant and VirtualBox
    • Bind9 SRV Record
    • Git Two Remote
    • ESXi Nvidia - 525.89.02
    • Install Qemu
    • Recover network (no netplan, iproute2)
  • Kubernetes
    • Kubernetes Reset
    • x509 Certificate Renewal
  • LaTeX
    • Code Snippet with Box in LaTeX
  • Go
    • [gRPC] Generate .pb.go from .proto
  • eBPF
    • [Kprobe] Get Argument Values
    • [Cilium] TroubleShooting
    • [Python] Install BCC
  • MicroStack
    • [Microstack] Add Image
    • [Microstack] Quota Manage
    • [Microstack] Security Group
    • [Microstack] Overcommit Resources
  • CentOS
    • Change Interface Name
    • Install Vagrant with vagrant-libvirt
  • OpenStack
    • [Nova] noVNC not working
    • [Basic] OpenStack Installation
    • [Magnum] TroubleShooting
Powered by GitBook
On this page
  • 1. Failed to create certificates for Cluster
  • 2. unexpected keystone client error occurred: publicURL endpoint for orchestration service in RegionOne region not found
  • 3. ERROR: The Parameter (octavia_provider) was not defined in template.
  • 4. I don’t see any images in templates!
  • 5. The state is stuck at CREATE_IN_PROGRESS
  1. OpenStack

[Magnum] TroubleShooting

All trouble shooting for Magnum that I have encountered

1. Failed to create certificates for Cluster

This occurs due to Magnum unable to generate SSL/TLS certificate. In Magnum, there are three options to generate and store certificates:

  • Barbican

  • Magnum’s own database

  • Local store

Check /etc/magnum/magnum.conf and look for [certificates] section. Make the cert_manager_type as x509keypair instead of barbican and local like below:

[certificates]

#
# From magnum.conf
#

# Certificate Manager plugin. Defaults to barbican. (string value)
#cert_manager_type = barbican
#cert_manager_type=local
cert_manager_type = x509keypair

Then apply the change by:

sudo systemctl restart openstack-magnum-api.service
sudo systemctl restart openstack-magnum-conductor.service

2. unexpected keystone client error occurred: publicURL endpoint for orchestration service in RegionOne region not found

This occurs due to Magnum not having Heat installed. In order for Magnum to work, we need Heat orchestration service running.

Try

sudo packstack --install --os-heat-install=y

This might or might not work. If the command failed with Parameter CONFIG_CONTROLLER_HOST failed validation: Given host does not listen on port 22:, reinstall whole OpenStack using PackStack.

Seriously. I have tried --os-controller-host arguments with sshd running in the background, but it seems not to recognize the host.

If you know the exact value for PW_PLACEHOLDER you can just install it using packstack with creating another answers.txt file with the same value, but with skipping compute node and network node.

3. ERROR: The Parameter (octavia_provider) was not defined in template.

4. I don’t see any images in templates!

The name or UUID of the base image in Glance to boot the servers for the cluster. The image must have the attribute ‘os_distro’ defined as appropriate for the cluster driver. For the currently supported images, the os_distro names are:

openstack image create "fedora-core" --file fedora-coreos-37.20230218.3.0-qemu.x86_64.qcow2--disk-format qcow2 --container-format bare --public --property os_distro=fedora-coreos

Important

The downloade file is .xz file which needs to be extracted before being added into Glance as an image. Use xz -d filename.qcow2.xz to retrieve the qcow2 file. Glance will NOT warn us whether if this was a proper image file or not.

Using qcow2.xz instead of qcow2 will generate an instance but will not run. It will be marked Active and has been assigned IPs, however will NOT be able to access it via ssh or check status by ping

5. The state is stuck at CREATE_IN_PROGRESS

CREATE_IN_PROGRESS takes a bit of time since it intializes all Kubernetes and CNI as well. However, if it seems like it is stuck for a long time, something might be running awkward.

Case 1) You have instances

In instances tab from Horizon, you can actually see your instances running properly. For example, if you see new-new-k8s-5-4g3hmm2jqalj-master-0 from your instances, this means that Magnum actually generated an instance for the cluster.

However, since something went on dead wrong, it could not continue Kubernetes installation. There were some cases that I had encountered:

  • Check if those newly created instances are actually running. Meaning that check if we can actually ping, and ssh into the instances manually. If not, there is high chance of that instance not being created properly. Magnum will just wait for that instance to actually run properly.

  • Check if you can actually make an instance manually with the same flavor and image that you would like the cluster to have. Once you can create and access the instance using ssh and ping, it means the image is okay.

  • Check if you can actually access the cluster instance manually with ssh. If you can access it, check kubectl command's existence. Or check ps -ef | grep kube for checking if the installation process is still running.

Case 2) You do not have instance

When you do not see an instance running in the instance tab from Horizon, it means that something went wrong prior to Magnum launching an instance. Normally in this case, the status will not be marked asCREATE_IN_PROGRESS. It will be marked as something like CREATE_FAILED. In this case, check other trouble shooting methods in this page

Previous[Basic] OpenStack Installation

Last updated 2 years ago

Check and look for “Storing the certificates”

Check for Magnum’s dependencies.

This is due to the compatability issue of OS image and the Magnum cluster’s template. Check for more information.

There is a compatability matrix () which tells you which version goes well with which version. Check the wiki’s matrix.

According to,

Therefore, the image must have property of os_distro=fedora-coreos for Kubernetes. Download OS image from . Then build the image using:

https://docs.openstack.org/magnum/latest/user/
¶
https://www.openstack.org/software/releases/zed/components/magnum
https://stackoverflow.com/questions/56339692/openstack-magnum-error-the-parameter-octavia-ingress-controller-tag-was-not-d
https://wiki.openstack.org/wiki/Magnum
https://docs.openstack.org/magnum/latest/user/
https://getfedora.org/en/coreos/download?tab=metal_virtualized&stream=stable&arch=x86_64