Commit Graph

395 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
Chuck Short 5f36ef16b6 Replace assertRaisesRegexp with assertRaisesRegex
This replaces the deprecated (in python 3.2) unittest.TestCase
method assertRaisesRegexp() with assertRaisesRegex().

Change-Id: Ib2f53eaa039514bacf3dd0000e8400baf1ba659d
Signed-off-by: Chuck Short <chucks@redhat.com>
2018-08-27 10:38:00 -04:00
Zuul 3fc4cc7049 Merge "Call validations upload workflow instead of action" 2018-07-09 21:50:24 +00:00
Harald Jensås 930e2ca49d Drop example in config file comments
There have been some reports of users misinterpreting
where to place configuration for the provisining subnets
in undercloud.conf. The example text for the subnets leads
to users adding the subnets section directly after the
subnets option. I.e in the middle of the DEFAULT section
of the ini file.

This change drops the example. The ctlplane-subnet section
is there as an example already.

Related-Bug: rhbz1585497
Related-Bug: #1778779
Change-Id: I417623db410330058d30fe7435112f01a0f72c83
2018-06-29 12:05:36 +02:00
Ana Krivokapic a7b7f345a9 Call validations upload workflow instead of action
Change-Id: Ifcf813b51053c8e1ab57c1cc031a4c980f198c69
Partial-Bug: #1774185
Depends-On: I55be508ce5906c2f12068ae1713657eab2f658fd
2018-06-18 15:44:01 +02:00
Zuul ad1b8113e7 Merge "Remove support for classic drivers" 2018-05-30 09:38:25 +00:00
Zuul b0768bedeb Merge "Upload validations to swift on undercloud install" 2018-05-26 05:13:06 +00:00
Ana Krivokapic 9f5e1456f7 Upload validations to swift on undercloud install
Change-Id: Iefabf5b96847333a27c307f380fd7c52bec710e6
Implements: blueprint store-validations-in-swift
Depends-On: Ia08d5eea17450db94279c95078453831c0017a67
2018-05-24 11:09:58 +02:00
rabi 04919e7a7c Fail in undercloud pre_upgrade if overcloud not in *_COMPLETE state
We migrate overcloud stack to convergence in post_config which would
otherwise fail. It makes sense to fail quicker before doing any upgrade.

Change-Id: Ie5831b022d1a7572729e0715cdc07253efbbca17
Related-Bug: #1767962
2018-05-18 12:17:05 +05:30
Dmitry Tantsur 0c2c55c504 Remove support for classic drivers
They are deprecated and will be removed from Ironic. A similar change
was already done to the containerized undercloud.

Change-Id: If442f103adc03ec97f9e995d5e2bc47dfc097f90
2018-05-16 11:13:59 +00:00
Zuul d7144353ac Merge "Don't include host_routes when creating a IPv6 subnet" 2018-05-08 14:44:18 +00:00
Zuul b730998987 Merge "Introduce docker_insecure_registries parameter" 2018-05-01 12:25:43 +00:00
Emilien Macchi 2ee1ebfd34 Introduce docker_insecure_registries parameter
Introduce docker_insecure_registries that is an array of host/port
combiniations of docker insecure registries. The default value will
be the previous parameter that were hardcoded, but now we can easily
override it in undercloud.conf.

Note: the feature is already supported for the containerized undercloud
but was only missing in instack-undercloud. This patch will be
backported.

Depends-On: I14fda3481ac88429648bed8edb2f4469b33be957
Change-Id: I402ebb80b1d755cdb0c3c28fd542121bc60cb144
Closes-Bug: #1767373
2018-04-28 21:59:56 +00:00
Jose Luis Franco Arza a96a0239cf Add sudo into instack's semanage call.
When having a file with incorrect SELinux context
in /home/stac/.ssh a permission error is displayed
at the time of running semanage during Pike to
Queens undercloud upgrade.

Closes-Bug: #1767405
Change-Id: I994917e491d6f8b4141a3c332c79ed8e8ce8e64c
2018-04-27 17:18:14 +02:00
Dan Prince c64a1c823e Fix net_config_override validations
There is an issue with the _validate_no_ip_change function
where it doesn't work correctly with a custom net_config_override
file.

This patch resolves validation issue so that custom os-net-config
templates are taken into account. Additionally it makes it so
that the net_config_override can be empty, thus providing the
user a means of disabling os-net-config if they choose to do so.

Change-Id: Iada099a6bddc7927d26b19776e705b1ac231b2e5
Depends-On: I69eb812af2d653cb3eb29694ae29b57ebb2de53d
Closes-bug: #1764507
2018-04-24 08:57:34 -04:00
Derek Higgins 90ea5f2b92 Don't include host_routes when creating a IPv6 subnet
This wasn't include in the bash version and was incorrecly added
when it was converted to python in I0168991a0fbd9dacf708ba2bdbc13248414affbe

Closes-Bug: #1754681
Change-Id: I41e37346122b0acaffb72fad34519e9e9828f61e
2018-04-20 11:22:41 +01:00
Sergii Golovatiuk 4d57a749c7 Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3 [1].

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: I9458a5d01ecb7040ea66115479b61ea8f44db13c
2018-04-09 10:53:57 +02:00
Dougal Matthews 6a016a6214 Use the default queue when calling create_deployment_plan
This change happened in tripleoclient[1], but never in instack-undercloud.
Using a uuid queue name means a queue is left in Zaqar but never used
- we don't consume the messages from it or delete the queue.

[1]: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=1bd1620eadf23f2ee755a32a8167d9a5386a392e

Closes-Bug: #1757387
Change-Id: I5d39200e7292a5c1750601ec0669f462e7b1c164
2018-04-02 07:42:47 +00:00
Zuul af24acef45 Merge "Fix help string for subnets option" 2018-03-28 21:19:55 +00:00
Zuul 7a7717e431 Merge "Fix next_hop for metadata service host route on local_subnet" 2018-03-26 22:19:32 +00:00
Harald Jensås 3bab1292a9 Fix help string for subnets option
The option to enable masquerading for the network
is 'masqurade', not 'masquerade_network'.

Change-Id: Icd95d10d18e5dd8b69ca01c98f00d19da123c85d
2018-03-26 07:22:35 +00:00
Zuul d19bf1ce59 Merge "Add Nova UI endpoints to the endpoint list" 2018-03-23 22:17:14 +00:00
Harald Jensås 73d8effd15 Fix next_hop for metadata service host route on local_subnet
The host route to the metadata service should use the
undercloud as next_hop when configuring the subnet that
is on the same L2 segment as the undercloud itself. The
code used to manage this was not correctly implemented.

Change-Id: Icf40af8ac424d14386aacda38cf674cc25273fc8
Closes-Bug: #1757418
2018-03-23 07:54:30 +00:00
Juan Antonio Osorio Robles 41f2694d13 Enable TLS by default
This enables TLS by defalut in the undercloud. This is done by setting
the generate_service_certificate option to True by default, although,
the deployer can turn it off if needed.

Change-Id: Id329081c06343373309d6880d464ba99aba0c7be
2018-03-21 09:33:17 +00:00
Zuul 142d131aad Merge "Mariadb online upgrade after yum update" 2018-03-19 12:00:45 +00:00
Zuul d500072bfa Merge "remove workaround for tuskar* packages" 2018-03-18 00:17:49 +00:00
Julie Pichon 20c4088afb Add Nova UI endpoints to the endpoint list
In addition to puppet-stack-config.yaml
(cf. I1de069a4d3786af030530a100982087c0784889e), the endpoints also
need to be specified in the main endpoints list.

Change-Id: I3701c34841b84c2272dcc24d982fc622ff6139b6
Partial-Bug: #1755560
2018-03-16 14:57:49 +00:00
Zuul cb3a63e5b7 Merge "Ensure mtu is set correctly on ctlplane" 2018-03-14 19:19:52 +00:00
Zuul 26e96210c7 Merge "Make user-provided cert take priority over autogenerated one" 2018-03-14 17:03:20 +00:00
Alex Schultz 1bc7a07dec Ensure mtu is set correctly on ctlplane
We were not passing the MTU when we create the ctlplane network so if
the local_mtu is less than 1500, 1500 is used by the ctlplane network in
neutron.

