Commit Graph

1052 Commits

Author SHA1 Message Date
liusheng
f6165ada3e Add more notifications for server create/delete
- Add notification for server.create.end event
- Add notification for server.create.error event
- Add notification for server.delete.start event
- Add notification for server.delete.end event

Change-Id: I9732e139fc9767a27647ff6aa65a9a9e0ceff0d3
2017-09-14 10:33:46 +08:00
liusheng
d3d72d4b19 Enrich the payload of notifications of server creation
Change-Id: Ic86ae41bbb8fcfaac0ea82b9ac2427066412ff42
2017-09-14 09:54:42 +08:00
OpenStack Proposal Bot
f84c62f291 Updated from global requirements
Change-Id: I2f636cf606f1fff1b89b92746ef1a40d2c31a807
2017-09-12 21:51:26 +00:00
Zhenguo Niu
f26a5e6b3a Following up patch of 26508fd131
1. Set server node for managed servers
2. Set preserve_on_delete to False for Nics

Change-Id: Ia57c8fc5d7ecd8c10d64ac65c0d980f28e0a427a
2017-09-12 15:37:37 +08:00
Jenkins
d45a8de43c Merge "Return node name with server API object" 2017-09-12 04:26:23 +00:00
Jenkins
a8c064817a Merge "Add preserve_on_delete to server nic object" 2017-09-12 02:56:59 +00:00
Jenkins
a092b14092 Merge "Check usable portgroups and ports" 2017-09-12 02:48:44 +00:00
OpenStack Proposal Bot
9c99512e7a Updated from global requirements
Change-Id: Iece0d42ddaefe9dbb7bd1d19a479c64e9231f363
2017-09-11 21:39:23 +00:00
Zhenguo Niu
a4b1ee741f Return node name with server API object
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
2017-09-11 19:05:09 +08:00
Jenkins
811dd3dcf5 Merge "Manage existing BMs: Part-2" 2017-09-11 10:53:18 +00:00
Jenkins
4e15b83869 Merge "Fix addresses show within one network" 2017-09-11 09:33:40 +00:00
Zhenguo Niu
e6481c9204 Check usable portgroups and ports
This tries to check whether the portgroups and ports are usable
before return from driver.

Change-Id: I5766a43f9491e599aa649a03e5c523d72c4980b3
2017-09-11 17:26:45 +08:00
Tao Li
26508fd131 Manage existing BMs: Part-2
Add the adopt baremetal node API.

Change-Id: I1897129930bface6a6c4a179e02d6107ff3811af
Implements: bp manage-existing-bms
2017-09-11 16:57:35 +08:00
Jenkins
5bcf2c5df5 Merge "Reduce test_keypair time consuming" 2017-09-11 08:07:31 +00:00
Zhenguo Niu
c540eb16ca Reduce test_keypair time consuming
Set keypair quota limit config option in the test case instead of
creating 100 keypairs there.

Change-Id: I5f1fbc9a67174db4e88ac73c9c6e98ce5455bed9
2017-09-11 13:09:53 +08:00
Zhenguo Niu
1c50ceed0b Add preserve_on_delete to server nic object
This field will indicate whether we should delete or unbind the
port during server deletion or detaching interfaces.

Change-Id: I25834a82b83806bf87b4c7006a8d33d56e2ce976
Closes-Bug: #1715040
2017-09-11 09:53:20 +08:00
Shaohe Feng
6ac0eeaade Doc revise: command create uWSG conf command.
Missing comma between tee and conf file.

Change-Id: I178f345d0a580d765b8a1b9a1aed2d08261a1ae5
2017-09-10 14:13:01 -04:00
Jenkins
ba2aeab9dd Merge "Update port['device_id'] when creating server" 2017-09-08 14:18:15 +00:00
Zhenguo Niu
10d714a827 Fix addresses show within one network
This makes the server show with all addresses in a same
network.

Change-Id: Ie9254fd6795783335d1fa7083865a3a04a9887e5
2017-09-08 18:00:25 +08:00
Jenkins
98b7894d64 Merge "Correct db and model inconsistent" 2017-09-08 08:38:20 +00:00
Zhenguo Niu
2ba65aad82 Update port['device_id'] when creating server
Co-Authored-By: Zhenguo Niu <Niu.ZGlinux@gmail.com>

Change-Id: Ia54f7a5121c33ab09874c35fba06adf7b622d20d
Closes-Bug: #1715040
2017-09-08 09:29:40 +08:00
Zhenguo Niu
1b03a15f28 Correct db and model inconsistent
This is detected by the mogan-dbsync autogenerate.

Change-Id: I5e310016aa0e2eb1bb4f6108905927eb48c4473f
2017-09-07 19:07:52 +08:00
Zhenguo Niu
93da16d88f Revert "Return node(name or uuid) with server instead of node_uuid"
This reverts commit 5124ae1d44.

Change-Id: I0ff6f7e22afbe8833bbc6044b8b7f5c768c9b940
2017-09-07 17:29:56 +08:00
Xinran
bb40c3b20f uncomment check_port_availability
we should make sure the port is available, before use it.

