Commit Graph

83 Commits

Author SHA1 Message Date
OpenDev Sysadmins d685642ba0 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:51:28 +00:00
Thomas Bechtold 059b87c9a6 Drop pykerberos from upper-constraints
It is not needed.

Change-Id: Id315a92a1b7b8a2abaea42f8a5c3419d91fa4be9
2018-12-10 10:31:11 +01:00
Yves-Gwenael Bourhis e798119841 Addapted flame to openstacksdk and shade.
Flame needed pemanent adjustments to mathe the changes in the
python-openstackclients. We now use openstacksdk or shade which will
handle themselves the compatibility.

We also made flame modular so that any-one can add features by
implementing there own flame managers and adding their modules to
the `openstack_flame` entry point.

This new flame version is also fully compatible with python 3.

Change-Id: I586a165b5022031963f504874bd50e1b11fe0d27
2018-11-22 11:50:41 +01:00
Jenkins 2cc573d049 Merge "Adding --exclude-secgroup option" 2017-01-27 10:21:53 +00:00
Nikolay Mahotkin ba37e5c353 Adding --exclude-secgroup option
* There is a use case when we don't need
   to export security groups at all

Change-Id: Ib531404d3079c4aef32df367274468da53912fc4
2017-01-27 13:01:06 +03:00
Jenkins e610ab1bf0 Merge "Fix unassociated floating list" 2017-01-13 11:03:07 +00:00
zarrouk 63fb35354e Two way SSL connection with the identity service.
Allow the user to establish a two way SSL connection by
adding the cert and key parameters in the client of
keystone manager

Change-Id: I4418a45a58139d63d23f1939be61e90d7cd6a062
2017-01-10 15:14:05 +01:00
Guillaume Espanel 3bd8c9376b Fix unassociated floating list
Fix flame crash when it can't find the server associated to a
floating IP.

Change-Id: I557f118b0cea6551e3a049344035e7752954a252
2017-01-09 15:54:27 +01:00
Guillaume Espanel 1c858ea907 Add an extract-ports flag
When the extract-ports flag is used, flame extracts the neutron ports
and connects them (according to the other flags) to :
 - floating ips
 - nova:compute instances
 - security groups
 - subnets and networks

This allows the exported stack to have the same network configuration as
its source.

When the flag is used in conjunction with --generate-stack-data,
the generated stack data also contains the assocation between
ports and floating IPs.

Change-Id: Id2e406c7aac5457cdef822b78edf7e30bd833a2d
2016-10-04 13:44:11 +02:00
Guillaume Espanel ab1f11f7bc Parallelize API calls for resources fetching
This change improves the performance of flame by fetching the different
Openstack resources through a ThreadPoolExecutor.

The resources to fetch are declared in a dict inside
flame.TemplateGenerator.extract_vm_details of the form

{'resource_type' : (fetch_method, filter_method), ...}

Co-Authored-By: zarrouk <mzarrouk.ext@orange.com>

Change-Id: I8f34ecbfff236e5469b83d1c79d1f98accb125c0
2016-09-28 17:54:01 +02:00
gengchc2 b53fef47c1 Update flake8 ignore list
In hacking > 0.10.0, there is no E123 and E125, so this commit to
delete them.

Change-Id: I935a8014648927189aecedcfae93e45ee996aa82
2016-09-28 08:58:43 +00:00
Jenkins f4cd853efe Merge "Add the server-group feature" 2016-09-20 11:08:49 +00:00
Guillaume Espanel 96aa0a2b14 Update the format of flame generate-stack-data
The heat client now requires the stack data and the stack template to be
passed through the same file.

This change affects the output of flameclient.Client.generate and
replaces flameclient.Client.heat_template and
flameclient.Client.stack_data_template by a single method :
heat_template_and_data.

Change-Id: I14f703cb09e9dc81c5fa89d60ed10c53c61ce004
2016-09-12 11:08:58 +02:00
Nolwenn Cauchois e5717a7692 Add the server-group feature
Extraction server-groups for export tenant information.
Add the "scheduler_hints" at nova creation stage.

Change-Id: I2359de035e219709d6f2359ea90de092d1b3d1ed
2016-09-09 18:05:20 +02:00
Guillaume Espanel 73e1f7795e Sync the usage doc with the actual options
Flame's documentation was lagging behind regarding the actual options
provided by the CLI. This patch fixes the documentation of flame by
syncing it with the output of flame --help.

Change-Id: I6c32665b269405c983c38a3314392904bf3ac7e6
2016-09-02 12:00:24 +02:00
Guillaume Espanel 7d28f871ba Use block_device_mapping_v2 when exporting servers
This replaces the block_device_mapping of OS::Nova:Server attribute with
a block_device_mapping_v2 attribute.

