Skip to content

Server Group API #434

Closed
Closed

Description

@WarriorXK

Hi there,

I noticed that the server group objects are not available in the SDK, would it be possible to implement this?
https://docs.openstack.org/api-ref/compute/#server-groups-os-server-groups

Activity

  1. k0ka commented on Mar 7, 2026

    @k0ka
    Member
  2. WarriorXK commented on Mar 8, 2026

    @WarriorXK
    Author

    Hi @k0ka,

    Thanks for the quick implementation, its appreciated.
    It works great, but I did notice that we cannot assign the server group yet during server creation (The os:scheduler_hints key). Is this something you can implement too?

  3. k0ka commented on Mar 8, 2026

    @k0ka
    Member

    Yep, that's a good question =). Actually we should check it in the first place, as os:scheduler_hints can do almost same things as group servers (but less convenient).

    Added it to https://github.com/php-opencloud/openstack/releases/tag/v3.16.1

    Here is the documentation on how to add a server to a group: https://php-openstack-sdk.readthedocs.io/en/latest/services/compute/v2/server-groups.html#create-a-server-in-a-group

    Other scheduler hints (like build_near_host_ip, cidr, etc) should also work properly, but I didn't test them directly.

  4. WarriorXK commented on Mar 9, 2026

    @WarriorXK
    Author

    Great, thank for for this. The group indeed works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions