Skip to content

Add image metadata to the OpenStack node-images.yaml as is defined in the related SCS standard #23

Open

Description

@matofeder

/kind feature

SCS standard scs-0102-v1-image-metadata describes what metadata (properties and tags) should be assigned to the image that is offered by the CSP.

These properties and tags are then evaluated by the Conformance Tests (script image-md-check.py).

CSPO supports a full list of create options, defined by the OpenStack API. Hence the node-images.yaml should include all mandatory properties and tags for each image.

Current state of node-images.yaml (openstack cluster stack)

apiVersion: openstack.infrastructure.clusterstack.x-k8s.io/v1alpha1
openStackNodeImages:
  - url: https://swift.services.a.regiocloud.tech/swift/v1/AUTH_b182637428444b9aa302bb8d5a5a418c/openstack-k8s-capi-images/ubuntu-2204-kube-v1.28/ubuntu-2204-kube-v1.28.6.qcow2
    createOpts:
      name: ubuntu-capi-image-v1.28.6
      disk_format: qcow2
      container_format: bare
      visibility: shared

Desired state of node-images.yaml (openstack cluster stack)

apiVersion: openstack.infrastructure.clusterstack.x-k8s.io/v1alpha1
openStackNodeImages:
  - url: https://swift.services.a.regiocloud.tech/swift/v1/AUTH_b182637428444b9aa302bb8d5a5a418c/openstack-k8s-capi-images/ubuntu-2204-kube-v1.28/ubuntu-2204-kube-v1.28.6.qcow2
    createOpts:
      name: ubuntu-capi-image-v1.28.6
      disk_format: qcow2
      container_format: bare
      visibility: shared
      properties:
      - architecture: x86_64 
      - ....
      tags:
      - managed_by_scs

Note: see KaaS V1 implementation

Activity

  1. added
    Container
    on Feb 28, 2024
  2. self-assigned this
    on Mar 3, 2024
  3. added
    Sprint Bratislava
    Sprint Wellington
    and removed
    Sprint Bratislava
    on Mar 3, 2024
  4. eigenpaul commented on Mar 5, 2024

    @eigenpaul
    Contributor

    We should also change visibility: shared to visibility: private. There is no need to have this exposed to every tenant.

  5. chess-knight commented on Apr 16, 2024

    @chess-knight
    Member

    Hi, @paulphys. Are you working on this, or we can take over?

  6. eigenpaul commented on Apr 16, 2024

    @eigenpaul
    Contributor

    No I'm not, the issue is all yours if you wish

  7. removed
    Sprint Wellington
    on Apr 16, 2024
  8. michal-gubricky commented on May 15, 2024

    @michal-gubricky
    Contributor

    The Properties reference is hidden for the Images JSON serialization, see here. Therefore, CSPO is unable to create images in OpenStack with properties defined in this field. Upstream issues#3033.

  9. moved this from Backlog to Blocked / On hold in Sovereign Cloud Stackon May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Container

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions