Now when Mogan manage the baremetal node from driver,
Mogan didn't know it is a managed server.
We need add this information "managed_server=True" to
system metadata for internal use.
So this patch will finish two jobs:
1. Implements the system metadata in Mogan
2. Add manageable server information into system metadata
Co-Authored-By: Xinran WANG <xin-ran.wang@intel.com>
Change-Id: I89947796e120d89ec56f8f5daeb9774cf15b6bd0
Implements: blueprint system-metadata
Closes-Bug: #1727913
locked_by can be used to check the lock status, there's no
need to keep locked field.
Change-Id: I3761ab710cf67d56163a39add4c51ee48f940a36
Closes-Bug: #1727944
Currently we support to list compute nodes and aggregate nodes
with names, but server show will return the node uuid always,
which makes the admins have to go to ironic to get the relationship
between name and uuid, so this changes to return node name.
Change-Id: I6f1e5d0f9cfe277fe952d21b38ebfe68dde4f745
Closes-Bug: #1715036
This field will indicate whether we should delete or unbind the
port during server deletion or detaching interfaces.
Change-Id: I25834a82b83806bf87b4c7006a8d33d56e2ce976
Closes-Bug: #1715040
This adds root disk partitons support to allow users to specify
root, ephemeral, and swap size.
Implements: bp root-disk-partitions
Change-Id: I9562f39501c23579ba561f0cd4cbb8ef60674a6b
Currently we support to list compute nodes and aggregate nodes
with names, but server show will return the node uuid always,
which make the admins have to go ironic to get the relationship
between name and uuid, so this changes to return node name.
Change-Id: Ia0e5122aa29c4de2e870c5b71c420de49530ba92
Closes-Bug: #1715036
This change add ServerGroup, ServerGroupPolicy and ServerGroupMember
models, and add several basic DB interfaces.
Partially Implements: bp server-group-api-extension
Change-Id: I86e17798718fc26e1fd6a1fe1c33ee408738b6da
This addes a new aggregates field to flavor including
aggregates metadata key/value pairs. Then we can extract
resources quantitive, qualative and group informations
from flavors.
Change-Id: Ia85ff44fa9aabf2ef172c65c9ba9a3f0ce611b50
Introduce the quota management in keypair creation and deletion.
Change-Id: I8241b0bfb38a9c41b564df07a7799e4bc5438c0d
Implements: blueprint quota-support
This addes aggregates db model with migrations and the related
API.
Partially Implements: bp node-aggregate
Change-Id: I019a9a4a5483750dc42a8cbf714a9d194d37fae8
This change clean the compute_node and compute_port versioned object
implementation and them db interfaces, after we totally switch to use
placement, we don't need to store any node info in Mogan's db.
Partially Implements: bp track-resources-using-placement
Change-Id: I515674d17a85a77a9380a60ef918dc6dbda8ed83
The `resource_traits` field is intended to be used to reference
the resource qualities.
Partially Implements: bp new-flavor
Change-Id: I5fa154dbf8bc96d15c3cdd3699c671e5eccc1cdd
The `resources` field is intended to be used to reference baremetal
node resource classes and also other generic resources in the cloud
tracked by placement.
Partially Implements: bp new-flavor
Change-Id: I4e8fe15aed612e62cec96d1acad236cd0924d597
This reverts commit 4b3a7dc31c.
We don't have a disks notion in mogan yet, and there's not a plan for
support it in Pike release, so get rid of it in case of making users
confusion.
Change-Id: I84a4dec001e68b9ef9a597389136587d18a45e39
The `disabled` field is intended to be used when phasing out
flavors. In this case, a delete wouldn't work because the flavor
needs to still be available for live servers using that flavor,
but we don't want to allow *new* servers created from that flavor.
Partially Implements: bp new-flavor
Change-Id: I12713bfe13f506a0d9bb79f733b00bd637ef227b
This removes flavor extra specs table and related methods,
moving extra specs to flavor table to make things simple,
as we have already changed to use flavor PATCH method to
manage such things.
Change-Id: I1fb5445b7d194b50b052b77624a70e59af547911
Currently, we use node_type property to link with the flavors, but
ironic node's resource_class field just want to do such thing, so
we can just change to use it instead of adding a new node property.
Change-Id: I535606ce05299037a7bd5aacdcd7869ca5f855c4
Closes-Bug: #1695819
This patch introduces the quota operation in
creating and deleting instances process.
Change-Id: If6573fafc5acb805cf727acdc8f0f9872fc1a717
Implements: blueprint quota-support
We have saved node ports information to DB, so change to use it
instead of issuing an extra API request.
Change-Id: I5b9183a1afdcb1e9444a88dfa50e1c31bf54e805
This removes nodes cache and turn to use resources saved in DB.
A following up patch will split scheduler out from engine service.
Change-Id: I89dea92b85ce7055accd3658aabe3a168ebe2df5
This tries to save available nodes resources to DB, but we still
use node cache for scheduling, will add following up patches to
finish to whole refactor.
Note: This also change to use node_type from ironic node instead
of instance_type.
Change-Id: Ic43180a8c85e36ef8e04edb2b99044b1d715cbd1
Support quota features in Mogan.
This patch will introduce the basic concepts
of quota, including Quota, QuotaUsage, Reservation,
QuotaDriver.
Change-Id: I654b3f60880d4ab817b1b457e47882be5adca831
Implements: bp quota-support
add fault object ,it is a optional object_field of instance.
if error occured, we can save related message into fault.
Change-Id: I6fb5cde7e5752683facf6ce7375c354a19cfd81a
This patch adds locked and locked_by columes to the data model
of mogan instances.
Change-Id: I12a10277a86809e5a5e89fbe81c5910f37de21fd
Partially-Implements: bp lock-instances