Change-Id: Ic7a4c5a62ff49b2f8964dd58bf5c97d9781c4ce1
Related-Bug: #1754036
2018-03-14 10:54:29 +05:30
Zuul 11830a2020 Merge "Don't double load config" 2018-03-13 19:11:13 +00:00
Radoslaw Smigielski db01d14ef9 remove workaround for tuskar* packages
This change removes a workaround for remaining tuskar* packages after upgrade.
Original problem reported as: https://bugs.launchpad.net/tripleo/+bug/1691744
We have that workaround in L, M, N and O releases.
It's time to get rid of it and forget about tuskar.

Closes-Bug: 1755537
Change-Id: I895dcd880281be3d07310f5983a4fa9fdb9fc88f
2018-03-13 16:52:43 +00:00
Juan Antonio Osorio Robles 9fc6b98590 Make user-provided cert take priority over autogenerated one
It used to be the case that if you give both a user-provided
certificate, and set the flag for instack to autogenerate the
certificate, the autogenerated one took precedence. This is not ideal
since it might not be what the user expects (especially if we switch to
using TLS by default).

Closes-Bug: #1755497
Change-Id: Ia8aa52d80999ad278501ca8ecf0638ef8de6ca19
2018-03-13 16:33:13 +02:00
Zuul 0dd3926988 Merge "remove ownership change of ironic-dbsync.log" 2018-03-12 23:21:00 +00:00
Damien Ciabrini c1dd23cd8a Mariadb online upgrade after yum update
During undercloud upgrade, yum can update the mariadb-server package.
If that is the case and the updated package is a major mariadb update
(e.g. 5.5 -> 10.1, or 10.0 -> 10.1), some database system tables might
need to be updated.

Ensure that mysql_upgrade will be run after a major mariadb update.
Also, force-stop the mariadb server before the upgrade to workaround
a rpm scriptlet limitation when going 5.5 -> 10.1.

Change-Id: Iebc3f39cb2dae355124ba39f7653ef8d20baacc6
2018-03-12 09:02:36 +00:00
Radoslaw Smigielski 410b9ceb02 remove ownership change of ironic-dbsync.log
Remove workaround https://review.openstack.org/#/c/457478/
we don't need it any more in Rocky.

Change-Id: Idb428e1a7a0cb37d9e7e2cbaa4c9a26efaf2bb34
Closes-bug: #1754658
2018-03-09 13:57:52 +00:00
Dougal Matthews e3c3e89b50 Only delete and re-create managed Mistral workflows
In Pike Mistral workflows in tripleo-common were tagged with
`tripleo-common-managed`. During the transition we needed to conder
installs with no tagged workflows. However, users of Queens and above
will already have this handled, so the extra code and the test case can
be removed.

Change-Id: I06b3bccf03c1e2851c0bc3b291cefbf24ff7dbff
2018-03-08 10:58:11 +00:00
Ben Nemec 0497316fae Don't double load config
This isn't necessary and will likely have some bad side effects
because re-calling the conf object clears all previously registered
opts, which defeats the purpose of the second call.

Change-Id: I59bd78e85b3d55aea23b46809f4de678d394f66d
Related-Bug: 1751815
2018-03-07 15:22:39 +00:00
Dan Prince dd05950285 Drop inspection_enable_uefi option
This has been unsupported since 2016's puppet-ironic commit here:
I0f242a7e1c28c4007b3c2d955dbd3b29086e92f1

