Commit Graph

82 Commits

Author SHA1 Message Date
Jenkins
11ad017824 Merge "Add 'overcloud node discover' command" 2017-07-26 20:48:01 +00:00
Steven Hardy
3d4e2d20e8 Rename download config to config download
This aligns better with other interfaces which are all
openstack overcloud <noun> <verb>

E.g "image upload", "plan export" etc - so "config download" fits better?

Change-Id: Ic46ed75397714e46895bdb44a408f6a10d7b40cf
2017-07-17 09:15:43 +01:00
Jenkins
eb01f1458c Merge "Dump all deployment role_data files to a config dir" 2017-07-13 18:38:27 +00:00
Mathieu Bultel
d26d5c680d Dump all deployment role_data files to a config dir
Add new overcloud cli command in order to dump
all the configs from the overcloud contains in role_data.
All different type of configs are dump in a separate file
per role ex:
ls config/tmpD2nDOd-config/
config_settings-Compute.yaml
global_config_settings-Compute.yaml
logging_sources-Compute.yaml
monitoring_subscriptions-Compute.yaml
service_config_settings-Compute.yaml
service_metadata_settings-Compute.yaml
service_names-Compute.yaml
step_config-Compute.yaml
upgrade_batch_tasks-Compute.yaml
upgrade_tasks-Compute.yaml

The upgrade_tasks is in yaml format and can be directly
call with ansible-playbook command, example:

$ cat config/tmpD2nDOd-config/upgrade_tasks-Compute.yaml
- hosts: Compute
  name: Compute playbook
  tasks:
  - name: Stop snmp service
    service: name=snmpd state=stopped
    tags: step1
  - name: Stop nova-compute service
    service: name=openstack-nova-compute state=stopped
    tags: step1

This patch to allow operators to run manually
the upgrade tasks via ansible on the Undercloud.

Change-Id: I7d89ffde8a19b30aaf59efb11e41d32cfa644b83
Closes-bug: #1665585
2017-07-11 12:45:35 +00:00
Steve Baker
daf0f04bcf New command "overcloud container image prepare"
This new command allows the user to generate their own
overcloud_containers.yaml file in preperation for calling
"overcloud container image build" or
"overcloud container image upload".

Arguments allow the caller to customise the resulting
overcloud_containers.yaml file with the aim of not requiring any
further manual editing for the majority of cases.

The file generated by the --env-file option adopts the convention
established in change Ieaedac33f0a25a352ab432cdb00b5c888be4ba27 where
the DockerNamespace parameter is not used and image names are fully
qualified.

Partial-Bug: #1696598
Change-Id: I6af1828ea2b26f3c6295981fe40fe825d8ccef37
2017-07-07 16:05:17 +12:00
Jenkins
9233ca95ee Merge "Remove support for py34" 2017-06-23 09:38:35 +00:00
Dmitry Tantsur
c86212cb76 Add 'overcloud node discover' command
This is the frontend for discover_and_enroll_nodes workflow.

Change-Id: I822ec89add3742020262c091e79ff94f92ef92e7
Depends-On: I158f0b8f5251d9d94e7e57b3fe24362316d26599
Implements: blueprint node-discovery-by-range
2017-06-09 13:41:27 +02:00
Vu Cong Tuan
47fb0b2ad8 Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.

Change-Id: Icad236d4055dde8389fe19f2b3ca921e76e9faf7
2017-06-07 10:41:31 +07:00
Alex Schultz
be2a20637a Provide commands for example roles
In order to improve the experiance for the end user, we have existing
sets of roles that can be combined in a roles_data.yaml file for the
deployment. This change exposes the ability to generate roles_data.yaml
from a folder containing role yaml files rather than requiring the end
user manually construct the roles_data.yaml.

Change-Id: I326bae5bdee088e03aa89128d253612ef89e5c0c
Related-Blueprint: example-custom-role-environments
2017-06-01 12:31:21 -06:00
Alex Schultz
1e69403a9e Add overcloud support report collect command
This command is to be used by an operator to run sosreport on
specific set of servers (or all) and retrieve log bundles that can
be used to debug the status of the cluster or troubleshoot issues.

Depends-On: I47c486d14c46a653c61cfd92d9f484efe0407217
Change-Id: I45699dfa6eb3e83d419c7041dbb72cc5d5e4f0ea
Implements-Blueprint: capture-environment-status-and-logs
2017-05-11 09:28:59 -06:00
Stephen Finucane
3653a6006f Use Sphinx 1.5 warning-is-error
With pbr 2.0 and Sphinx 1.5, the setting for treat sphinx warnings as
errors is setting warning-is-error in build_sphinx section. Enable this.

