2017-09-02 05:28
How do I get the static url for an iso?

2017-09-02 05:28
in a template?

2017-09-02 05:29
I'm having to do some non standard things to install this iso

2017-09-02 05:29
so i'm booting into sledgehammer and them i'm going to dd it

2017-09-02 05:29
but I can't figure out how to download the iso

shane
2017-09-02 05:52
@hadees - what version of the product are you using ?

shane
2017-09-02 05:53
are you trying to pull the ISO down from the provisioning server to the target server ?

shane
2017-09-02 06:03
if you are trying to pull down ISOs from your DRP server - it looks like you should be able to grab them from a similar URL: http://<drp_server>:8091/isos/ubuntu-16.04.3-server-amd64.iso

shane
2017-09-02 06:04
http://<drp_server>:8091/isos/sledgehammer-b3c09ebd5a9c228c66d8a617b6f5d10ccbe1c273.tar

2017-09-02 09:05
@hadees did you want to DD the image or is that a workaround? we've been working on some advanced integrations that use DD from Packer or similar instead of kickstart.

2017-09-02 09:07
@zehicle I ended up just uploading it as a file

2017-09-02 09:07
that worked out better anyway because it was compressed

2017-09-02 09:07
i kept running out of room if i had the whole iso

2017-09-02 09:07
although streaming the iso for dd would be awesome

2017-09-02 09:18
uploading it as file is a good idea if you just want to download it to the machines. the ISO upload is designed for the system to manipulate into boot images, not for direct retrieval

greg
2017-09-02 18:22
@shane - is correct. There are some additional things that are available too. If you are doing work in a template, you can do `{{ .ProvisionerURL }}` Which dynamically expands to `http://<drp_server>:<drp_webport>`. If you are running in sledgehammer, the cmdline for the kernel also has the provisioner Url. That is if you don?t want to hardcode things.

wdennis
2017-09-07 21:33
@greg Having an issue with my DRP install - was working fine, but then after rebooting the DRP admin node, I set a target machine for the desired bootenv, but when PXE-booted, TFTP is failing...

wdennis
2017-09-07 21:33
It's a 3.0.5 installation btw

shane
2017-09-07 21:34
@wdennis - does your pxe target get a DHCP addr from the DRP admin node ?

wdennis
2017-09-07 21:34
It actually gets one from the subnet router, which then hands it next-server

shane
2017-09-07 21:37
did you set dr-provision service to start on boot: ```sudo systemctl daemon-reload && sudo systemctl enable dr-provision```

wdennis
2017-09-07 21:37
Next-server is the DRP admin nodes IP, and file name is 'lpxelinux.0'

wdennis
2017-09-07 21:38
Yes, DRP is started and running

shane
2017-09-07 21:38
if the `dr-provision` service is running - it's easy to test the TFTP

shane
2017-09-07 21:40
from a host outside of the drp server - simply do: ```tftp <drp_server> tftp> verbose Verbose mode on. tftp> get lpxelinux.0 getting from drp_server:lpxelinux.0 to lpxelinux.0 [netascii] Received 92766 bytes in 0.1 seconds [5926590 bit/s] tftp> quit```

shane
2017-09-07 21:40
you should be able to snag that file (assuming now FW or iptables/etc entries interfering

shane
2017-09-07 21:42
if that is working - I'd suggest chucking `tcpdump` on your network interface and listen for incoming requests to make sure your next-boot hand off is working, and your pxe client is actually able to route to the drp server ```sudo tcpdump -i <network_interface_name> port 67 or port 68 or port 69```

wdennis
2017-09-07 21:44
@shane Yup, damn 'iptables' rules...

wdennis
2017-09-07 21:45
Had full DR on this node prior, that had Docker and spawned the wealth of iptables rules...

shane
2017-09-07 21:45
:slightly_smiling_face:

wdennis
2017-09-07 21:45
Bites me every time I (infrequently) reboot the DRP server...

shane
2017-09-07 21:46
what distro you using ?

shane
2017-09-07 21:46
I use an "iptables-restore" tool in Ubuntu to save/restore rules on reboots ... if I'm not using UFW

wdennis
2017-09-07 21:47
For DRP admin node, CentOS 7.3.1611

shane
2017-09-07 21:48
looks like centos has iptables-restore in yum repo too

shane
2017-09-07 21:48


wdennis
2017-09-07 21:54
Hmmm, something still awry- now I have no machines showing up in inventory!!

shane
2017-09-07 21:54
is it set to use a different bootenv than local ? ```drpcli machines show <UUID> | grep BootEnv "BootEnv": "local",```

wdennis
2017-09-07 21:56
Ah, wrong value used for DRP "--data-root="

shane
2017-09-07 21:56
are you running in "production" mode ?

shane
2017-09-07 21:56
in production mode - data-root is in `/var/lib/dr-provision`

wdennis
2017-09-07 21:56
Oh hell no :)

shane
2017-09-07 21:57
(meaning the installer mode - not really in "production") :slightly_smiling_face:

wdennis
2017-09-07 21:57
Kicking DRP off by hand

shane
2017-09-07 21:57
if you install with the ```?isolated``` flag to the installer, it drops everything in your local users home directory

shane
2017-09-07 21:58
other wise it does "production" mode - which is the ```/var/lib/dr-provision``` and ```/var/lib/tftpboot``` directories (Ubuntu-land)


wdennis
2017-09-07 21:58
Yeah I did --isolated

wdennis
2017-09-07 21:59
All is working now :sweat_smile:

shane
2017-09-07 22:00
fabulous !

wdennis
2017-09-07 22:00
@shane Are you a part of the RackN gang, or a user?

shane
2017-09-07 22:00
I'm the FNG at rackn

wdennis
2017-09-07 22:01
LOL

wdennis
2017-09-07 22:01
I'm still the FNG here at my job, 11 years in :stuck_out_tongue_winking_eye:

wdennis
2017-09-07 22:02
Well, nice to virtually meet you :)

shane
2017-09-07 22:02
You too!

wdennis
2017-09-07 22:02
Was able to meet Greg, Rob and Victor at DevOpsDays Austin this year

wdennis
2017-09-07 22:02
In person :)

shane
2017-09-07 22:02
I'm sorry you had to go through that ...

wdennis
2017-09-07 22:03
They were nice enough to this poor old chap

shane
2017-09-07 22:03
:slightly_smiling_face:

wdennis
2017-09-07 22:04
How close are we to 3.1 goodness?

shane
2017-09-07 22:06
...being the FNG... I'll I'll need to check w/ the rest of the gang - give me a few mins

shane
2017-09-07 22:06
(FNG == day 3 :slightly_smiling_face: )

wdennis
2017-09-07 22:07
Threw you right in there, huh

shane
2017-09-07 22:07
nothing like trial by fire ... I'm used to it - I've known the team for a long time - so they didn't cut me any slack

wdennis
2017-09-07 22:08
Looks like they put you on Slack instead of cutting you any... <drumroll /><cymbal />

shane
2017-09-07 22:10
doh!

wdennis
2017-09-07 22:10
Be here all week...

shane
2017-09-07 22:28
@wdennis - the unofficial answer is "about 2 weeks-ish time frame" ...

greg
2017-09-07 22:31
:slightly_smiling_face:

zehicle
2017-09-08 18:50
Lets plan a release meeting next week to review in open

2017-09-08 19:16
I would like to create a 5 node cluster like: http://node.mu/2016/12/19/5-node-nano-itx-kubernetes-tower/ but also test DigitalRebar on a 6th node - what motherboards can you recommend ?

shane
2017-09-08 20:10
Hey @maymann - there aren't any real requirements for a mobo for a Digital.Rebar provisioning node. Pretty much anything that can support a Linux distribution will work - if it'll run Ubuntu/CentOS ... etc ... you'll be just fine

shane
2017-09-08 20:10
obviously you'll need a network interface for the OS and imaging activities ...

shane
2017-09-08 20:12
with that in mind - any nano/mini/ITX mobo capable of running Linux and supporting a NIC - will work for you

shane
2017-09-08 20:25
Our pre-built binaries do have a somewhat limited support for processor architecture that we compile for - but since our binaries are implemented in Go Lang - you should be able to compile if you end up using a hardware architecture we don't currently pre-compile for.

shane
2017-09-08 20:33
currently compiled binary support is as follows: ``` bin/linux/amd64/ bin/linux/386/ bin/darwin/amd64/ bin/darwin/386/ bin/windows/amd64/ bin/windows/386/``` Notes: "darwin" being a Mac OS X platform - if you're not familiar with that designation "386" being a 32 bit build and "amd64" being a 64 bit build

2017-09-08 21:06
Hi all - just started playing with DRP and found the Ubuntu bootenvs file is outdated. On my harddrive: assets/bootenvs/ubuntu-16.04.yml -- iso doesn't exist on the mirror - 16.04.2 needs to be updated to 16.04.3 in the yml file. I'd push a patch myself but it would probably take me an hour (or more) to figure out how :(

shane
2017-09-08 21:10
Hi @aimee - welcome !

shane
2017-09-08 21:10
we have updated the repo with that change, but it hasn't yet been pushed in to a newly cut version yet

2017-09-08 21:11
zehicle: thanks! I noticed the SHA value has to be updated as well. Also for Debian the SHA is listed as BAD in the UI

shane
2017-09-08 21:12
Aimee - to short cut around the problem - you can update your current assets bootenv file with the following: ``` IsoFile: "ubuntu-16.04.3-server-amd64.iso" IsoSha256: "a06cd926f5855d4f21fb4bc9978a35312f815fbda0d0ef7fdc846861f4fc4600" IsoUrl: "http://mirrors.kernel.org/ubuntu-releases/16.04/ubuntu-16.04.3-server-amd64.iso"```

shane
2017-09-08 21:12
this change has been made in `master`, though - so the next release will have it

2017-09-08 21:14
Thanks zehicle. I still have some coding know-how left... haven't completely gone over to the sysadmin/management dark side. (LOL). I have to say I'm liking DRP a lot - at least I understand more of it compared to MAAS (blech), Foreman, RackHD. I'm looking forward to using it more and maybe even contributing if I can dust off my hacking skills.

shane
2017-09-08 21:14
awesome! we look forward to helping you along your journey ... and look forward to any contributions back to DRP you can help with :slightly_smiling_face:

greg
2017-09-08 21:15
And I like the complement. Our goal has been to be simple

2017-09-08 21:16
Thanks zehicle - it will be an interesting journey - hoping to use DRP along with the Moby Project's Infrakit to manage/provision my cloud native POC lab.

greg
2017-09-08 21:17
Also as a reminder. We are generally slack based but have a bot that relays from IRC and gitter to slack and back. The user IRC and gitter see talking is zehicle, but that is a munging. Like this is @shane and @greg right now. :slightly_smiling_face:

2017-09-08 21:17
I was just going to ask if you were on slack - noticed the relay. I don't have slack installed on this machine - gee I'd have to roll across my office to use slack...

greg
2017-09-08 21:20
We can hook you up if you want slack access

2017-09-08 21:20
Hopped onto Gitter but yes, please, hook me up with Slack

greg
2017-09-08 21:22
send an email - with your email. :slightly_smiling_face:

2017-09-08 21:22
Awesome - thanks gentlemen!

aimeeu
2017-09-08 21:28
has joined #community201709

shane
2017-09-08 21:29
@aimeeu ... welcome ... :slightly_smiling_face:

aimeeu
2017-09-08 21:31
Thanks @shane

rackn_eng
2017-09-08 22:52
has joined #community201709



2017-09-09 18:42
testing new Eng user from Gitter

2017-09-09 18:42
seems to go to both #community and #community1

zehicle
2017-09-09 18:43
working on it

2017-09-09 18:54
I've got the connection from Gitter to Slack working

2017-09-09 18:54
checking from alias

shane
2017-09-09 18:55
woot!

zehicle
2017-09-09 18:55
Slack to IRC is not working yet...

shane
2017-09-09 18:55
boo

zehicle
2017-09-09 18:55
mostly because I messed up the auth... soon

2017-09-11 13:41
I have a few nube questions. I have been reading the docs and am excited to use Digital Rebar. Its nice! Question. If I wanted to bind user access to say a local LDAP or AD using SAML or just LDAP is there a way to do that?

shane
2017-09-11 14:32
hey cbitter78_twitter -welcome !

2017-09-11 14:32
Thanks

shane
2017-09-11 14:36
What is your use case for the LDAP/AD auth - are you looking to build a self-service solution for provisioning - or are you looking to control auth to multiple provisioning endpoints ?

2017-09-11 14:37
More of the self service model Where in I can have a set of inventory in a data center and then via access / roles / etc and perhaps bind those to AD users / groups

shane
2017-09-11 14:37
Sure - makes sense.

2017-09-11 14:37
so I can give the Dev group access to racks 2 - 3 and prod racks 4 - 10

shane
2017-09-11 14:38
Presumably you're looking at the Digital Rebar Provisioning (DRP) solution right now ?

2017-09-11 14:38
yes.

shane
2017-09-11 14:38
The current release version is 3.0.5 - have you played with it yet - and if so, what version ?

2017-09-11 14:38
Am am doing read the docs discovery right now. ;)

