Commit Graph

42 Commits

Author SHA1 Message Date
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
Sam Yaple
005ec9ee70 Update init-runonce
This makes some changes to init-runonce to allow using Ansible as well as
updating it to use the openstack-client where applicable since the
keystone-client is not usable with keystone v3 api at all.

Change-Id: I6b9d6beb04df7724b1967638e98042ab03221cd1
Closes-Bug: #1477725
2015-07-23 21:05:11 +00:00
Paul Bourke
018a07984a Fix 'unsupported locale setting' errors in init-runonce
Keystone requires a valid LC_ALL environment variable to be set, if left
empty the following output is shown:

"""
$ tools/init-runonce
Downloading glance image.
Creating glance image.
[=============================>] 100%
<snip>
Configuring neutron.
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
unsupported locale setting
Could not find any suitable endpoint. Correct region?
<snip>
"""

A similar problem occurred in devstack
(https://bugs.launchpad.net/devstack/+bug/1249131), apply the same patch
they use to to sanitize language settings
(https://github.com/openstack-dev/devstack/blob/master/stack.sh#L27).

Closes-Bug: #1466548

Change-Id: I8e86a4466181d6dd1c1749915c1c43521af805b7
2015-06-19 16:10:47 +00:00
Justin Riley
f77ca0e05b fix subnet-create call for demo-net
(neutron client version: 2.5.0)

The option is --dns-nameservers not --dns_namservers and the
subnet-create subcommand expects the NETWORK and CIDR to be adjacent
args.

Change-Id: I4f776632902fd001c38ee5c8c87a213883ca87be
2015-05-18 13:24:40 -04:00
Justin Riley
4443392f6e fix net-create call for public1 in tools/init-runonce
The --router:external option is a boolean flag that doesn't take a value
(neutron client version 2.5.0). Passing True results in the following
error:

Invalid values_specs True

This patch simply removes the 'True' value.

Change-Id: If4b5305f37d50c14c767393eb21223b0e0b59494
2015-05-12 11:23:52 -04:00
Steven Dake
794a814275 Make a demo for Magnum
Make a Magnum demonstration that creates a baymodel and bay.  Just
run demos/magnum/launch to make it work.  This depends on Neutron.

Borrow the v1beta3 redis example from the examples repository in
Kubernetes.
Change-Id: I448a5890bfe0c1675914ae7dbd02fad03f4b1eeb
2015-05-11 09:26:08 -07:00
Steven Dake
ea0f5c7efa Add heat-api-cfn
Add Heat-api-cfn for wait conditions

Magnum needs wait conditions in order to operate properly.  heat-api-cfn
is where wait conditions connect.

Change-Id: I56742dd96e4607dc0042d0cef4e18c922f9ed736
Implements: blueprint container-heat-api-cfn
2015-05-06 05:33:55 -07:00
Justin Riley
c1ae401823 neutron subnet-create requires args at the end
The network name must be next to the CIDR otherwise `neutron
subnet-create` gets confused.

Change-Id: Ie8b19d3824e5e25f80c61f0794595813c80b98da
2015-04-29 22:17:24 -04:00
Martin André
90ad52c4c1 Consolidate tools/conf-* scripts in tools/init-runonce
Fix issues reported in https://review.openstack.org/#/c/177681/3, and
simplify detection of cirros images in glance.

Only add developer's SSH key to nova if ~/.ssh/id_rsa.pub exists and is
readable.

Change-Id: I5936c6db399d63902d460b0d3c959619073cc3cc
2015-04-28 12:15:42 +09:00