Commit Graph

58 Commits

Author SHA1 Message Date
Sven Kieske dffe23ca3d
CI: bump cirros version
Signed-off-by: Sven Kieske <kieske@osism.tech>
Change-Id: Ib9a0d9bab0c64f5179715dbc629703e7a6947c98
2024-04-05 11:33:35 +02:00
Pierre Riteau f86ed0270f CI: Test Nova server resize functionality
This adds an extra resize operation to core OpenStack tests. This should
be fast since we are only increasing the number of cores of the VM and
could help catch additional errors in CI tests.

Change-Id: Ia61b995dbffcda4f1e6494548df457231cb67bd7
2024-01-08 22:15:04 +00:00
Radosław Piliszek 7367427338 [CI] Test Neutron with IPv6 networks
Make sure to actually test IPv6 connectivity to our test instance in the
IPv6 jobs.

Change-Id: I7845448804e191af356e82f8ad33c563ffd8ebd5
2023-03-26 09:34:53 +00:00
Bartosz Bezak 459b8927e1 Allow to override CirrOS version in init-runonce
This is to allow us to customize for CI.

Change-Id: Ie45860fa2228c21ce45ac8118267fb8304129802
2023-02-23 13:07:08 +01:00
Michal Nasiadka 070036dbe7 CI: bump cirros to 0.6.1
Change-Id: I80fb1469ae4ff8d38198e495690496fcb5eadc18
2023-02-14 16:20:07 +00:00
Marcin Juszkiewicz e17a0ca24a init-runonce: use CirrOS 0.6.0
CirrOS 0.6.0 was released yesterday. Has newer kernel and userspace,
better network configuration (more IPv6 stuff) and some other
improvements.

Change-Id: Ife7767904efe64602531fa3eb163c78260650909
2022-09-29 11:08:32 +02:00
Michal Nasiadka 81f3aa5ac0 init-runonce: Add KOLLA_CONFIG_PATH support
Kayobe uses it, so let's fix the check.

Change-Id: I99b2a7f8609fd708f4829f21c81029c7b8da5d73
2022-09-28 17:35:09 +00:00
Michal Nasiadka ed2cf2f5e5 Change clouds.yaml location
It's a followup to 73a1812c58
addressing post-merge comments.

Change-Id: Idd458ad6ef29e4eee2f9e537b4eae39d26eb9f64
2022-09-27 11:10:12 +00:00
Zuul 981699f554 Merge "Add clouds.yaml file and use it" 2022-08-09 13:14:55 +00:00
Monty Taylor 73a1812c58 Add clouds.yaml file and use it
clouds.yaml[0] is a richer way to express configuration for OpenStack
clouds. It's also fully supported by Ansible's OpenStack modules as
well as python-openstackclient and openstacksdk. It's the future - who
doesn't like the future?

Write a file using both the public (default) and the internal endpoints
for the admin user. Also, change all of the examples to reference it
and to get python-openstackclient to use it too.

[0] https://docs.openstack.org/openstacksdk/latest/user/guides/connect_from_config.html

Implements: blueprint use-clouds-yaml
Change-Id: I557d2e4975c7b3d3c713a556b9ba47af9567ce6e
2022-08-08 12:19:47 +00:00
Michal Nasiadka d2bc0b42aa init-runonce: Migrate to ECDSA keys
OpenSSH 8.8 has dropped support for RSA SHA-1 keys.
ECDSA is FIPS approved, so probably it's a better
direction than just changing to SHA-256.

Change-Id: Id06d9d8912d9677dbe0f5a666f43a209664c94b4
2022-07-20 12:04:04 +00:00
Niklas Hagman 2e933dceb5 Transition Keystone admin user to system scope
A system-scoped token implies the user has authorization to act on the
deployment system. These tokens are useful for interacting with
resources that affect the deployment as a whole, or exposes resources
that may otherwise violate project or domain isolation.

Since Queens, the keystone-manage bootstrap command assigns the admin
role to the admin user with system scope, as well as in the admin
project. This patch transitions the Keystone admin user from
authenticating using project scoped tokens to system scoped tokens.
This is a necessary step towards being able to enable the updated oslo
policies in services that allow finer grained access to system-level
resources and APIs.