Change-Id: I981b05275e1a75e3c42ea3ef24812cded0cefc0d
2017-04-26 08:53:45 +00:00
Stephen Finucane
1e260a1c86 Explicitly set 'builders' option
An upcoming release of pbr will require explicitly stating which
builders are requested, rather than defaulting to html and man. Head off
any potential impact this may cause by explicitly setting this
configuration now.

Change-Id: I06850630c9e85811a09f8464060728679c093dbf
2017-04-26 08:53:12 +00:00
Jenkins
846f087ea4 Merge "New command "overcloud container image build"" 2017-04-26 03:01:10 +00:00
Jenkins
76e472ebc1 Merge "Add plan export command" 2017-04-22 01:41:33 +00:00
Ana Krivokapic
41bf090d01 Add plan export command
Depends-On: I789c960f61a30ccd4b076fcae4b3e1b80e825585
Implements: blueprint plan-export-command

Change-Id: Ibedca0d80f93ab5e4bf7f105472bb384bc9506e6
2017-04-18 14:02:15 +02:00
Brad P. Crochet
1d3231de5a Remove update abort
The update abort is not reliable, and could mess up a TripleO stack
beyond repair. Since this has a potential for data loss, I would
suggest this be removed without a deprecation period.

Change-Id: Ieec4f01e38768eafb3df1f06340bdd3e220d30bd
2017-04-12 11:08:21 +00:00
Steve Baker
5ae4769354 New command "overcloud container image build"
This command receives the same --config-file argument as "overcloud
container image upload" and invokes kolla-build to build the images
specified in that file.

It is also possible to specify --kolla-config-file multiple times to
control the behaviour of kolla-build.

Change-Id: If06a941eaf8d92c29ed84387c4f040866cf07cfa
Depends-On: I061f626fdb3d71613aa23436bf6c53cf4de62213
2017-04-11 15:35:29 +12:00
Dougal Matthews
4da6ecdba6 Add a new command to get the overcloudrc files
If a user deploys via the GUI, then this file wont automatically be
created. We can now create it via a Mistral action - this command
provides CLI users a way to call that action and save the file.

While adding tests a typo was spotted in utils.py, this is also resolved
by this patch and covered by the tests.

Change-Id: I7808cd2c43a95bbb154ec6c6f77896b97551e354
2017-04-03 12:57:00 +00:00
Steve Baker
efedf4bb7c New command "overcloud container image upload"
This is the container image equivalent to the "overcloud image upload"
command. It wraps tripleo-common logic which has existed for some time
now[1].

The configuration file used in CI is also in tripleo-common [2] and
the existence of this command will allow the custom python[3] to be
replaced with a simple command invocation.

The same configuration file format will be used to implement another
new command "overcloud container image build".

[1] http://git.openstack.org/cgit/openstack/tripleo-common/tree/tripleo_common/image/image_uploader.py
[2] http://git.openstack.org/cgit/openstack/tripleo-common/tree/contrib/overcloud_containers.yaml
[3] http://git.openstack.org/cgit/openstack/tripleo-quickstart-extras/tree/roles/overcloud-prep-containers/templates/upload_images_to_local_registry.py.j2

Change-Id: Id505b57698b6a15c62494764b2d9eca1933e63f1
2017-03-16 00:46:51 +00:00
Dan Prince
5f58088ff5 Deploy the undercloud with Heat
This patch adds a new 'undercloud deploy' option which:

 -installs and configures os-collect-config, and hooks using instack

 -forks an all-in-one heat-api/engine process using noauth

 -spawn our own fake keystone thread for noauth Heat

 -creates a Heat stack for the undercloud using t-h-t

 -starts os-collect-config to drive the deployment of Heat
  metadata

Partially-implements: blueprint heat-undercloud

Depends-On: I50a8cc46b4c3c235d438a711760fba94bf8e9715
Depends-On: I36df7fa86c2ff40026d59f02248af529a4a81861

Co-Authored-By: Ian Main <imain@redhat.com>
Co-Authored-by: Flavio Percoco <flaper87@gmail.com>
Change-Id: Ib05062e3710aeec922988d5f1308be44b5468473
2017-02-14 17:01:33 +01:00
Jenkins
45e8fa9721 Merge "Add overcloud_parameters.GenerateFencingParameters." 2017-01-26 15:47:44 +00:00
Chris Jones
eb4686cfc1 Add overcloud_parameters.GenerateFencingParameters.
We can now generate parameters to enable HA fencing, by re-consuming the
instackenv.json file and introspecting the deployed stack.

Closes-Bug: #1649695

Depends-On: I0ff173b6daf770329b25f61b76fcba0e28b2550a
Change-Id: I8b717b069f95cac20fe2d8c7fdaaacc46214957b
2017-01-25 20:53:45 +00:00
Brad P. Crochet
7a31915c49 Migrate overcloud update to a mistral workflow
This moves the package update to using a mistral workflow.