Change-Id: Ic219fcdf2695c08b629015a0c387629d01f86a20
2018-03-05 21:52:56 +00:00
Zuul 6ad29d2330 Merge "Add validation for rotued networks disabled" 2018-03-01 23:44:27 +00:00
Zuul 34979944bc Merge "Revert "Add option to install the Octavia client"" 2018-03-01 23:29:53 +00:00
Alex Schultz bfb758b5e7 Fix bootstrap NAT
Docker will switch the FORWARD filter to DROP if it sets the ip_forward
to 1. Previously we were doing this in a post configuration element
rather than in the puppet run itself. This change moves the ip_forward=1
to puppet so it runs prior to docker being installed. Additionally we
are ensuring that the full set of network rules are being added to the
FORWARD filter because previously we were only setting half of them.
This would allow us to actually not have to use ACCEPT as the default
for the FORWARD filter but this would require additional testing.

Previously we had tried switching the default policy back to ACCEPT,
however given that docker is not configuring the iptables rule until
it's installed and started, the puppet rules do not actually apply on
the installation of the undercloud. The puppet management of the
defaults for the FORWARD chain only gets updated on a subsequent run of
the installer which will not work.

Change-Id: Ieae6a74f7269bd64606fd80a2a08b2058c24d2c5
Closes-Bug: #1750194
Closes-Bug: #1750874
2018-02-27 07:16:41 -07:00
Harald Jensas 79b1d0b249 Add validation for rotued networks disabled
Add a validation, if the config have multiple subnets
specified but routed networks is disabled we raise
validation error.

Change-Id: Ic7ca1fb76e73da70f6a72100a9cbff42d8f34b0d
2018-02-20 10:38:16 +01:00
Carlos Goncalves 720fc49010 Revert "Add option to install the Octavia client"
Other OpenStack services clients are being installed as dependencies of
Heat. Octavia support in Heat was included during Queens development
cycle [1]. TripleO deployments will include python-octaviaclient as
requirement of Heat. This means the Octavia client will be installed in
the undercloud and overcloud regardless.

This reverts commit fef5be332e.

[1] https://review.openstack.org/#/q/topic:bug/1737567+(status:open+OR+status:merged)

Change-Id: I727503b6c1acf1953a0ad864ae6288021a745193
2018-02-19 16:30:29 +01:00
Harald Jensas 52dbe134ab Make routed networks optional
Closes-Bug: #1749671
Change-Id: Ieabb2ded33ec0c0b68f21c9afa16a9baddc61393
2018-02-15 19:45:11 +01:00
Zuul 1b914f8608 Merge "Catch APIException exceptions raised by Mistral" 2018-02-13 23:25:44 +00:00
Dougal Matthews aabd6e639e Catch APIException exceptions raised by Mistral
In the change to keystone sessions and Mistral client 3.2.0 the
exception raised when fetching an environment that doesn't exist
changed. This adds the new exception but continues to catch the previous
one.

Closes-Bug: #1749186
Change-Id: I304547b9ecabe4e387339c8561bbae8651cd9db6
2018-02-13 14:19:25 +00:00
Carlos Goncalves fef5be332e Add option to install the Octavia client
Allow installation of the Octavia client in the Undercloud by setting
new option enable_octavia=True in the undercloud.conf. Default is not to
enable.

Change-Id: I2b27dac2f30a126e6519d19cc135ea6eea59e8a9
2018-02-12 21:41:20 +01:00
Sofer Athlan-Guyot 8dc0d289a7 Fix typo that can prevent undercloud installation.
The interface to sdk.network.segments use network_id, not network[1].

Closes-Bug: #1748199

[1] https://github.com/openstack/python-openstacksdk/blob/master/openstack/network/v2/segment.py#L30..L34

Change-Id: Ibda590103ed8b02a1ce05e285a3d9d9ea2e2ff7f
2018-02-08 15:03:03 +01:00
Harald Jensas 46a5df2625 Tripleo routed networks ironic inspector, and Undercloud
* Enable the neutron segments service_plugin for routed
  provider networks.
* Update controlplane network code to create segments
  for each subnet.

A number of options related to ctlplane network is deprecated.
More details in release notes.

Implements: blueprint tripleo-routed-networks-ironic-inspector
Implements: blueprint tripleo-routed-networks-deployment

Depends-On: I33804bfd105a13c25d6057e8414e09957939e8af
Change-Id: I4b384bab2af9f6ba07a137a37f4098a00ce18bc0
2018-02-06 09:44:11 +01:00