shane
2017-09-11 14:39
we're just about to release 3.1 in to the community (probably another 2 weeks) ...

shane
2017-09-11 14:39
the LDAP/AD auth solution is a current near term road map feature - but that will be a RackN enterprise feature

2017-09-11 14:39
Cool.

2017-09-11 14:40
another nube question. RackN Enterprise is Digital Rebar Paid?

shane
2017-09-11 14:40
we definitely have it on the roadmap, and it's a frequently asked feature both for Self Service and mult-endpoint management

2017-09-11 14:42
Is there a better forum to ask questions about RackN?

shane
2017-09-11 14:43
do you use Slack ? we can give you a slack invite, and we can drop to a D.M.

2017-09-11 14:44
I do use Slack

2017-09-11 14:48
you can send the invite to cbitter78@aol.com


rackn_eng
2017-09-11 15:20
testing IRC to Slack and Gitter

shane
2017-09-11 15:27
@cbitter78_twitter - invite sent, sorry for the delay ...

cbitter78
2017-09-11 15:28
has joined #community201709

lae
2017-09-11 15:29
there's a native Slack IRC gateway, if an admin enables it for this server

lae
2017-09-11 15:29
(^ followup to discussion with @aimeeu on friday)

2017-09-11 16:16
morning, I have a quick question about provisioning, does Rebar support Cloud-Init?

shane
2017-09-11 16:52
hey Telmo - what are you trying to do with cloud-init ? what's the use case ?

shane
2017-09-11 16:54
we do have some current support for cloud-init, which is going to emerge in a release or two - at the moment it's not very well productized, but we're getting there

shane
2017-09-11 16:54
we're hoping you can help out with your use case - to help guide where we go with it

2017-09-11 17:14
we are looking into provisioning alternatives and I am working on the market analysis for product capabilities. The use case is to have "Code as Infrastructure" that is portable across solutions. Having the Cloud-Init scripts in a CVS repository where host or hosts groups specific configurations that can be accessed by physical provisioning and "Cloud Provisioning" so hosts/instances build are as identical as possible

zehicle
2017-09-11 23:25
@Telmo, what other tools are you using? Ansible? Terraform? Chef?

zehicle
2017-09-12 02:21

shane
2017-09-12 02:32
10 please

zehicle
2017-09-12 22:50
I'll have them at Hashicorp Fest next week if anyone is in town!

zehicle
2017-09-12 22:51
We're looking for people who want to help beta test our Terraform to Metal provider

2017-09-13 03:30
Hello! How do I update DR without loosing all current settings and nodes? Thank you.

shane
2017-09-13 03:31
Hey lion_kg_twitter - welcome

shane
2017-09-13 03:31
what version are you currently running - and what version are you looking to upgrade to ?

2017-09-13 05:08
shane, where can I see current version?

shane
2017-09-13 13:14
lion_kg_twitter - if you are running Digital Rebar Provision - then you can get the version via `drpcli version` - if you have a Digital Rebar v2 server - you'll have a "rebar" command - which would be `rebar version`. Your binaries may be installed in different locations - depending on how you did the original install.

2017-09-14 16:52
just starting out..do i need both a V2 and a V3 (DPR) servers? or could i just start out with v3?

shane
2017-09-14 16:53
@smartekb - highly recommend you ONLY use DRPv3 server ...

shane
2017-09-14 16:53
we are very close to releasing the DRPv3 ver 3.1 release - likely next week - right now - the current released version is 3.0.5

2017-09-14 16:55
thx Shane. I'm able to pxe boot a VM using sledgehammer...fter the VM boots up, have not been able to get it to provision an OS (after setting its bootenv to CentOS)

shane
2017-09-14 16:57
did you load the ISO ? you need to run `drpcli bootenvs uploadiso <iso_name>`

shane
2017-09-14 16:58
by default DRP is distributed without any "content" - you need to initialize/add content to be able to deploy it

shane
2017-09-14 17:02
which version are you running? (`drpcli version`)

2017-09-14 17:03
i have the iso..it shows all green in the ux. I'm running version 3.05

2017-09-14 17:03
i'll re-run that command ago, but i seem to have issues with the uploadiso command

shane
2017-09-14 17:04
can you provide the command/output of your uploadiso attempt ?

shane
2017-09-14 17:06
in 3.0.5 - you should have an "assets" directory and a "tools" directory in the base working directory when you did the install

2017-09-14 17:07
i do have those

shane
2017-09-14 17:07
if you do: ```cd assets ../tools/discovery-load.sh ``` that is a helper script (needs to run from the `assets` directory) that will load content using the YAML definition files in the `assets/bootenvs` directory

shane
2017-09-14 17:08
you can also JUST load a specific piece of content via: `drpcli bootenvs install bootenvs/centos-7.3.1611.yml` for example

shane
2017-09-14 17:09
that `tools/discovery-load.sh` is just a helper - which only runs that one command for different content

shane
2017-09-14 17:10
once the bootenvs load is complete - you should see it in the green UI

shane
2017-09-14 17:13
once you have content loaded ... you need to: * *you must* also add the Discovery and Sledgehammer bootenvs - they're required * make sure you have a Subnet defined (via UI "Subnets" or "drpcli subnets" commands * boot a machine w/ PXE enabled that hits the DRP endpoint (your provisioning server) * then assign a "bootenv" to the machine * reboot your server - and it should kick the PXE provisioning process for with the given

2017-09-14 17:15
Version: v3.0.5-0-2b326b01a5ef733f3fe599cac2c7aaa6e914b17f

shane
2017-09-14 17:19
yep - the above process should be good for your version

shane
2017-09-14 17:19
one note - there is a small bug in the content - for Ubuntu 16.04 - it tries to get 16.04.2 which is replaced by 16.04.3 in the repos

shane
2017-09-14 17:19
centos will work fine

2017-09-14 17:20
`root@cn-ddev03:/opt/drp/assets# ../tools/discovery-load.sh No assets directory to work from. root@cn-ddev03:/opt/drp/assets# ls bootenvs isos profiles startup templates root@cn-ddev03:/opt/drp/assets# ls bootenvs/ centos-6.8.yml debian-8.yml esxi-6u2.yml lk-sshd.yml redhat-7.0.yml ubuntu-14.04.yml centos-7.3.1611.yml discovery.yml lk-k8s-master.yml local.yml scientificlinux-6.8.yml ubuntu-16.04.yml debian-7.yml esxi-650a.yml lk-k8s-node.yml redhat-6.5.yml sledgehammer.yml windows-2012r2.yml`

2017-09-14 17:20
that was terrible..lemme clean that up

shane
2017-09-14 17:21
oops .... sorry, run that from the parent directory of "assets" ... :slightly_smiling_face: my fault

2017-09-14 17:21
`/opt/drp/assets# ../tools/discovery-load.sh No assets directory to work from.`

shane
2017-09-14 17:29
is that discovery load working for you now ?

2017-09-14 17:31
it did..with a couple errors about local not being available..i'm going to the ux to find out

2017-09-14 17:49
root@cn-ddev03:/opt/drp# drpcli bootenvs uploadisos centos-7.3.1611 Access CLI commands relating to bootenvs Usage: drpcli bootenvs [command]

2017-09-14 17:49
seems there is no upoadisos command in the binary?

shane
2017-09-14 17:50
if you don't have the ISO local to your `drpcli` command - use the `drpcli bootenvs install /opt/drp/assets/bootenvs/centos-7.3.1611.yml`

shane
2017-09-14 17:51
if you have the ISO local - do: `drpcli isos upload <ISO_FILE> as centos-7.3.1611`

2017-09-14 17:57
context deadline exceeded ..does that mean a timeout?

shane
2017-09-14 18:11
Yes, timeout with download/upload

shane
2017-09-14 18:12
Is your internet bandwidth constricted?

shane
2017-09-14 18:14
If so, you might download the iso separately, then, use the "drpcli isos upload...." command

2017-09-14 18:24
i have the ubuntu 16.04 iso downloaded locally..can i use the isos upload command to bypass the bug?

shane
2017-09-14 18:29
Yes, use the "isos" command

shane
2017-09-14 18:30
In a short bit, I can provide you the yaml with the updated content for Ubuntu - at lunch now....

2017-09-14 18:31
cool..thx

2017-09-14 18:31
`root@cn-ddev03:/opt/drp/assets# drpcli bootenvs install bootenvs/centos-7.3.1611.yml 2017/09/14 14:30:21 Installing bootenv centos-7.3.1611-install 2017/09/14 14:30:21 Uploading isos/CentOS-7-x86_64-Minimal-1611.iso to DigitalRebar Provision Error: Failed to fetch bootenv: centos-7.3.1611-install: context deadline exceeded `

2017-09-14 18:32
timing out..even on a local iso upload

shane
2017-09-14 18:33
Is your drpcli command running on your endpoint you are uploading content to?

2017-09-14 18:33
yea

shane
2017-09-14 18:33
What is the OS distro/version of your server

2017-09-14 18:34
ubuntu 16.04

shane
2017-09-14 18:40
Can you provide filesystem space info (df - hl)

shane
2017-09-14 18:51
...and did you install with "--isolated" mode - or production mode (i.e. not specifying the "--isolated" flag)?

2017-09-14 18:53
production mode

2017-09-14 18:54
/dev/mapper/cn--ddev03--vg-root 41G 25G 15G 64% /

shane
2017-09-14 19:11
smartekb - 2 follow up questions: 1. what type of drives is your DRP install (default location would be /var/lib/dr-provision - if you didn't relocate it) 2. can you provide the output from this quick DD command? `time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"; rm ddfile` (running from the same directory/filesystem as your DRP install location (eg /var/lib/dr-provision)

2017-09-14 19:36
root@cn-ddev03:/var/lib/dr-provision# time sh -c "dd if=/dev/zero of=ddfile bs=8k count=250000 && sync"; rm ddfile 250000+0 records in 250000+0 records out 2048000000 bytes (2.0 GB, 1.9 GiB) copied, 7.10381 s, 288 MB/s real 0m14.448s user 0m0.068s sys 0m6.828s

shane
2017-09-14 19:39
We believe you _might_ be hitting a timeout value in the drpcli client - if you're up for testing our latest version (not "stable") - then this issue very well might go away ....

shane
2017-09-14 19:40
if you install again from "tip" - with production mode - then it'll update the existing version .... the only thing you might need to do is re-enable any subnet(s) you might have created previously

shane
2017-09-14 19:41
there is a new version feature that lets you "enable"/"disable" subnets, and the new "tip" version sets a subnet to "disable"

2017-09-14 19:42
thats what I did earlier today :smile:

2017-09-14 19:45
i'l do again

shane
2017-09-14 19:45
can you please run "drpcli version" ? you showed me version 3.0.5 previously

shane
2017-09-14 19:46
the "tip" will output "3.0.4-tip-...." number - which _looks_ older than 3.0.5 - but it's not :slightly_smiling_face:

2017-09-14 19:56
Version: v3.0.5-0-2b326b01a5ef733f3fe599cac2c7aaa6e914b17f

shane
2017-09-14 19:56
right - that's older than "tip" version - the changes in "tip" should have a fix in it for you

shane
2017-09-14 19:57
but if you do "drpcli version" with "tip" - it'll show a version string of "3.0.4-tip .... " though it looks older - it's actually a newer version :slightly_smiling_face:

2017-09-14 20:43
how do i do this update? wat ive been doing is not working..i'm still showing 3.05

shane
2017-09-14 20:49
Change the curl url to "tip", instead of "stable"

greg
2017-09-14 21:21
and add --drp-version=tip

greg
2017-09-14 21:22
```curl -fsSL https://raw.githubusercontent.com/digitalrebar/provision/tip/tools/install.sh | bash -s -- --isolated install --drp-version=tip```

shane
2017-09-14 21:24
except ... don't use "--isolated" since you're doing a "production" install :slightly_smiling_face:

greg
2017-09-14 21:28
:slightly_smiling_face: oops.. Thanks

greg
2017-09-14 21:29
Okay better version: ```curl -fsSL https://raw.githubusercontent.com/digitalrebar/provision/tip/tools/install.sh | bash -s -- --drp-version=tip install```

2017-09-14 22:03
Greetings folks - can I get some details on how to build an OS install template? It's not super clear to me with the docs for DRP and if it helps I just need CentOS 7

shane
2017-09-14 22:04
@edolnx - if you are fine with starting with a stock "minimal" install - you can use the "ce-centos" template from the community content repo

2017-09-14 22:06
That should be fine. Thanks!

2017-09-14 22:06
I can at least look at it to learn/modify as I go

shane
2017-09-14 22:06
are you running 3.0.5 ? (`drpcli version`)

2017-09-14 22:07
Stable, yeah `Version: v3.0.5-0-2b326b01a5ef733f3fe599cac2c7aaa6e914b17f`

shane
2017-09-14 22:10
did you do the "discovery-load.sh" - or insure you installed the Sledgehammer an Discovery bootenvs already ?

2017-09-14 22:11
Yes, did the discovery-load

shane
2017-09-14 22:11
cool - did you do an "isolated" install mode or "production" ?

2017-09-14 22:12
I did not do isolated, so production?

shane
2017-09-14 22:12
:slightly_smiling_face: yep

2017-09-14 22:12
I've also had to modify the systemd script to set the IP address and certs correctly

shane
2017-09-14 22:12
ok - cool

shane
2017-09-14 22:12
did you're content end up installed in /var/lib/tftpboot ?

2017-09-14 22:13
I think so, my target node booted is was discovered

shane
2017-09-14 22:16
`drpcli bootenvs install assets/bootenvs/centos-7.3.1611.yml` (Need to run that from the base directory you did the original install in - or give the fully qualified path to the "assets" directory)

shane
2017-09-14 22:17
if you have a Centos 7 minimal ISO file on hand already - you can use the "isos" command to just upload the ISO - without doing the download again

shane
2017-09-14 22:18
`drpcli isos upload <ISO_FILE> as centos-7.3.1611`

2017-09-14 22:18
`[kumulus@koiab dr-provision-install]$ drpcli bootenvs install assets/bootenvs/centos-7.3.1611.yml Error: Error determining whether bootenvs dir exists: stat bootenvs: no such file or directory`

shane
2017-09-14 22:23
sorry edolnx - you need to run that command from the "assets" directory - so: ```cd <somewhere>/assets drpcli bootenvs install bootenvs/centos-7.3.1611.yml```

2017-09-14 22:24
That looks better!

shane
2017-09-14 22:24
woot !!

2017-09-15 17:44
i must say, the new interface UI is pretty

2017-09-15 17:44
but does it really phone home?

shane
2017-09-15 17:46
thx! our UI guys will be happy to hear - just a note ... that UI is ... definitely ... still in "Alpha" stage - there are lots of sharp edges that can cut you

2017-09-15 17:47
i'm bleeding all over already

shane
2017-09-15 17:47
definitely don't recommend relying on it yet :slightly_smiling_face:

2017-09-15 17:48
but the url bar appears as if we are hitting rackN..that's not true, is it?

shane
2017-09-15 17:48
the UI is running as a SaaS/Portal in our cloud environment

shane
2017-09-15 17:48
the DRP endpoint (your provisioning server/service) does NOT reach out to the SaaS portal - we do not phone home from DRP endpoint

2017-09-15 17:49
just looks like?

shane
2017-09-15 17:49
however - by accessing the SaaS/Portal from your browser, we can transfer content from the SaaS/Portal to your DRP endpoint

shane
2017-09-15 17:49
the Saas/Portal is hosted on our side

shane
2017-09-15 17:50
since this isn't released yet - we haven't published the docs and pretty pictures that help explain the flow

shane
2017-09-15 17:51
(note my edit: "by accessing the SaaS/Portal from your browser")

shane
2017-09-15 17:55
access and use of the Saas/Portal goes like this: * user hits DRP Endpoint UI * redirected to RackN SaaS/Portal * DRP endpoint never reaches _out_ to the SaaS/Portal * content transfers happen as a PULL from the SaaS/Portal to your browser * content is pushed from your browser to DRP endpoint at your request/authorization * that's how content is updated via transfer from the SaaS/Portal to your DRP endpoint

shane
2017-09-15 17:55
does that help to make a little more sense on the flow and access ?

2017-09-15 17:56
the redirection happens by itself

2017-09-15 17:57
?

shane
2017-09-15 17:59
well .. you have to open up the URL and point to your DRP Endpoint ... (for example if it's running locally on your laptop: https://127.0.0.1:8092 ) - then, it redirects to the (not official resting place) https://rackn.github.io/provision-ux/ location

2017-09-15 19:28
@rackneng so, what are the solutions that will be available for organizations who need a 100% on-prem solution and want a pretty UI?

greg
2017-09-15 19:34
The UI can be served from the DRP instance itself and can be packaged for that. Since we expect high churn in the short term, we are starting with a web accessed solution.

greg
2017-09-15 19:36
The only current requirement is that the browser being used to manage DRP has access to the internet (web proxies work), but we understand the potential need for completely internalized solution.

2017-09-15 19:50
thanks, will keep that in mind as we begin/continue our evaluation

2017-09-15 20:46
so, is it possible to have it NOT redirect?

shane
2017-09-15 20:47
don't go to the UI url :slightly_smiling_face:

2017-09-15 20:47
ha!

shane
2017-09-15 20:49
the 3.0.5 "green ui" that used to be there is deprecated - the new UI will be "the way forward" ... in the future there may be an option to provide the new UI as fully embedded in the DRP endpoint side - and not a SaaS/Portal hosted by rackn - however, that's not the case for now

shane
2017-09-15 20:49
if the community wishes to build/maintain a UI for the DRP endpoint - they certainly are welcome to

shane
2017-09-15 20:50
we'd happily welcome any commits in that respect

2017-09-16 18:55
I'd add that we believe strongly in decoupling the UX from the DRP service & CLI. The design for the service is to keep it very small, stable and focused. We are seeing use cases where 1000s of DRP endpoints are deployed for embedded edge or top of rack infrastructure. Since the service is API driven, there's no need to bundle UI code into the service.

2017-09-16 21:54
Can I get an invite to the slack channel?

shane
2017-09-16 22:39
Hey @stanchan - you can sign up at https://www.rackn.com/support

2017-09-17 00:33
@stanchan I've got your email - invite sent

zehicle
2017-09-18 15:29
NOTE: Changes to Swagger on Friday have caused build failures. We are investigating...

carl
2017-09-18 19:05
has joined #community201709

2017-09-18 21:45
if i wanted to deploy windows, what would i have to do to the windows ISO to get windows installation?

lae
2017-09-18 22:11
`drpcli bootenvs update some-os-install - < bootenvs/some-os-install.yml` should refetch the "ISO" if the IsoUrl changed, right? in the context of tarballs. I note ce-sledgehammer has no hash

greg
2017-09-18 22:21
I?ll need to answer these a little later. I?ll come back to it

lae
2017-09-18 22:22
I meant to type IsoUrl/IsoFile instead of just IsoUrl

lae
2017-09-18 22:22
but alright

zehicle
2017-09-18 23:37
@lae updating the bootenv does not pull the iso

zehicle
2017-09-18 23:38
by design, Provision is push only. it never reaches out by itself. There is an upload for the master (soon 3.1) CLI that will pull then push

lae
2017-09-18 23:45
yeah, I figured updating wouldn't/shouldn't pull the iso, but yeah I didn't see a relevant alternative

lae
2017-09-18 23:48
don't have the need to upload a new iso right now since I just wiped/recreated a bootenv but - is the workflow supposed to be `drpcli bootenvs update os-install - < bootenvs/os-install.yml` and then `drpcli bootenvs uploadiso os-install`?

zehicle
2017-09-19 01:57
@lae yes

zehicle
2017-09-19 01:57
that's the new CLI command that uses the information from the bootenv to pull the ISO

2017-09-19 03:13
@smartekb_twitter there are a few ways to do Windows deploys - generally, it's something we discuss on a call b/c it's environment & process specific.

greg
2017-09-19 03:46
@lae is correct. Changing the IsoURL, IsoFile, and IsoSha in the bootenv will make the bootenv unavailable until the iso matching those values is uploaded.

greg
2017-09-19 03:48
@smartekb_twitter - what @zehicle said. There are many ways and we don?t support any specific one openly today. We have many custom ways that we?ve worked through, but nothing consistent enough to support for the community. Hopefully that will change with some time and users.

wdennis
2017-09-20 01:25
Hi @greg @zehicle - interested in learning more about the Terraform integration; may have a use for it...

greg
2017-09-20 01:27
:slightly_smiling_face: I hope to have a video shortly and some information. We are almost there.

wdennis
2017-09-20 01:29
No rush ;)

greg
2017-09-20 01:29
the provider will manipulate machines in DRP from a pool. It will allow you to transition machines through install process.

greg
2017-09-20 01:33
You will be able to do something this: ``` provider "drp" { api_user = "rocketskates" api_password = "r0cketsk8ts" api_url = "https://147.75.73.159:8092" } resource "drp_instance" "one_linux_node" { count = 1 stage = "centos-7.3.1611-install" description = "Linux node installed by centos 7.3" } ```

greg
2017-09-20 01:34
That will take a machine and install centos on it.

2017-09-20 14:00
hi all, i have a problem with a error message. from my point of view, the problem isn't a failure, it's a warning, may be. can anybody explain if i'm wrong or the message not fits? thanks!

2017-09-20 14:00
TASK [wait for admin convergence [1 upto 20 minutes]] ************************** fatal: [10.241.236.92]: FAILED! => {"changed": true, "cmd": ["/root/digitalrebar/deploy/scripts/wait_for_rebar.sh"], "delta": "0:20:09.411997", "end": "2017-09-20 16:06:32.287249", "failed": true, "rc": 1, "start": "2017-09-20 15:46:22.875252", "stderr": "Took too long for system deployment to appear", "stdout": "Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-\n : manager\nThis system is receiving updates from RHN Classic or Red Hat Satellite.\nPackage epel-release-7-7.noarch already installed and latest version\nNothing to do\nLoaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-\n : manager\nThis system is receiving updates from RHN Classic or Red Hat Satellite.\nMetadata Cache Created\nLoaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-\n : manager\nThis system is receiving updates from RHN Classic or Red Hat Satellite.\nPackage jq-1.5-1.el7.x86_64 already installed and latest version\nPackage curl-7.29.0-35.el7.x86_64 already installed and latest version\nNothing to do\nWaiting on system deployment", "stdout_lines": ["Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-", " : manager", "This system is receiving updates from RHN Classic or Red Hat Satellite.", "Package epel-release-7-7.noarch already installed and latest version", "Nothing to do", "Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-", " : manager", "This system is receiving updates from RHN Classic or Red Hat Satellite.", "Metadata Cache Created", "Loaded plugins: product-id, rhnplugin, search-disabled-repos, subscription-", " : manager", "This system is receiving updates from RHN Classic or Red Hat Satellite.", "Package jq-1.5-1.el7.x86_64 already installed and latest version", "Package curl-7.29.0-35.el7.x86_64 already installed and latest version", "Nothing to do", "Waiting on system deployment"], "warnings": []} to retry, use: --limit @digitalrebar.retry

2017-09-20 14:01
i see no reason for a fatal failure and a script brake.

greg
2017-09-20 20:01
The V3.1.0 release is out. Use the STABLE link to get the images.

greg
2017-09-20 20:01
the v3.1.0 link doesn?t have the correct version in the string. I has the right code, I think.

greg
2017-09-20 20:01
- FYI ^^

2017-09-20 20:03
i have sync my local git today and copy the code to the target server. i think this must be the actual version.

greg
2017-09-20 20:04
@theta-my - you are using DRv2. My post was about DRP (Digital Rebar Provision). Sorry, I wasn?t clear.

2017-09-20 20:04
ok,

zehicle
2017-09-20 20:05
@zehicle uploaded a file: https://rackn.slack.com/files/U02DHRR2L/F775N9WNA/v3_1_release_feature_list.md and commented: we're working to setup the community processes so that this becomes a community document

lae
2017-09-20 20:08
:+1:

lae
2017-09-20 20:08
we could use some stickers :joy:

greg
2017-09-20 20:09
@lae - direct message me your address and I?ll see what I can do.

2017-09-20 20:25
how do i download iso's again? example debian 8

greg
2017-09-20 20:26
Which release?

greg
2017-09-20 20:26
in DRP v3.1.0 - ```drpcli bootenvs uploadiso <bootenv name>```

greg
2017-09-20 20:27
in either DRP v3.1.0 or v3.0.5 ```drpcli bootenvs install bootenvs/debian.8... ```

lae
2017-09-21 00:35
@greg is incrementer useful for an end user?

lae
2017-09-21 00:54
anyway, pushed an update for 3.1.0 to the aur package for drpcli

lae
2017-09-21 01:00
so I ran into a little bit of a snag using `uploadiso` (I think this command should give some feedback indicating success and not just return), but that's because I removed `IsoSha256` from my bootenv, but updating the bootenv didn't remove that key and so it kept the old one/couldn't verify the new tarball

lae
2017-09-21 01:01
just leaving `IsoSha256` empty in the bootenv file worked though

wdennis
2017-09-21 01:31
Congrats RackN team on another release! Will have to update and play with it tomorrow...

wdennis
2017-09-21 01:33
How does hosted UI work - http://xxx.rackn.com URL?

shane
2017-09-21 01:39
If you hit port 8082 on your 3.1 endpoint, you'll be redirected to the hosted endpoint

shane
2017-09-21 01:40
Via https

lae
2017-09-21 01:57
that's pretty spiffy

greg
2017-09-21 01:57
@lae it should not get filled in if empty. Legacy bootenvs are missing it. Once I can update sledgehammer the base bootenvs will have Shas

lae
2017-09-21 01:58
nah this was a custom bootenv I built for our appliance operating systems

greg
2017-09-21 01:58
Okay 310 doesn't fill it anymore

lae
2017-09-21 01:59
I had added `IsoSha256` while troubleshooting why the bootenv wasn't updating - then got rid of it when I realised how to use uploadiso

lae
2017-09-21 01:59
but the previous value was stuck until I had added `IsoSha256` to the yaml but left it empty (which then removed it from the installed bootenv)

lae
2017-09-21 02:01
anyway, good job on the UI, it's looking a lot better (I can actually add profiles for those bootenvs with requiredparams now :smile: )

lae
2017-09-21 02:07
input's kind of cut off here though (and maybe other similar dialogs) https://up.lae.is/i/1505959595-ecc06.png

zehicle
2017-09-21 02:24
It's a reference example

2017-09-21 14:25
i've deployed a cent-os-7 to a host..is there a default login/password?

shane
2017-09-21 14:25
usually the recommended practice would be to inject an SSH key

2017-09-21 14:26
prolly missed that in the docs..could u send me where i can find that?

greg
2017-09-21 14:31
Shane is correct. The root password is set by a parameter it defaults to RocketSkates

2017-09-22 06:04
Hi

2017-09-22 14:21
hello

shane
2017-09-22 14:41
Howdy

2017-09-22 14:45
can someone show me/point me to how to inject ssh key ? cos the root/RocketSkates is not working for me to login...I'm installing centos-7

shane
2017-09-22 15:25

wdennis
2017-09-22 19:05
@shane Having a bit of a problem upgrading from 3.0.5 to 3.1.0

greg
2017-09-22 19:06
Yeah - @shane has been finding some issues.

greg
2017-09-22 19:07
What are you seeing? Did you have a ?production? install?

wdennis
2017-09-22 19:09
I ran the curlbash in my existing "drp" dir where my prior 3.0.5 install was (isolated) - it seemed to run OK, but when I restated the dr-provision binary, I see I'm still on 3.0.5 :hushed:

greg
2017-09-22 19:09
add --force

greg
2017-09-22 19:09
to make it download the image.

greg
2017-09-22 19:09
but before you do that.

wdennis
2017-09-22 19:10
To the bash flags?

greg
2017-09-22 19:10
Yeah, but wait a moment

wdennis
2017-09-22 19:10
Standing by

greg
2017-09-22 19:10
Can you show my your curl bash command?

shane
2017-09-22 19:10
Give me a few mins

greg
2017-09-22 19:11
even betterer

shane
2017-09-22 19:11
Eating lunch - I have some fixes to install.sh

wdennis
2017-09-22 19:12
I too will eat the lunch then


greg
2017-09-22 19:13
Once Shane is happy, you will want to change stable to tip in the curl part and probably add --force to the bash part. You will still download stable bits, but you will get the fixed install.sh.

wdennis
2017-09-22 19:14
Ah, makes sense

wdennis
2017-09-22 19:52
@shane Ready to go when you are :)

shane
2017-09-22 19:52
copy

shane
2017-09-22 19:53
You currently have a 3.0.5 install in "production" mode (or "system" mode) - correct ?

shane
2017-09-22 19:53
and you want to upgrade to current 3.1.0 mode

shane
2017-09-22 19:53
just want to make sure we're on the same page on what you need to do

wdennis
2017-09-22 19:56
No, it's in 'isolated' mode

wdennis
2017-09-22 19:56
Want to upgrade to 3.1 in isolated

shane
2017-09-22 19:56
ah! much easier path ... :slightly_smiling_face:

wdennis
2017-09-22 19:57
That sounds good :)

shane
2017-09-22 20:47
ok @wdennis -- with the following notes: * stop dr-provision server first if it's running (install.sh will bomb out if it's running) * backup your content first ... just in case :slightly_smiling_face: Give this a go: ```export VER=tip curl -fsSL https://raw.githubusercontent.com/digitalrebar/provision/${VER}/tools/install.sh | bash -s -- install --isolated --upgrade``` This will download the current "tip" version of `install.sh`, but perform a `stable` version upgrade (since `--drp-version-VER` isn't specified)

wdennis
2017-09-22 20:51
Backup in progress ;)

wdennis
2017-09-22 21:08
Here we go...

wdennis
2017-09-22 21:11
Just sitting at "Installing Vesion stable..." -- that expected?

shane
2017-09-22 21:11
it's likely downloading content - you have a slow network connection ??



shane
2017-09-22 21:12
so - it's downloading

wdennis
2017-09-22 21:12
Not super slow - on commercial cable internet

wdennis
2017-09-22 21:14
Ok, finally completed

wdennis
2017-09-22 21:17
All above done....

wdennis
2017-09-22 21:18
Now start DRP the way I used to?

shane
2017-09-22 21:18
yep

wdennis
2017-09-22 21:19
Gah - still says Version: v3.0.5-0-....

greg
2017-09-22 21:21
make sure you didn?t copy drpcli and dr-provision into /usr/local/bin or /usr/bin or somewhere.

wdennis
2017-09-22 21:22
No, I'm running it from cwd which is the isolated dir I installed into



wdennis
2017-09-22 21:28
So I think the problem is that my binary in ./bin/linux/amd64/dr-provision is dated July 3 2017

shane
2017-09-22 21:29
in the base directory you did the install - run the binary that was installed to `bin/linux/amd64/dr-provision` (assuming 64 bit linux, of course)

shane
2017-09-22 21:29
that should have been updated :slightly_smiling_face:

greg
2017-09-22 21:29
hmmm - it exited early - it looks like

wdennis
2017-09-22 21:30
They are symlinks

greg
2017-09-22 21:31
Try this: ``` rm -f dr-provision.zip rm -f dr-provision.sha256 rm -f sha256sums ```


greg
2017-09-22 21:31
Then do the install command again, but add `--debug` as well to the bash section

wdennis
2017-09-22 21:32
@greg OK, done

wdennis
2017-09-22 21:32
Ack

wdennis
2017-09-22 21:36
Looks like it is downloading 'dr-provision.zip'

wdennis
2017-09-22 21:38
But, I got nothing happening when I do an 'iftop'

greg
2017-09-22 21:38
Is the install script still running?

