Handle DS AWS creds
Moved code block to an include file for conditionalization purposes. Patchset 1 review updates. Patchset 2 review updates. Patchset 3 review updates. Patchset 4 review updates. Patchset 5 review updates. Signed-off-by: Ron Stone <ronald.stone@windriver.com> Change-Id: I1b5966a3b0a8a0ee03b1e95a1e7cebe19c66eda6 Signed-off-by: Ron Stone <ronald.stone@windriver.com>
This commit is contained in:
parent
26323e1e3e
commit
6b4f05debc
@ -0,0 +1,31 @@
|
||||
::
|
||||
|
||||
cd ~
|
||||
|
||||
cat <<EOF > localhost.yml
|
||||
|
||||
system_mode: duplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
external_oam_node_0_address: <OAM-CONTROLLER-0-IP-ADDRESS>
|
||||
external_oam_node_1_address: <OAM-CONTROLLER-1-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
# OPTIONALLY provide a ROOT CA certificate and key for k8s root ca,
|
||||
# if not specified, one will be auto-generated,
|
||||
# see ‘Kubernetes Root CA Certificate’ in Security Guide for details.
|
||||
k8s_root_ca_cert: < your_root_ca_cert.pem >
|
||||
k8s_root_ca_key: < your_root_ca_key.pem >
|
||||
apiserver_cert_sans:
|
||||
- < your_hostname_for_oam_floating.your_domain >
|
||||
|
||||
EOF
|
29
doc/source/_includes/min-bootstrap-overrides-simplex.rest
Normal file
29
doc/source/_includes/min-bootstrap-overrides-simplex.rest
Normal file
@ -0,0 +1,29 @@
|
||||
::
|
||||
|
||||
cd ~
|
||||
|
||||
cat <<EOF > localhost.yml
|
||||
|
||||
system_mode: simplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
# OPTIONALLY provide a ROOT CA certificate and key for k8s root ca,
|
||||
# if not specified, one will be auto-generated,
|
||||
# see ‘Kubernetes Root CA Certificate’ in Security Guide for details.
|
||||
k8s_root_ca_cert: < your_root_ca_cert.pem >
|
||||
k8s_root_ca_key: < your_root_ca_key.pem >
|
||||
apiserver_cert_sans:
|
||||
- < your_hostname_for_oam_floating.your_domain >
|
||||
|
||||
EOF
|
@ -112,27 +112,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the OAM IP SUBNET and IP
|
||||
ADDRESSing applicable to your deployment environment.
|
||||
|
||||
::
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: duplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
external_oam_node_0_address: <OAM-CONTROLLER-0-IP-ADDRESS>
|
||||
external_oam_node_1_address: <OAM-CONTROLLER-1-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-non-simplex.rest
|
||||
|
||||
|
||||
.. only:: starlingx
|
||||
@ -306,41 +286,6 @@ Configure controller-0
|
||||
# assign 6 cores on processor/numa-node 0 on controller-0 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-0
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system system host-disk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
#. **For OpenStack only:** Configure the system setting for the vSwitch.
|
||||
|
||||
@ -636,6 +581,44 @@ Unlock controller-0
|
||||
:start-after: incl-unlock-controller-0-aio-simplex-start:
|
||||
:end-before: incl-unlock-controller-0-aio-simplex-end:
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system system host-disk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
-------------------------------------
|
||||
Install software on controller-1 node
|
||||
-------------------------------------
|
||||
@ -752,41 +735,6 @@ Configure controller-1
|
||||
# assign 6 cores on processor/numa-node 0 on controller-1 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-1
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
#. **For OpenStack only:** Configure the host settings for the vSwitch.
|
||||
|
||||
@ -1027,6 +975,44 @@ Controller-1 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’ containers
|
||||
running on the controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -112,25 +112,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the |OAM| IP SUBNET and
|
||||
IP ADDRESSing applicable to your deployment environment.
|
||||
|
||||
::
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: simplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-simplex.rest
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
@ -286,42 +268,6 @@ The newly installed controller needs to be configured.
|
||||
# Assign 6 cores on processor/numa-node 0 on controller-0 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-0
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
|
||||
#. **For OpenStack only:** Configure the system setting for the vSwitch.
|
||||
|
||||
@ -634,6 +580,44 @@ machine.
|
||||
|
||||
.. incl-unlock-controller-0-aio-simplex-end:
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker filesystem
|
||||
needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -111,27 +111,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the OAM IP SUBNET and IP
|
||||
ADDRESSing applicable to your deployment environment.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: duplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
external_oam_node_0_address: <OAM-CONTROLLER-0-IP-ADDRESS>
|
||||
external_oam_node_1_address: <OAM-CONTROLLER-1-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-non-simplex.rest
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
@ -368,6 +348,44 @@ Controller-0 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system system host-disk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
-------------------------------------------------
|
||||
Install software on controller-1 and worker nodes
|
||||
-------------------------------------------------
|
||||
@ -508,10 +526,49 @@ Unlock controller-1 in order to bring it into service:
|
||||
|
||||
system host-unlock controller-1
|
||||
|
||||
|
||||
Controller-1 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
#. **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
.. incl-unlock-controller-1-end:
|
||||
|
||||
.. include:: /_includes/bootstrapping-and-deploying-starlingx.rest
|
||||
|
@ -112,27 +112,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the OAM IP SUBNET and IP
|
||||
ADDRESSing applicable to your deployment environment.
|
||||
|
||||
::
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: duplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
external_oam_node_0_address: <OAM-CONTROLLER-0-IP-ADDRESS>
|
||||
external_oam_node_1_address: <OAM-CONTROLLER-1-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-non-simplex.rest
|
||||
|
||||
|
||||
.. only:: starlingx
|
||||
@ -307,42 +287,6 @@ Configure controller-0
|
||||
# assign 6 cores on processor/numa-node 0 on controller-0 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-0
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system host-disk-partition-add -t lvm_phys_vol ${NODE} <disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
|
||||
#. **For OpenStack only:** Configure the system setting for the vSwitch.
|
||||
|
||||
@ -643,6 +587,44 @@ Unlock controller-0
|
||||
:start-after: incl-unlock-controller-0-aio-simplex-start:
|
||||
:end-before: incl-unlock-controller-0-aio-simplex-end:
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack Only** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system host-disk-partition-add -t lvm_phys_vol ${NODE} <disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
-------------------------------------
|
||||
Install software on controller-1 node
|
||||
-------------------------------------
|
||||
@ -759,42 +741,6 @@ Configure controller-1
|
||||
# assign 6 cores on processor/numa-node 0 on controller-1 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-1
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
|
||||
#. **For OpenStack only:** Configure the host settings for the vSwitch.
|
||||
|
||||
@ -1034,6 +980,44 @@ Controller-1 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’ containers
|
||||
running on the controller host, the size of the docker filesystem needs to
|
||||
be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -112,25 +112,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the |OAM| IP SUBNET and
|
||||
IP ADDRESSing applicable to your deployment environment.
|
||||
|
||||
::
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: simplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-simplex.rest
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
@ -285,41 +267,6 @@ The newly installed controller needs to be configured.
|
||||
# Assign 6 cores on processor/numa-node 0 on controller-0 to platform
|
||||
system host-cpu-modify -f platform -p0 6 controller-0
|
||||
|
||||
#. Due to the additional openstack services’ containers running on the
|
||||
controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
#. **For OpenStack only:** Configure the system setting for the vSwitch.
|
||||
|
||||
@ -629,6 +576,44 @@ machine.
|
||||
|
||||
.. incl-unlock-controller-0-aio-simplex-end:
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
@ -111,27 +111,7 @@ Bootstrap system on controller-0
|
||||
configuration as shown in the example below. Use the OAM IP SUBNET and IP
|
||||
ADDRESSing applicable to your deployment environment.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cd ~
|
||||
cat <<EOF > localhost.yml
|
||||
system_mode: duplex
|
||||
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
||||
external_oam_subnet: <OAM-IP-SUBNET>/<OAM-IP-SUBNET-LENGTH>
|
||||
external_oam_gateway_address: <OAM-GATEWAY-IP-ADDRESS>
|
||||
external_oam_floating_address: <OAM-FLOATING-IP-ADDRESS>
|
||||
external_oam_node_0_address: <OAM-CONTROLLER-0-IP-ADDRESS>
|
||||
external_oam_node_1_address: <OAM-CONTROLLER-1-IP-ADDRESS>
|
||||
|
||||
admin_username: admin
|
||||
admin_password: <admin-password>
|
||||
ansible_become_pass: <sysadmin-password>
|
||||
|
||||
EOF
|
||||
.. include:: /_includes/min-bootstrap-overrides-non-simplex.rest
|
||||
|
||||
.. only:: starlingx
|
||||
|
||||
@ -368,6 +348,44 @@ Controller-0 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’
|
||||
containers running on the controller host, the size of the docker
|
||||
filesystem needs to be increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-0
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-0
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-0 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-0
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system system host-disk-partition-add -t lvm_phys_vol controller-0 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-0 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-0 docker=60
|
||||
|
||||
-------------------------------------------------
|
||||
Install software on controller-1 and worker nodes
|
||||
-------------------------------------------------
|
||||
@ -511,6 +529,44 @@ Controller-1 will reboot in order to apply configuration changes and come into
|
||||
service. This can take 5-10 minutes, depending on the performance of the host
|
||||
machine.
|
||||
|
||||
.. only:: openstack
|
||||
|
||||
* **For OpenStack only:** Due to the additional openstack services’ containers
|
||||
running on the controller host, the size of the docker filesystem needs to be
|
||||
increased from the default size of 30G to 60G.
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
# check existing size of docker fs
|
||||
system host-fs-list controller-1
|
||||
# check available space (Avail Size (GiB)) in cgts-vg LVG where docker fs is located
|
||||
system host-lvg-list controller-1
|
||||
# if existing docker fs size + cgts-vg available space is less than
|
||||
# 80G, you will need to add a new disk partition to cgts-vg.
|
||||
# There must be at least 20GB of available space after the docker
|
||||
# filesystem is increased.
|
||||
|
||||
# Assuming you have unused space on ROOT DISK, add partition to ROOT DISK.
|
||||
# ( if not use another unused disk )
|
||||
|
||||
# Get device path of ROOT DISK
|
||||
system host-show controller-1 --nowrap | fgrep rootfs
|
||||
|
||||
# Get UUID of ROOT DISK by listing disks
|
||||
system host-disk-list controller-1
|
||||
|
||||
# Create new PARTITION on ROOT DISK, and take note of new partition’s ‘uuid’ in response
|
||||
# Use a partition size such that you’ll be able to increase docker fs size from 30G to 60G
|
||||
PARTITION_SIZE=30
|
||||
system hostdisk-partition-add -t lvm_phys_vol controller-1 <root-disk-uuid> ${PARTITION_SIZE}
|
||||
|
||||
# Add new partition to ‘cgts-vg’ local volume group
|
||||
system host-pv-add controller-1 cgts-vg <NEW_PARTITION_UUID>
|
||||
sleep 2 # wait for partition to be added
|
||||
|
||||
# Increase docker filesystem to 60G
|
||||
system host-fs-modify controller-1 docker=60
|
||||
|
||||
.. incl-unlock-controller-1-end:
|
||||
|
||||
.. include:: /_includes/bootstrapping-and-deploying-starlingx.rest
|
||||
|
Loading…
Reference in New Issue
Block a user