openstack-resource-controller icon indicating copy to clipboard operation
openstack-resource-controller copied to clipboard

CI environment does not support testing `dnsPublishFixedIP`

Open mandre opened this issue 11 months ago • 2 comments

I'm trying to create a subnet with:

---
apiVersion: openstack.k-orc.cloud/v1alpha1
kind: Subnet
metadata:
  name: create-full-v4
spec:
  cloudCredentialsRef:
    cloudName: devstack
    secretName: openstack-clouds
  managementPolicy: managed
  networkRef: create-full-v4
  resource:
    [snip]
    dnsPublishFixedIP: true

It returns a status with:

status:
  resource:
    [snip]
    dnsPublishFixedIP: false

Perhaps that's just an OpenStack thing, where my environment does not support this option.

mandre avatar Jan 23 '25 16:01 mandre

I've tried to debug in #203. From what I could see:

  • we correctly pass the value for dns_publish_fixed_ip to the subnet creation request
  • openstack creates the subnet, but without dns_publish_fixed_ip
  • we correctly report the status for the subnet

This most likely means that ORC is doing the right thing and that we're seeing there is only an environmental problem.

mandre avatar Jan 30 '25 07:01 mandre

After reading the designate and neutron related docs looks like we're missing a few steps:

  • set dns_domain in neutron.conf
  • add dns extension to ml2's extension_drivers setting
  • create a zone in designate
  • create the network with dns_domain option

mandre avatar Jan 30 '25 07:01 mandre