Hey Nguyen,

I'm sorry to hear that you are stuck with your OpenStack cluster. 

It seems that you are getting a 404 Client Error when trying to create a cluster using the magnum API. This could be due to several reasons, such as:

- The cluster template ID that you are using is not valid or does not exist. You can check the list of available cluster templates by running “openstack coe cluster“ template list

- The image ID that you are using is not compatible with the COE that you have selected. You can check the supported COEs and images by running “openstack coe list”

- The network driver or volume driver that you are using is not supported by the COE or the image. You can check the supported drivers and options by running “openstack coe driver list” and “openstack image show <image-id>”

- The security group or firewall rules that you have configured on your OpenStack instance or network are blocking the access to the magnum API endpoint. You can check the security group settings by running “openstack security group show <security-group-id>” and “openstack firewall show <firewall-id>”

To troubleshoot your issue, I suggest that you try the following steps below:

- Verify that your cluster template ID, image ID, network driver, volume driver, and security group settings are correct and match your requirements.

- Restart your OpenStack instance and/or network to apply any changes.

- Run “openstack coe cluster show <cluster-id>” to see if your cluster is in a valid state.

- Run “kubectl version --certificate-authority=ca.pem \\ --client-key=key.pem \\ --client-certificate=cert.pem -s <kubernetes-url>” to see if your Kubernetes client can connect to your cluster.

- If none of these steps resolve your issue, you may need to contact OpenStack support if you have a Premium License instead of Commercial one :)

I hope this helps you fix your problem. Please let me know if you have any other questions or feedback. 😊

Best,
Kerem Çeliker
Head of Cloud Architecture
tr.linkedin.com/in/keremceliker

On 17 Dec 2023, at 12:35, openstack-discuss-request@lists.openstack.org wrote:

Send openstack-discuss mailing list submissions to
   openstack-discuss@lists.openstack.org

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
   openstack-discuss-request@lists.openstack.org

You can reach the person managing the list at
   openstack-discuss-owner@lists.openstack.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of openstack-discuss digest..."

Today's Topics:

  1. Re: about magnum capi for production (Nguyễn Hữu Khôi)
  2. Re: about magnum capi for production (Satish Patel)
  3. Re: about magnum capi for production (Nguyễn Hữu Khôi)


----------------------------------------------------------------------

Message: 1
Date: Sun, 17 Dec 2023 16:11:51 +0700
From: Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com>
Subject: Re: about magnum capi for production
To: Satish Patel <satish.txt@gmail.com>
Cc: OpenStack Discuss <openstack-discuss@lists.openstack.org>
Message-ID:
   <CABAODRcRxgOp1sn7muB2Lqov+3mtDdT1PSaKJfstZ0LoEHT4ZQ@mail.gmail.com>
Content-Type: multipart/alternative;
   boundary="000000000000dab7c1060cb10685"

Hi.
I setup a k8s cluster managent by kubespray.

About load, we can scale up or scale out our k8s node. just monitor it and
you will know how to do.
-------------- next part --------------
A message part incompatible with plain text digests has been removed ...
Name: not available
Type: text/html
Size: 205 bytes
Desc: not available

------------------------------

Message: 2
Date: Sun, 17 Dec 2023 04:25:40 -0500
From: Satish Patel <satish.txt@gmail.com>
Subject: Re: about magnum capi for production
To: Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com>
Cc: OpenStack Discuss <openstack-discuss@lists.openstack.org>
Message-ID:
   <CAPgF-fp2Kwbkvfbr-WR4=1GUErhryj9pt5hJ=kwNnvQX7MZwAg@mail.gmail.com>
Content-Type: multipart/alternative;
   boundary="00000000000037f75b060cb1389a"

Thank you,

I am stuck here.. I have build kind cluster outside kolla-ansible and copy
~/.kube/config to magnum_api and conductor container as per documented and
when trying to create cluster getting following error # openstack coe
cluster show mycluster2

+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
| Field                | Value

                  |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
| status               | CREATE_FAILED

                  |
| health_status        | None

                  |
| cluster_template_id  | 2ddfdf2a-5962-42ee-a2e2-ff9e0b19dbe5

                  |
| node_addresses       | []

                  |
| uuid                 | abf42808-d67c-450e-88e0-a20e65f35232

                  |
| stack_id             | kube-a0lo8

                  |
