Skip to content

Conversation

@hertrste
Copy link
Contributor

@hertrste hertrste commented Sep 5, 2025

When not using the testing modules, the openstack systemd services could not come up because they couldn't reach the controller. The user had to set some hosts entry himself so that controller is reachable via name.

We add some nixos option to configure a controllerIP which will result in the proper hosts entry being made by nix. Further, a nice error is now printed if the controllerIP is not set.

See #12

{
options.openstack = {
controllerIP = mkOption {
type = types.str;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type = types.str;
type = types.nonEmptyStr;

Copy link
Member

@phip1611 phip1611 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM apart from a few nits

Previously, a user not using the testing modules had to set the hosts
entry himself, while with the new module we get an error if that
controller host is not configured.

On-behalf-of: SAP stefan.kober@sap.com
in both compute and controller. This way, a user of any of this modules
has to set an IP for the controller. Otherwise, the services cannot
function properly.

On-behalf-of: SAP stefan.kober@sap.com
We set some actual controller IP via the new module, allowing us to
remove the custom extraHosts entry that was used previously.

On-behalf-of: SAP stefan.kober@sap.com
Copy link
Collaborator

@parthy parthy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@hertrste hertrste merged commit d4b10a8 into main Sep 8, 2025
6 checks passed
@phip1611 phip1611 deleted the hostname branch September 8, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants