Commit Graph

620 Commits

Author SHA1 Message Date
Andreas Jaeger 2b3cb11e88 Retire repository
Fuel (from openstack namespace) and fuel-ccp (in x namespace)
repositories are unused and ready to retire.

This change removes all content from the repository and adds the usual
README file to point out that the repository is retired following the
process from
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project

See also
http://lists.openstack.org/pipermail/openstack-discuss/2019-December/011647.html

Depends-On: https://review.opendev.org/699362
Change-Id: I1cdc15fbd41ebea088c76729abf6b120165b9ed1
2019-12-18 09:52:47 +01:00
OpenDev Sysadmins 9d25aed1cf 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:30:02 +00:00
Fedor Zhadaev b765ac3814 Add two plugins related commands into fuel2
* fuel2 plugins install <path>
 * fuel2 plugins remove <name> <version>

DocImpact
Change-Id: Id166eacad0ffe8b9f6fd98519aaa15246a9c1956
Closes-Bug: #1668253
2017-03-29 08:36:48 +00:00
Vladimir Kuklin 4d739ecc04 Update test requirements
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: Ia3bcca2dd70b2e43b59041bf9c9cf7eced723fce
2017-03-02 18:03:24 +03:00
Igor Gajsin a78cd6e107 remove vmware
VMware not supported since Fuel 10. So this commit removes
vmware-related part of CLI fuel client.

Change-Id: I8da5aad94d34fc458fadfad4d38aa6607060b4a3
Implements: blueprint remove-vmware
2017-02-21 16:59:45 +03:00
Sergey Kulanov 438bce600f Align git branches for tests
We need to use stable/mitaka branch both in python-fuelclient
and fuel-web

Switching to full repo cloning since for now we need
checkout to other branches

Change-Id: Ib3018bcda4e9e89a1ca9f80447883896f4db3b8c
Related-bug: #1558589
(cherry picked from commit a2388bc910)
2017-01-31 15:14:38 +03:00
Vitalii Kulanov fb71c9d8e7 Align help message for 'fuel2 sequence list' command
Closes-Bug: 1651467

Change-Id: Id77bb722a455473b755b26fc00ad9f3561eb5030
2017-01-25 10:30:10 +02:00
Alexander Kislitsky f83b052de2 Sorting of output fixed for list commands
Used sorting implementation from the BaseListCommand.

Closes-Bug: #1614032
Change-Id: Iced41a12ec20712b5cb7fe4c2a21b3763e1713aa
2016-12-29 16:11:31 +03:00
Vitalii Kulanov 224b986631 Remove entry point for nonexistent 'fuel2 tag show' command
Now setup.cfg file contains entry point for nonexistent
'fuel2 tag show' command. So let's remove it.

Change-Id: Iec87f0b8cffe948539b6965f61b4d85a29718926
2016-11-28 14:28:32 +02:00
Flavio Percoco db9bf9cebc Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/87d21c8d89537c9d0dde089f8036e3d4

Change-Id: I95fef52e6a0ae26907665de5f130787895bef02b
2016-11-25 17:43:16 +01:00
Jenkins b2c6e6451e Merge "Add tags support in CLI" 2016-11-23 17:35:19 +00:00
Jenkins b2fad2fc5a Merge "Add ability to create role for cluster" 2016-11-23 17:15:34 +00:00
Jenkins 21c0dbb7e2 Merge "Add subgraph execution support" 2016-11-23 15:01:19 +00:00
Mikhail b482cb522e Add tags support in CLI
Releases new fuel2 commands to operate on tags:
fuel2 tag create
fuel2 tag delete
fuel2 tag download
fuel2 tag list
fuel2 tag update

DocImpact

Change-Id: I71ae78b4a733d83a5441ff0ac5ba627502e7f2b3
Implements: blueprint role-decomposition
2016-11-23 16:54:21 +03:00
Mikhail f1ca20421a Add ability to create role for cluster
Add -e/--env to all role commands

DocImpact

Change-Id: Ibab8720b3b48fd61dabccbd30952b3be582b010f
Implements: blueprint role-decomposition
2016-11-23 15:43:32 +03:00
Jenkins cf770bbd4b Merge "Align plugins filtering for 'fuel2 graph list' command" 2016-11-17 16:27:45 +00:00
tivaliy 13acdfba37 Make graph download command more predictable
Now if we try to download graph with any task level parameters
without specifying any filename the result (by default) will be
stored in 'cluster_graph.yaml'.
This patch:
  * makes default filename more accurate based on input parameters
    (environment id, task level graph value and format)
  * adds support to download graph in JSON format

  fuel2 graph download [-h] -e ENV (-a | -c | -p | -r)
                       [-t GRAPH_TYPE][-f FILE]
                       [--format {json,yaml}]

DocImpact

Change-Id: Ia7aa03cbbcde3d63e4ade5e76ea1242a2939b71e
2016-11-09 13:51:41 +00:00
tivaliy 57bbc76a78 Align plugins filtering for 'fuel2 graph list' command
Change-Id: Iba533f795f78bcd74d5989eff9ed9342c66d05b0
Closes-Bug: 1638605
2016-11-09 13:51:24 +00:00
Jenkins 735ec78c4c Merge "Revert "Add tags support in CLI"" 2016-11-09 13:45:07 +00:00
Mikhail Zhnichkov 4c625ce4fb Revert "Add tags support in CLI"
This reverts commit adf8d677b4.

Change-Id: If653ef9f8244f4e03efc8f83942bbca618365f0e
2016-11-08 09:05:25 +00:00
tivaliy 8702619427 Align parameters of 'fuel2 graph download' command
Now 'fuel2 graph download' command can be executed without
specifying any task level parameters that leads to erroneous
behavior, i.e. plugins task level graph is downloading by default.
This patch fixes such behavior and makes task level parameters
mandatory, e.g.:
       fuel2 graph download [-h] -e ENV (-a | -c | -p | -r)
                            [-t GRAPH_TYPE] [-f FILE]

Change-Id: I5ed561cda9b0d35043822d01b6bb0b37df451fcb
2016-10-25 22:09:44 +03:00
Jenkins 149be0d7c6 Merge "Add tags support in CLI" 2016-10-25 10:19:46 +00:00
slava adf8d677b4 Add tags support in CLI
Releases new fuel2 commands to operate on tags:
    fuel2 tag assign
    fuel2 tag create
    fuel2 tag delete
    fuel2 tag download
    fuel2 tag list
    fuel2 tag unassign
    fuel2 tag update

Advanced mode has been introduced.

DocImpact

Change-Id: Ib0f48598552f6b066fd375966594cb3a934574e2
Implements: blueprint role-decomposition
2016-10-20 03:15:40 +03:00
Jenkins 4f093a5690 Merge "Make help message more accurate and user-friendly" 2016-10-19 14:58:05 +00:00
tivaliy 169dda2d6b Make help message more accurate and user-friendly
Now in python-fuelclient if we try to get help message
for specific command with '--help' option, e.g.:

      fuel2 node list --help

the output result looks very ugly, because it prints
all available commands in fuel2 instead of detailed
description for exact command. Also we have similar
behavior if we try to specify non-existing command.
This patch makes help message more accurate and
user-friendly, e.g.:

      #fuel2 env add nodes --help

usage: fuel2 env add nodes [-h] -e ENV -n NODES [NODES ...]
                           -r ROLES [ROLES ...]

Adds nodes to an environment with the specified roles.

optional arguments:
  -h, --help            show this help message and exit
  -e ENV, --env ENV     Id of the environment to add nodes to
  -n NODES [NODES ...], --nodes NODES [NODES ...]
                        Ids of the nodes to add.
  -r ROLES [ROLES ...], --roles ROLES [ROLES ...]
                        Target roles of the nodes.

     #fuel2 non-existing --help

Unknown command ['non-existing']

Change-Id: I89afb39d92ffb01c37fbf558e6d62091ac6112e7
Partial-Bug: 1629285
2016-10-19 14:20:04 +03:00
tivaliy 0260c9bcbd Align parameter name in 'fuel2 graph *' command
Now fuel2 graph download and upload commands contain wrong
parameter name that doesn't meet Fuel Graph Concept Extension
And Usage specification I1d0b9844a2603774f261b7d933e0c720ecd0e112.
This patch replaces '--type' name parameter with respective
'--graph-type' one according to the spec above

Change-Id: I3f1665c807614107883415fb9291a921d780f535
Closes-Bug: 1618449
2016-10-18 10:14:39 +00:00
Jenkins 496968758f Merge "Add more verbosity to fuel2 vms commands" 2016-10-15 20:36:40 +00:00
Jenkins f5027094e7 Merge "Role related code refactoring" 2016-10-15 20:30:08 +00:00
Vladimir Kuklin e41e6511a9 Add subgraph execution support
Add -S option to support subgraph execution. This would allow a user
to pick which tasks to stop on.