| status_reason        | 404 Client Error: Not Found for url:
https://192.168.18.234:6443/apis/infrastructure.cluster.x-k8s.io/v1alpha7/namespaces/magnum-
     |
|                      |
system/openstackmachinetemplates/magnum-v0.13.0?fieldManager=atmosphere-operator&force=True
                                           |
| created_at           | 2023-12-17T09:16:05+00:00

                  |
| updated_at           | 2023-12-17T09:16:11+00:00

                  |
| coe_version          | None

                  |
| labels               | {'kube_tag': 'v1.27.4'}

                  |
| labels_overridden    | {}

                  |
| labels_skipped       | {}

                  |
| labels_added         | {}

                  |
| fixed_network        | None

                  |
| fixed_subnet         | None

                  |
| floating_ip_enabled  | True

                  |
| faults               | {}

                  |
| keypair              | None

                  |
| api_address          | None

                  |
| master_addresses     | []

                  |
| master_lb_enabled    | False

                  |
| create_timeout       | 60

                  |
| node_count           | 1

                  |
| discovery_url        | None

                  |
| docker_volume_size   | None

                  |
| master_count         | 1

                  |
| container_version    | None

                  |
| name                 | mycluster2

                  |
| master_flavor_id     | m1.medium

                  |
| flavor_id            | m1.medium

                  |
| health_status_reason | {}

                  |
| project_id           | 08cae850a5bb47d998da180a7f0e2660

                  |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+


I have kind cluster configured as per documented

# kubectl get namespaces
NAME                                STATUS   AGE
capi-kubeadm-bootstrap-system       Active   11h
capi-kubeadm-control-plane-system   Active   11h
capi-system                         Active   11h
capo-system                         Active   11h
cert-manager                        Active   11h
default                             Active   11h
kube-node-lease                     Active   11h
kube-public                         Active   11h
kube-system                         Active   11h
local-path-storage                  Active   11h
magnum-system                       Active   11h


# kubectl get deployment --all-namespaces
NAMESPACE                           NAME
            READY   UP-TO-DATE   AVAILABLE   AGE
capi-kubeadm-bootstrap-system
capi-kubeadm-bootstrap-controller-manager       1/1     1            1
         11h
capi-kubeadm-control-plane-system
capi-kubeadm-control-plane-controller-manager   1/1     1            1
         11h
capi-system                         capi-controller-manager
            1/1     1            1           11h
capo-system                         capo-controller-manager
            1/1     1            1           11h
cert-manager                        cert-manager
            1/1     1            1           11h
cert-manager                        cert-manager-cainjector
            1/1     1            1           11h
cert-manager                        cert-manager-webhook
            1/1     1            1           11h
kube-system                         coredns
            2/2     2            2           11h
local-path-storage                  local-path-provisioner
            1/1     1            1           11h


What did I miss?


On Sun, Dec 17, 2023 at 4:12 AM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com>
wrote:

Hi.
I setup a k8s cluster managent by kubespray.

About load, we can scale up or scale out our k8s node. just monitor it and
you will know how to do.

-------------- next part --------------
A message part incompatible with plain text digests has been removed ...
Name: not available
Type: text/html
Size: 12066 bytes
Desc: not available

------------------------------

Message: 3
Date: Sun, 17 Dec 2023 16:34:50 +0700
From: Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com>
Subject: Re: about magnum capi for production
To: Satish Patel <satish.txt@gmail.com>
Cc: OpenStack Discuss <openstack-discuss@lists.openstack.org>
Message-ID:
   <CABAODRc_b7QWG8zB4oOQseRU0xHAePcq63EfeyTmnyJzJ4g25Q@mail.gmail.com>
Content-Type: multipart/alternative;
   boundary="000000000000084c24060cb159e6"

Hi.

Where you put "/.kube/config" inside the containers.

Nguyen Huu Khoi


On Sun, Dec 17, 2023 at 4:25 PM Satish Patel <satish.txt@gmail.com> wrote:

Thank you,

I am stuck here.. I have build kind cluster outside kolla-ansible and copy
~/.kube/config to magnum_api and conductor container as per documented and
when trying to create cluster getting following error # openstack coe
cluster show mycluster2

