Commit Graph

146 Commits

Author SHA1 Message Date
OpenDev Sysadmins fd552b5601 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:50:53 +00:00
Changbin Liu 8233e63e95 Add procedures/scripts as starting point of multi-DC deployment
Change-Id: If455358e9164aa51b99ed3a06dd49ab2cf03d69b
2014-07-25 10:23:06 -04:00
Changbin Liu cf46b6f9fc Add a script to install libvirt and enable KVM/Qemu VM live migration
Change-Id: I775c0873aefd78e0d25fb07357dd7ea587451dcf
2013-12-12 01:29:00 -05:00
Changbin Liu 52c88b4844 Upgrade scripts to install Open vSwtich 2.0.0
Change-Id: I69494725f9751c4a4e4a453ec50924d3f1d5a312
2013-12-06 00:33:28 -05:00
Andrew Forrest ccd711ed9f Supply horizon-compatible Web UI
blueprint horizon-webui

(Auto-linking to blueprint either doesn't work for this project
or requires additional info not prescribed. Here is full link:
https://blueprints.launchpad.net/inception/+spec/horizon-webui

This change is the initial commit of the third and final part
of the horizon-compatible web UI for Inception Cloud (the others are
[1] and [2]).  This commit draws heavily from the horizon tutorial[3]
and from the existing implementation for instance management[4] (the
latter because inception cloud management is by analogy a more complicated
version of it).

Because this effort seeks to operate alongside OpenStack in the
architectural and coding style of OpenStack but require minimal internal
changes to OpenStack it relies on a separate API server from nova
compute.  In addition, this meant that the entire horizon stack could not
be utilized directly and a layer had to be chosen at which to deviate.
Accordingly the code is more verbose (because of horizon generality) than
it might otherwise be.

Installation of this application proceeds by
1. installing the inception package
2. starting the inception API server per INSTALL.md
3. modifying a single line in the horizon config per INSTALL.md

[1] https://review.openstack.org/#/c/47008/
[2] https://review.openstack.org/#/c/58835/
[3] http://docs.openstack.org/developer/horizon/topics/tutorial.html
[4] https://github.com/openstack/horizon/ then
    openstack_dashboard/dashboards/project/instances

Partially implements: blueprint horizon-webui

Change-Id: Id14b30bbb5eafeac928d8e94aeb0553ae52fb661
2013-12-05 17:25:32 +00:00
Andrew Forrest e505d194d3 Support use of token value in place of password.
blueprint horizon-webui

(Auto-linking to blueprint either doesn't work for this project
or requires additional info not prescribed. Here is full link:
https://blueprints.launchpad.net/inception/+spec/horizon-webui

While python-novaclient will re-authenticate using an internally
saved copy of an authorization token, this capability is not
exposed to its API user requiring the use of a password whenever
creating a Client object.  In order to authenticate requests made
on behalf of a web (horizon) user this capability needs to be
utilized as the horizon web app has only a token once the user
logs in.  This change depends on the structure of the client
and is the first place to look for problems once the underlying
API software is revised.

Partially implements: blueprint horizon-webui

Change-Id: Ifa9cb7877eabff1514cb2272407d6daf08beef7f
2013-11-27 10:05:03 -08:00
Jenkins 9346b6af1d Merge "Provide simple RESTful API + WSGI Server" 2013-10-19 05:07:28 +00:00
Andrew Forrest bc6b710555 Provide simple RESTful API + WSGI Server
blueprint horizon-webui

(Auto-linking to blueprint either doesn't work for this project
or requires additional info not prescribed. Here is full link:
https://blueprints.launchpad.net/inception/+spec/horizon-webui)

This commit implements the minimal RESTful API and WSGI application
for exposing Inception Cloud's Orchestrator behavior over the network.
It is a necessary component for providing a web user interface to
Orchestrator via OpenStack's horizon project as described in the
Blueprint identified above.

Change-Id: I8430b008c6cbabc91258da31d01a05a5521462d0
2013-10-18 11:29:45 -07:00
Scott Daniels 7cfde7ca16 Added appendix which describes all commandline options for orchestrator.py
In addition, one small typo was fixed in prep.tex

The bulk of the appendix section is automatically generated using the
sourece code rather than relying on cut/paste.

Change-Id: I9fb98f9845d42daa624f12521444d03acb942dea
2013-10-14 14:53:16 -04:00
Jenkins 4223996ab6 Merge "Added instructions to build images and cleaned up trailing whitespace" 2013-09-29 00:55:29 +00:00
Scott Daniels e6bef98990 Added instructions to build images and cleaned up trailing whitespace
Change-Id: I6bd8b020025159181c3b920c5e48381c5dbe5769
2013-09-27 16:27:36 -04:00
Changbin Liu 65806429f5 Fix flavor type bug in config opts
flavor is StrOpt instead of IntOpt

Change-Id: I8c2269ff940561821a7f24097f204d40f83f07c9
2013-09-25 17:15:48 -04:00
Changbin Liu 02b6284ec2 Rename "LOGGER" to "LOG"
Align with OpenStack projects

Change-Id: Ie30b2819bce754650f3afa293935c2a0b551c217
2013-09-22 15:40:45 -04:00
Jenkins 228a6a45c5 Merge "Change arguments "image" and "flavor" from ID to name" 2013-09-20 15:30:46 +00:00
Changbin Liu 15c4e9d3bb Add Scott as author
Change-Id: I06c33c1672710215103c954f08cb45452621df94
2013-09-19 15:58:29 -04:00
Changbin Liu 7c8c4b9a65 Change arguments "image" and "flavor" from ID to name
Make orchestrator easier to use. Specify human-readable names instead
of resource IDs.

Change-Id: I165761c38756e080aaacea7d2836d1e6c92369d8
2013-09-19 13:37:02 -04:00
Jenkins bcc2c014b7 Merge "Include scripts in package: chef + orchestrator" 2013-09-19 15:47:44 +00:00
Jenkins 9b4e8b08cf Merge "Add re-raise argument to start() and cleanup()" 2013-09-19 02:07:11 +00:00
Andrew Forrest 45d73ca7b6 Include scripts in package: chef + orchestrator
Add the 'data_files' and 'scripts' directives to the setup() call
in setup.py so as to make setuptools include the chef scripts
and orchestrator script in the package and install them in locations
suitable for the current code.

Change-Id: Iad2ca28224a60ec0cb23dcbb0f0b23fa8801f513
Closes-bug: #1226153
2013-09-18 14:45:49 -07:00
Scott Daniels e19ee84e50 Illustrations are now generated into PDF files to support older versions of tex
Versions of LaTex prior to 2010 do not supprot the inclusion of encapsulated
postscript files.  Changes have been made to generate PDF files for each of
the illustrations in the document, clean up these temporary PDF files when
`make clean` is executed, and to embed them rather than .eps files when the
document is compiled.

Change-Id: I2a802a82cb0ead4eb379f81f0a1ed441ce2967f1
2013-09-18 16:24:12 -04:00
Jenkins 5a3a0f0581 Merge "Defalt to using sh instead of ksh in makefiles, but allow override by user." 2013-09-18 19:18:51 +00:00
Andrew Forrest bbd03d91b5 Email address change for author Forrest.
Change-Id: I003ff81d642d770d8337ff6aef39de5efa17c43f
2013-09-18 10:57:44 -07:00
Scott Daniels ae30131299 Defalt to using sh instead of ksh in makefiles, but allow override by user.
Change-Id: I5c23fde4960bf31a0fd5c0ce027e0dabc8377123
2013-09-18 12:46:43 -04:00
Changbin Liu e76ace1914 Add re-raise argument to start() and cleanup()
To enhance the usability of the Orchestrator class as a reusable
component (e.g., used by WebUI), it should not catch and handle
certain exceptions, without at a minimum re-raising them.

Change-Id: I4ff8320f3a275fbdbe7cf3a21c217f1cf59ddacb
Fixes: bug #1226193
2013-09-18 00:14:29 -04:00
Scott Daniels 4451cff7bc Initial push of doc and related files to repo.
Change-Id: I28871653dfe14f219c5fc140fc84a9a01e6fcda7
2013-09-17 10:49:55 -04:00
Jenkins 2091fe71ed Merge "Force tty (stdin) closed on ssh commands." 2013-09-05 17:06:02 +00:00
Jenkins c626eedb7f Merge "Add doc folder and README.rst" 2013-09-05 16:28:09 +00:00
Scott Daniels 9014b2388e Force tty (stdin) closed on ssh commands.
Adding the -n to the ssh command forces ssh to redirect stdin from /dev/null
and prevents the remote processes from blocking waiting for user (tty) input.

Change-Id: Ic659c951926e81eacb0db72c6ff0668b5bd38167
2013-09-05 11:21:06 -04:00
Jenkins 887da147ed Merge "Add --force-yes to install_chefserver.sh and make all bin/*.sh executable" 2013-09-05 14:35:04 +00:00
Changbin Liu a9a9b680dd Add doc folder and README.rst
Following OpenStack Nova doc style

Change-Id: I91c82717c14dd9f3d466378bdc01a5e173514f4d
2013-09-03 11:28:31 -04:00
Changbin Liu a5c4ac10f7 Remove restriction # of workers <= 5
Chef cookbooks and environment have been updated accordingly

Change-Id: I00d5caf72e750b8904e1382fa5c844acbafb795c
2013-08-31 20:01:03 -04:00
Changbin Liu 3e45d40d64 Add --force-yes to install_chefserver.sh and make all bin/*.sh
executable

Change-Id: I74a4aace357f82f4d61f2c8c3d5798b9e5990d56
2013-08-30 22:26:49 -04:00
Changbin Liu 1f964175f7 Add OpenFlow/SDN support for VXLAN mesh-topology networks
Change-Id: I81c09c98fd5f19b69bd1357c85d8a3117092ed34
2013-08-30 14:36:33 -04:00
Changbin Liu ecc2a44429 Break multiple imports to multiple lines
Change-Id: I62ba21f4447fada5bf1b86c261d0f7a65681ba76
2013-08-28 19:32:45 -04:00
Andrew Forrest f00b99bb70 Remove fallback to distutils
Inception has dependencies that cannot be expressed using distutils so the
code that substitutes distutils if setuptools cannot be imported should be
removed lest it be invoked and lead to a confusing error case.

Change-Id: I8959855b3b48e6742b73770a32f7931ccc1c78ef
Fixes: bug #1210181
2013-08-28 14:34:10 -07:00
Jenkins b429a603ca Merge "Adds inception.utils to inception package." 2013-08-28 19:13:50 +00:00
Andrew Forrest 911969985f Adds inception.utils to inception package.
Previously inception.utils was overlooked for packaging.

Note: the use of setuptools' "find_packages()" might appear to be
a poor choice since this setup.py is written to fall back to using
distutils which doesn't have a find_packages but in fact it cannot
usefully fall back to distutils anyway (see bug #1210181) so it is
not an issue.

Change-Id: I31b2b5f3952df0b8ecd0bc59f9978cf0bb9f03e5
Fixes: bug #1210180
2013-08-28 11:18:12 -07:00
Changbin Liu 76f759dc87 Modify README to reflect our wiki and launchpad pages
Also change .gitignore to ignore .settings

Change-Id: I99a7dba732224e12344b41053afce7c50c3def6f
2013-08-28 13:47:47 -04:00
Changbin Liu 641c97e2a4 Add license to *.py files
Change-Id: I8efb89fc65ed3da7bfef8c2573bff784f2c21bcc
2013-08-26 12:57:56 -04:00
Changbin Liu 7d4402323a Remove WebUI TODO
It is planned to be moved into launchpad blueprint

Change-Id: I8d50bc683ffaa123eb6c3ddd44ddb750cf1485a2
2013-07-17 13:19:00 -04:00
Changbin Liu 8311e70e9d Add a CONF option for chefserver image id
The chefserver image (snapshot) has pre-installed chef software
packages to speed up chef server deployment

Change-Id: I01bd30947ba6191869411b175e6cfb36b02b322f
2013-07-17 12:10:43 -04:00
Changbin Liu 3d62045d44 Use logging instead of print
- log module supports oslo.config

- orchestrator executable code is split into bin/

Change-Id: Ia1bc509c09c6bd4cc4734d950ee077ae2be30a5b
2013-07-17 10:52:37 -04:00
Changbin Liu 5d2bdcaccb Remove hardcoded '-' as concatenation char between prefix and name
Change-Id: I47e2f9ae2f7556346bb0186689bd394b2fdd4e6a
2013-07-15 16:59:56 -04:00
Changbin Liu 915f55d14b Change chef-repo URL to AT&T's
Change-Id: If31c35f6851d776fff2c25887887d65bf4136b57
2013-07-10 14:37:04 -04:00
Changbin Liu cd094f4e8f Move FuncThread to utils.wrapper
utils.wrapper is where wrappers of various Python standard libraries
reside

Change-Id: I7b3cde5af16596a6bc3e2e9820f456711bb5e070
2013-07-09 15:45:29 -04:00
Changbin Liu d0f14b4b3b Cleanup oslo.config
- Remove config opts and orchestrator ctor document redundancy

- Make "atomic" an attribute of orchestrator

- A bit reordering of opts

- Cleanup and rename inception.conf.sample

- Some other minors: Authors, setup.py

Change-Id: I9c501acf4a11c2fc0056130bd163bbccd2ec9e24
2013-07-09 15:42:42 -04:00
Andrew Forrest 03ed5b7e9f Incoporate oslo.config facilities in Inception
Convert Inception code to use a configuration file and command line options as
processed by oslo.config.

+ orchestrator modified to use oslo.config for options
+ sample config file introduced
+ dependency on oslo.config added to setup.py
+ version string moved from setup.py to module init for ready access
  for --version and others

Implements: blueprint Inception Configuration Blueprint
Change-Id: I984700867d8ddf5ee1602cc4ed6608f36a38a6be
2013-07-03 16:30:41 -07:00
Andrew Forrest 53e6f000dc Add 'install_requires=' parameter to setup.py.
Added install_requires= to setup.py to track Inception dependencies.

Initial value includes IPython and python_novaclient.

Change-Id: I36e1f1b9cb38acdad6c1f6e2148c1790d26788b4
2013-07-02 09:24:16 -07:00
Changbin Liu 7b6ad9b45d Expand README with more details
Change-Id: Ied171c3a96f077ed2c8cbbbf781fbeeaadeeff9a
2013-06-28 12:46:39 -04:00
Changbin Liu c3b18879b8 Order module imports by alphabetical sequence
Change-Id: Id77e1fe3d09f5fde75d93ed3b049ab5dec888f97
2013-06-27 23:30:49 -04:00