Example:

fuel2 graph execute -S keystone-db:openstack-controller/1

will start with all keystone-db tasks and end at openstack-controller at
node-1

DocImpact

Change-Id: I42f9caf2e9c18072a2ae0447df2ba3500f687d5e
Closes-bug: 1612616
2016-10-14 17:35:11 +03:00
tivaliy c78c6624b6 Align fuel2 network-template upload procedure
* removes extra '.yaml' extension from filename
* makes -f/--file option required

Change-Id: If1bfe4d9f68331f76ca748281cbc1f609959573d
Closes-Bug: 1632316
2016-10-11 23:29:07 +03:00
tivaliy 8b5dcd4d8e Add more verbosity to fuel2 vms commands
There is a set of commands that operate on vms.
But the API and respective fuel2 commands are
only available if 'advanced' feature is active
in 'feature_group' (from fuelmenu). In other case
Nailgun reports '(not found)'. This patch adds more
verbosity to fuel2 vms commands if 'advanced' feature
is not active instead '(not found)' responce.

Change-Id: Idc1a2612ca20125ed54bdd35bfb048a81fa22cdd
Closes-Bug: 1603980
2016-10-03 13:39:08 +00:00
tivaliy ab86dfa2dc Role related code refactoring
Code for operating with roles in release
has to be refactored in order to meet
code consistency and UX:

   fuelclient/objects/role.py
   fuelclient/v1/role.py
   fuelclient/cli/actions/role.py

Change-Id: Ifdfa537f99249d1af8ab857e7f6ada313eb2c578
2016-10-03 13:38:40 +00:00
Jenkins 14e8bee51b Merge "Raise NotImplementedError instead of NotImplemented" 2016-09-30 06:06:48 +00:00
Jenkins 19da0f71e7 Merge "Release 'fuel2 health *' command" 2016-09-28 17:26:14 +00:00
tivaliy 418dd206a4 Release 'fuel2 health *' command
As we deprecate old cli a new 'fuel2 health *' commands
with extended functionality were implemented:

  fuel2 health list
  fuel2 health start
  fuel2 health stop
  fuel2 health restart
  fuel2 health status list
  fuel2 health status show

DocImpact

Change-Id: Ib9ba1912d0e0b391500d6bc257232fee0184620b
Closes-Bug: 1619196
2016-09-26 17:27:44 +03:00
Tony Xu c7183a3516 Update homepage with developer documentation page
Change-Id: I64a41f29608102ab72e34456bb554e187802131f
2016-09-24 14:02:00 +08:00
tivaliy d4140d5472 Add 'fuel2 graph delete' command
Currently Nailgun supports DELETE deployment graph operation
3d1f96e529c62b34877216411fc7545b84666d4b. However
python-fuelclient doesn't implement this feature. This patch
adds 'fuel2 graph delete' command to support deployment graph
removal process:

 fuel2 graph delete [-h] (-e ENV | -r RELEASE | -p PLUGIN)
                    -t GRAPH_TYPE

DocImpact
Closes-Bug: 1624918

Change-Id: If49d4f10d404edbd04bb9f1a976b36de1cb1dcfe
2016-09-23 13:04:51 +03:00
tivaliy 9dfb28e33c Add files verification for 'fuel2 graph upload' command
Now Nailgun reports about successful upload of deployment graph
from directory that can even not contain any 'tasks.yaml' files.
This patch fixes:
  * check if at least one 'tasks.yaml' file exists in specified
    directory path
  * check if at least one 'tasks.yaml' file in specified
    directory path is not empty

Change-Id: I5de2474b8fbb46780450ee3873af6189a6cf17cc
Closes-Bug: 1619586
2016-09-20 05:36:01 +00:00
Jenkins 3a02b1039a Merge "Graph list now working for all levels, not only cluster" 2016-09-19 15:25:13 +00:00
Ilya Kutukov a23cc5e94f Graph list now working for all levels, not only cluster
Before this patch it was possible only to view list of graphs
that are related to cluster level of given env and no more.

Now graphs list for env is returning all graphs
related to it (release, plugins and cluster level).

Now the following commands are possible:

fuel2 graph list [--env ENV_ID] [--cluster] [--plugins] [--release]

All options working as filter narrowing list to the given environment
related graphs and/or graphs levels.