An etherpad with discussion about the transition to the new oslo
service policies is:

https://etherpad.opendev.org/p/enabling-system-scope-in-kolla-ansible

Change-Id: Ib631e2211682862296cce9ea179f2661c90fa585
Signed-off-by: Niklas Hagman <ubuntu@post.blinkiz.com>
2021-09-28 09:45:06 -07:00
Marc 'risson' Schmitt 839ec629bf
tools: use /usr/bin/env bash instead of /bin/bash
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2021-08-17 14:29:33 +02:00
Mark Goddard 9444631078 CI: add missing --fail argument to curl
Change-Id: Ibd06726ac6edcb63a1d5d4f4148851876316dc5b
2020-11-13 17:08:44 +00:00
Radosław Piliszek 7a3072e94c [CI] Ensure network is set for Zun
If we don't set it, then Zun chooses one randomly (the first one
from Neutron).
This may break if it is a network that is not available on
target hosts, e.g. external via L3 agent router.

Since capsules do not support nets yet [1], this patch ensures
desired network creation order in init-runonce instead.

[1] https://bugs.launchpad.net/zun/+bug/1895263

Change-Id: Iaa113dcfb826164a2772d2c91d34ec0236be0817
2020-09-12 12:06:34 +02:00
Luke Short e8b2053f51 Do not ask for a SSH key password
This is to avoid waiting for the user to input data to continue
creating sample resources.

Change-Id: I46ff7a4779dae4c9cbe157e1712afa4e53be269e
Signed-off-by: Luke Short <ekultails@gmail.com>
2020-05-28 20:57:53 -04:00
Marcin Juszkiewicz 9bde29a30b cirros: upgrade to 0.5.1
We released CirrOS 0.5.1. Time to move then.

Change-Id: Ibca24836f19b3cbf6166fa39a3702883938feda8
2020-03-21 15:40:10 +00:00
Radosław Piliszek e03f06c081 Do not enforce vxlan in init-runonce
The affected command was meant to create a tenant network, so let
us really test it this way.

Not marking CI, because someone may be using this script.

Change-Id: I5abe46948992121a11a36f941d4f8fac1caa92b1
2020-03-20 14:51:02 +01:00
Radosław Piliszek 29e4ef1374 CI: Debug init-runonce
Also adds gawk for timestamping.

This helps to correlate init events with failures elsewhere.

Change-Id: I22fdb683ecf9870b2d66fedd6b40b7004317130a
2020-03-01 09:57:35 +01:00
Radosław Piliszek effbb20997 Allow to override external network params in init-runonce
I'm not marking it CI-only as ppl seem to be using it.
OTOH, not adding a release note as we are not promoting its usage.

This is to allow us to customize for CI.

Change-Id: I8100a6cb63b1e54078629bd6ca8475dc5896784a
2020-02-23 16:35:50 +01:00
Zuul 103e0e43e7 Merge "init-runonce: make public1 network optional" 2019-07-11 09:30:53 +00:00
Mark Goddard 3026fd9129 init-runonce: make public1 network optional
Skip creation by setting ENABLE_EXT_NET to 0.

Since adding errexit we are failing in kayobe CI, since we have a
conflicting flat network on physnet1.

Change-Id: I88429f30eb81a286f4b8104d5e7a176eefaad667
2019-07-10 17:48:28 +01:00
Mark Goddard bc08b44fd1 Exit on failure in init-runonce
Previously we sourced this script in tests/deploy.sh, but this was
recently changed. Following that change we lost the errexit setting,
meaning we ignore errors in init-runonce.

Adding errexit in the script itself means that all callers get error
handling.

Also log init-runonce output.

TrivialFix

Change-Id: I9b35bd5f0f76eec26ddd968d093a3a5fd55a7ce2
2019-06-28 14:31:24 +00:00
Marcin Juszkiewicz df5a5b6578 runonce: do not set hw_firmware_type=uefi
We made it default in Queens.

Change-Id: I52de6e041bbc4c316d332cbedeca924a7f3c7346
2019-06-04 08:56:57 +02:00
chenxing 380647ffb5 Update the help text of init-runonce
openrc should be admin-openrc.sh

Change-Id: I9b3d874fe39488206ce880247b51d0a26826eeb6
2018-07-27 09:39:17 +08:00
Paul Bourke e5a8481847 Simplify init-runonce boot command
openstack cli now supports --network foo rather than having to find the
network uuid. Thanks to mgoddard for the tip.

Change-Id: I9ce94a86c6950b81ef3ec70fe10ee565cc1f1171
2018-04-13 17:17:04 +01:00
Martin André 84473bec5f Use local cirros image if available
Nodepool nodes saves the cirros image in /opt/cache/files/, we can make
use of it to save some time and remove an external dependency on the
cirros website.

Change-Id: I81b431d8659b1da8b36d660f2a8f1cfa42461a14
2018-01-18 04:13:18 +00:00
Marcin Juszkiewicz 750d6ff65f init-runonce: use UEFI on aarch64
Nova does not yet defaults to UEFI ;(

Change-Id: I9f26d373f73d15fa571545b3c867beb07da88f48
2018-01-03 12:02:27 +01:00
Marcin Juszkiewicz 54351ebae2 init-runonce: use Cirros 0.4.0 images (aarch64 support got added)
Change-Id: Ia4fbe1f2895593d1f6099f174736e8267b87e8d6
2018-01-03 12:02:22 +01:00
yanpeifei b2b5c07533 It has to tell user how to set the internet ip
Change-Id: I551bd6787dea8dcdfadd09161d295b1290480e8e
2017-12-18 03:05:38 +00:00
Ravi Shekhar Jethani 9c66123c30 Don't change directory while running init-runonce
Currently init-runonce script changes directory to the
script's base directory (/usr/...) before doing anything else.
This unnecessarily _forces_ a non-root user to use sudo for
running this script thereby raising privileges for code which
doesn't want it. Also downloading temporary stuff in places like
/usr... seems not a good choice.

Hence deleting the said code part and letting the deployer work
comfortably from any directory.

Made documentation changes accordingly.

Change-Id: Ib3c7ed97aa5f53c115b6337aaf572b5fdc7a71f3
Closes-Bug: #1732963
2017-11-23 16:35:45 +05:30
Christian Berendt 082a488b02 Remove trailing whitespaces
Change-Id: Ia691eb7ea315f60259473bd624ee72c4c2bbe89f
2017-10-26 23:52:24 +02:00
caoyuan ff46e0908f Update the cirros version to "0.3.5"
Refer to
https://docs.openstack.org/ocata/install-guide-rdo/glance-verify.html

Change-Id: Ic2a32a3f17a11f1f6e8ecf0f7271d7d1f12ca5bc
2017-04-03 16:04:12 +08:00
Dave Walker (Daviey) 11f9ba6547 init-runonce - set image distro to "linux"
Currently we omit the os_distro property when uploading the
cirros image to glance.  Nova assumes it to need vfat disk
incase the image is Windows.

This change sets the property to "linux" causing ext4 to be
used instead.

TrivialFix

Change-Id: I3fdb71f5be7702a2dc223946fae82131c6c46154
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
2017-03-14 01:20:49 +00:00
Jenkins 6761120111 Merge "Custom init-runonce values" 2017-02-09 12:16:46 +00:00
Eduardo Gonzalez 5d9ca9d3a1 Custom init-runonce values
Change-Id: Ibff560ffa7023e9629e8ea1762121c595c3fb3f4
2017-01-25 08:59:19 +00:00
Eduardo Gonzalez 8c1893777c Fix security group creation
When using init-runonce script multiple default
security groups are present and raise error:
More than one security_group exists with the name 'default'.

Add a check to create rules to admin's default sec group.

Change-Id: Iaf93467d70ae41fdbcd2b37d6c5639a32d939394
2017-01-24 15:07:26 +00:00
caowei cb7449f69a Change 1-subnet to public1-subnet in tools/init-runonce
TrivialFix

Change-Id: I363d09a2565af5b7d4c67afec8fc0c5ae70c8540
2017-01-12 15:11:06 +08:00
Paul Bourke f4b5c2db74 Update init-runonce to use openstack commands
Change-Id: I522feee353a7afcdca6862ce4e262e14e36df3a2
2017-01-06 13:49:49 +00:00
caoyuan 2f21d2a88d Remove the deprecated command and the useless "if" condition
TrivialFix

Change-Id: I22970a9885eda670ec17d6b8c1b368ed2e10a732
2016-12-01 15:35:07 +00:00
caowei 3e5e7f27d7 Adding the steps of generateing ssh key in tools/init-runonce
TrivialFix
Change-Id: I66857a92b0ae61cd8300955e2bf9605f93937b1d
2016-09-26 19:33:25 +08:00
Jenkins 2cf3f65bc9 Merge "Use "type" to take place of "which" and update the output" 2016-09-16 09:24:48 +00:00
caoyuan d48cc50e9e Use "type" to take place of "which" and update the output
When run tools/init-runonce without some client installed,it's
retrun not friendly and confuse people,such as user does not
install python-openstackclient, it will return "openstack not
installed".This patch update it.

Use "type" command to avoid "which"

TrivialFix

Change-Id: I53789a767b3a2727bf2cb848c2881272e313e14c
2016-09-16 09:13:13 +08:00
Paul Bourke dc85fda07a Add a tip at the end of tools/init-runonce
Give the user an easy to run way to test their deploy after running
init-runonce.

TrivialFix

Change-Id: I7d984433c8f1b56d0b74be06b3e411044e897790
2016-09-15 15:46:56 +01:00
Swapnil Kulkarni (coolsvap) 40a0cb9e0e Update cirros image visibility in init-runonce
During osic scale testing it is found that the cirros
image added during kolla deployed infra init has private
visibility. This need to be public.

TrivialFix

Change-Id: I39712f0a054f393a8450356e23d41170bc22166e
2016-08-18 10:03:38 +00:00
Dave McCowan fda9444ea6 Add default flavors during init-runonce
The nova team is removing the default flavors from a standard
deployment.  This is great for operators, who have to delete
the defaults anyways.  This patch adds the original default
flavors back during init-runonce so kolla users can be ready
to launch instances.

Closes-Bug: #1567964
Change-Id: I17daec98997a6e412a99f34d3f8a4324460d8c60
2016-04-08 10:32:57 -04:00
prithiv caa3f90c83 Checks the installation of curl command, Nova, Neutron and OpenStack packages
related-bug: 1552433

Change-Id: If89e2a1bc959039fc7088c8295e88a199eabbedc
2016-03-08 20:35:50 +00:00
Hui Kang 1c9056bcb6 Output unique admin id of user and project list
Change-Id: I8983768b6fafdd70f4c8aa7bdcf91af4f50efe70
Closes-Bug: #1520982
2015-11-29 20:17:19 +00:00
Steven Dake bd5e5bbb64 Use one data container for all data volumes
The previous method of using the API image for a data container
worked, but resulted in more data being bindmounted and copied
into the system.  This patch resolves that by essentially using
a distro-type as a FROM in a Dockerfile to generate
distro-type-data.  Further all of the data containers used
throughout ansible are modified to use this new data container.

Change-Id: I8846573d4f2d4b98d4f46c770bfefc6d4c5cd0b5
Partially-Implements: blueprint one-data-container
2015-08-18 20:52:27 -07:00
Steven Dake 6efe57e9eb Remove compose from documenation
Receive several quickstart related questions every day.  Make a
first pass at cleaning up our documentation to point people
in the right direction.  While we are about it remove compose
related bits.  Anything in the compose directory will remain as
a reference implementation for how to implement the compose
files to work well with our container content.

Change-Id: I9e832e97ac2bacca8eab7e1bfbd82664d2b191b8
Closes-Bug: #1485163
Paritally-Implements: blueprint remove-config-internal
2015-08-17 11:34:36 -07:00