Change-Id: Ibc552069b5e8eab367fb36fdb98a0a8cdfaa9fa0
2016-05-17 14:11:28 +02:00
Gauvain Pocentek 7d2f8a5703 Don't fail if volume has no name or description
Volume objects in the cinder client don't always provide the
display_name and display_description attributes. Don't fail in this
case.

Change-Id: I08448f002912c2382fcc6728ce3ecf75038faec2
2016-05-14 16:51:42 +02:00
Aurélien GOULON 168d10bb1c Use a single keystone instance for all the clients
This commit allows flame to be used with either a login and a password
or an OS_AUTH_TOKEN.

Change-Id: Ie34f2a4e2e0eb82967c7617bd0ecc1aebd934cb7
2016-05-13 16:43:07 +02:00
Yves-Gwenael Bourhis c9ee415228 Update requirements
flame could not install with curent supported version of openstack because the
requirements where conflicting with https://github.com/openstack/requirements

Updated requirements.txt and tes-requirements.txt to match openstack's
global requirements.

Change-Id: I7dd0ba588569922d43d0282183d86c82e5e9b7fc
2016-03-29 11:21:31 +02:00
Andreas Jaeger 76f46ecfb8 Remove argparse from requirements
argparse was external in python 2.6 but not anymore, remove it from
requirements.

This should help with pip 8.0 that gets confused in this situation.
Installation of the external argparse is not needed.

Change-Id: Ib7e74912b36c1b5ccb514e31fac35efeff57378d
2016-01-20 19:14:29 +01:00
Jenkins 1a8904a9c3 Merge "py26 is no longer supported by Infra's CI" 2015-12-28 09:30:02 +00:00
Steve Martinelli dc2508fe83 use keystoneclient exceptions instead of oslo-incubator code
depending on any oslo-incubator code from another project is
dangerous. keystoneclient makes its exceptions public and it's
not recommended to use any code from
keystoneclient.openstack.common.apiclient since it's maintained
by oslo-incubator.

Change-Id: I9dcbb36a482979758167351640eb6cacef62e43d
2015-12-27 01:50:03 -05:00
janonymous a9b3d726d5 py26 is no longer supported by Infra's CI
Python 2.6 support would be dropped by
Infra team from mitaka,CI would no longer be testing it,
so projects should drop it too.

Change-Id: I173b71f8fd4b7240b29d27accd5ebae9f0634cde
2015-12-26 13:49:29 +05:30
Doug Hellmann 2a6a8e422a remove python 2.6 trove classifier
OpenStack projects are no longer being tested under Python 2.6, so
remove the trove classifier implying that this project supports 2.6.

Change-Id: I207d3784e01608985d60d9738e25e7ae01657b66
2015-12-23 01:31:08 +00:00
Jenkins 58ced4b6ce Merge "Update the novaclient version from 1.1 to 2" 2015-12-01 05:13:34 +00:00
Guillaume Espanel 3194c0a852 Update the novaclient version from 1.1 to 2
Change-Id: Idd333afe94277837b1bb5c497722d0924e3517db
2015-11-21 14:42:02 +01:00
venkatamahesh 25b283df49 Change repository from stackforge to openstack
Change-Id: I7167a399d0356df4ad0567f52221619130c39ad7
2015-10-19 15:38:23 +05:30
Jeremy Stanley 243ad4424a Update .gitreview for new namespace
Change-Id: I6441b5c6b5e342a17bf511e90eeb26f9fd98ea6c
2015-10-17 22:10:38 +00:00
Monty Taylor 706ce53d02 Change ignore-errors to ignore_errors
Needed for coverage 4.0

Change-Id: Ic2703f09ec96f78ca260e78fd32256206c8596fa
2015-09-21 14:58:32 +00:00
ala.rezmerita 154afdee8c Add new option to exclude key pairs from template
When option used, nova key pairs will not be exported as resources
in generated template.

Change-Id: I763f0ab151a7740144240fdae750c7c31cd24cd0
2015-08-27 15:41:23 +02:00
Marc Fouché 3de772dbd6 Make the command line use Client
Made cmd.py use Client instead of TemplateGenerator when creating a template.

Change-Id: I5af390a155e6cfc336aead9a829143d8fc71c97c
2015-08-04 16:01:17 +02:00
Marc Fouché d9c1336d85 Add endpoint_type option in client
Added all options of TemplateGenerator in client. Also added default values for
insecure and endpoint_type.

Change-Id: I938ba640a23adc0a0277fadc806f147bcc88d580
2015-08-03 18:00:53 +02:00
Sebastien DOIDO e1d8cb6576 Handle endpoint_type attribute
Change-Id: Ie7a419146f71cb480433062b480036311f14b042
2015-07-28 10:50:33 +02:00
Ala Rezmerita 4a4301c68b Update README.rst
Change-Id: Iea0f6b5767de061cdfcd91994090325860782c9d
2015-03-23 16:30:38 +01:00
Cedric Brandily a2b5147e9d Allow to use flame in dev mode
__version__ computation fails when flame is installed in dev mode[1]
and run outside of its git folder. This change sets __version__ to
"unknown" when its computation fails.

