Skip to content

Instantly share code, notes, and snippets.

View atyronesmith's full-sized avatar
🏠
Working from home

Aaron Smith atyronesmith

🏠
Working from home
  • Red Hat
View GitHub Profile
#!/bin/sh
function get_image() {
local url=$1
local fname=$(basename $1)
local image_name=$2
wget $url
openstack image create --disk-format qcow2 --file ./$fname $image_name
rm ./$fname
Before deploy...
root@undercloud-nfv-vepc site-packages]# ironic node-show c19f4aba-2c32-41e4-946e-46274d7f76bb
+------------------------+--------------------------------------------------------------------------+
| Property | Value |
+------------------------+--------------------------------------------------------------------------+
| chassis_uuid | |
| clean_step | {} |
| console_enabled | False |
| created_at | 2017-01-11T18:49:30+00:00 |
openstack overcloud deploy --templates ~/my_templates/ -e environments/network-isolation.yaml -e ~/my_templates/environments/network-environment.yaml -e ~/my_templates/environments/storage-environment.yaml --control-scale 1 --compute-scale 1 --compute-flavor compute --control-flavor control --neutron-network-type vxlan --neutron-tunnel-types vxlan --ntp-server 10.5.26.10 -e ~/my_templates/ips-from-pool-all.yaml -e ~/my_templates/post-deployment.yaml
#BELOW FAILS, no ceph nodes
openstack overcloud deploy --templates /home/stack/my_templates/ -e environments/network-isolation.yaml -e /home/stack/my_templates/environments/network-environment.yaml -e /home/stack/my_templates/environments/storage-environment.yaml --control-scale 1 --compute-scale 1 --compute-flavor compute --control-flavor control --neutron-network-type vxlan --neutron-tunnel-types vxlan --ntp-server 10.5.26.10 -e /home/stack/my_templates/ips-from-pool-all.yaml -e /home/stack/my_templates/post-deployment.yaml
@atyronesmith
atyronesmith / Inspector-osp10-success
Last active January 10, 2017 14:29
introspection-debug-osp10
This is the log files from a successful OSP10 RC introspection. Note that the spinning disks are recognized by Smartd, but are not part of the information returned to ironic.
cumulus@cumulus:~$ ip link show dev swp30
32: swp30: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN mode DEFAULT group default qlen 1000
link/ether 54:ab:3a:55:44:e5 brd ff:ff:ff:ff:ff:ff
cumulus@cumulus:~$ ip link show dev swp30
32: swp30: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN mode DEFAULT group default qlen 1000
link/ether 54:ab:3a:55:44:e5 brd ff:ff:ff:ff:ff:ff
cumulus@cumulus:~$ ip link show dev swp30
32: swp30: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast master br0 state DOWN mode DEFAULT group default qlen 1000
link/ether 54:ab:3a:55:44:e5 brd ff:ff:ff:ff:ff:ff
cumulus@cumulus:~$ ip link show dev swp29
for node in $(ironic node-list | grep -v UUID| awk '{print $2}'); do swift -U service:ironic -K $IRONIC_DISCOVERD_PASSWORD download ironic-inspector inspector_data-$node; done
for node in $(ironic node-list | grep -v UUID| awk '{print $2}'); do echo "NODE: $node" ; cat inspector_data-$node | jq '.inventory.disks' ; echo "-----" ; done
ironic node-update 2d618109-2a9b-4ff5-98c8-75c344cccf08 add properties/root_device='{"serial": "5000c5008e28c5b3"}'
OS::TripleO::NodeUserData: /home/stack/templates/firstboot/wipe-disks.yaml
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Multicat Application VNFD
metadata:
template_name: transcoding
ID: multicat
vendor: Red Hat Inc
version: 1
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Transcoding Centos-7 test NSD
metadata:
ID: Simple Centos-7 test demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
@atyronesmith
atyronesmith / tpa-chain-nsd.yaml
Last active August 30, 2016 02:42
Demo chain simple
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Simple chain demo NSD
metadata:
ID: Simple chain demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template:
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Simple demo NSD
metadata:
ID: Simple demo # ID of this Network Service Descriptor
vendor: Red Hat Inc. # Provider or vendor of the Network Service
version: 1 # Version of the Network Service Descriptor
topology_template: