1305 Commits

Author SHA1 Message Date
Tony Breeds
ada02718a1 Remove Old baremetal commands provided by python-tripleoclient
python-tripleoclient provides the following openstack baremetal
commands:

openstack baremetal instackenv validate:
openstack baremetal import:
openstack baremetal introspection bulk start:
openstack baremetal introspection bulk status:
openstack baremetal configure ready state:
openstack baremetal configure boot:

Based on the data below several of these are already deprecated and have
been so longer enough to be removed.

openstack baremetal instackenv validate:
    tripleoclient.v1.baremetal:ValidateInstackEnv
    NOT Deprecated
openstack baremetal import:
    tripleoclient.v1.baremetal:ImportBaremetal
    DEPRECATED in b272a5c6 2017-01-03
    New command: openstack overcloud node import
openstack baremetal introspection bulk start:
    tripleoclient.v1.baremetal:StartBaremetalIntrospectionBulk
    DEPRECATED in b272a5c6 2017-01-03
    New command: openstack overcloud node introspect
openstack baremetal introspection bulk status:
    tripleoclient.v1.baremetal:StatusBaremetalIntrospectionBulk
    NOT Deprecated
openstack baremetal configure ready state:
    tripleoclient.v1.baremetal:ConfigureReadyState
    NOT Deprecated
openstack baremetal configure boot:
    tripleoclient.v1.baremetal:ConfigureBaremetalBoot
    DEPRECATED in b272a5c6 2017-01-03
    New command: openstack overcloud node configure

This leaves:
openstack baremetal instackenv validate
- This is somewhat superceded by the mistral validation in
  tripleo-common
openstack baremetal introspection bulk status
- This should have been deprecated along with
  'openstack baremetal introspection bulk start' and isn't useful without
  the former.
openstack baremetal configure ready state
- Seems to only support drac and requires a datafile no loner generated
  by tools

As these commands have outlived their useful lifetime and do not require
deprecation we're free to remove them so let do it.

Change-Id: Ie6b6a8578e4d12503a3dbfa5747309033d53466e
2017-12-18 11:50:45 +11:00
Zuul
bdee8afc9b Merge "Display Horizon URL at the end of a deployment" 2017-12-16 03:11:32 +00:00
Zuul
34acc1354f Merge "Undercloud: wire in scheduler_max_attempts" 2017-12-16 03:11:31 +00:00
Zuul
2977fb6212 Merge "Switch to tripleomaster registry" 2017-12-16 02:31:06 +00:00
Dougal Matthews
977bc6f1b8 Remove the overcloudrc.v3 file
The default file is now v3, so these will always be the same.

Related-Bug: #1733640
Depends-On: I5e779f48a02c5389cebf84e9d3899250d63cace8
Change-Id: I3612c58c356f8955bd44655cf5aacc20be532cbc
2017-12-13 11:44:19 +00:00
Zuul
9884858f03 Merge "Remove dead code & variables" 2017-12-12 22:47:49 +00:00
Zuul
dcb3a7c1da Merge "Drop docker_name_space option" 2017-12-09 03:03:07 +00:00
Zuul
4a2ffa878e Merge "Support more hardware types and deprecate enabled_drivers" 2017-12-08 23:53:15 +00:00
Martin André
9f6961b573 Switch to tripleomaster registry
The tripleoupstream registry is deprecated in favor of tripleomaster,
where images are pushed automatically on rdo promotion.

Change-Id: I872a04f6c7d1c256d126b32303d73bafc6e8fd89
2017-12-08 16:51:58 +01:00
Dan Prince
814a142316 Undercloud: wire in scheduler_max_attempts
Change-Id: I9bd9c35208ba4b75590e0d6d793578fcbbe599f8
Depends-On: Ib4ea5af26c39e466d0f4b7506a65f020620f2120
2017-12-07 22:25:48 -05:00
Dan Prince
99f67cc862 Drop docker_name_space option
This setting doesn't exist in instack-undercloud and it has
long since been removed from t-h-t as well. There is no longer
any use for it.

Change-Id: I4aec82225c056e8cc7bf96a53bc9ce95957f9a2c
2017-12-07 22:13:22 -05:00
Emilien Macchi
f6e130da1d Remove dead code & variables
- SERVICE_LIST is not used anywhere, let's drop it.
- Same for _get_password, _get_base_service_data and
  _get_endpoint_data

Change-Id: Iff55d3b83ac4ad042a5b596c5b435877b588fe5c
2017-12-07 09:40:14 -08:00
James Slagle
ea80a56987 Remove default for --overcloud-ssh-key
The default value for --overcloud-ssh-key was wrong (it was actually a
username). Instead of using a default value at all, just remove the
default since we can't sanely pick one.