Change-Id: I006cf6767a9bf0d89af5026728bd13ddc42c4aa8
Partial-Bug: #1563851
Closes-Bug: #1621585
2016-09-19 10:58:56 +03:00
Bulat Gaifullin 330b10a052 Add option to get merged facts for environment
Since 9.1 the nailgun returns separated facts for cluster
and nodes, so some client expects that node facts also
contains cluster fact. this patch adds possibility
to get merged facts for each node, by default this flag is true

Change-Id: I29f0cc0090abca2826e273dcbe7ac4249cf7a731
Closes-Bug: 1623854
2016-09-16 15:07:07 +03:00
Jenkins 253d7ebc25 Merge "Add fuel2 commands to operate on extensions" 2016-09-14 16:53:25 +00:00
Alexander Gordeev ea08c45295 Add fuel2 commands to operate on extensions
Releases new fuel2 commands to operate on extensions:
    fuel2 env extension enable
    fuel2 env extension disable
    fuel2 env extension show
    fuel2 extension list

DocImpact

Also, this change introduces the option for BaseListCommand for
specifying the default fields to sort by.

Change-Id: Idee06633689efece18838766de5c4afcd24190d7
Implements: blueprint extensions-management
Partial-Bug: #1614526
2016-09-14 18:55:31 +03:00
Bulat Gaifullin 1c6cd3524e Added option to command execute for specifying output format
New option 'format' for commands 'graph execute' and
'sequence execute' will allow to specify the expected
format of output: json or yaml.
By default the text message will be produced.

Change-Id: I68be70bf317ea9fe4c0197073bd5dd41c3ba9d32
Closes-Bug: 1623014
2016-09-14 14:15:12 +03:00
Bulat Gaifullin 29cf9b2a0a Fix arguments list for graph and sequence execute
The names of arguments was update according to specification.
Also added additional argument '--trace' which enables
debugging mode in tasks executor.

Change-Id: I7565e79059138ea28533e495e9d773195128f358
Closes-Bug: 1621831
2016-09-14 12:55:26 +03:00
Jenkins fe7d9a93ed Merge "Add filters to 'fuel2 task list' command" 2016-09-14 08:50:23 +00:00
Bulat Gaifullin d29dcfcc50 Added graph_type and dry_run flag for tasks output
Also changed behaviour of method get_display_data_single,
it uses special value for missing fields instead of raising
exception.

Change-Id: I2b92b66f47e4e5c866790f486571f69ff5ae14dd
Closes-Bug: 1622563
2016-09-13 11:21:41 +03:00
tivaliy 44843c40cc Add filters to 'fuel2 task list' command
Now Nailgun supports filtering transactions by statuses,
cluster_id and transaction_types
(commit 8257a0dbcb680e4eb9c19afe027b3a0fbdb0e7be).
This patch adds filtering support for 'fuel2 task list' command.

usage: fuel2 task list [-h] [-f {csv,html,json,table,value,yaml}]
                       [-c COLUMN] [--max-width <integer>] [--noindent]
                       [--quote {all,minimal,none,nonnumeric}]
                       [-s SORT_COLUMN [SORT_COLUMN ...]] [-e ENV]
                       [-t {pending,error,ready,running}
                           [{pending,error,ready,running} ...]]
                       [-n NAMES [NAMES ...]]

DocImpact
Closes-Bug: 1613674

Change-Id: I8e33944a422a7847e055318b9d73e872244117c7
2016-09-12 16:54:06 +03:00
Jenkins 34d8070375 Merge "Added commands to manage deployment sequences" 2016-09-09 09:42:36 +00:00
Bulat Gaifullin bac19f24b3 Added commands to manage deployment sequences
Commands:
  - fuel2 sequence create -r <release> -n <name> -t <graph_type1> [graph_typeN]
  - fuel2 sequence upload -r <release> --file <file_path>
  - fuel2 sequence download <id> [--file <file path>]
  - fuel2 sequence delete <id>
  - fuel2 sequence update <id> [-name <name>] [-t <graph_type1> [graph_typeN]]
  - fuel2 sequence list -r <release_id> | -e <env_id>
  - fuel2 sequence show <id>
  - fuel2 sequence execute <id> -e <env_id> [--force] [--dry-run] [--noop]

DocImpact
Change-Id: I6eb688c5cc91b2b3dbaa2fe5c52a69fe062da664
Partial-Bug: 1620620
2016-09-09 10:49:29 +03:00