Commit Graph

33 Commits

Author SHA1 Message Date
Alex Schultz 87abe05ba0 Retire instack-undercloud
instack-undercloud is no longer in use by the TripleO project. Removing
the code to avoid confusion. Stable branches will continue to be
maintained for their life however no new features should be added.

Change-Id: I63a813c7c1ffd30ca30017133d31a497b77a9a4d
Blueprint: remove-instack-undercloud
2018-10-30 12:16:18 +00:00
OpenStack Proposal Bot b8f0603880 Updated from global requirements
Change-Id: I226a508e183ecfb183ba71628f781adf8ca44297
2018-03-23 07:30:05 +00:00
OpenStack Proposal Bot fafb701b5f Updated from global requirements
Change-Id: Ibe9f32fc71ec1d941a0157926612554ebfb311a7
2018-03-15 06:59:42 +00:00
OpenStack Proposal Bot 8b65d59a39 Updated from global requirements
Change-Id: Iefee3344fdc26177730882284f39b39e7c54af01
2018-02-16 02:06:49 +00:00
OpenStack Proposal Bot dd08192044 Updated from global requirements
Change-Id: I975bbb0b2fb1b115e2ba52a7754bab4233bb0db5
2018-01-29 00:09:22 +00:00
OpenStack Proposal Bot 26adaf475e Updated from global requirements
Change-Id: Ia81e3321c3b016197b8e4150fb8710b9b3d11c43
2017-12-19 01:18:00 +00:00
OpenStack Proposal Bot a1fd8d136d Updated from global requirements
Change-Id: Id4bf5e80e426f2b7e41290015e086cafcf541dda
2017-11-29 08:56:51 +00:00
OpenStack Proposal Bot 9f4e108e2b Updated from global requirements
Change-Id: I0a89a454d41256de431e4afc3bac49cd4b02fab9
2017-11-17 08:00:58 +00:00
OpenStack Proposal Bot 5db5495894 Updated from global requirements
Change-Id: I4b05dbaaf74d554908644d515326be31e5208aba
2017-11-13 21:13:10 +00:00
OpenStack Proposal Bot 7f90470bbf Updated from global requirements
Change-Id: Icd10742245e461b69d20fb25cfa9b7b996a3cdd7
2017-10-11 05:44:31 +00:00
Ben Nemec 9295d50fc3 Enable convergence engine on the undercloud
We want to turn this on for Queens, and we might as well do it early
in the cycle so we have a chance to address any issues that may come
up.

We also want to migrate any existing stacks to use the convergence
engine to reduce the support matrix.  This patch includes a post-config
step do so.

Change-Id: I96952f78cb95252d2bc6c0df64561d07df51dc5a
2017-09-27 19:43:59 +00:00
OpenStack Proposal Bot fc1c3ee302 Updated from global requirements
Change-Id: I78c77c005a22f97613e13a6b2b3f7ab73ae01859
2017-09-22 12:51:35 +00:00
OpenStack Proposal Bot 1570a9cf0f Updated from global requirements
Change-Id: Ifde981b6a04ffd35ec8f189eaaafaf999bedd21f
2017-09-12 14:01:46 +00:00
OpenStack Proposal Bot a580e72d66 Updated from global requirements
Change-Id: I9a60d29b3d7acdf8076da27cdef61f5e5fcb77e2
2017-09-08 12:05:59 +00:00
Derek Higgins 24694e5fd0 Provide LOCAL_IP_WRAPPED as a instack env variable
This can be then be used in places that require a IP
address to be wrapped in square brackets if it is IPv6.

Change-Id: Idb437dee5ddec0a015c68847b9514f7bbb3f70a1
2017-09-06 15:26:46 +01:00
OpenStack Proposal Bot d87b1b67da Updated from global requirements
Change-Id: I6cad99b857c9ad9c1e22aa6e297261f483b24502
2017-09-01 12:36:42 +00:00
Jenkins 1d8ad41db9 Merge "Switch to scheduling based on resource classes" 2017-08-22 16:18:50 +00:00
Dmitry Tantsur 16961722c5 Switch to scheduling based on resource classes
This is needed for upgrade. In the future we may support custom
resource classes, but let's at least make sure we have one.