Change-Id: Id845d55e4ea94d4040cb74073138744665e59203
2017-09-07 15:47:51 +08:00
Jenkins
475ec60d8d Merge "Add db migration doc" 2017-09-07 07:36:47 +00:00
Jenkins
27709e3bec Merge "Remove redundant mock in functional test" 2017-09-07 06:29:37 +00:00
Zhenguo Niu
a428511c5b Add db migration doc
Change-Id: Ie47ebbcdedc34af4ab510cbecdb9faa79d02810f
2017-09-07 11:39:28 +08:00
liusheng
395f66aeaf Remove redundant mock in functional test
Since we have mocked the rpc layer, it won't never call the scheduler in
functional tests, don't need to mock the scheduler method.

Change-Id: If82c6caa289a567c1dffb349b4e2cc13d0193caa
2017-09-07 09:44:28 +08:00
Sean McGinnis
07caad2946 Use newer location for iso8601 UTC
Newer versions have moved from iso8601.iso8601.Utc() to
just iso8601.UTC, causing tests to fail under py35.

Change-Id: Ic2e3d395335003d043b400e96184ceb3a238063d
Closes-bug: #1715486
2017-09-06 16:59:30 -05:00
Jenkins
41cc9dd49f Merge "Add root disk partitions support" 2017-09-06 13:51:38 +00:00
Zhenguo Niu
0eeffafcf6 Following up patch of bc2fa7229e
This fix some issues with the original change.

Change-Id: I35ded85dee4264fd5562a27f25490403137c119c
2017-09-06 17:49:02 +08:00
Zhenguo Niu
028b28594f Add root disk partitions 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
2017-09-06 17:30:25 +08:00
Jenkins
7482e361f6 Merge "Add preserve_ephemeral support for rebuilding" 2017-09-06 08:21:48 +00:00
Zhenguo Niu
bc2fa7229e Reorganize mogan docs
This make the docs index more clear, and change some content.

Change-Id: If6ab60017fc3ffec3836a4da27d6453fb0c0b4a4
2017-09-06 14:41:50 +08:00
Jenkins
75130665c4 Merge "Replace DbMigrationError with DBMigrationError" 2017-09-06 01:51:57 +00:00
Zhenguo Niu
7d78b09a01 Add preserve_ephemeral support for rebuilding
Currently we don't support preserving ephemeral partition when
requesting to rebuild, we need to expose the ability to users.

Change-Id: Ia10ab6a8d6dd6beba8837e7d0414dc6984dd2426
Closes-Bug: #1714852
2017-09-06 09:12:40 +08:00
Yaguo Zhou
e13df01ef9 Replace DbMigrationError with DBMigrationError
because DbMigrationError is deprecated

Change-Id: I50fd81be7a1aecd4bc9c76a4368f41c55ccccd00
2017-09-05 23:04:47 +08:00
Jenkins
6e28762b40 Merge "Return node(name or uuid) with server instead of node_uuid" 2017-09-05 15:01:13 +00:00
Jenkins
f34fab8bf6 Merge "Add root disk partitions docs" 2017-09-05 14:23:11 +00:00
Jenkins
c896f48ab3 Merge "[DOC] Add states and transitons diagram" 2017-09-05 14:22:39 +00:00
Zhenguo Niu
5124ae1d44 Return node(name or uuid) with server instead of node_uuid
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
2017-09-05 14:53:54 +08:00
Jenkins
91eb325a44 Merge "Rollback to the original status when server powering action failed" 2017-09-05 04:42:47 +00:00
Zhenguo Niu
b1b58239db [DOC] Add states and transitons diagram
Change-Id: Ifcc942612dd2371d9af1ec5174f61c2aeec4a008
2017-09-04 18:45:05 +08:00
Jenkins
1094e56a45 Merge "Revert "Temporarily remove openstackdocs theme"" 2017-09-04 07:43:11 +00:00
Zhenguo Niu
2fc089fd74 Revert "Temporarily remove openstackdocs theme"
This reverts commit 17c0cf8daf.

Change-Id: I3769a1179746ba15f31f79edbfcad2d23bec044f
2017-09-04 07:18:46 +00:00
Tao Li
4b80551346 Rollback to the original status when server powering action failed
As we don't move server status to error when power action failed, the
status will be stuck in *ing forever.

Change-Id: Ie98ec4c5d2d848ca13dae4d891f762cd58650fad
Closes-Bug: #1690096
2017-09-04 14:23:30 +08:00
Zhenguo Niu
d2a25e0488 Add root disk partitions docs
This introduces a new user guide section and adds root disk
partitions docs

Change-Id: I3b2411e8d02f6a3430d0f527f44c28dd2f780012
2017-09-04 05:30:17 +00:00
Zhenguo Niu
169de121cf Add image requirements docs
This adds image requirements and how to build images instructions

Change-Id: I87af75a40dc7d89b7561115c12f9d98daf1ec8ca
2017-09-02 23:56:59 +08:00
Jenkins
5cd5e24a31 Merge "Return key name with server API" 2017-09-01 02:44:15 +00:00
Xinran
3b026239f9 Return key name with server API
Change-Id: Ia8d7c917afc3bae04997161f8bb55c30cd196d60
Closes-Bug: #1712234
2017-08-31 09:55:16 +00:00