Change-Id: I57a7293f0cc08b0fab0ee7c2f0b4c0a8b2bd2f44
Closes-Bug: #1736606
2017-12-05 21:51:21 -05:00
Dmitry Tantsur
28d8ec0de2 Support more hardware types and deprecate enabled_drivers
Ironic is going to deprecate classic drivers in Queens and remove them in Rocky.
This change enables hardware types ilo and idrac that correspond to alreadys
enabled classic drivers pxe_ilo and pxe_drac. It also adds support for others
common hardware types, but does not enable them by default.

The enabled_drivers option is deprecated.

This change mostly copies commit 58701fe014bf118ee0bbed5272c1a08e3f594ae0
from instack-undercloud, but adapts it for heat-driver undercloud.
Also adds staging-ovirt from review I3e5d0a72e2ba22537ce2c0eb30000c29f429dc3f

Change-Id: I3c20591a9900afb60aadcfa151b9ff29e7d3e16d
2017-12-04 14:58:08 +01:00
OpenStack Proposal Bot
cc5fee3cab Updated from global requirements
Change-Id: I803c71b981a312ea65d6387973dcac87e4e2a06b
2017-12-03 21:53:12 +00:00
Zuul
3e4658c5d4 Merge "Avoid tox_install.sh for constraints support" 2017-12-02 23:43:27 +00:00
Andreas Jaeger
c88f0f4b39 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: If0b9a678354b634a2f060df4a6ff1b479967d566
2017-12-02 16:51:15 +00:00
Jiri Stransky
13485a64c8 Run enable_ssh_admin also for Nova+Ironic deployments
For Nova+Ironic deployments we could run the enable_ssh_admin Mistral
workflow directly and take advantage of the public key injection via
os-collect-config, but since the script seems to work for both
deployed-server and Nova/Ironic envs, we can just use it
unconditionally and keep the logic DRY.

Change-Id: I2bae54d282591abc8a014cdce805e90305a7a34d
Closes-Bug: #1735173
2017-12-02 05:34:38 +00:00
Zuul
7559118415 Merge "Print out the deploy command we are using." 2017-12-01 19:46:12 +00:00
Zuul
adc9ccf01e Merge "Pre-run validations and verifications for the undercloud" 2017-12-01 19:32:29 +00:00
Zuul
5090a7bbb9 Merge "Add mock to avoid writing missing files to disk" 2017-12-01 08:15:08 +00:00
Zuul
d40016c93a Merge "Add each command to the history file" 2017-12-01 07:51:34 +00:00
Ian Main
45663b4fb3 Print out the deploy command we are using.
Change-Id: I11c1ede390ca47fa137c0ab9e001f07a7773e5f1
2017-12-01 06:40:50 +00:00
Zuul
a6be36d462 Merge "Add entry per enabled service in the inventory" 2017-12-01 05:29:23 +00:00
Zuul
28b9c53882 Merge "Add default kolla conf file for TripleO to build container images" 2017-11-30 19:46:45 +00:00
Zuul
610ac407f5 Merge "undercloud_deploy: enable heat-native by default" 2017-11-30 19:46:45 +00:00
Zuul
2c375050a6 Merge "Updated from global requirements" 2017-11-30 19:46:44 +00:00
Zuul
86d9d9a5b4 Merge "Set undercloud public host" 2017-11-30 19:46:43 +00:00
Mathieu Bultel
c102747c8d Catch zaqar exception when no message to claim
On minor update, when the execution is still running
but there is no claim message anymore, we should
capture the zaqar exception to not print it to the
console

Change-Id: I802ffd553c54e4a4f9998420645aa078f508b9f0
Closes-Bug: #1734957
2017-11-29 13:52:23 +00:00
Zuul
3a2e75c000 Merge "Use qemu-img in bindep" 2017-11-29 00:41:14 +00:00
Zuul
4dc63279ba Merge "Fix for timeouts on scale down" 2017-11-28 20:34:23 +00:00
Brad P. Crochet
24cd624e05 Display Horizon URL at the end of a deployment
Change-Id: Ie736926e6dfd6ac964956255048b5e3e31e30597
Depends-On: I966fc5c4d285f15a8d528aa3105c90fe5a3fbba1
Depends-On: I81eaf6ae00ee18e1bec4bb39a18a54e90e1ce5d5
2017-11-28 16:21:10 +00:00
Zuul
ba55b40c7f Merge "Deploy with --config-download even when some role has count 0" 2017-11-28 14:13:49 +00:00
Ian Wienand
23bc245cd0 Use qemu-img in bindep
The qemu-img-ev package comes from the virtualization sig backports.
These stopped getting installed with
I747c2b8754effbc6ec82af3bf7543fd9599a6c14.  I believe that this is
really installing these dependencies for dib to convert the image, and
that works with the standard qemu-img package.