Depends-On: I027ee4ccf5db51729f036aceab047f2b65d0b368
Change-Id: I5d0ef61e1527927882802f01c4f5c82b1f495cdd
Closes-Bug: #1708653
2017-08-16 17:53:30 +02:00
Alex Schultz 062346e319 Validate local_interface exists
In order to improve the user experiance, we should validate that the
provided local_interface actually exists prior to trying to configure
the undercloud with it. If net_config_override is not used and the
local_interface does not exist, an error will be returned to the
user early on in the installation process. Additionally if the user
does not have an undercloud.conf, a warning is printed to show that
the defaults will be used.

Change-Id: Ia2a7e7fc916f6d2b62e212cb42641494b88d6d17
Closes-Bug: #1709177
2017-08-08 15:44:48 -06:00
OpenStack Proposal Bot 81ff95b9e5 Updated from global requirements
Change-Id: I7498bb6a156abf5df836a41dbfb6331b2908f30f
2017-06-15 22:42:05 +00:00
OpenStack Proposal Bot 4dbc4ed9af Updated from global requirements
Change-Id: I2bfdd55814722e414aa7ae9ceb5a6152b04bec3d
2017-06-13 11:44:52 +00:00
OpenStack Proposal Bot b9cac99188 Updated from global requirements
Change-Id: I62589e4073edadb5c7fdeecae020939a3f66cbd5
2017-06-02 21:56:09 +00:00
OpenStack Proposal Bot 4877a3fc28 Updated from global requirements
Change-Id: I4537f5d2b66bd09c208ace906221b6ed2fb4b0c0
2017-05-01 13:59:03 +00:00
Ana Krivokapic 486bb79c3d Migrate plans from Mistral to Swift
Partially implements: blueprint stop-using-mistral-env

Change-Id: I938d00c2c821791265c8c9a1ac5e56f0f025d4ca
2017-04-18 12:29:35 +02:00
Ben Nemec 3c8e35fba9 Updated from global requirements
This is a manual sync of our requirements from g-r.  I believe the
bot is not proposing updates because we had an entry in
requirements.txt that was not in g-r, so the update script was
failing.  Once this merges we should get automated updates again.

Change-Id: I7daf819ccc965d10b80929ae80f6606ed3511661
2017-03-28 22:03:54 +00:00
James Slagle 3f6a345d70 Remove setup-neutron
We don't really need to use setup-neutron from os-cloud-config to create
the ctlplane network and subnet. As simple as they are, it's more
straightforward and clear to just use neutron commands directly.

This removes all depedencies on os-cloud-config from instack-undercloud
so we can remove that requirement from requirements.txt (and moves us
closer to deprecating that entire repo).

Change-Id: I88a4359884429f85f1ef356d50abb0bf664a5540
2017-01-25 13:22:02 -05:00
Emilien Macchi f623801860 Work around deletion of _member_ role assignments on upgrade
TL;DR:
To support upgrades, we need to make sure _member_ role is still
assigned to the admin user if that role assignment existed before
the undercloud was upgraded.

Background:
Until fairly recently, keystone created a _member_ role and this was
applied to all users, including the admin role used for overcloud
deployments.

This creates a problem on upgrade however, because puppet isn't
aware of any existing role assignments, hence it deletes them,
and heat contains a reference to a keystone trust, which expects
to delegate this role (by default all roles are delegated, so
on an older deployment the trust will delegate _member_ and admin).

The _member_ role is not needed anymore by new deployments, and is
no longer created, so we need to detect the existence of this legacy
role, and apply it only for environments where it exists - we can
safely ignore connection errors trying to connect to keystone and
read the roles during an intial deployment, because no new deployments
should ever contain the _member_ role, it's only an upgrade issue.