[1]: python setup.py develop or pîp install -e

Change-Id: Ie5ea2bcb548623a059c450d1a7d541ff1cd242b0
2015-02-11 09:48:40 +01:00
Cedric Brandily 3b40ee0505 Remove useless initialization
Change-Id: If56c43035b0af64acc7db2a35487534bfe77d55c
2015-01-13 17:11:23 +01:00
Jenkins 7946233700 Merge "Add unit tests for Resource class" 2015-01-05 12:50:48 +00:00
Jenkins 1bc08a0505 Merge "Remove unused flameclient.openstack package" 2015-01-05 12:46:32 +00:00
Cedric Brandily 603056ce15 Add unit tests for Resource class
This change adds unit tests for Resource class.

Change-Id: Id220855a660eefecb680278fac6e3a11c8824139
2015-01-04 21:19:56 +01:00
Cedric Brandily 6189490e53 Introduce Resource class in flame
Currently flame TemplateGenerator generates the heat template while
visiting OpenStack (nova,neutron,cinder) resources. It implies lots
of code duplication associated to the template generation.

This change introduces a Resource class in order to split the heat
template generation in 2 parts:
 * Extraction: extracting OpenStack resources and creating Resource
   instances
 * Generation: generating heat template from Resource instances.

It allows to:
 * Reduce code duplication associated to the template generation,
 * Allow to test smaller methods,
 * Add steps between the extraction and the generation (for
   customization for example).

This change will be followed by daughter changes in order to:
 * Improve tests by taking advantage of Resource use,
 * Improve flameclient.flame by simplifying relationships between heat
   template resources and also with parameters.

Change-Id: If5e26c6210145103e729d42b149f177439acaddb
2014-12-30 20:20:21 +01:00
Cedric Brandily c7df8a8e93 Remove unused flameclient.openstack package
This change removes flameclient.openstack package which is not used by
flame code.

Change-Id: I564c3462b249621792bd3e6b35b9d1bdf0ffd5f3
2014-12-30 19:57:37 +01:00
Cedric Brandily ade12cd4d0 Reduce code duplication in tests
This change reduces code duplication in setUp/tearDown/tests methods.

Change-Id: I2f961685fc6413691d8b1e5dee1838781ec3873b
2014-12-30 19:41:30 +01:00
Jenkins 1b8d761abb Merge "Correct heat/stack_data template print" 2014-12-22 09:21:00 +00:00
Jenkins e2ccb763bb Merge "Support OpenStack deployment without cinder" 2014-12-22 09:18:13 +00:00
Jenkins 2b5a281c59 Merge "Support region" 2014-12-22 09:15:32 +00:00
Ala Rezmerita 2dec2e1ae2 Add .gitreview file.
Change-Id: I4ce346f60cc30f974134d5c7beda590227ac04bd
2014-12-22 09:00:54 +00:00
Cedric Brandily e479b5714a Correct heat/stack_data template print
Currently flame returns:

  ### Heat Template ###
  ... heat template ...

  None

  ### Stack Data ###
  ... heat template ...

  None

Because TemplateGenerator.heat_template/stack_data_template print
templates and return None instead of returning templates. This change
corrects previous methods to output:

  ### Heat Template ###
  ... heat template ...

  ### Stack Data ###
  ... heat template ...

Change-Id: I9f9ad3e859beba583c9db4a0420ec2dd9c3bc8c9
2014-11-08 18:47:22 +01:00
Cedric Brandily 37688cba3b Support OpenStack deployment without cinder
Currently flame does not support deployment without cinder and crashs
on the first cinder request (even with --exclude-volumes option). This
change updates CinderManager to support such case.

Change-Id: I57a5b9049f9644e7fc1f5975b6b0683494271575
2014-11-08 18:46:01 +01:00
cedric.brandily b81bfb81bd Support region
Change-Id: If098871550f1de130a8112fcbca0a088a8fffc9c
2014-11-08 18:46:01 +01:00
Cedric Brandily ca3f5b8dcc Respect flake8/pep8 rules
This change updates code to respect flake8/pep8 rules. It changes:

 * correct KeystoneManager.set_client signature
 * correct code indentation
 * remove useless variables
 * support py3X
   * use netaddr instead of ipaddr (not supported by py34)
   * use dict.values instead of dict.itervalues.
 * correct tests
   * "fake.networks[0]['router:external'] = True" update had side
     effects on other tests, fake managers attributes are now builded
     at instantiation to avoid such trouble.

Change-Id: I56943e198c3dc0e28be5f5b799e62f4a6427292c
2014-11-08 18:45:06 +01:00