+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
| Field                | Value                                                                                                                                   |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
| status               | CREATE_FAILED                                                                                                                           |
| health_status        | None                                                                                                                                    |
| cluster_template_id  | 2ddfdf2a-5962-42ee-a2e2-ff9e0b19dbe5                                                                                                    |
| node_addresses       | []                                                                                                                                      |
| uuid                 | abf42808-d67c-450e-88e0-a20e65f35232                                                                                                    |
| stack_id             | kube-a0lo8                                                                                                                              |
| status_reason        | 404 Client Error: Not Found for url: https://192.168.18.234:6443/apis/infrastructure.cluster.x-k8s.io/v1alpha7/namespaces/magnum-       |
|                      | system/openstackmachinetemplates/magnum-v0.13.0?fieldManager=atmosphere-operator&force=True                                             |
| created_at           | 2023-12-17T09:16:05+00:00                                                                                                               |
| updated_at           | 2023-12-17T09:16:11+00:00                                                                                                               |
| coe_version          | None                                                                                                                                    |
| labels               | {'kube_tag': 'v1.27.4'}                                                                                                                 |
| labels_overridden    | {}                                                                                                                                      |
| labels_skipped       | {}                                                                                                                                      |
| labels_added         | {}                                                                                                                                      |
| fixed_network        | None                                                                                                                                    |
| fixed_subnet         | None                                                                                                                                    |
| floating_ip_enabled  | True                                                                                                                                    |
| faults               | {}                                                                                                                                      |
| keypair              | None                                                                                                                                    |
| api_address          | None                                                                                                                                    |
| master_addresses     | []                                                                                                                                      |
| master_lb_enabled    | False                                                                                                                                   |
| create_timeout       | 60                                                                                                                                      |
| node_count           | 1                                                                                                                                       |
| discovery_url        | None                                                                                                                                    |
| docker_volume_size   | None                                                                                                                                    |
| master_count         | 1                                                                                                                                       |
| container_version    | None                                                                                                                                    |
| name                 | mycluster2                                                                                                                              |
| master_flavor_id     | m1.medium                                                                                                                               |
| flavor_id            | m1.medium                                                                                                                               |
| health_status_reason | {}                                                                                                                                      |
| project_id           | 08cae850a5bb47d998da180a7f0e2660                                                                                                        |
+----------------------+-----------------------------------------------------------------------------------------------------------------------------------------+


I have kind cluster configured as per documented

# kubectl get namespaces
NAME                                STATUS   AGE
capi-kubeadm-bootstrap-system       Active   11h
capi-kubeadm-control-plane-system   Active   11h
capi-system                         Active   11h
capo-system                         Active   11h
cert-manager                        Active   11h
default                             Active   11h
kube-node-lease                     Active   11h
kube-public                         Active   11h
kube-system                         Active   11h
local-path-storage                  Active   11h
magnum-system                       Active   11h


# kubectl get deployment --all-namespaces
NAMESPACE                           NAME                                            READY   UP-TO-DATE   AVAILABLE   AGE
capi-kubeadm-bootstrap-system       capi-kubeadm-bootstrap-controller-manager       1/1     1            1           11h
capi-kubeadm-control-plane-system   capi-kubeadm-control-plane-controller-manager   1/1     1            1           11h
capi-system                         capi-controller-manager                         1/1     1            1           11h
capo-system                         capo-controller-manager                         1/1     1            1           11h
cert-manager                        cert-manager                                    1/1     1            1           11h
cert-manager                        cert-manager-cainjector                         1/1     1            1           11h
cert-manager                        cert-manager-webhook                            1/1     1            1           11h
kube-system                         coredns                                         2/2     2            2           11h
local-path-storage                  local-path-provisioner                          1/1     1            1           11h


What did I miss?


On Sun, Dec 17, 2023 at 4:12 AM Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com>
wrote:

Hi.
I setup a k8s cluster managent by kubespray.

About load, we can scale up or scale out our k8s node. just monitor it
and you will know how to do.


-------------- next part --------------
A message part incompatible with plain text digests has been removed ...
Name: not available
Type: text/html
Size: 12419 bytes
Desc: not available

------------------------------

Subject: Digest Footer

_______________________________________________
openstack-discuss mailing list -- openstack-discuss@lists.openstack.org
To unsubscribe send an email to openstack-discuss-leave@lists.openstack.org


------------------------------

End of openstack-discuss Digest, Vol 62, Issue 59
*************************************************