Commit Graph

126 Commits

Author SHA1 Message Date
wu.chunyang 3b56a5e0f7 kolla-cli: deprecation - Removing project content
step 2b from:
https://docs.openstack.org/project-team-guide/repository.html#step-2b-remove-project-content

Deprecation notice:
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014983.html

Change-Id: I744f5c17232928cec68c1b90b2f5d791faf7d9e7
Depends-On: https://review.opendev.org/748259
2020-09-03 09:58:43 +02:00
jacky06 d79f8eec7c Remove six
We don't need this in a Python 3-only world

Change-Id: I2f2cff3c291b5db53287a99b8044e162c2d8f47d
2020-05-17 05:08:38 +00:00
jacky06 d237a3ed06 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
during installation.

Change-Id: Ic63e432161dcebb62e0b510af03e03f7bebb3fd7
2020-04-06 13:57:01 +08:00
Zuul 1db23c75fd Merge "Use unittest.mock instead of third party mock" 2020-04-06 05:48:37 +00:00
jacky06 cb017ed845 Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I6101cb044ee0fc2a7be95352569782eaf0b938aa
2020-04-06 12:33:06 +08:00
jacky06 f87b3fbbb8 Fix some pep8 failed
1. expected 2 blank lines after class or function definition, found 1
2. E117 over-indented

Change-Id: I7ef1a0ffbf200850f350ae6df5fed3ded9b20f90
2020-04-06 10:35:27 +08:00
Radosław Piliszek 83c66740fa CI: Remove failing ceph-related test
This test has no purpose now.
Kolla Ansible removed Ceph deployment support in Ussuri so it
failed CI.

This also drops py27 gating because it broke in Ussuri.

Change-Id: I09aac88e2552231b0c76c5bea112e692571151c4
2020-03-01 11:45:18 +01:00
jacky06 5a1662a272 Typo fixed: Update Upgrade to Check
Change-Id: I8a214309eb04e8f25ddf6111d6fb31917e022b34
2019-10-16 13:42:12 +08:00
jacky06 50aeac2b3f Add --hosts support for check action
Change-Id: Ic1148c59ce5305468acf48580addee1a9ff3be7a
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
2019-10-14 13:02:56 +08:00
jacky06 ea368aedb9 Add genconfig unit test
Change-Id: I2238a3c9f905aae18b80a9b190506e7b41578fcb
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
2019-09-15 01:08:06 +08:00
caoyuan b56875b1d2 Add stop unit test with services and hosts
Change-Id: If8d47539c65d237941f6e64cf7770d7101ab960b
2019-09-12 02:23:56 +00:00
Zuul 0695e0a2f1 Merge "Revert "Add defualt property list"" 2019-09-12 01:45:40 +00:00
caoyuan 4e2528173b Revert "Add defualt property list"
This reverts commit 68eb78edcb.

Change-Id: I846f975ffe62a0033537367e74c20260e457fb32
2019-09-12 01:09:13 +00:00
Zuul db3e24d91c Merge "Add upgrade unit test" 2019-09-11 17:59:16 +00:00
jacky06 4e363efcb1 Add upgrade unit test
Change-Id: Ia1666c160a59c9910dc9b6eabd4b8a7210910ec0
Co-Authored-By: caoyuan <cao.yuan@99cloud.net>
2019-09-11 17:06:09 +00:00
Zuul bd311b13c5 Merge "Add pull unit test for zuul" 2019-09-11 16:11:24 +00:00
Zuul 27188125a9 Merge "Add defualt property list" 2019-09-11 15:44:54 +00:00
Zuul d83742cb19 Merge "Fix Typos: fix the help information for prechecks action" 2019-09-11 12:37:31 +00:00
caoyuan ba05f681ec Add pull unit test for zuul
Change-Id: Ia7fc7bc992d59036f5ba077c799be859dc1b20f1
2019-09-11 20:17:03 +08:00
jacky06 f8ce8108db Add --services support for stop action
Change-Id: I3e7270d605f6cdbebc39b3dcc5497e0dc046fb48
2019-09-11 19:52:59 +08:00
yanghongyu fd94f4e03e Fix Typos: fix the help information for prechecks action
Change-Id: I1cbf546187b967fd220fe7a17e7e72d456ac7041
2019-09-11 11:23:40 +00:00
Zuul 60045af92e Merge "Add unit test with host and service for reconfigure action" 2019-09-06 10:12:00 +00:00
Zuul cc850c8083 Merge "Add --hosts variable support for upgrade action" 2019-09-06 10:10:11 +00:00
ljhuang a81bffb548 Fix typos: update upgrade to generate
Change-Id: I79a491d78a7dc0cd1e4f4ab5fc8c170f45057c4a
2019-09-06 09:19:43 +00:00
caoyuan 9b4d42a685 Add unit test with host and service for reconfigure action
1. it should be add in I86ebb5e8a24927e43105fbfa72a405d31ab68e86,
but missing, this PS to supplement.

