Commit Graph

3275 Commits

Author SHA1 Message Date
OpenDev Sysadmins 45a63d824c 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:32:25 +00:00
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
Zuul 8c0a8316ce Merge "Update the outdated URL in doc" 2018-10-13 02:59:37 +00:00
Zuul c220b84ef7 Merge "Use templates for cover and lower-constraints" 2018-09-27 04:07:05 +00:00
melissaml 48c1ab67bb Update the outdated URL in doc
Change-Id: Iea0c47b77dc69e9e9638e865c2c2bfd7e980d9bb
2018-09-23 22:17:02 +08:00
Andreas Jaeger 65fa3f9f1b Use templates for cover and lower-constraints
Small cleanups:

* Use openstack-tox-cover template, this runs the cover job
  in the check queue only. Remove individual cover jobs.
* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Change-Id: Ic6175d8ecb63184b6597a9cdcdd6604f13e1b32d
2018-09-22 17:44:17 +02:00
Alex Schultz 1a0714a864 Include missing config classes
If an operator wanted to configure something currently not available via
hieradata, they would only be able to do so for nova as it includes
::nova::config. This change addes the config classes for aodh, gnocchi,
keystone, neutron, swift, heat, ironic, mistral, and zaqar.

Change-Id: I3946e23cc5955d7c1a4dc4771d2708a6c8c2974b
Closes-Bug: #1793361
2018-09-19 12:06:57 -06:00
Rajesh Tailor b012ddaddc Expose nova.conf config lines to be used as hiera overrides
Included nova::config in undercloud puppet-stack-config
puppet manifest so that nova configuration parameters can
be overriden using hiera overrides.

Change-Id: I71bc5ed35cc41139481ceb51216183e6c703cf01
2018-09-11 12:16:41 +05:30
Emilien Macchi 8dcb08a4ec use the new puppet-nova parameter for sync_power_state_interval
Use the new sync_power_state_interval parameter from puppet-nova to
avoid any breakage in the future, like Puppet resource duplication
error.

Depends-On: Ie82d88f16b42d4405853153460e20f38ba42714a
Change-Id: Ia2cff1c5f4bee28ff1d2b513f2d0b061ab0bbe83
2018-09-04 08:23:12 -04:00
Zuul ea030bb0fa Merge "Add start/stop command for ironic-inspector-dnsmasq" 2018-08-30 02:07:16 +00:00
Zuul efa2b16ae7 Merge "add python 3.6 unit test job" 2018-08-29 17:43:10 +00:00
Zuul 6ea2539951 Merge "switch documentation job to new PTI" 2018-08-29 17:43:09 +00:00
Zuul 280abe8c43 Merge "import zuul job settings from project-config" 2018-08-29 17:43:07 +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
OpenStack Release Bot 3e9c155005 Update reno for stable/rocky
Change-Id: Icc5097a0bcc73867ff2460c1a2fbb3f10172e8de
2018-08-24 14:41:03 +00:00
qingszhao a25c55eb8f add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I6dbee26424fb64ab236730acb48662edbcec3be8
Story: #2002586
Task: #24341
2018-08-24 05:01:12 +00:00
qingszhao 4b4816133f switch documentation job to new PTI
This is a mechanically generated patch to switch the documentation
jobs to use the new PTI versions of the jobs as part of the
python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Id0e07c5aa118520176513cc152d92d0d2f082288
Story: #2002586
Task: #24341
2018-08-24 05:00:55 +00:00
qingszhao 77834e6802 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Iecfab1b97622b4bd5d8cb6de6323fdff1d54019b
Story: #2002586
Task: #24341
2018-08-24 04:57:26 +00:00
Harald Jensås 7bcdb7f7de Add start/stop command for ironic-inspector-dnsmasq
When the PXE filter's dhcp-hostsdir is purged on start/stop
of the ironic-inspector service inspectors dnsmasq service
must also be restarted to ensure that the dhcp server config
is updated as well.

Partial-bug: #1780421
Depends-On: Ie961ec4d3b6b65a462e2d2493f5b9240c2bfa7a6
Change-Id: I22c7be368b62ef93efabcbd2c13599625ea45548
2018-08-20 14:06:54 +02:00
Cédric Jeanneret ed96987af5 Set Red Hat default SSHD configuration properly
Currently, the sshd configuration generated on RHEL does not reflect
the default RHEL configuration:

Port 22

AcceptEnv LANG LC_*
ChallengeResponseAuthentication no
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
PrintMotd no
Subsystem sftp /usr/libexec/openssh/sftp-server
UsePAM yes
X11Forwarding yes