Change-Id: I5176746ca4843202a385206289be66f7e6450f48
Depends-On: I8a1f2dbffa19c2d8c93684562d2fb16aef6667db
Closes-Bug: #1614928
2017-01-24 11:46:07 -05:00
Dmitry Tantsur
a3f687c953 Create command for building RAID on given nodes
This change introduces a new command to build RAID:
$ openstack overcloud raid create --node UUID1 [--node UUID2] configuraiton

More variants of this command will come later.

Part of blueprint raid-workflow

Change-Id: Ic4a547939213e5305cb7ca4f4458ef9eb577437b
2017-01-23 17:01:36 +01:00
Jenkins
31d0486064 Merge "Fix the author and author-email in setup.cfg file" 2016-12-21 12:16:59 +00:00
Jenkins
8f74280843 Merge "Remove "baremetal show capabilities" command" 2016-12-01 22:09:30 +00:00
Alex Schultz
7dd16b1da2 Implement overcloud delete command
This change adds an overcloud delete that will delete the stack and
issue a plan delete for the overcloud in a single command.

Change-Id: I97a2b5606f47deb929972c06c869cd1eda0dc9a6
Closes-Bug: #1632271
2016-11-28 13:26:11 -07:00
Deepak
2aae2514c6 Fix the author and author-email in setup.cfg file
Author and auther-email should have OpenStack and
openstack-dev@lists.openstack.org respectively

Change-Id: Ia54255bb60a25d196e5cb2a507ddb826013b0b96
2016-10-19 20:56:19 +05:30
Dmitry Tantsur
76cb55a26b Remove "baremetal show capabilities" command
It has been in conflict with "baremetal show" command provided by Ironic
since Mitaka, and due to that has been completely broken. The only
reason we haven't noticed that is because nobody uses this command.
Let's just remove it.

Change-Id: I645536f0ae0af3bd318db26543a662de659a27a5
2016-10-17 10:10:27 +02:00
Brad P. Crochet
ae8c7a8b1b Revert "Upgrades: Add 'stack upgrade' command"
This reverts commit 1b44a458b1.

See for revert reasoning:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101763.html

Change-Id: I6065ad2c329b2f9c19d69d505540d6c024f618d0
Closes-Bug: #1565807
2016-09-19 07:13:37 -04:00
Dougal Matthews
d1866edc83 Add openstack overcloud plan deploy
This command will start an overcloud deploy of the plan with
Mistral and wait for it to finish.

Closes-Bug: #1616015
Change-Id: Ie990bfb29dd245a1c83891495aa3f4ec7a0051e8
2016-09-14 08:26:52 +01:00
Dougal Matthews
cbd9f748d3 Add overcloud parameters set to set Heat params in a plan
Closes-Bug: #1616351
Change-Id: Id0fb75c4fd277a6e69df6625f95440aa04e9ab61
2016-09-01 16:45:05 +01:00
Dougal Matthews
2c0fecf69c Add 'openstack overcloud plan create' command
This uses the new Mistral actions and workflows to create a
plan with the tripleo heat templates. Templates can either
be provided by the user or the default templates on the
undercloud can be used.

Closes-Bug: #1616014
Change-Id: I4f82fda01215b9a45669862ef26c69421fdaad59
2016-09-01 14:13:16 +01:00
Jenkins
a439cfb256 Merge "Add 'openstack overcloud node configure' command" 2016-08-29 15:18:01 +00:00
Jenkins
105352b8e6 Merge "Add 'openstack overcloud node import' command" 2016-08-26 22:54:36 +00:00
Julie Pichon
d0b6de2b4a Add 'openstack overcloud node configure' command
Calls to the Mistral workflows to configure boot options and the root
device.

Change-Id: Ifd868fcdd6ed2d54b40c2e1861558d0233731be5
Depends-On: I5ba0a3710012c44822dd3b8e69662bbef04d3787
Closes-Bug: #1595205
2016-08-25 20:50:58 +01:00
Julie Pichon
dbe3b866a5 Add 'openstack overcloud node import' command
The new commands aim to simplify the node management workflow
[1]. Additional configuration will be possible via 'openstack overcloud
node configure.'

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-May/095456.html