Change-Id: I5f2da6533c45d68d659f4706af791ecccf02c82b
2019-09-06 09:06:32 +00:00
caoyuan 5d8a91785f Add --hosts variable support for upgrade action
Change-Id: Id9ade0c19be97c8fa4d7480ae3e27b6e09c7d5c1
2019-09-06 08:54:57 +00:00
Zuul ea2da49ca5 Merge "Add kolla args check for control plane action" 2019-09-05 16:25:00 +00:00
zhulingjie acbbd130c6 add reconfigure unit test
Change-Id: I86ebb5e8a24927e43105fbfa72a405d31ab68e86
2019-09-05 17:39:40 +08:00
caoyuan cef5e35aca Add kolla args check for control plane action
Change-Id: Iaf798d3bb37832888b6b269f18299b1da24d4610
2019-09-05 16:21:59 +08:00
wu.chunyang 165465da1e Add group list command
group list is a commonly used command, add this command here.

Change-Id: I024633b9ffcf20b5f9f30d4c6e8a3ac92d6d58b6
2019-08-13 22:07:16 +08:00
Zuul c4eac7583e Merge "Move stop acton to kolla model from host" 2019-08-11 10:49:01 +00:00
zhulingjie 1498b7eade Move stop acton to kolla model from host
Change-Id: Id8cb840651e4455064699a2a53943d364d9a7e82
2019-08-09 16:12:35 +00:00
zhulingjie 96f5956b3d Add --hosts and --services support for reconfigure action
Change-Id: Ib84a45116b0975b8866499ff30cd1499c309e6af
2019-08-09 23:24:31 +08:00
Zuul 700ad3fa39 Merge "Use inventory object to validate the hosts and services" 2019-08-09 14:30:25 +00:00
gujin 6cc525c2ec Use inventory object to validate the hosts and services
inventory complete the hosts and services check, we should use it
rather than complete it again[1]

[1]: https://review.opendev.org/#/c/673537/

Change-Id: Iad1e78be8cba0e378a623d17ad408b3e43a48daf
2019-08-09 15:16:51 +08:00
gujin 661f3f51d3 Move kolla prechecks action into kolla_actiom model
1. Prechecks action is one core action of kolla action command,
it should be in kolla_action rather than host, this PS to
move it from host model into kolla_action
2. Add prechecks action unit test with hosts and services flag

Change-Id: I8f636570a9756a004f186d806e4451a87f046f18
2019-08-09 00:09:44 +08:00
zhulingjie d9d50149a1 Typo fix: update aciton to action
Change-Id: Icdfc2c8d63d6122a624e13e3d498ef98abbb0636
2019-08-08 11:46:20 +08:00
gujin ce489ad252 Update kolla command to kolla-cli action command
to keep the kolla-ansile action by alphabet

Change-Id: Iee3394453be0e16daf7ea3486e951ce758da3b66
2019-08-06 22:07:27 +08:00
cao.yuan 68eb78edcb Add defualt property list
Change-Id: I7e5ae6e8a851813b2892bd4b9a2a33ff3539ce7f
2019-08-05 14:17:47 +00:00
jacky06 3babfbaeda Move sphinx-build into tox
Change-Id: I8b98e96a5f8be1d86f388a2fd702eacd3ad07986
2019-08-02 23:43:50 +08:00
gujin 679824b687 Add service and host check for API
now, the action will run even though the service or the host are
invaild, this PS to check them before the action executed.

Change-Id: I764599673d44c33ce6622bf97988f372a7a26285
2019-07-31 15:06:31 +00:00
jacky06 6b63c00967 Add pull action functional test
Change-Id: I3e754f4e7594eb23f73b8da6bee3af0b91f44ad4
2019-07-31 15:54:17 +08:00
gujin c5ba7f2704 Add host support for genconfig action
Change-Id: Ic470dbe73ce2d24def93f64ce8e6b63657a5ba38
2019-07-30 15:10:53 +00:00
cao.yuan 13a009179a Add pull aciton default hosts
Change-Id: I72c8252d0f5b43920ca488a9d5205edbf54342b0
2019-07-30 18:04:49 +08:00
Zuul 92dc66e2bb Merge "[Part4]: Optimise and simplify action code" 2019-07-30 08:50:08 +00:00
gujin 5949587d10 [Part4]: Optimise and simplify action code
1. complete deploy action
2. complete reconfigure action

Change-Id: Idf4505cdddad8845a37c0ff4cb7704fe44b8ff06
2019-07-30 08:48:32 +08:00
gujin 6b38a92c80 Add host support for pull action
Change-Id: Icc60f135c7b3d7d9d38b73a3ae04e18c3078c287
2019-07-30 00:01:44 +08:00
jacky06 50ffbe5188 Remove the duplicated swift ring files check
1. the swift ring files check is done in swift prechecks role in
kolla-ansible[1], no need to double check in kolla-cli.

[1]: https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/swift/tasks/precheck.yml#L100

Change-Id: Ia316ee788b1847f8da08d3a3b3693761f37c1125
2019-07-29 22:34:15 +08:00
cao.yuan 6b03977fd7 Add get deploy mode action
Change-Id: I53af08a97c2ba2b4d07cc0778814985834fb4a27
2019-07-29 15:33:26 +08:00
cao.yuan f467c033e7 Fix the GLOBAL file path
Change-Id: I623dca313b5fe1b6dfc53cfab096fac3c95adcf0
2019-07-24 10:11:22 +00:00