Skip to content

Instantly share code, notes, and snippets.

@olebowle
Created May 30, 2018 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olebowle/66280017a81ea0c4139563ab2fd5d115 to your computer and use it in GitHub Desktop.
Save olebowle/66280017a81ea0c4139563ab2fd5d115 to your computer and use it in GitHub Desktop.
ECORD
cord@cord-head-node:~$ curl http://10.20.4.11/MAAS/metadata/latest/by-id/node-fa14687a-640b-11e8-befb-50e5495a9524/?op=get_preseed
#cloud-config
apt_proxy: http://10.20.4.11:8000/
datasource:
MAAS: {consumer_key: hBrTdk5wTyghKRg2NW, metadata_url: 'http://10.20.4.11/MAAS/metadata/',
token_key: Ls5DYxFVpEuZ9tvejb, token_secret: ezqaEf4s6426hNKMKC4pvDtvEwwtZW6F}
reporting:
maas: {consumer_key: hBrTdk5wTyghKRg2NW, endpoint: 'http://10.20.4.11/MAAS/metadata/status/node-fa14687a-640b-11e8-befb-50e5495a9524',
token_key: Ls5DYxFVpEuZ9tvejb, token_secret: ezqaEf4s6426hNKMKC4pvDtvEwwtZW6F,
type: webhook}
system_info:
package_mirrors:
- arches: [i386, amd64]
failsafe: {primary: 'http://archive.ubuntu.com/ubuntu', security: 'http://security.ubuntu.com/ubuntu'}
search:
primary: ['http://archive.ubuntu.com/ubuntu']
security: ['http://archive.ubuntu.com/ubuntu']
- arches: [default]
failsafe: {primary: 'http://ports.ubuntu.com/ubuntu-ports', security: 'http://ports.ubuntu.com/ubuntu-ports'}
search:
primary: ['http://ports.ubuntu.com/ubuntu-ports']
security: ['http://ports.ubuntu.com/ubuntu-ports']
cord@cord-head-node:~$ curl http://10.20.4.11/MAAS/metadata/latest/enlist-preseed/?op=get_enlist_preseed
#cloud-config
datasource:
MAAS:
timeout : 50
max_wait : 120
# there are no default values for metadata_url or oauth credentials
# If no credentials are present, non-authed attempts will be made.
metadata_url: http://10.20.4.11/MAAS/metadata/enlist
output: {all: '| tee -a /var/log/cloud-init-output.log'}
$ grep "2018-05-30 15" /var/log/maas/clusterd.log
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 2070): <RRQDatagram(filename=pxelinux.0, mode=octet, options={'tsize': '0'})>
2018-05-30 15:17:30+0200 [ClusterClient,client] RemoteOriginReadSession starting on 54511
2018-05-30 15:17:30+0200 [ClusterClient,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f01789ff638>
2018-05-30 15:17:30+0200 [RemoteOriginReadSession (UDP)] Got error: <tftp.datagram.ERRORDatagram object at 0x7f0178ab7c90>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 2071): <RRQDatagram(filename=pxelinux.0, mode=octet, options={'blksize': '1456'})>
2018-05-30 15:17:30+0200 [-] (UDP Port 54511 Closed)
2018-05-30 15:17:30+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f01789ff638>
2018-05-30 15:17:30+0200 [ClusterClient,client] RemoteOriginReadSession starting on 48379
2018-05-30 15:17:30+0200 [ClusterClient,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f01789a8a28>
2018-05-30 15:17:30+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:17:30+0200 [-] (UDP Port 48379 Closed)
2018-05-30 15:17:30+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f01789a8a28>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49152): <RRQDatagram(filename=pxelinux.cfg/1c021b03-0d04-af05-b806-0b0700080009, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49153): <RRQDatagram(filename=pxelinux.cfg/01-1c-1b-0d-af-b8-0b, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49154): <RRQDatagram(filename=pxelinux.cfg/0A01000F, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49155): <RRQDatagram(filename=pxelinux.cfg/0A01000, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49156): <RRQDatagram(filename=pxelinux.cfg/0A0100, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49157): <RRQDatagram(filename=pxelinux.cfg/0A010, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49158): <RRQDatagram(filename=pxelinux.cfg/0A01, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49159): <RRQDatagram(filename=pxelinux.cfg/0A0, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49160): <RRQDatagram(filename=pxelinux.cfg/0A, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49161): <RRQDatagram(filename=pxelinux.cfg/0, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49162): <RRQDatagram(filename=pxelinux.cfg/default, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49162): <RRQDatagram(filename=pxelinux.cfg/default, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:30+0200 [HTTPPageGetter,client] RemoteOriginReadSession starting on 39276
2018-05-30 15:17:30+0200 [HTTPPageGetter,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a86488>
2018-05-30 15:17:30+0200 [HTTPPageGetter,client] RemoteOriginReadSession starting on 53219
2018-05-30 15:17:30+0200 [HTTPPageGetter,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a86830>
2018-05-30 15:17:31+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:17:31+0200 [-] (UDP Port 39276 Closed)
2018-05-30 15:17:31+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a86488>
2018-05-30 15:17:31+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49163): <RRQDatagram(filename=ubuntu/amd64/generic/trusty/release/boot-kernel, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:31+0200 [-] RemoteOriginReadSession starting on 49236
2018-05-30 15:17:31+0200 [-] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a865f0>
2018-05-30 15:17:33+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:17:33+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49164): <RRQDatagram(filename=ubuntu/amd64/generic/trusty/release/boot-initrd, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:17:33+0200 [-] (UDP Port 49236 Closed)
2018-05-30 15:17:33+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a865f0>
2018-05-30 15:17:33+0200 [-] RemoteOriginReadSession starting on 55171
2018-05-30 15:17:33+0200 [-] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178ad4f38>
2018-05-30 15:17:37+0200 [-] Timed during option negotiation process
2018-05-30 15:17:37+0200 [-] (UDP Port 53219 Closed)
2018-05-30 15:17:37+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178a86830>
2018-05-30 15:17:44+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:17:44+0200 [-] (UDP Port 55171 Closed)
2018-05-30 15:17:44+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178ad4f38>
2018-05-30 15:19:35+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 2070): <RRQDatagram(filename=pxelinux.0, mode=octet, options={'tsize': '0'})>
2018-05-30 15:19:35+0200 [ClusterClient,client] RemoteOriginReadSession starting on 52366
2018-05-30 15:19:35+0200 [ClusterClient,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b057a0>
2018-05-30 15:19:35+0200 [RemoteOriginReadSession (UDP)] Got error: <tftp.datagram.ERRORDatagram object at 0x7f0178ae2c90>
2018-05-30 15:19:35+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 2071): <RRQDatagram(filename=pxelinux.0, mode=octet, options={'blksize': '1456'})>
2018-05-30 15:19:35+0200 [-] (UDP Port 52366 Closed)
2018-05-30 15:19:35+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b057a0>
2018-05-30 15:19:35+0200 [ClusterClient,client] RemoteOriginReadSession starting on 50980
2018-05-30 15:19:35+0200 [ClusterClient,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b1a638>
2018-05-30 15:19:35+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:19:35+0200 [-] (UDP Port 50980 Closed)
2018-05-30 15:19:35+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b1a638>
2018-05-30 15:19:35+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49152): <RRQDatagram(filename=pxelinux.cfg/1c021b03-0d04-af05-b806-0b0700080009, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:35+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49153): <RRQDatagram(filename=pxelinux.cfg/01-1c-1b-0d-af-b8-0b, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:35+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49153): <RRQDatagram(filename=pxelinux.cfg/01-1c-1b-0d-af-b8-0b, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:35+0200 [HTTPPageGetter,client] RemoteOriginReadSession starting on 38852
2018-05-30 15:19:35+0200 [HTTPPageGetter,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b3d908>
2018-05-30 15:19:35+0200 [HTTPPageGetter,client] RemoteOriginReadSession starting on 47258
2018-05-30 15:19:35+0200 [HTTPPageGetter,client] Starting protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178adb320>
2018-05-30 15:19:35+0200 [RemoteOriginReadSession (UDP)] Final ACK received, transfer successful
2018-05-30 15:19:35+0200 [-] (UDP Port 38852 Closed)
2018-05-30 15:19:35+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0179b3d908>
2018-05-30 15:19:36+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49154): <RRQDatagram(filename=ubuntu/amd64/generic/bionic/no-such-image/boot-kernel, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:36+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49155): <RRQDatagram(filename=ubuntu/amd64/generic/bionic/no-such-image/boot-kernel.cbt, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:36+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49156): <RRQDatagram(filename=ubuntu/amd64/generic/bionic/no-such-image/boot-kernel.0, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:36+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49157): <RRQDatagram(filename=ubuntu/amd64/generic/bionic/no-such-image/boot-kernel.com, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:36+0200 [TFTP (UDP)] Datagram received from ('10.1.0.15', 49158): <RRQDatagram(filename=ubuntu/amd64/generic/bionic/no-such-image/boot-kernel.c32, mode=octet, options={'tsize': '0', 'blksize': '1408'})>
2018-05-30 15:19:41+0200 [-] Timed during option negotiation process
2018-05-30 15:19:41+0200 [-] (UDP Port 47258 Closed)
2018-05-30 15:19:41+0200 [-] Stopping protocol <tftp.bootstrap.RemoteOriginReadSession instance at 0x7f0178adb320>
cord@cord-head-node:~$ tree /var/lib/maas/boot-resources/current/
/var/lib/maas/boot-resources/current/
├── bootx64.efi
├── chain.c32
├── grub
│   └── grub.cfg
├── grubx64.efi
├── ifcpu64.c32
├── maas.meta
├── maas.tgt
├── pxelinux.0
├── syslinux -> /usr/lib/syslinux
└── ubuntu
└── amd64
├── generic
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-p
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-q
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-r
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-s
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-t
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-u
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-v
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
├── hwe-w
│   └── trusty
│   └── release
│   ├── boot-initrd
│   ├── boot-kernel
│   ├── di-initrd
│   ├── di-kernel
│   ├── root-image
│   └── root-tgz
└── hwe-x
└── trusty
└── release
├── boot-initrd
├── boot-kernel
├── di-initrd
├── di-kernel
├── root-image
└── root-tgz
34 directories, 68 files
--- a/physical-example-latest.yml
+++ b/physical-example-latest.yml
@@ -24,7 +24,7 @@
# multiple profiles. Here, specify the name of the profile file without
# the .yml extension.
# Example values: `rcord`, `ecord`, `mcord-cavium`, `opencloud`
-cord_profile: <must_be_set>
+cord_profile: ecord
# Bring up the corddev VM. This is the `build` node as specified in ansible
# inventory below.
@@ -72,19 +72,19 @@
# specify the head node user here in user@hostname format. This could also be
# `cord@headnode.site1.opencord.org` as specified later in inventory, if
# external DNS is set up.
-headnode: 'cord@10.80.1.200'
+headnode: 'cord@10.20.4.11'
# External interface device name on head node
-external_iface: 'eth2'
+external_iface: 'eth0'
# External interface ip/range on head node
-external_ip: '10.80.1.200/24'
+external_ip: '10.20.4.11/22'
# Gateway IP address
-external_gw: '10.80.1.1'
+external_gw: '10.20.4.1'
# address and port of docker registry (on the head node)
-deploy_docker_registry: "10.80.1.200:5000"
+deploy_docker_registry: "10.20.4.11:5000"
# Additional network config documentation can be found here:
# https://guide.opencord.org/appendix_network_settings.html
@@ -94,8 +94,8 @@
# key-based SSH auth is required for some portions of the build, specifically
# the 'synchronize' task. Enable this to generate a SSH key on the config node
# and have the head node trust it.
-# copy_cord_prereqs:
-# - 'config-ssh-key'
+copy_cord_prereqs:
+ - 'config-ssh-key'
# skipTags is used in MaaS options allow various part of the deployment to be skipped
#
@@ -129,18 +129,23 @@
corddev:
head:
- headnode.site1.opencord.org:
+ headnode:
# If you do not have DNS set up that will resolve the headnode address, you can
# specify the IP address here.
#
-# ansible_host: 10.80.1.200
+ ansible_host: 10.20.4.11
+
#
# Set these if you don't have SSH keys set up between the config node (where
# make runs) and the head node. Also, make sure to enable the 'config-ssh-key'
# further up in the file to create these.
#
-# ansible_user: cord
-# ansible_ssh_pass: cordpass
+ ansible_user: cord
+ ansible_ssh_pass: secret
compute:
+fabric_include_module_types: 'ixgbe'
+fabric_include_bus_types: '0000:01:00.1'
+management_include_module_types: 'r8169'
+management_include_bus_types: '0000:03:00.0'
LABEL execute
SAY Booting under MAAS direction...
SAY nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-bionic-no-such-image iscsi_target_ip=10.1.0.1 iscsi_target_port=3260 iscsi_initiator=courteous-dogs ip=::::courteous-dogs:BOOTIF ro root=/dev/disk/by-path/ip-10.1.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-bionic-no-such-image-lun-1 overlayroot=tmpfs cloud-config-url=http://10.20.4.11/MAAS/metadata/latest/by-id/node-fa14687a-640b-11e8-befb-50e5495a9524/?op=get_preseed log_host=10.20.4.11 log_port=514
KERNEL ubuntu/amd64/generic/bionic/no-such-image/boot-kernel
INITRD ubuntu/amd64/generic/bionic/no-such-image/boot-initrd
APPEND nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-bionic-no-such-image iscsi_target_ip=10.1.0.1 iscsi_target_port=3260 iscsi_initiator=courteous-dogs ip=::::courteous-dogs:BOOTIF ro root=/dev/disk/by-path/ip-10.1.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-bionic-no-such-image-lun-1 overlayroot=tmpfs cloud-config-url=http://10.20.4.11/MAAS/metadata/latest/by-id/node-fa14687a-640b-11e8-befb-50e5495a9524/?op=get_preseed log_host=10.20.4.11 log_port=514
IPAPPEND 2
LABEL execute
SAY Booting under MAAS direction...
SAY nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-trusty-release iscsi_target_ip=10.1.0.1 iscsi_target_port=3260 iscsi_initiator=maas-enlist ip=::::maas-enlist:BOOTIF ro root=/dev/disk/by-path/ip-10.1.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-trusty-release-lun-1 overlayroot=tmpfs cloud-config-url=http://10.20.4.11/MAAS/metadata/latest/enlist-preseed/?op=get_enlist_preseed log_host=10.20.4.11 log_port=514
KERNEL ubuntu/amd64/generic/trusty/release/boot-kernel
INITRD ubuntu/amd64/generic/trusty/release/boot-initrd
APPEND nomodeset iscsi_target_name=iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-trusty-release iscsi_target_ip=10.1.0.1 iscsi_target_port=3260 iscsi_initiator=maas-enlist ip=::::maas-enlist:BOOTIF ro root=/dev/disk/by-path/ip-10.1.0.1:3260-iscsi-iqn.2004-05.com.ubuntu:maas:ephemeral-ubuntu-amd64-generic-trusty-release-lun-1 overlayroot=tmpfs cloud-config-url=http://10.20.4.11/MAAS/metadata/latest/enlist-preseed/?op=get_enlist_preseed log_host=10.20.4.11 log_port=514
IPAPPEND 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment