Skip to content

Commit

Permalink
Added new files
Browse files Browse the repository at this point in the history
  • Loading branch information
urao committed Jul 16, 2018
1 parent 9493c86 commit 1fc4782
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rhosp10-contrail411/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# RHOSP with Contrail
## RHOSP10 with Contrail4.1.1
2 changes: 2 additions & 0 deletions rhosp10-contrail411/scripts/create_stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ set -xv
TEMPLATE_DIR=/home/tripleo-heat-templates/
TEMPLATE_ENV_DIR=/home/tripleo-heat-templates/environments/

source /home/stack/stackrc

time openstack overcloud deploy --stack $STACK_NAME \
--templates $TEMPLATE_DIR \
-r $TEMPATE_ENV_DIR/contrail/roles_data.yaml \
Expand Down
28 changes: 28 additions & 0 deletions rhosp10-contrail411/scripts/create_vm.sh
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
8 changes: 4 additions & 4 deletions rhosp10-contrail411/steps_to_install_appformix.md
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
```

0 comments on commit 1fc4782

Please sign in to comment.