The default RHEL sshd configuration has some more stuff in it, especially
regarding the logging and accepted environments:

HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
SyslogFacility AUTHPRIV
AuthorizedKeysFile	.ssh/authorized_keys
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials no
UsePAM yes
X11Forwarding yes
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS
Subsystem	sftp	/usr/libexec/openssh/sftp-server

In addition, with release >Queens, the configuration is managed directly in
tripleo-heat-templates, and will look like the standard RHEL one.

Change-Id: I4803615fb6b8066b0c1afe2b0b7cbbd9d50aff40
2018-08-09 10:43:30 +02:00
Zuul be5fa9744f Merge "Set connect_timeout in mysql" 2018-08-03 18:08:27 +00:00
Zuul 26ce50fe5d Merge "Restart rsyslog after installing Swift" 2018-07-30 09:46:38 +00:00
Thomas Herve 98592c2b07 Set connect_timeout in mysql
This sets the connect_timeout in mysqld, to work around issues with Heat
losing connection to MySQL in the undercloud under load.

Closes-Bug: #1783995
Change-Id: Ia3799cdaf171892431151e4f2f7d2095081b8242
2018-07-27 15:04:33 +02:00
Emilien Macchi 41d04607df zuul: remove jobs with overcloud
We switched the default to containerized undercloud so most of the CI
now is deploying a containerized undercloud, therefore doesn't use
instack-undercloud.
Updating the zuul layout so we only run the jobs that actually test
instack-undercloud.

Change-Id: I80c1740219b00e857b53ba919f705a20fe8d3a52
2018-07-23 08:27:23 -04:00
Michele Baldessari c3ccb92d64 Configure keepalived before rabbitmq
Sometimes an undercloud could fail to install with the following error:
2018-05-29 12:53:17,588 INFO: May 29 12:53:08 foo.int.bar systemd[1]: Starting RabbitMQ broker...
2018-05-29 12:53:17,588 INFO: May 29 12:53:11 foo.int.bar rabbitmq-server[14327]: ERROR: epmd error for host foo: address (cannot connect to host/port)
2018-05-29 12:53:17,588 INFO: May 29 12:53:11 foo.int.bar systemd[1]: rabbitmq-server.service: main process exited, code=exited, status=1/FAILURE

1) The hostname of the box is
foo.int.bar foo

and in the hosts file we have the following entry: 192.168.248.2
192.168.248.2 foo.int.bar foo

Note: 192.168.248.2 is a VIP managed by keepalived because we configured this
undercloud to be an SSL one so we have:
undercloud_public_host = 192.168.248.2

2) At this stage we see rabbitmq-server being started:
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting Flexible Branding Service...
Jan 27 06:46:31 foo.int.bar systemd[1]: epmd@0.0.0.0.socket failed to listen on sockets: Address already in use
Jan 27 06:46:31 foo.int.bar systemd[1]: Failed to listen on Erlang Port Mapper Daemon Activation Socket.
Jan 27 06:46:31 foo.int.bar systemd[1]: Unit epmd@0.0.0.0.socket entered failed state.
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting Erlang Port Mapper Daemon Activation Socket.
Jan 27 06:46:31 foo.int.bar systemd[1]: Starting RabbitMQ broker...
Jan 27 06:46:34 foo.int.bar rabbitmq-server[14532]: ERROR: epmd error for host foo: address (cannot connect to host/port)

Now epmd might have already been up (and normally the failed message is
not particularly concerning). But the real problem is that we are trying
to connect to foo which maps to a VIP, but the VIP gets started only
later by keepalived:
3)
Jan 27 07:02:30 foo.int.bar Keepalived_vrrp[914]: VRRP_Instance(42) Sending/queueing gratuitous ARPs on br-ctlplane for 192.168.248.2
Jan 27 07:02:30 foo.int.bar Keepalived_vrrp[914]: Sending gratuitous ARP on br-ctlplane for 192.168.248.2

Let's make sure keepalived is up and running before rabbitmq in order to
fix this.

Change-Id: I010102b01e41610838c836a743a07be1965944d6
Closes-Bug: #1782814
2018-07-21 14:24:23 +02:00
Zuul bc82d48199 Merge "fix tox python3 overrides" 2018-07-16 11:11:46 +00:00
Christian Schwede d3c6857a49 Restart rsyslog after installing Swift
This ensures that Swift logs end up in /var/log/swift/swift.log.

