Add the DB layer Operations for server tags
- set/unset server tags
- get server tags
- add/delete single tag
- check whether server tag exists
Change-Id: I2338ece8e4ae880835f6e20ef1e9e71a228a9703
Implements: blueprint server-tags-support
This adds root disk partitons support to allow users to specify
root, ephemeral, and swap size.
Implements: bp root-disk-partitions
Change-Id: I9562f39501c23579ba561f0cd4cbb8ef60674a6b
This patch introduce a new API:
'GET: /manageable_servers' to list the adoptable nodes
from drivers to operators.
As a reference, now we implement api in the Ironic driver.
APIImpact
Implements: bp manage-existing-bms
Change-Id: I56340ce534c3b8d4e855a4c753ecf90a07147d29
We should not delete flavors which is still used by some running
servers, as users will get confused if they can't get the details
of the server flavor.
Partially Implements: bp new-flavor
Change-Id: I2c89d1fdb5092426d14e55b723f1eeb392e3c7fe
The disabled field is intended to not allow new servers
created from that flavor, so this makes it happen.
Partially Implements: bp new-flavor
Change-Id: I7a3509cef6f5dea5c7d6eac63fbb179a9850daae
This change add ServerGroup, ServerGroupPolicy and ServerGroupMember
models, and add several basic DB interfaces.
Partially Implements: bp server-group-api-extension
Change-Id: I86e17798718fc26e1fd6a1fe1c33ee408738b6da
* list nodes for the specified aggregates
* add node to an aggregate
* remove node from an aggregate
Change-Id: I78ce523c7ba26860e02dcde84bcb84a6cc0c60ee
This addes aggregates db model with migrations and the related
API.
Partially Implements: bp node-aggregate
Change-Id: I019a9a4a5483750dc42a8cbf714a9d194d37fae8
Now in some process, Mogan catch the exception and
then raise a new wsme.exc.ClientSideError with an
additional http_code, but Mogan has defined the
http_code in some exception.
So we didn't need raise a new exception,
just raise the mogan exception if it has the http_code.
Change-Id: I9150301a43046af8a2e7290ccfebad8ca4118f90
Close-Bug: #1699075
This change importing placement service, report nodes resources to
placement and use it as unique nodes resource provider service for
Mogan's scheduler.
Co-Authored-By: Zhenguo Niu <Niu.ZGlinux@gmail.com>
Change-Id: I1cb91a10cfc8139687ad44167f33f45fd3c08e5c
Partially Implements: bp track-resources-using-placement
Now Mogan can support network_ids in request of creation servers.
This feature introduces the support for specifying the port_ids
in request body too.
Change-Id: I7f25a97da6e45f06f9ef2def68eeaf294659a932
Implements: bp specify-neutron-port-when-creating-instances
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 reverts commit 5938805af9.
As we plan to refactor the flavor and will get rid of the nics attribute
so this check will be done by scheduler filters
Change-Id: Ib916951cd2260146840b1fa7fd20aa4317bf8c01
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
Use _msg_fmt instead of message to assign the exception description.
because message assignment can't log the message in subclasses.
Change-Id: I0d23895e6469bb33397b8c528e75ab41844270a6
This adds some simple metadata information, following up
patches will add more capabilities
Co-Authored-By: Shaohe Feng <shaohe.feng@intel.com>
Change-Id: Idaa3ab813b5355ce44e97fa069cd7b664f8b4761
This change added a function in mogan-engine to get the console info
from ironic.
Change-Id: I2b181ddfe2edcf0c7b84a1188d5042ad59886ee6
Partially-Implements: bp console-support
Currently we raise InstanceDeployFailure even if users delete the
instance while it's in creation process, so add another exception
to handle this and ignore rechedule for such case.
Change-Id: I5cb3e456646801fad7a52364d7c2e4bf9edc2aa4