This patch is a Puppet collector, that will collect the admin role
assignement resource, and makes sure we assign both admin and _member_
based on a flag set by undercloud.py that is passed via hiera.

Closes-Bug: #1571708
Co-Authored-By: Steven Hardy <shardy@redhat.com>
Co-Authored-By: Juan Antonio Osorio Robles <jaosorior@redhat.com>
Change-Id: I06ccdeb01e0aa69754855a0dcae3087725399583
2016-09-20 09:08:01 +03:00
Ana Krivokapic 6a1a1798fe Add default plan creation
Add default plan creation to undercloud installation. Default deployment plan,
consisting of files located in /usr/share/openstack-tripleo-heat-templates,
is created at the end of undercloud installation.

Partially implements: blueprint instack-undercloud-ui-config
Change-Id: Idcabe3a4f216e185e82130a457d9b1fe85cdd387
2016-08-23 13:13:12 +02:00
James Slagle 7301b39d28 Minimize element usage
Further reduces reliance on elements and moves more logic to puppet.
With this patch, the list of elements being used in the undercloud is
quite small and much easier to reason about logically.

This patch depends on a packaging update for instack-undercloud:
https://review.rdoproject.org/r/#/c/1074/

blueprint undercloud-elements
Change-Id: If6036e9eb68e0af1e1989918d310c8ddf57b9622
2016-05-20 12:53:23 -04:00
James Slagle b35b6ee999 Move 02-undercloud-stack-heat-metadata to python module
Moves the python code in 02-undercloud-stack-heat-metadata to be part of
the instack_undercloud python module instead of an element.

This depends on adding jq and pystache as package dependencies for
instack-undercloud:
https://review.rdoproject.org/r/#/c/1074/

blueprint undercloud-elements
Change-Id: I087bbc44080d94206f1489a1ecc7ccbb777bde3c
2016-05-19 16:24:34 -04:00
Ben Nemec c9b3f2a0f0 Add validation of network configuration opts
Pulls in the validation portion of
https://github.com/cybertron/tripleo-scripts/blob/master/undercloud_wizard.py
and runs it on the undercloud configuration before starting
installation.  This should catch a number of common mistakes when
configuring the undercloud, including addresses that do not fall
in the specified CIDR and misconfigured DHCP ranges.

Since we've now added a number of similar validation steps, I also
went ahead and combined them all into one call to clean up the
install() function a bit.

The wizard UI will be coming in a follow-up commit.

Change-Id: I08a2a8e2ea6bb8fcf92bba168720d5c4cafe1d18
2016-03-23 20:25:04 +00:00
Ben Nemec 5b2d555e75 Add check for sufficient memory to undercloud install
It turns out that it is possible to install the undercloud on a
2 GB system, but it will cause all kinds of weird problems and not
perform well.  Let's be explicit about our requirements and refuse
to install in such an environment.

Change-Id: I7aae41b57cb82e1d776b200ff56fd90756eff19e
2015-12-18 18:46:51 +00:00
Ben Nemec a82f4dc363 Pythonize instack-install-undercloud
-Very incomplete testing right now
-Puts the password and stackrc files in the current user's home
 directory during the install.  Given that they now have secure
 permissions and we recommend doing that anyway, I think it's fine,
 but it is a non-trivial change in behavior.

 This was done because it's awkward to read a root-owned file from
 a Python process running as a regular user.
-Uses oslo.config instead of the bash-style answers file. A sample
 conf file created by the oslo.config generator is included (for
 now, although we may want to generate that dynamically at some
 point).  Backwards compatibility with existing answers files is
 maintained for now, but is deprecated.
-Hard-codes the image path in instack-test-overcloud to .  It's
 difficult to extract the value from the conf file in bash (unless
 they overrode the default, there's nothing for ConfigParser to read),
 and since it's just a simple sanity test script I think that's okay,
 at least for now.

Change-Id: I09270997dea7fdad2b40dfb303967ff425b55a9b
2015-05-26 14:02:18 +02:00