Closes-Bug: 1781350
Change-Id: Id5a6083f5dc3f8c569e0d0778722c1e52ff7cdef
2018-07-12 12:52:53 +02:00
Zuul 3fc4cc7049 Merge "Call validations upload workflow instead of action" 2018-07-09 21:50:24 +00:00
Zuul 52f699e1b6 Merge "incompatability spelling error" 2018-07-03 09:54:24 +00:00
Zuul 0bec74fcfc Merge "Drop example in config file comments" 2018-07-03 09:54:23 +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
Zuul 08e00ea71a Merge "Add the undercloud mistral user to the docker group" 2018-06-27 22:40:36 +00:00
Steve Baker 6f583eb113 Add the undercloud mistral user to the docker group
This is required for mistral actions to perform image prepare
operations (pull, build, push)

Change-Id: I301ea04e4dbb3809ce247c0c620b0f087dedb5f9
Blueprint: container-prepare-workflow
2018-06-25 23:06:00 +00:00
Sofer Athlan-Guyot aab11800fe Make sure we start nova-compute after ironic-conductor.
We need to ensure that ironic-conductor starts before nova-compute.
This is to workaround an issue where nova-compute tries and fails to
call plug_vifs, this in turn report a vm_state error which, in this
case is a false positive.  See lp#1777608 for more.

We ensure ordering by forcing puppet to restart nova-compute after
ironic-conductor in the case of undercloud upgrade/update.

Change-Id: Ifbada53f088258a397777a6fa18dd7c1b37c09d3
Closes-Bug: #1777475
2018-06-23 13:37:07 +02:00
Zuul cedf5e0d0d Merge "Fall back to puppet-ntp defaults" 2018-06-20 03:57:08 +00:00
yatin 176bc689f7 Remove usage of deprecated rabbit params
rabbit param removed from puppet-neutron in [1],
Required transport_url is taken care by puppet-stack-config.yaml.
This patch removes the usage of removed rabbit_hosts param.

[1] https://review.openstack.org/#/c/570307/

Closes-Bug: #1777616
Change-Id: I9d561aa2e2f71b8892580950e9664d62f956773d
2018-06-19 09:32:43 +00:00
Alex Schultz d49442152a Fall back to puppet-ntp defaults
If the ntp server is not configured in the undercloud.conf, we should
fall back to the defaults provided by puppet-ntp otherwise we end up
with an invalid ntp configuration.

Change-Id: I0000e1cf736b513dbc58c0d39f7e1c0137b660dd
Closes-BUg: #1777140
2018-06-18 09:40:50 -06: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
chenjiao 6b74fe4e38 incompatability spelling error
the world incompatability should be incompatibility

Change-Id: Ie908247405fd02243b380d93f2a4a422ef1a45fd
2018-06-14 16:38:51 +08:00
huang.zhiping e482bc2dc4 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I2ee74a543edbfbec4e73ace261b1309988347756
2018-06-09 01:54:23 +08:00
Bob Fournier 41c401ca65 Allow local_mtu to be set to value greater than default (1500)
The neutron global_physnet_mtu must be set to the configured local_mtu
in order to set local_mtu to a value greater than 1500. Otherwise
the neutron configuration will fail during the undercloud install.

Change-Id: Iaadff350a14a2cfb4bf545065f6d12eab49ba125
Closes-Bug: #1774271
2018-05-30 16:52:20 -04:00
Zuul ad1b8113e7 Merge "Remove support for classic drivers" 2018-05-30 09:38:25 +00:00
Zuul 081804d16e Merge "Update sample config" 2018-05-30 09:13:30 +00:00
Zuul 2cae44a5c6 Merge "Fix duplicate entries in /etc/sysconfig/iptables" 2018-05-28 17:44:18 +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
Harald Jensås 4366fa8b14 Fix duplicate entries in /etc/sysconfig/iptables
Commit e49688be98
introduced filters for ephemeral firewall rules
managed by Ironic Inspectors iptables PXE filter.
These new filters cause duplicate entries in the
persisted firewall rules.

sed expression '/-m comment --comment/p' was used
to ensure the ironic-inspector api port is not
accidentally removed. But the expression also
matches several other entries causing duplicates
to be written.

This change enhances the expression to check for
'-m comment --comment' and 'ironic-inspector'.

Related-Bug: #1771128
Change-Id: I6ac397e786f66e33c523edb94613181040c15f19
2018-05-17 07:35:27 +00:00
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 38befed4f8 Merge "Remove ironic_host_manager usage" 2018-05-15 23:46:03 +00:00