Uploaded image for project: 'OpenStack as Infra'
  1. OpenStack as Infra
  2. OSASINFRA-4106

GH-orc-659: Port binding hostID should be immutable when bound to a server

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • ORC
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Selected
    • rhos-conplat-osasinfra
    • 1
    • ShiftStack Sprint 284

      Originally posted on Github: https://github.com/k-orc/openstack-resource-controller/issues/659

      Taken from a discussion in #646, we identified a possible problem where a port could be bound to a different host than it's original binding:

      Got it. I'd add in somewhere saying that the hostID from port doesn't affect the schedule of the server, as you can see in the test I made in the first comment, so I'm afraid to have a inconsistency state. So imagine:
      1. Create a port with `hostID.ID = compute1`

      2. Attach it to a server without any scheduler option to a host

      3. The server spawn in compute2

      4. The binding information for the port change to `compute2`

      And in the port spec, we have compute1 still. Am I thinking correctly?

      I believe you're right. But we have an identical problem if you pass the ID directly rather than a server ref. So perhaps we need to make hostID immutable?
      Originally posted by @mandre in #646 (comment)
      We'll need to conduct some tests and decide what the correct solution is in that case.

              maandre@redhat.com Martin André
              maandre@redhat.com Martin André
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: