44 Commits

Author SHA1 Message Date
shangxiaobj
0e9933d202 [Trivialfix]Fix typos in mogan
Fix all the typos that found in mogan.

Change-Id: I1e87f78bfb430e0f99b7121dfffb61e5c9cb5c6e
2017-08-08 05:03:21 -07:00
Zhenguo Niu
6ea13baaff Add placement with mogan devstack plugin
If nova and placement aren't enabled with devstack, we will
install placement with mogan. This is a workaround for standalone
mode as placement service is now embeded in nova.

Change-Id: I624fdf49170bcae1c7fa88cd34c1154654e02788
2017-08-01 09:18:32 +00:00
liusheng
7b5bc65cbc Put the required conditions in appropriate of plugin.sh
We shouldn't print die messages when run unstack.sh.

Change-Id: Ib9d1a4040b7e135f928f148c75d3558e0cc9b842
Closes-Bug: #1705673
2017-07-23 12:51:35 +08:00
liusheng
80234fadce Support running api under uWSGI
This change add the support to run mogan-api server under uWSGI

Implements: bp support-uwsgi
Change-Id: I561028f39092b0b7aca5d5216dde36636be70b66
2017-07-18 08:38:15 +00:00
Zhenguo Niu
eb03a5fc98 Update devstack flavor description
This updates the default flavor's description to be more specific.

Change-Id: I77e6711db7f4fe828a3ebc6cf57f4222d6a5166b
2017-07-17 17:15:43 +08:00
Zhenguo Niu
9a67b9460d Use IRONIC_USE_RESOURCE_CLASSES in devstack plugin
Change to set node resource class on ironic side, and create
mogan flavor based on that.

Change-Id: Ibccfe3c8de9203abdd04107a1d1ccf9a13d3786f
2017-07-13 11:38:12 +08:00
liusheng
ee3c64d77f Reporting nodes resource to placement service
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
2017-07-07 01:54:19 +00:00
liusheng
f4ca7840c8 Change the glance_api_servers to adapt glance started with uwsgi
If deploying glance api servers under uwsgi mode, the endpoint won't
include port in its url. That will broken gate if we config the glance
api url including port.

Change-Id: Id610d6fd3482e6281f498300b3cde7cd45b017bc
Closes-Bug: #1699542
2017-06-27 14:14:45 +08:00
Zhenguo Niu
5a5f22c69f Make resources a required field
Partially Implement: bp new-flavor

Change-Id: Ibe44d5d3c09b62b612b77dc254cade703a3f8d1c
Depends-On: I5f56b5975f0d48ae0a9a1c70598604494901189b
2017-06-25 00:00:12 +00:00
Zhenguo Niu
539346c297 Revert "Add more properties to default flavor"
This reverts commit 201d5b85b5daca3f4f5b51317a78c5fcaea67b45.

Change-Id: If5ce75c97bba13608ea6b92757f3e31426bb6532
2017-06-16 03:11:50 +00:00
Zhenguo Niu
deb70c7a63 Change to use node resource_class
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
2017-06-05 17:04:00 +08:00
Zhenguo Niu
75ecec0ddf Following up patch of f05342bb4340de4e11024ecfd5a287d9fb70f360
Change-Id: I17a8da239daff58fdec04c53029bfb0a0de9db53
2017-05-17 15:54:37 +08:00
Zhenguo Niu
f05342bb43 Set console url in devstack plugin
We should set the console base url with service host in devstack
plugin to make it work.

Change-Id: Icb82a3d1d99629e872d66ffc91785939ac687873
2017-05-16 16:15:55 +08:00
Zhenguo Niu
201d5b85b5 Add more properties to default flavor
Add cpus,memory,disks,nics properties to devstack default flavor.

Change-Id: I3b9fc805f009596f20996c79f657846629f95ab2
Depends-On: I91f691dccd2a932d1bdd8815dd91d1f4f7b53305
2017-05-15 13:02:23 +08:00
liusheng
7d0f8ab360 Rename instance to server and instance type to flavor
Change-Id: I35a7fb0b4f3fa9e09f2fc2c739c0a9b39a8576ab
2017-04-28 14:23:22 +08:00
Jenkins
f0cad6b25b Merge "Cleanup mogan UI related devstack settings" 2017-04-20 11:37:20 +00:00
Zhenguo Niu
963ebcbb19 Remove deprecated ironic options
Ironic configuration options that where used for a deprecated
Identity v2 API have been removed.

Change-Id: I9f6e5a60b14eee157c2c5e69672b2cd8a25d102c
2017-04-20 16:43:03 +08:00
Zhenguo Niu
10b28f9d5e Cleanup mogan UI related devstack settings
This cleanup mogan-ui in our devstack plugin, as we will add it
to mogan-ui repo.

Change-Id: I045bd90410f989761a0082d3949442aa0e1001f5
2017-04-19 10:28:33 +08:00
Zhenguo Niu
24ef8d2793 Change to use /flavors in URI
Change-Id: I6a6a571e5485b9e64c34b1a551256c0bd3675ea5
Depends-On: I50358a289c58b827283c9c4c6e068eee17063bfd
2017-04-18 15:36:52 +08:00
liusheng
42363e9fd4 Enable mogan console services and add description of quick-start
Change-Id: Ib186b7661618ed8d35d84cdbfee8d72273dda627
Partially-Implements: bp console-support
2017-04-01 11:44:59 +08:00
Zhenguo Niu
b4e8c418a2 Split scheduler out of engine service
Change-Id: Ib57f295b0362e4fc17a3ff5bfb539830f6ac1875
2017-03-21 15:20:05 +08:00
Zhenguo Niu
2d26f7d39e Save node resources to DB
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
2017-03-15 17:45:50 +08:00
Zhenguo Niu
76ab001973 Rename repo name to mogan in devstack
This tries to fix tempest gate issues