Change-Id: I704438da31a31a90f882ddd01ba02e3ca62549ac
Depends-On: Iea9b7f3b49f99f810ce759f65b45b88c1c40f010
Partial-Bug: #1595205
2016-08-25 20:36:23 +01:00
Julie Pichon
3866bd16cd Add 'openstack overcloud plan delete' command
Change-Id: Iba2a936e904027277643c012102afa7be14b81b8
Implements: blueprint tripleo-ui-mistral-refactoring
Depends-On: I601aa2072271e072201be0c7d7237e0108494fb5
2016-08-18 14:48:16 +01:00
Julie Pichon
8d303e43ca Add 'openstack overcloud plan list' command
Change-Id: I29bb9854985fce0d7b3da195d8971a9d7c0def6c
Implements: blueprint tripleo-ui-mistral-refactoring
Depends-On: Ie2d1109d4ca6c04a5e06246e753006a7331041ea
2016-08-18 14:48:16 +01:00
Julie Pichon
6108b3be7d Add 'openstack overcloud node introspect' command
Change-Id: I1c58d9c825543cf402ff417d1fd05e89759e3ecd
Partial-Bug: #1595205
2016-07-11 08:50:02 +01:00
Julie Pichon
13011dc041 Add 'openstack overcloud node provide' command
Change-Id: Id8660fc63ff29478b4f40d9a3f656e26f8149426
Partial-Bug: #1595205
2016-07-11 08:49:56 +01:00
Dan Prince
4394ed779c Implement 'openstack overcloud execute'
Add a new overcloud_execute module that can be used to run
ad-hoc scripts via the CLI. This implementation uses Mistral
to start a workflow which is then monitored via a Zaqar websocket
for status updates and completion.

Depends-On: I418e8d26db953bc032a7da66f725dcecf7f6f66a

Change-Id: Ia8f9ed38dd5000da02c6cc9572fc87b8e9434a4b
Partially-implements: blueprint remote-execution
2016-06-20 10:26:51 -04:00
Brad P. Crochet
1b44a458b1 Upgrades: Add 'stack upgrade' command
Adds a command to upgrade a stack. Takes similar parameters to
'deploy' command. The StackUpgradeManager from tripleo-common is
called to perform the actual upgrade. The command is
'openstack overcloud upgrade'.

Change-Id: Ifda39765704e7d98d1fb70882a4d31ee0c9de21d
Depends-On: Ib7fc5d544755d9b1ffbf46170602ec390e735c11
2016-03-17 12:08:02 -04:00
Brad P. Crochet
142f796c5a Add 'undercloud upgrade' command
The undercloud upgrade process entails updating the installed packages,
then running the installer again. However, after updating packages, a
number of services may no longer be able to run, as upon restart the
new code is not compatible with older settings. Therefore, this makes
the upgrade more 'atomic' by bundling the package update and the
undercloud install into a single command. An error (non-zero RC) in the
package update will halt the process.

Change-Id: I269ba919f1648f0e4b30ab710c386dafdad2a68d
2016-03-08 09:58:08 -05:00
Dmitry Tantsur
2e680eafa9 Allow assigning profiles based on XXX_profile capabilities
This change will allow users (or ironic-inspector) to provide
several possible profiles for a node by setting capabilities like
XXX_profile (where XXX = compute, controller...).

Two new commands are added:

 openstack overcloud profiles match

    When no enough nodes with a given profile are found, this command
    will inspect nodes with such capabilities and choose missing nodes
    from them.

 openstack overcloud profiles list

    Lists all available and active nodes with their profiles and possible
    profiles.

See the following thread for the full background:
http://lists.openstack.org/pipermail/openstack-dev/2015-November/078884.html

This changes refactores profile validation code in the deploy command to use
the same logic as commands above. It's worth noting that this change also
removes an incorrect assumption that a node can have multiple values
for the same capability. It also makes sure we only take active and available
nodes into account for all calculations.

Change-Id: I398cf2052b280eaf67e5755412c35fe9551c341f
2015-12-22 15:27:01 +01:00
shu-mutou
cf691fee69 Drop py33 support
"Python 3.3 support is being dropped since OpenStack Liberty."
written in following URL.
https://wiki.openstack.org/wiki/Python3

And already the infra team and the oslo team are dropping py33
support from their projects.

Since we rely on oslo for a lot of our work, and depend on infra
for our CI, we should drop py33 support too.

Change-Id: I5db42f479849ed7be05ae0a2aa70af04844ef159
Closes-Bug: #1526170
2015-12-15 17:51:54 +09:00
Brad P. Crochet
1823b837cd Cleanup some strangling references to rdomanager-oscplugin
Change-Id: I46e3e0b6c4028789676428eaaa1e4c558346ecf4
2015-09-17 15:54:14 +00:00
Brad P. Crochet
12edde8a53 Rename rdomanager_oscplugin to tripleoclient
Change-Id: I4593a5248160204645d567d7f2fa3a396629082b
2015-09-08 10:22:22 -04:00
Brad P. Crochet
330b111a64 Merge changes from topic 'show-profile'
* changes:
  Add a show capabilities command to view the capabilities of nodes
  Add passenv to the venv to allow passing of environment variables from stackrc
2015-09-03 13:03:10 +02:00
Imre Farkas
a8c069c6e7 Generate partial tempest configuration during post-deploy
Partial-Bug: BZ #1249640
Change-Id: I56348e6421832dbfa79ff977bf2147eb246e7bbc
2015-08-31 15:54:51 +02:00