-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# RHOSP with Contrail | ||
## RHOSP10 with Contrail4.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/env bash | ||
set -xv | ||
|
||
source /home/stack/overcloudrc.v3 | ||
|
||
echo "Install openstack pkgs" | ||
yum install -y gcc python-devel | ||
pip install python-openstackclient | ||
|
||
echo "Install wget packages" | ||
yum install -y wget | ||
cd /home/stack/images/ | ||
wget http://download.cirros-cloud.net/0.4.0/cirros-0.4.0-x86_64-disk.img | ||
openstack image create "cirros" --disk-format qcow2 --container-format bare --public --file /home/stack/images/cirros-0.4.0-i386-disk.img | ||
|
||
glance image-list | ||
openstack flavor create --ram 1024 --disk 20 --vcpus 1 --public small | ||
|
||
#provide virutal-network name | ||
VN_NAME="vn1" | ||
VMNET=`neutron net-list | grep ${VN_NAME} | awk '{print $2}'` | ||
echo $VMNET | ||
|
||
echo "Boot cirros VM" | ||
nova boot --image cirros --flavor small --nic net-id=$VMNET vm1 | ||
sleep 10s | ||
|
||
nova list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
## Below steps will create appformix VM's in RHOSP10+Contrail 4.1.1 Environment | ||
## Below steps to create appformix VM's in RHOSP10+Contrail 4.1.1 Environment | ||
|
||
# Execute below steps on undercloud VM | ||
### Execute below steps to run on undercloud VM | ||
``` | ||
export LIBGUESTFS_BACKEND=direct | ||
qemu-img create -f qcow2 -o preallocation=metadata /var/lib/libvirt/images/appformix001.qcow2 100G | ||
virt-resize --expand /dev/sda1 rhel-server-7.5-x86_64-kvm.qcow2 /var/lib/libvirt/instances/appformix001.qcow2 | ||
qemu-img create -f qcow2 -o preallocation=metadata appformix001.qcow2 100G | ||
virt-resize --expand /dev/sda1 rhel-server-7.5-x86_64-kvm.qcow2 appformix001.qcow2 | ||
``` |