Change-Id: I26b5e7da4e26224ce2a59e90d262e470b23bf980
2017-01-13 12:01:43 +08:00
liusheng
9b84bac67d Add tempest tests for instance creation
Change-Id: I6fc1b8b5f962ab78777821e7812a444ef1f4f7ca
2017-01-05 21:39:16 +08:00
Zhenguo Niu
7575d1b96e Rename nimble to mogan (4)
This changes devstack plugin some other related things

Change-Id: I60913691a89b767f34a04192244eee7ce4af7996
2017-01-05 00:49:39 +08:00
sxmatch
ec9b48ad61 Rename nimble to mogan(part one)
Today we decided to rename Nimble project
since it's same as a Cinder driver name.

The new name of this project is called Mogan.

For convenience of reviewing, this is a part one
which includes api-ref folder.

Change-Id: Ie1f5bc9d29efcdf77c2b981d6102c56490e70022
Partially-Implements: bp rename-nimble-to-mogan
2017-01-04 16:11:13 +08:00
liusheng
83349cff8f Change the command of creating default flavor in devstack plugin
We have changed "openstack baremetal instance type xxx" commands to
"openstack baremetal flavor xxx".

Change-Id: I25f8914a857044845ec0f683b80457c61123f945
2016-12-26 14:08:45 +08:00
liusheng
b9f4a5bfe1 Use oslo context instead of the native context implementation
Change-Id: I9abd709b3a1d038bd1819eafa1dac6712b1a4cbb
2016-12-21 14:47:04 +08:00
Jenkins
4f78eda09e Merge "Use the transport_url to replace the rabbitMQ credentials" 2016-12-01 02:22:35 +00:00
liusheng
ef0fc6b7a9 Use the transport_url to replace the rabbitMQ credentials
Since the rabbitMQ credentials have been deprecated in favor of
"transport_url" config option.

Change-Id: Ia505a177a4018633acd51ef8bacc4df5cdedcbfa
2016-11-30 17:09:51 +08:00
liusheng
99bb0b01e7 Use an empty file to be the conf file base
It is hard to read a conf file based on the config file sample with many
commented out lines about config help descriptions.

Change-Id: I644e87af620dda8a349a67e23bad05cbb3e3826a
2016-11-30 16:52:32 +08:00
Jenkins
bff3aa1a6a Merge "Remove unneeded devstack gate hook script" 2016-11-26 10:44:03 +00:00
Zhenguo Niu
0463e4f17c Remove unneeded devstack gate hook script
Change-Id: I33c67d33e8028206241fa1d937fbf820f2de7b6c
2016-11-25 01:45:13 +08:00
liusheng
ee58f05964 Remove unnecessary check before creating Nimble endpoints
Change-Id: I556f40cbc2cb64a1c4a055b469228d65f62e181c
2016-11-24 17:32:42 +00:00
Zhenguo Niu
948e0f5758 Add check for specified image in create request
We should make sure the image exists before sending it to
Ironic.

Change-Id: I8ff6aec53186c3ecbb9b7bd06e3bcd3fe35ef913
2016-11-23 16:29:52 +08:00
Zhenguo Niu
7e1a52155e Enable ironic node operations in devstack plugin
The patch to enable ironic plugin on our functional job defination
has been merged.

Change-Id: I59face3fb522c4de99609492b25cfc307690a230
2016-11-04 17:45:40 +08:00
Zhenguo Niu
0551154513 Remove duplicate policy.json file
Change-Id: Ifc2205a4dde2cdf5b7020a07e82cf51d0cc27fcf
2016-11-03 19:21:09 +08:00
Shaohe Feng
0b1c240eef Fix functional gate error
1.add execute permission for gate_hook.sh
2.add execute permission for post_test_hook.sh
3.enable all required services in gate_hook
4.temporarily disable ironic related operations in devstack

Change-Id: If11ec8fc31fea40f5ef344d16de581e5cf7aedfb
2016-11-03 12:04:18 +08:00
Jenkins
8a5e827df0 Merge "Add gate hooks for functional tests" 2016-10-15 07:19:20 +00:00
shihanzhang
bc588bf82b Add default instance types and set ironic nodes property
Change-Id: Ia726faaa862de5ea4e9e0ed45c5076a811b10b6d
2016-10-14 09:05:18 +08:00
liusheng
95f0956079 Add gate hooks for functional tests
Change-Id: Ie7777f1c916b6d93c9041c7473513de6e7967b8b
2016-10-13 17:06:00 +08:00
Rui Chen
f5e9382983 Fix deprecated macro name "SERVICE_TENANT_NAME"
Change-Id: I41364036197ff43f3da09ac5f4d1d267cde7f2af
2016-09-28 10:45:27 +08:00
Rui Chen
173006f85a Fix devstack plugin
The nimble.conf can't be generated correctly in devstack plugin
process, fix the issue in plugin.sh.

Change-Id: Ifcaf081eac1c8ebe0e966d83e761acab133a355a
Closes-Bug: #1628082
2016-09-27 20:50:14 +08:00
shihanzhang
7ab4cff418 add devstack plugin for nimble
Change-Id: I45736f20848bb2bb37ecae4fbb272185c8cf553c
2016-09-23 17:03:48 +08:00