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
the function of create_test_server_group should be used instead
create_test_aggregate
Change-Id: I383bc563d369144a5f918064309b73e7984b61ab
Closes-Bug: #1736331
locked_by can be used to check the lock status, there's no
need to keep locked field.
Change-Id: I3761ab710cf67d56163a39add4c51ee48f940a36
Closes-Bug: #1727944
We should support to return a list of servers according to users' requirements.
In this patch, marker, limit, sort_key and sort_dir were added in server list
API.
- marker is used to display a list of servers after marker
- limit is used to determinate the maximum number of servers to display
- sort_key is used to sort the returned server list by specified key value
- sort_dir is used to select a sort direction
DocImpact
APIImpact
Change-Id: Id70e965794c82a0a29e53d4364f65b0f39042c7c
Closes-Bug: #1726665
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
Add a new table named 'server_tags' in mogan database. and
provide a migration script to upgrade the old datbase.
Change-Id: I509d4db82d2aaa4c75ba93812ff0055eb3bd56f7
Implements: blueprint server-tags-support
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 will allow the scheduler to select nodes with specified server
group in schedule_hints.
Partially Implements: bp support-schedule-hints
Change-Id: Idecd5e5f470eee12de0088b2332874b43f9dae52
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
We should extract resources aggregates information from flavor,
and pass it to placement with resources filters.
Partially Implements: bp node-aggregate
Change-Id: I96eeb7ab6636fa241e7d82bbddad8d70791c1f43
There some unused methods in common, need remove them.
This is refer to: I06660e5dfc9545bab3fa3fb04037de028b4d0c6a
Change-Id: Ia1dd62d27e591b75643b7d3deec0ec3c3ae42099
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 change ensure allocations of a rp being deleted firstly before the rp
deleted. And this change also avoid updating the inventory of a rp if the
rp(node) has already been consumed.
Change-Id: I507176834f8247d112c8e6d969656d1a4dded6d7
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