Change-Id: I0c09c54f7ace4ac28942b733cbc6dfe42436ecdc
2017-11-28 14:14:59 +11:00
Ian Main
fc7399df70 Mount a tmpfs filesystem for heat tmpfiles
We noticed that heat was sleeping a lot waiting on disk.  By putting the sqlite
database on a ramdisk (tmpfs) we cut the deploy time in half.

Change-Id: Ic22bf49787279993d5d6ee081b31d789b519e555
2017-11-27 23:30:43 +00:00
Zuul
8590d9b80e Merge "Output the location of the overcloud rc file" 2017-11-27 22:22:02 +00:00
Adriano Petrich
715324adf9 Fix for timeouts on scale down
There were two issues: The action timeout and the wait_for_messages
timeout.

The wait_for_messages did not need a timeout here and it was causing the
bug. I added an cli option for the timeout and setup a reasonable
default (the previous default was over 4 hours that would invalidate
keystone session duration)

Change-Id: I232d071516d3f53f9f87143d9d65ebe3e58b0f38
Closes-Bug: 1734712
2017-11-27 10:48:17 -05:00
Dougal Matthews
53d06b7f52 Add each command to the history file
Change-Id: I1e93305426dd94dbbcc8ca70f446dae4a1fa0434
2017-11-27 15:37:00 +00:00
Jiri Stransky
c90243efa9 Deploy with --config-download even when some role has count 0
Roles which don't have any instances will not have a 'ctlplane' record
in the RoleNetHostnameMap, so we shouldn't be depending on it being
always present.

Change-Id: I2da025961c584cb1adc83943561b1d9faa3559b1
Closes-Bug: #1734703
2017-11-27 15:40:02 +01:00
Zuul
f7c0214aee Merge "Move back to docker-site.yaml for ceph ansible update" 2017-11-24 19:27:08 +00:00
Zuul
2ae6670274 Merge "Set also up-to-date overcloud flavor parameters" 2017-11-24 14:51:18 +00:00
Zuul
a3d3987cf5 Merge "Use common defaults for image prepare CLI" 2017-11-24 14:20:46 +00:00
Mathieu Bultel
1020a23ae9 Move back to docker-site.yaml for ceph ansible update
The rolling-update for ceph ansible is broken now,
so we have to switch to the docker site playbook
instead

Closes-Bug: 1734307
Change-Id: I41f638b0a7df903bd95ab8d42241249d6ec1043a
2017-11-24 13:09:17 +01:00
Bogdan Dobrelya
909a9f7530 Allow to override t-h-t 'Cloud*' params undercloud
Allow to parametrize the hardcoded 'undercloud' domain name.
F.e. RDOcloud uses an 'rdocloud' domain, therefore some DNS things might be
failing with the hardcoded value.
The default domain name remains unchanged. It can be
overriden with a new '--local-domain' option as well.

Related-bug: #1698349
Partial-bug: #1733873

Change-Id: Iad63142b241f9f7f0bbef68473f18b69f36daf76
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2017-11-23 14:57:05 +01:00
Ian Main
999e0bfb31 Pre-run validations and verifications for the undercloud
Change-Id: Ief1aad319b794547bf6d75255458d08ba3be5f70
2017-11-22 17:52:53 +00:00
Pradeep Kilambi
915200a5f8 Set undercloud public host
Change-Id: I118a1772d2268c6a7d46ba40301f63abba6e925d
2017-11-22 11:04:07 -05:00
Julie Pichon
c96d2e1e74 Add mock to avoid writing missing files to disk
The 'fake' file was being created and left on disk when running the
unit tests, sometimes causing random failures during directory
creation. This mocks the function in all tests to avoid this, and adds
a new unit test specific to it to ensure we don't lose coverage.

Change-Id: I6cf6ec5e85af4a748e00383f7ee65636eb5a3251
Closes-Bug: #1732010
2017-11-22 10:05:45 +00:00
Mathieu Bultel
bb52d24649 Consume a zaqar queue for update to poll ansible result
Consume the update zaqar queue to get the ansible output in
real time.
The queue used is not the 'tripleo' queue because we need
to not be disrupt by other messages.
We need to claim all the zaqar messages in the queue to
get a consistent ansible output

Change-Id: I3682051eb719f8da9c744f7ec8be3a58f3db3f86
Closes-Bug: 1732497
2017-11-22 08:10:14 +01:00
Zuul
2c8e76f647 Merge "Fix static-inventory option for minor update" 2017-11-21 21:16:29 +00:00
Zuul
0ba5875d7a Merge "Mock creation of ~/.tripleo directory" 2017-11-21 21:16:27 +00:00