CCI-MOC / flocx-market

2 stars 9 forks source link

server_id should not be unique #50

Closed larsks closed 5 years ago

larsks commented 5 years ago

attempting to create an offer with the same server_id as an existing offer will fail:

E       sqlalchemy.exc.IntegrityError: ... UNIQUE constraint failed: offers.server_id

It should be possible create multiple offers from a server as long as they don't overlap in time.

larsks commented 5 years ago

So @tzumainn here's a question:

If we have multiple offers for the same server, does each offer contain the hardware specs separately? Or do we need a Server object to hold the hardware specs, which we then reference from each offer?

tzumainn commented 5 years ago

Ugh, good question. At a certain point is the real answer something like federated ironic or something?