Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ClusterStackRelease is ready even when OpenStackClusterStackRelease is not

未关闭
#59 8 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
go

调研方向

Start by tracing how ClusterStackRelease evaluates the providerClusterStackRelease status, then compare that behavior with the OpenStackClusterStackRelease and OpenStackNodeImageRelease statuses shown in the kubectl output. Confirm the intended handling when the provider release is not ready, including ClusterClass lifecycle, and add or update coverage for the reported sequence.

由索引模型根据 Issue 内容生成。

描述

Container

/kind question

Question

I created clusterstack:

apiVersion: clusterstack.x-k8s.io/v1alpha1
kind: ClusterStack
metadata:
  name: clusterstack
  namespace: cluster
spec:
  provider: openstack
  name: ferrol
  kubernetesVersion: "1.27"
  channel: stable
  autoSubscribe: false
  providerRef:
    apiVersion: infrastructure.clusterstack.x-k8s.io/v1alpha1
    kind: OpenStackClusterStackReleaseTemplate
    name: cspotemplate
  versions:
  - v4

And every created resource has status ready true.

Then, for OpenStack, I deactivated one image so object OpenStackNodeImageRelease is ready false(because the image is not active and cannot be used):

$ k get osnir openstack-ferrol-1-27-ubuntu-capi-image-v1.27.8-v2 -n cluster
NAME                                                 READY   AGE   REASON                    MESSAGE
openstack-ferrol-1-27-ubuntu-capi-image-v1.27.8-v2   false   83m   IssueWithOpenStackImage   image status deactivated is unexpected

CSPO correctly set status also on OpenStackClusterStackRelease object:

$ k get oscsr openstack-ferrol-1-27-v4 -n cluster
NAME                       READY   AGE   REASON           MESSAGE
openstack-ferrol-1-27-v4   false   83m   ProcessOngoing   OpenStackNodeImageReleases not ready yet

Also, there is a nice message from CSO on ClusterStackRelase object:

$ k get clusterstackrelease openstack-ferrol-1-27-v4 -n cluster
NAME                       K8S VERSION   READY   AGE   REASON           MESSAGE
openstack-ferrol-1-27-v4   v1.27.8       true    84m   ProcessOngoing   providerClusterStackRelease not ready yet

But I expected also the READY status to be false here and the deletion of ClusterClass if it is not used.

$ k get clusterclass openstack-ferrol-1-27-v4 -n cluster 
NAME                       AGE
openstack-ferrol-1-27-v4   85m

So my question is: Is it meant to be?

主要语言
Go
星标
18
派生
5
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

SovereignCloudStack/cluster-stack-operator 的其他 Issue

查看 SovereignCloudStack/cluster-stack-operator 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。