wdennis
2017-09-22 21:40
Yes, but looks like I may have a local network issue... 44% packet loss measured :white_frowning_face:

wdennis
2017-09-22 21:41
Trying to resolve that, stand by

wdennis
2017-09-22 21:45
Ok, looks better, retrying

wdennis
2017-09-22 21:46
Looks like the DRP server is talking to AWS S3 now :)

wdennis
2017-09-22 21:47
Working but only pulling 50Kb/sec :disappointed:

wdennis
2017-09-22 21:50
OK, file date on dr-provision binary is 9/20/2017 now

wdennis
2017-09-22 21:52
Yay, v3.1.0-0-... on startup now :slightly_smiling_face:

wdennis
2017-09-22 21:54
How to set the DRP auth token for the remote UI?

greg
2017-09-22 21:58

greg
2017-09-22 21:58
should redirect you to an auth.

wdennis
2017-09-22 21:59
@greg @shane Looks like I have to set up the ISOs, machines, etc all over again?

wdennis
2017-09-22 21:59
I did get the remote UI

wdennis
2017-09-22 21:59
And am in it

wdennis
2017-09-22 22:00
But all my machines, ISOs, etc are not showing up

greg
2017-09-22 22:00
umm

greg
2017-09-22 22:01
okay - wait

wdennis
2017-09-22 22:01
UI shore is pretty tho :)

greg
2017-09-22 22:01
stop dr-provision

wdennis
2017-09-22 22:01
OK done

greg
2017-09-22 22:02
```sudo ./dr-provision --static-ip=192.168.1.158 --disable-dhcp --base-root=/home/dradmin/drp/drp-data --local-content="" --default-content=""```

wdennis
2017-09-22 22:06
Ok, let me try again

wdennis
2017-09-22 22:07
Phew :sweat_smile:

wdennis
2017-09-22 22:09
Now to commence the learnin'

wdennis
2017-09-22 22:11
So is there UI docs written yet?

greg
2017-09-22 22:13
oh no

greg
2017-09-22 22:13
:slightly_smiling_face:

greg
2017-09-22 22:13
previous usage should work. famous last words

wdennis
2017-09-22 22:13
TODO ? :stuck_out_tongue_winking_eye:

greg
2017-09-22 22:16
yes

zehicle
2017-09-23 20:39
If you've been using the new RackN UX then you've noticed the login buttons - those should be working now. There are a few changes in progress to save login sessions and allow storing endpoints if you are a registered user. There is NO COST for registering. The login is NOT required to use the endpoint admin features; however it will be required to access RackN content in the future.

wdennis
2017-09-24 03:07

rackn_eng
2017-09-24 04:49
yes - fix in process.

zehicle
2017-09-24 04:55
fix in is place

2017-09-25 23:27
A n00b here. Any pointers on how to figure out why a machine is getting a dhcp lease from dr-prov, but not completing the pxe boot?

shane
2017-09-25 23:28
Hello @nzsouthernman, welcome! What version of Digital Rebar Provision are you running ?

2017-09-25 23:28
check "drpcli prefs list" - make sure that you have set the unknown bootenv and default bootenv

2017-09-25 23:30
Running whichever version is 'stable' as of this morning.

2017-09-25 23:30
defaultboot is slegehammer, unknown is discovery.

shane
2017-09-25 23:31
Excellent -that should be the 3.1.0 release - you can verify this with `drpcli version`

2017-09-25 23:32
Version: v3.1.0-0-b70cf8ee1f61844a6d64070a8b272c2bec512204

2017-09-25 23:32
:)

2017-09-25 23:32
Currently running host & pxeclient on vmware, on an isolated vswitch that has a firewall between it & our core.

shane
2017-09-25 23:33
you can also take a look at things with the UI - if you haven't seen it already - simply point your web browser to your DRP endpoint w/ https and port 8092

shane
2017-09-25 23:34
The UI is running as the RackN portal - and your web browser proxies the connection to your DRP endpoint - your DRP endpoint does NOT reach out to the Portal

2017-09-25 23:35
Yeah, got the ui running (it's very nice btw), and checked the ISO's and earlier found that the initial sledgehammer I uploaded from the cli wasn't what the ui wanted. Downloaded and uploaded via the ui the sledgehammer b68 version and that appears to have made it happy.

shane
2017-09-25 23:36
presumably you see your pxeclient show up under the `Machines` inventory ?

2017-09-25 23:36
*made the ui happy. The pxeboot still doesn't seem to respond still.

shane
2017-09-25 23:36
wha bootenv does it show ?

2017-09-25 23:37
Nope. I only see the MAC under the Networking\leases as evidence that something's working.

2017-09-25 23:37
I had dhcp logging going and syslog showed the event.

shane
2017-09-25 23:40
could you please run `drpcli info get` for us?

2017-09-25 23:40
{ "api_port": 8092, "arch": "amd64", "dhcp_enabled": true, "file_port": 8091, "id": "00:50:56:9e:ec:bf", "os": "linux", "prov_enabled": true, "stats": [ { "count": 0, "name": "machines.count" }, { "count": 1, "name": "subnets.count" } ], "tftp_enabled": true, "version": "v3.1.0-0-b70cf8ee1f61844a6d64070a8b272c2bec512204" }


2017-09-25 23:42
Possibly something wrong with the DHCP config?

2017-09-25 23:43
it's a UX issue - can you get the subnet list from the CLI? I'll look at the UX render issue. It would help to have your subnet entry

shane
2017-09-25 23:44
sorry - you're seeing a current UX bug right now (UX is still in tech preview status) ... can you please do from CLI ?

shane
2017-09-25 23:44
:slightly_smiling_face:

2017-09-25 23:44
:D

2017-09-25 23:44
[ { "ActiveEnd": "192.168.1.200", "ActiveLeaseTime": 60, "ActiveStart": "192.168.1.100", "Available": true, "Enabled": true, "Errors": [], "Name": "ens192", "NextServer": "192.168.1.10", "OnlyReservations": false, "Options": [ { "Code": 0, "Value": "[object Object]" }, { "Code": 1, "Value": "255.255.255.0" }, { "Code": 2, "Value": "[object Object]" }, { "Code": 3, "Value": "[object Object]" }, { "Code": 4, "Value": "[object Object]" }, { "Code": 5, "Value": "[object Object]" }, { "Code": 28, "Value": "192.168.1.255" } ], "Pickers": [ "hint", "nextFree", "mostExpired" ], "ReadOnly": false, "ReservedLeaseTime": 7200, "Strategy": "MAC", "Subnet": "192.168.1.10/24", "Validated": true } ]

2017-09-25 23:45
Hmm, maybe I should delete and recreate my subnet from drpcli?

shane
2017-09-25 23:47
what is your "Reservation" strategy? Do you have reservations required ?

2017-09-25 23:48
No, no reservations required. host is 192.168.1.10, fw is 192.168.1.1, dhcp scope set 192.168.1.100-192.168.1.200. It's a test ip range, so pretty much anything is fine.

shane
2017-09-25 23:57
can you add a TFTP client to your endpoint (eg "yum install tftp" or "apt -y install tftp-hpa") then check that TFTP is working for you with this basic test: ```tftp 127.0.0.1 get default.ipxe```

shane
2017-09-25 23:58
even better would be a client in the same vswitch that has access to your endpoint - then hit your endpoint IP (192.168.1.10) for same test

2017-09-26 00:00
Testing what? browser to ui? I can bring up a linux vm on that vswitch pretty quickly.

shane
2017-09-26 00:00
testing basic TFTP to the drp endpoint

shane
2017-09-26 00:00
and that your tftpboot is serving the `default.ipxe` file

2017-09-26 00:14
Adjusted dhcp to look like this;

2017-09-26 00:14
[ { "ActiveEnd": "192.168.1.200", "ActiveLeaseTime": 60, "ActiveStart": "192.168.1.100", "Available": true, "Enabled": true, "Errors": [], "Name": "ens192", "NextServer": "192.168.1.10", "OnlyReservations": false, "Options": [ { "Code": 1, "Value": "255.255.255.0" }, { "Code": 3, "Value": "192.168.1.1" }, { "Code": 6, "Value": "192.168.1.1" }, { "Code": 28, "Value": "192.168.1.255" } ], "Pickers": [ "hint", "nextFree", "mostExpired" ], "ReadOnly": false, "ReservedLeaseTime": 7200, "Strategy": "MAC", "Subnet": "192.168.1.10/24", "Validated": true } ]

2017-09-26 00:15
No pxeboot stuff though. Which option should that go in?

2017-09-26 00:17
{Code: 3, Value: ip}, {Code: 6, Value: ip}, {Code: 15, Value: 'example.com'}, {Code: 67, Value: 'lpxelinux.0'}, ]

2017-09-26 00:17
where IP is generally from the drpcli interfaces list

2017-09-26 00:18
sorry about the UX bug... will get that updated tonight

2017-09-26 00:22
No worries about the UX, that stuff happens in products under dev. Current DHCP schema follows;

2017-09-26 00:22
{ "ActiveEnd": "192.168.1.200", "ActiveLeaseTime": 60, "ActiveStart": "192.168.1.100", "Available": true, "Enabled": true, "Errors": [], "Name": "ens192", "NextServer": "192.168.1.10", "OnlyReservations": false, "Options": [ { "Code": 1, "Value": "255.255.255.0" }, { "Code": 3, "Value": "192.168.1.1" }, { "Code": 6, "Value": "192.168.1.1" }, { "Code": 15, "Value": "burnside.school.nz" }, { "Code": 28, "Value": "192.168.1.255" }, { "Code": 67, "Value": "lpxelinux.0" } ], "Pickers": [ "hint", "nextFree", "mostExpired" ], "ReadOnly": false, "ReservedLeaseTime": 7200, "Strategy": "MAC", "Subnet": "192.168.1.10/24", "Validated": true }

shane
2017-09-26 00:24
FYI - your DRP endpoint does have a built in API documentation set - based on swagger: https://127.0.0.1:8092/swagger-ui/#/

2017-09-26 00:24
Unfortunately, still no pxeboot from my test client. The ubuntu VM I popped onto the subnet can browse ok now though.

shane
2017-09-26 00:24
Replace localhost w/ your endpoint URL - and you may need to update the Swagger URL bar with the correct IP addr

shane
2017-09-26 00:24
(though, admittedly - it doesn't document the DHCP option codes :slightly_smiling_face: )

2017-09-26 00:25
Hmmm, the test vm can browse externally, but can't access either the ui, or the swagger ui.

shane
2017-09-26 00:27
is your test vm able to tftp to the drp endpoint ? (also swagger-ui is HTTPS ... won't work on unencrypted http)

2017-09-26 00:28
Gotchya. Swagger works on https. Initially tried to redirect me to 127.0.0.1, but changing the redir to 192.168.1.10 brought up the ui. Will test tftp to the endpoint shortly.

2017-09-26 00:29
would you mind sharing the parameter list you started DRP with? it you did not set the static-ip then it could cause this problem

2017-09-26 00:29
Also, it would be helpful to have your drpcli interfaces show list

2017-09-26 00:31
[ { "ActiveAddress": "192.168.1.10/24", "Addresses": [ "192.168.1.10/24" ], "Index": 3, "Name": "ens192", "ReadOnly": true } ]

2017-09-26 00:31
systemd started the daemon, I'll dig around and see if I can find what it passed to the initial run of it.

2017-09-26 00:32
This was what I told it; sudo systemctl daemon-reload && sudo systemctl enable dr-provision

2017-09-26 00:33
This is what systemd has to say about the service;

2017-09-26 00:33
[Unit] Description=DigitalRebar Provision Integrated DHCP and File Provisioner Documentation=http://provision.readthedocs.io/en/latest/ After=network.target [Service] ExecStart=/usr/local/bin/dr-provision LimitNOFILE=1048576 LimitNPROC=1048576 LimitCORE=infinity TasksMax=infinity [Install] WantedBy=multi-user.target

shane
2017-09-26 00:35
can you please change the ExecStart stanza (in `/etc/systemd/system/dr-provision.service`) to append the following: ```--static-port=192.168.1.10```

2017-09-26 00:36
NOTE: static-ip

shane
2017-09-26 00:36
then `sudo systemctl daemon-reload && sudo systemctl restart dr-provision`

shane
2017-09-26 00:37
doh :slightly_smiling_face: thanks @zehicle - yeah (--static-ip=192.168.1.10) ... cut-n-paste of wrong line

2017-09-26 00:37
? dr-provision.service - DigitalRebar Provision Integrated DHCP and File Provisioner Loaded: loaded (/etc/systemd/system/dr-provision.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2017-09-26 13:36:51 NZDT; 1s ago Docs: http://provision.readthedocs.io/en/latest/ Process: 3294 ExecStart=/usr/local/bin/dr-provision --static-port=192.168.1.10 (code=exited, status=1/FAILURE) Main PID: 3294 (code=exited, status=1/FAILURE) Sep 26 13:36:51 lcrowbar01 systemd[1]: Started DigitalRebar Provision Integrated DHCP and File Provisioner. Sep 26 13:36:51 lcrowbar01 dr-provision[3294]: invalid argument for flag `--static-port' (expected int): strconv.ParseInt: parsing "192.168.1.10": invalid syntax Sep 26 13:36:51 lcrowbar01 systemd[1]: dr-provision.service: Main process exited, code=exited, status=1/FAILURE Sep 26 13:36:51 lcrowbar01 systemd[1]: dr-provision.service: Unit entered failed state. Sep 26 13:36:51 lcrowbar01 systemd[1]: dr-provision.service: Failed with result 'exit-code'.

2017-09-26 00:37
Didn't like that

2017-09-26 00:37
feck it, brb...

2017-09-26 00:38
that's better. testing now

2017-09-26 00:43
Ok. Will stop the daemon and run by hand. Will have another go at this tomorrow, thanks for your help so far today gentlemen.

shane
2017-09-26 00:49
@nzsouthernman - we'll look for you on the channel - cheers !!

lae
2017-09-26 07:07
``` {{if .ParamExists "part-scheme"}} {{template "part-seed-"+(.Param "part-scheme")+".tmpl" .}} {{else}} {{template "part-seed-default.tmpl" .}} {{end}} ``` so this isn't valid but I hope it should be obvious what I'm trying to do here - how can I get this effect of picking a template given a particular parameter? (not too familiar with golang/`text/template` and I'm still lost after looking at documentation)

greg
2017-09-26 13:11
```{{template (printf "part-seed-%s.tmpl" (.Param "part-scheme)) .}}```

greg
2017-09-26 13:11
I think, @lae

wdennis
2017-09-26 13:22
@lae @greg Parameterizing the OS install disks and the partitioning thereof should totally be a thing?

greg
2017-09-26 13:24
the os-disk is parameterized. @lae is working on parameterizing the partitioning scheme in a kickstart/preseed.

wdennis
2017-09-26 13:24
Of course, learning ?d-i partman? syntax is half the battle :stuck_out_tongue:

greg
2017-09-26 13:25
I suspect that @lae is just coming up with way to inject templates by variable name.

greg
2017-09-26 13:25
Then lots of templates could be hanging around.

greg
2017-09-26 13:25
by OS - most likely.

wdennis
2017-09-26 13:25
@greg The only edge-case I might see if making a linux-raid out of two/more hard disks before using the md as the disk to install on?

wdennis
2017-09-26 13:26
@lae is trying to do sub-templates?

wdennis
2017-09-26 13:28
It would be a great thing to have community-provided disk partitioning templates for preseed/kickstart

greg
2017-09-26 13:28
sub-templates work.

greg
2017-09-26 13:29
@lae is trying to generate parameterized named templates

wdennis
2017-09-26 13:39
@greg Sorry for my ignorance, but is that an entire ?top-level? template (like the standard ?net_seed.tmpl?) or a sub-template that would nest inside the top-level template?

greg
2017-09-26 13:40
golang text templates allow for templates in templates.

greg
2017-09-26 13:41
DRP originally (3.0.1) didn?t. We then added it to like 3.0.3 or 3.0.4.

greg
2017-09-26 13:41
This allows templates to include templates (recursively).

greg
2017-09-26 13:42
v3.1.0 adds tasks and stages which an alternative to some templates in templates.

greg
2017-09-26 13:42
Kickstarts/preseeds (the non-script parts) are perfect places for sub-templates. The command parts can be do better with tasks/stages now.

wdennis
2017-09-26 13:43
Hopefully we can learn about the new tasks/stages during the community call today

shane
2017-09-26 13:43
@wdennis - we'll be talking about the new v3.1.0 features :slightly_smiling_face:

shane
2017-09-26 13:44


wdennis
2017-09-26 13:45
Yes, parameter-driven sub-templates would be great for partitioning schemes - a collection of such templates could be community (or DR) provided, and less wheels reinvented

wdennis
2017-09-26 13:45
@shane, Thanks! will check this stuff out before the call

zehicle
2017-09-26 14:23
@wdennis the content system is also a key feature for 3.1 to help those reuse thoughts

wdennis
2017-09-26 17:57
@shane Meetup soon, right?

spector
2017-09-26 18:11

wdennis
2017-09-26 19:07
Nice work @shane :slightly_smiling_face:

shane
2017-09-26 19:07
Thx @wdennis - pleasure to "virtually meet" you :slightly_smiling_face:

shane
2017-09-26 19:08
- for those of you couldn't attend the meetup - we'll post the video shortly and provide links here ... keep an eye out for additional announcements on scheduling and agenda items for v002 meetup

lae
2017-09-26 20:09
@greg @wdennis that's exactly what I'm trying to do - have separate partitioning templates based on what workload is required the "edge-case" of making linux raid is well, an understatement. there are lots of possible disk layouts, including with LVM (such as making a layout that follows CIS benchmarks (https://www.cisecurity.org/cis-benchmarks/)) - I was originally doing the same thing back when I was using cobbler.

lae
2017-09-26 20:11
Anyway, so I tried what @greg provided but I get this: ``` [lae@yuzu provision-content]$ drpcli templates upload templates/labs-seed.tmpl as labs-seed.tmpl Error: Parse error for template labs-seed.tmpl: template: labs-seed.tmpl:65: unexpected "(" in template clause ```

2017-09-26 20:29
@zehicle Can't seem to find your slack invite. My gmail or uber account?

zehicle
2017-09-26 20:31
@stanchan checking...

zehicle
2017-09-26 20:32
gmail

wdennis
2017-09-26 20:45
@lae Will have to let @greg respond, not a golang guy myself, so not going to try to t?shoot the syntax? But, powerful idea, and looking forward to the solution :slightly_smiling_face:

wdennis
2017-09-26 20:45
My idea would be to have a library of disk partitioning templates that one could choose from for a given deployment

wdennis
2017-09-26 20:47
Most of my use cases use a single disk (could be a RAID virtual disk al la Dell PERC) with partitions for swap and then LVM PV, as is the case with default net_seed template

2017-09-26 20:47
Time to feed the :bear:!

wdennis
2017-09-26 20:47
But every once in a while, I get a more custom request, which I have to handle when I provision the ?n? systems of that type

wdennis
2017-09-26 20:49
@ use should be using the DR bear icon! :stuck_out_tongue:

shane
2017-09-26 20:49
@wdennis - we have a hardware RAID partitioning solution that will be released soon - that piece is a paid-for-content piece, as we've put a LOT of development and testing work in to it ... but it's designed to do a large number of flexible hw raid setups

wdennis
2017-09-26 20:50
@shane sounds very cool, but really thinking more about flexibility of Linux partitioning of one disk

shane
2017-09-26 20:51
are you using ubuntu or centos based distros ?

wdennis
2017-09-26 20:51
yes :stuck_out_tongue:

wdennis
2017-09-26 20:52
Actually mostly Ubuntu these days

shane
2017-09-26 20:52
well - as bad as 'debian installer' is - the 'partman' pieces do have some pretty flexible capabilities - albeit - not very intuitive .... and those could be pretty easily pushed in to a flexible set of templates

wdennis
2017-09-26 20:52
But have folks who occasionally spec CentOS

lae
2017-09-26 20:52
yeah, I'm pretty familiar with d-i's partman now

wdennis
2017-09-26 20:53
Yes, I wish d-i was as easy as kickstart?

shane
2017-09-26 20:53
@lae ... my condolences ... :slightly_smiling_face:

lae
2017-09-26 20:54
so like, I'd prefer to be able to use my own existing seeds with those layouts but at the moment I can only really do a copy of a seed per layout...which is gonna be a pain to manage if I brought every layout I used

lae
2017-09-26 20:54
hence, trying to parametrize the partitioning scheme template

wdennis
2017-09-26 20:54
I?d pay for a sane disk partitioning UI (like the Ubuntu installer?s for instance) that generates correct d-i partman lines?

lae
2017-09-26 20:54
disk partitioning UI sounds great

lae
2017-09-26 20:55
lot of work though, don't think that's what rackn worked on

lae
2017-09-26 20:55
(or maybe it is)

wdennis
2017-09-26 20:55
Once you have the correct d-i in a library of configs, it should be easy enough (?) to modify

wdennis
2017-09-26 20:55
Sounds like a community-contrib thing?

wdennis
2017-09-26 20:57
Would be great to have a way to have something like ?Ansible Galaxy? for DR community-provided resources

wdennis
2017-09-26 20:57
Exposed thru the DRP UX :slightly_smiling_face:

shane
2017-09-26 20:58
not UI pieces - but templates/profiles to and a plugin to drive the raid configs

wdennis
2017-09-26 21:01
What I was trying to say was if there is community-provided content (such as templates, content packs, plugins, etc.) There could be a way to browse them thru the UX (kind of like what?s available in GitHub Atom editor in the way of Packagaes / Themes)

wdennis
2017-09-26 21:02
It would be up to the end-user whether to trust them and utilize them or not (perhaps with a rating system?)

shane
2017-09-26 21:02
@wdennis - we have content browsing already in the UI ...

shane
2017-09-26 21:03
:slightly_smiling_face:

wdennis
2017-09-26 21:03
@shane Need to learn more about that :wink:

shane
2017-09-26 21:03
if you go to the Content page - the right side panel labeled "organization content" is a library of available content to pull in to your local Endpoint

wdennis
2017-09-26 21:03
Not too familiar yet about Content packs, Plugins, Stages, Tasks, Jobs


shane
2017-09-26 21:04
in that view, the middle panel is content I've added; the right panel is the available content

shane
2017-09-26 21:05
I added the content from the content library - but I did do it via the CLI - not UI ... could just as easily have clicked on the UI "Transfer" link

shane
2017-09-26 21:06
the content also is versioned - as you can see if something has an upgrade available - and you can choose to Upgrade your content pack for what you currently have installed

shane
2017-09-26 21:06
in that screen shot - the drp-community-content has an upgrade available

wdennis
2017-09-26 21:06
Yes, I see it in my DRP UI - all the available content right now is RackN-provided?

shane
2017-09-26 21:06
"drp-community-content" is the ... ahem ... Community Content :slightly_smiling_face: freely available

wdennis
2017-09-26 21:07
lol

shane
2017-09-26 21:07
some of that content you see is going to shuffle over to the "free-for-register" content

shane
2017-09-26 21:07
like I mentioned - UX is still Tech Preview ... and we're baking a few of the last bits

wdennis
2017-09-26 21:07
About registering - can self-create a RackN beta account, or how to do so?

shane
2017-09-26 21:08
@zehicle and team did an amazing job pulling all of that together

wdennis
2017-09-26 21:08
n.m - found ?sign up? link

shane
2017-09-26 21:08
Upper right - click on "RackN Login" and then sign up

wdennis
2017-09-26 21:16
OK, did signup

wdennis
2017-09-26 21:16
Went to Content page and tried to d/l update for community content, got error...


shane
2017-09-26 21:18
looks like you tried to add content that already exists

wdennis
2017-09-26 21:18
But anyways, get the idea...

shane
2017-09-26 21:18
"ce-root-access" already exists - you'd have to destroy it first, then re-create

carl
2017-09-26 21:22
So, `explode_iso.sh` is failing for every ISO I have uploaded with an exit code of 255

carl
2017-09-26 21:22
any ideas?

shane
2017-09-26 21:24
@wdennis - you have an older version of "drp-community-content" (note the long winded name w/ spaces)

shane
2017-09-26 21:24
you probably tried adding the newer pack "drp-community-content" - they're same things - just renamed

shane
2017-09-26 21:24
that's a bug I ran in to - and we got cleaned up a bit

shane
2017-09-26 21:25
you should be able to nuke the "Digital Rebar Provision Community Content" pack then Transfer the "drp-community-content" pack

wdennis
2017-09-26 21:25
Ok

shane
2017-09-26 21:25
Remember the golden rule: UX is Tech Preview still

shane
2017-09-26 21:25
:slightly_smiling_face:

wdennis
2017-09-26 21:29
And a damn fine tech preview it is

shane
2017-09-26 21:36
@carl - can you check the tftpboot/isos/ directory on your DRP Endpoint - the ISO gets staged there with "drpcli bootenvs uploadiso FOO" - then explode_iso.sh runs on it

shane
2017-09-26 21:36
additionally - check the filesystem space of your tftpboot/isos/ directory

shane
2017-09-26 21:37
if you did "isolated" install - then it's going to be in $HOME/drp-data/ location - if you did "production" install - it should be in /var/lib/dr-provision/tftpboot (for 3.1) or /var/lib/tftpboot (for 3.0.x)

greg
2017-09-26 21:51
@lae - I?ll try and look at it tonight.

greg
2017-09-26 21:51
I probably messed something up.

lae
2017-09-26 22:03
also thanks for the stickers! (they arrived today)

greg
2017-09-26 22:03
Nice!

spector
2017-09-26 22:10
For anyone who missed the meetup today, here is the https://youtu.be/LpVHYY9NdYo

lae
2017-09-26 23:36
hmm

lae
2017-09-26 23:36
I guess I could use ansible as another way to manage my templates

lae
2017-09-26 23:53
@lae uploaded a file: https://rackn.slack.com/files/U54E4SD4G/F79A7LEFL/image.png and commented: oh right - the machine overview is a little unwieldy when a lot of profiles exist

shane
2017-09-27 00:15
@lae - thx for the feedback on that - we know that page can get a bit crowded, and working on some ideas/thoughts around filtering and presentation of that information. If you have any ideas - feel free to share. :slightly_smiling_face:

shane
2017-09-27 00:21
- the v002 meetup details have been posted: meetup link: https://www.meetup.com/digitalrebar/events/243490128/ agenda document: https://docs.google.com/document/d/1FRFI-vONJY9yje9UsBqCI8XhojJ0XARsFgs4jbm-VRk also - vote now - if you'd like to see us move to a Weekly format with more demo/content versus the current published every-other-week format: meetup poll: https://www.meetup.com/digitalrebar/polls/1255504/


wdennis
2017-09-27 02:19
So, question about the RackN login on the DRP UI...

wdennis
2017-09-27 02:20
When I log in, it has my org as "Personal", no way to change that?

wdennis
2017-09-27 02:22
But bigger question - when I use the "sandwich" UI widget to open the left nav, and select Endpoints, I just see "127.0.0.1:8092" which of course is bogus, and there's no way to add actual DRP endpoints to that

shane
2017-09-27 02:23
"tech preview" :relaxed:

shane
2017-09-27 02:24
Multi-endpoint management not baked yet - simply change URL reference for now

wdennis
2017-09-27 02:24
Ah, got it

wdennis
2017-09-27 02:26
Maybe when I run into these problems, you can say I've been "TP'd" (tech previewed) :P

2017-09-27 02:26
Hi Gents. Update on yesterday - the issue is definitely the embedded dhcp server in dr-provision. I switched dhcp out to my firewall and enabled the pxeboot bits to pull off drp's tftp server and the sledgehammer env. booted fine, and now I have a machine registered.


zehicle
2017-09-27 02:31
@wdennis that is exactly the feature set that I'm working on right now... adding an endpoint exposed a validation loop. Once it's working, you'll be able to add/remove endpoints from your org. You'll also be able to shared orgs for multiple users. In the meantime, we can manually add endpoints for you on the backend so they correct on your list if you ask 1x1

wdennis
2017-09-27 02:37
@zehicle Cool, will PM details

greg
2017-09-27 03:02
@nzsouthernman_twitter - we should talk about it some more. We need to fix that. My guess is that the subnet isn?t quite right.

2017-09-27 03:03
Is there anything I can provide from my end to help? My working firewall is pfSense, and I just reloaded dr-provision with --disable-dhcp

greg
2017-09-27 03:04
The subnet will still be there

greg
2017-09-27 03:04
IT would be nice to see the subnet object and what the network specs are. Is DRP directly attached to the network in question?

2017-09-27 03:05
I first had it working by disabling the subnet in the UX entirely, then enabled fw dhcp server, entered the right next server & lpxelinux.o file and hey presto!

2017-09-27 03:05
Yes, drp is directly on the network. Network is an esxi 6.5 vswitch.

2017-09-27 03:05
{ "ActiveEnd": "192.168.1.200", "ActiveLeaseTime": 60, "ActiveStart": "192.168.1.100", "Available": true, "Enabled": false, "Errors": [], "Name": "ens192", "NextServer": "192.168.1.10", "OnlyReservations": false, "Options": [ { "Code": 1, "Value": "255.255.255.0" }, { "Code": 3, "Value": "192.168.1.1" }, { "Code": 6, "Value": "192.168.1.1" }, { "Code": 15, "Value": "burnside.school.nz" }, { "Code": 28, "Value": "192.168.1.255" }, { "Code": 66, "Value": "192.168.1.10" }, { "Code": 67, "Value": "lpxelinux.0" } ], "Pickers": [ "hint", "nextFree", "mostExpired" ], "ReadOnly": false, "ReservedLeaseTime": 7200, "Strategy": "MAC", "Subnet": "192.168.1.0/24", "Validated": true }

greg
2017-09-27 03:06
Okay - so - it sounds like it might be subnet config, but it also could be the vswitch. I seem to recall that the vswitch can ?help? by not letting broadcasts through in some cases and some settings.

2017-09-27 03:07
The test client is a vm with one vnic, on the drp vswitch. The drp host has one nic, on the drp vswitch. The pfsense fw has two nics, one on drp vswitch and one on our core lan.

greg
2017-09-27 03:07
The subnet looks okay - 66 isn?t required. the server fills it in.

2017-09-27 03:08
(all three machines are client vm's on the same esxi host)

2017-09-27 03:09
But you're probably right, it's most likely b/c drp is sitting on esxi. Ubuntu 16.04.3 with open-vm-tools installed, so the vnic should be 10gigE.

greg
2017-09-27 03:10
hmmm - A couple of other things you can try. If you want, the subnet looks okay. DRP has some preferences that control debugging. You can change the debugDhcp preference to 2 (through the cli) or HIGH in the global setup UI page. This will cause the DHCP server part of DRP to dump packet content.

greg
2017-09-27 03:10
That way we can see if DRP is getting and responding to DHCP messages.

greg
2017-09-27 03:11
Well, if we are in an Ubuntu vm, it should be okay.

greg
2017-09-27 03:11
Now, ubuntu firewall rules could get in the way. Not sure what you have there.

2017-09-27 03:11
It is indeed dishing out dhcp leases - I had them coming through yesterday ok.

2017-09-27 03:12
firewall should be disabled - that was one of the install instructions I followed yesterday when setting this all up.

greg
2017-09-27 03:12
okay - cool and good.

2017-09-27 03:13
dr-provision2017/09/27 02:29:48.674105 Received DHCP packet: type Discover xid 0x4f61e751 ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 02:29:48.674494 Received DHCP packet: type Request xid 0x4f61e751 ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 02:29:48.674718 xid 0x4f61e751: 192.168.1.104 is no longer able to be leased: No lease for 192.168.1.104, covered by subnet 192.168.1.0 These are from before I --disable-dhcp

2017-09-27 03:13
When I fired it up it cleaned out yesterday's leases

2017-09-27 03:14
ooh, ubuntu firewall may have been running... give me a sec...

greg
2017-09-27 03:15
also apparmor can do funky things to DHCP servers (though mostly keep them from starting).

2017-09-27 03:16
dr-provision2017/09/27 03:16:12.941340 Received DHCP packet: type Discover xid 0x579e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 03:16:15.028534 Received DHCP packet: type Discover xid 0x589e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 03:16:19.093171 Received DHCP packet: type Discover xid 0x599e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 03:16:27.167050 Received DHCP packet: type Discover xid 0x5a9e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dang.

2017-09-27 03:17
No dice. However under Subnets/Leases I see a brand new lease listed.

greg
2017-09-27 03:17
Make sure you enable the subnet if you are testing it

2017-09-27 03:18
dr-provision2017/09/27 03:17:45.724011 Received DHCP packet: type Discover xid 0x599e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 03:17:45.724446 Subnet ens192: handing out existing lease for 192.168.1.101 to MAC:00:50:56:9e:6e:cb dr-provision2017/09/27 03:17:53.798103 Received DHCP packet: type Discover xid 0x5a9e6ecb ciaddr 0.0.0.0 yiaddr 0.0.0.0 giaddr 0.0.0.0 chaddr 00:50:56:9e:6e:cb dr-provision2017/09/27 03:17:53.798614 Subnet ens192: handing out existing lease for 192.168.1.101 to MAC:00:50:56:9e:6e:cb Good catch Greg.

2017-09-27 03:18
But no pxeboot. :(

greg
2017-09-27 03:18
Yeah - your node isn?t accepting the DHCP reply for some reason, it appears.

2017-09-27 03:19
No matter - handing the pxeboot off to the firewall works for me while I'm fiddling around.

greg
2017-09-27 03:19
You should see an ACK and Request message.

2017-09-27 03:19
Have to head home now, will have another crack getting further tomorrow.

greg
2017-09-27 03:19
Make sure that the otehr DHCP servers are off as well in the future (just in case).

greg
2017-09-27 03:20
cool - though DRP is designed to work in the pfSense case as well.

wdennis
2017-09-27 03:20
I?m using pfSense as the DHCP server, handing off PXE boot to DRP

greg
2017-09-27 16:05
@lae - it turns out that `template` doesn?t do variable expansion on its parameters.

greg
2017-09-27 16:05
So, I wrote my own.

greg
2017-09-27 16:05
This will be in the next release. I?m putting in tip now.

greg
2017-09-27 16:05
This can be dangerous.

greg
2017-09-27 16:06
We don?t prevent loops

monkey
2017-09-27 16:46
yo - wow im on slack with you still

monkey
2017-09-27 16:46
did any check show up or do i need to call the bank :slightly_smiling_face:

zehicle
2017-09-27 17:51
@monkey moving this to 1x1

lae
2017-09-27 20:56
@greg are you basically just defining your own implementation for `template` on rendering the template? (just so I understand what's going on in that commit)

greg
2017-09-27 21:08
Yeah - the golang txt template call doesn?t know about templates to recurse (it seems like it should, but it doesn?t). So, that is what implemented.

greg
2017-09-27 21:08
@lae - I was waiting for the build to finish.

greg
2017-09-27 21:08
but here we go.

greg
2017-09-27 21:09
Tip is updated to have CallTemplate , which works like template but can take parameters.

greg
2017-09-27 21:10
This is ?dangerous? and probably when text template doesn;t really support it. You can create infinite loops. I?m not opposed to this. One day I may get around to writing a loop detector, but it isn?t there now.

greg
2017-09-27 21:10
Here is an example content file.

greg
2017-09-27 21:11
@greg uploaded a file: https://rackn.slack.com/files/U02DGQYK1/F7B17T1AB/template-test.yml and commented: Example CallTemplate content

greg
2017-09-27 21:11
To import it, you will need tip installed.

greg
2017-09-27 21:11
```drpcli contents create - < template-test.yml```

greg
2017-09-27 21:11
With this in place, I do this:

greg
2017-09-27 21:12
```drpcli machines create '{ "Name": "fred", "Address": "1.1.1.1", "Stage": "template-viewer" }'```

greg
2017-09-27 21:13
This creates a fake machine with stage set to `template-viewer` which implicitly sets the bootenv to `template-viewer`

greg
2017-09-27 21:14
```drpcli machines list Name=fred```

greg
2017-09-27 21:14
Get the UUID and do this:


greg
2017-09-27 21:22
should get this: ``` This is a test template. We are doing parameterized injection of templates. This is the empty template with no pills added. ```

greg
2017-09-27 21:23
```drpcli machines set f17a55fe-c415-4f38-88dd-6fdfb2ce0c8d param template-selector to blue-pill```

greg
2017-09-27 21:23
will get this:

greg
2017-09-27 21:23
``` This is a test template. We are doing parameterized injection of templates. This is the blue-pill. ```

greg
2017-09-27 21:23
setting `template-selector` to `red-pill` will get something different

greg
2017-09-27 21:24
You can probably guess.

greg
2017-09-27 21:25
Setting it to `green-pill` will show template in template expansion.

greg
2017-09-27 21:25
``` This is a test template. We are doing parameterized injection of templates. This is the green-pill. Is both pills at once. This is the blue-pill. This is the red-pill. ```

greg
2017-09-27 21:26
Setting a second variable `bonus-pill`

greg
2017-09-27 21:26
```drpcli machines set f17a55fe-c415-4f38-88dd-6fdfb2ce0c8d param template-bonus-pill to bonus-pill.tmpl```

greg
2017-09-27 21:26
Will import a template from within a template dynamically.

greg
2017-09-27 21:26
`bonus-pill` is a full template name.

greg
2017-09-27 21:28
setting `bonus-pill` to `centos-7.ks.tmpl` will embed the kickstart file in test template

greg
2017-09-27 21:28
This is how I often test my templates quickly.

greg
2017-09-27 21:29
@lae @shane hope that helps. :slightly_smiling_face:

shane
2017-09-27 21:31
@greg - that's awesome - nice job whipping this up so quickly ... hoping it solves @lae request

greg
2017-09-27 21:31
The pattern works for tasks too. Actually, it is really useful for tasks because tasks don?t have a direct render point like bootenvs do.

shane
2017-09-27 21:31
though I'm concerned .... you select "red" pill and "blue" pill and combined pill is "green". Shouldn't it be "purple" ??? :stuck_out_tongue_winking_eye:

greg
2017-09-27 21:32
That isn?t how light sabers work.

greg
2017-09-27 21:32
And yes the hate is flowing.

greg
2017-09-27 21:32
:slightly_smiling_face:

shane
2017-09-27 21:32
:slightly_smiling_face:

greg
2017-09-27 21:33
I had this earlier, but was waiting on the build to finish. Had to work around sourceforge being partially down.

lae
2017-09-27 21:45
lol

lae
2017-09-27 21:46
ok - just updated my deployment to tip (yay ansible) - will try `CallTemplate` in a bit

lae
2017-09-27 21:59
(it works)

lae
2017-09-27 22:00
\o/

greg
2017-09-27 22:12
:slightly_smiling_face:

zehicle
2017-09-27 22:38
if I'm reading this thread - we just added dynamic workflow to DRP. I thought v3.2 was more of a cleanup release :stuck_out_tongue:

zehicle
2017-09-27 22:38
very exciting stuff

stanchan740
2017-09-28 01:49
has joined #community201709

wdennis
2017-09-29 18:00
@shane / @greg - would it be possible to create a video based on the already-published vid of Terraform/DRP integration, showing creation of the stages / workflows / parameters used to do the install at Packet?

shane
2017-09-29 18:01
hey @wdennis - you can see the drpcli calls I made in that video in the github content - it's all posted there


shane
2017-09-29 18:02
the "demo-run.sh" is just the front-end driver to the process which controls the bin/control.sh script - that script makes all of the direct calls to do the work

shane
2017-09-29 18:02
we have the "5min-drp" video posted in youtube - but it doesn't directly show the drpcli commands

wdennis
2017-09-29 18:02
It's not the 5-min DRP install one, but the Terraform integration one @greg did the demo on

wdennis
2017-09-29 18:05
https://youtu.be/5bxcpmxQXx4 - interested in how the stuff used at around 5:00 in the vid was created

shane
2017-09-29 18:06
stage maps ?

shane
2017-09-29 18:06
those are plumbed in via the 5min-drp cli calls too

wdennis
2017-09-29 18:07
Well, how to create the stages 1st, then tie them together in maps (workflows?)

shane
2017-09-29 18:08
sure - the JSON blob that's used to inject the stages ... sort of shows it ... we're working on getting better doc on the 3.1 features on the website around that

shane
2017-09-29 18:08
you can also piece stages together in the UI ... so for first time work - it's a good process to follow

shane
2017-09-29 18:08
then you can pull the JSON blob that gets built from the UI

wdennis
2017-09-29 18:09
I'll review the 5-min vid in the meantime


wdennis
2017-09-29 20:47
problem - restarted DRP (isolated mode) and am getting a TLS Exception error when trying UI...


greg
2017-09-29 20:50
reclick it- your certs should be generated.

greg
2017-09-29 20:50
could have been

wdennis
2017-09-29 20:50
No good

wdennis
2017-09-29 20:50
Still getting error

greg
2017-09-29 20:51
Hard reset the browser window? Not sure.


wdennis
2017-09-29 20:55
Did restart browser - still getting the error...

greg
2017-09-29 20:55
Ddi you click to https://192.168.1.148

wdennis
2017-09-29 20:55
Yes

wdennis
2017-09-29 20:58
How to "Accept Certificate"?

greg
2017-09-29 20:58
advanced button usually.

greg
2017-09-29 20:58
The browser should warn saying self-signed cert.

wdennis
2017-09-29 21:00
If I go to the DRP server's URL, it just flips me back to the RackN UX


greg
2017-09-29 21:02
Then you?ve accepted the cert

wdennis
2017-09-29 21:02
The DRP server software gens a SSL cert?

greg
2017-09-29 21:03
yes to do ssl

wdennis
2017-09-29 21:03
Where located?

greg
2017-09-29 21:03
in the directory where you started drp

greg
2017-09-29 21:03
server.crt and server.key

wdennis
2017-09-29 21:04
I see 'server.crt' and 'server.key' in my base DRP directory, but they have old dates...

greg
2017-09-29 21:05
we will reuse them.

greg
2017-09-29 21:05
It is most likely something else.

greg
2017-09-29 21:05
does the cli work?

wdennis
2017-09-29 21:06
Yes, drpcli works


greg
2017-09-29 21:08
You closed the browser and repoened it.

greg
2017-09-29 21:08
Log out from the Saas Part (in the upper right corner) and refresh everything.

wdennis
2017-09-29 21:09
Yup, then even rebooted browser host system

wdennis
2017-09-29 21:10
Ok, signed out then back in to RackN UX site

wdennis
2017-09-29 21:10
Now will use sandwich menu and select my endpoint

wdennis
2017-09-29 21:11
Still getting TLS Exception

greg
2017-09-29 21:11
just use the DRP endpoint redirect. I?m worried that some cookies are something are getting in the way.

greg
2017-09-29 21:11
Because it may be that you need to enter https://

greg
2017-09-29 21:11
it is supposed to add it, but it may not be working.

wdennis
2017-09-29 21:12
Did that, no good still

greg
2017-09-29 21:12
That is why I want you to log out of the RackN Portal. Then use the DRP redirect to see if you can access the DRP pages.

wdennis
2017-09-29 21:13
I did

greg
2017-09-29 21:13
okay

wdennis
2017-09-29 21:13
Trying another client system now

wdennis
2017-09-29 21:15
Port 8092 right?

greg
2017-09-29 21:15
yes

wdennis
2017-09-29 21:16
Browser can't connect on this one...

greg
2017-09-29 21:17
firewall rules?

wdennis
2017-09-29 21:18
Oh goddamn it

wdennis
2017-09-29 21:18
YES

wdennis
2017-09-29 21:18
Stupid docker

wdennis
2017-09-29 21:22
Note to self: find way of perma-clearing docker-created iptables rules on my DRP host

wdennis
2017-09-29 21:23
So, that's weird that the UX was throwing a TLS error when really it couldn't connect to the endpoint...

greg
2017-09-29 21:24
apparently. It is the normal cause for failure.

greg
2017-09-29 21:24
I think it is a guess and points to the most likely failure.

wdennis
2017-09-29 21:30
'systemctl stop firewalld; systemctl mask firewalld' FTW

lae
2017-09-30 20:55
or just, `firewall-cmd --zone=public --addport=8092/tcp --permanent && firewall-cmd --reload`

lae
2017-09-30 20:55
anyway, I just happened to stumble onto this, happy birthday to rackn's twitter account

lae
2017-09-30 20:55
or well whoever's birthday the rackn's twitter account is set to

zehicle
2017-10-01 03:46
Thanks! Tomorrow is our official 3 year anniversary

zehicle
2017-10-01 03:46
we just updated the Ansible integration to make it easier. Demo is of Kubernetes deploy. https://youtu.be/b5himGQ1Zew