Jarrod Johnson
ca9655cd5e
Cover the more common use case
...
With confluent running as non-root, it is now very much more
likely that it is a directory permission issue.
Since the root user is commonly asking a lesser privileged service to do the operation.
2020-07-09 11:46:06 -04:00
Jarrod Johnson
2bfbfeb4d3
Add ntp to deploycfg data
2020-07-09 11:35:11 -04:00
Jarrod Johnson
771c3a2984
Rework error message to look nicer
2020-07-09 11:12:00 -04:00
Jarrod Johnson
55ee203974
Improve error handling in pxe
...
If a name resolution error happens,
put an event in events for the
cleaner error.
2020-07-09 10:56:09 -04:00
Jarrod Johnson
d5ff9b4cb5
Add missing traceback import to pxe
...
This concludes fixing the
susceptability to total
loss of pxe thread.
2020-07-09 10:44:05 -04:00
Jarrod Johnson
48804ed23f
Initialize needed tracelog
...
pxe was trying to use tracelog
without actually initializing it
2020-07-09 10:25:28 -04:00
Jarrod Johnson
d80a58304c
Fix incorrect indentation
...
The exception was incorrectly
over indented.
2020-07-09 10:10:20 -04:00
Jarrod Johnson
994c53191c
Improve resience of snoop threads
...
slp could crash in active_scan,
removing it's ability to passively scan.
pxe snoop could crash and go away persistently.
2020-07-09 09:53:25 -04:00
Jarrod Johnson
68c4652662
Fix per-collective globals
...
set_global is explicitly not
collective enabled, however
collective was causing partial
propagation.
Fix by removing the global carry over and having
commit_clear restore the non-key globals.
2020-07-09 09:10:24 -04:00
Jarrod Johnson
4ecae144d9
Attempt to have both short and long names
...
In ssh, long or short name may matter and user may use short
or long names as node names.
Try to make ssh equipped to be apathetic about the choice.
2020-07-02 12:40:30 -04:00
Jarrod Johnson
fa6d42b1b3
Clear stagedprofile
...
staged profile should be cleared on completion.
2020-07-01 15:35:17 -04:00
Jarrod Johnson
2c30d4069c
Correct syntax error in selfservice
2020-07-01 15:20:06 -04:00
Jarrod Johnson
78e5d343e7
Implement a 'staged' phase of profile
...
This allows a limbo where remote deployment is blocked
but final deployment is not yet flagged.
2020-07-01 14:01:28 -04:00
Jarrod Johnson
22085e38f5
Change bound to 'tpm2'.
...
This is a bit more logical and flexible for the future.
2020-07-01 13:33:59 -04:00
Jarrod Johnson
1a664f669c
Use client provided hint for net selection
...
More precise then trying to do by IP subnet
2020-06-30 14:58:04 -04:00
Jarrod Johnson
cadb222904
Add missing bit from last commit
2020-06-26 15:21:00 -04:00
Jarrod Johnson
3fed7ea075
Implement more context data in discovery
...
Let the client know the management
interface and whether that subnet has the nicest match
for a primary network.
2020-06-26 15:15:13 -04:00
Jarrod Johnson
86e944b3a4
Correct typo in function call
2020-06-26 14:11:50 -04:00
Jarrod Johnson
05fb763200
Try to auto-restart httpd on initialize
...
During setup process, restart
the service on behalf of user
if appropriate service file is found.
2020-06-26 12:49:28 -04:00
Jarrod Johnson
1896b51f82
Add emphasis to the HTTPS cert
...
This is a particularly significant
step that warrants highlighting.
2020-06-26 12:40:07 -04:00
Jarrod Johnson
a704c0cdab
Be more verbose in osdeploy initialize
...
Output was a tad terse.
2020-06-26 08:19:22 -04:00
Jarrod Johnson
283cd6318e
Fix osdeploy -u
...
If running osdeploy -u by itself,
we did in fact do something.
2020-06-26 08:11:30 -04:00
Jarrod Johnson
250a39bfef
Change name of libarchive dependency
...
SLES12 builds without the '2', and other distros provide
both.
2020-06-25 10:29:27 -04:00
Jarrod Johnson
32dff34f29
Add floppy to setboot options
...
'floppy' is used for small
hard disk boot in some scenarios.
2020-06-22 12:13:14 -04:00
Jarrod Johnson
6a272d17c5
Amend python2 dependencies for osdeploy
...
We use yaml and libarchive-c, have python2 rpms also pull them in.
2020-06-22 09:14:32 -04:00
Jarrod Johnson
fd82c584d3
Rename osimage in template to osdeploy
2020-06-19 09:24:26 -04:00
Jarrod Johnson
e8d00bf229
Rename osimage command to osdeploy
...
Do not imply 'imaging' when it's a more generic deployment
facility, that might not even implement imaging.
2020-06-19 08:43:28 -04:00
Jarrod Johnson
ac2e41bd78
First pass at RHV4 support
...
Derive from EL8 with some EL7 vintage accomodations
2020-06-18 12:36:00 -04:00
Jarrod Johnson
d40426ff54
More cleanly error on unknown media
...
Rather than raise ugly unexpected
errors and pollute trace log,
cleanly handle the likelihood
of unknown media.
2020-06-18 11:11:53 -04:00
Jarrod Johnson
1c579723cc
Check current SMM IP before pushing config
...
If the user requests the same ip address that
is already present, leave the network configuration
alone.
2020-06-18 09:02:09 -04:00
Jarrod Johnson
d4736e0aad
Do not respond to deployment calls without quorum
2020-06-17 11:09:05 -04:00
Jarrod Johnson
86de9ce276
Do not answer deploy solicit without quorum
...
If we are not in quorum, we cannot provide
credible answers to deployment.
2020-06-17 11:07:54 -04:00
Jarrod Johnson
895430a89c
Remove systemd management of /var/lib/confluent
...
systemd was too easily confused by the state
directory, remove it.
2020-06-16 09:16:01 -04:00
Jarrod Johnson
e1de56f19b
Correct typo in osimage.py
...
Wrong variable name...
2020-06-12 14:43:00 -04:00
Jarrod Johnson
fc7ad4b028
Generate different boot.cfg for esxi
...
media boot and pxe boot need
two different strategies for module
location. Print the two cfg files
with the respectively useful
values.
2020-06-12 14:27:37 -04:00
Jarrod Johnson
cb19425435
Import media world-readable
...
In the absence of extensions,
libarchive assumes ISO content
is private. Always make content
world readable for the sake of
confluent-public serving.
2020-06-12 11:54:37 -04:00
Jarrod Johnson
92913e1119
Fix path to kernel in boot.cfg
...
esxi was pointed to the wrong
location.
2020-06-12 11:12:57 -04:00
Jarrod Johnson
76f256a344
Fix missing quote that broke build
2020-06-12 10:36:06 -04:00
Jarrod Johnson
207065aab3
Fix more permission problems
...
Some ESXi contents that need to
be world readable are fixed.
2020-06-12 09:55:25 -04:00
Jarrod Johnson
5129b9fe9b
Write more useful boot.cfg
...
ESXi should access using relative
path, rather than going to root
for everything.
2020-06-12 09:34:52 -04:00
Jarrod Johnson
db7c5adf8d
Add PXE to esxi os images
...
This will attempt to use
ipxe correctly when PXE
initiates the deployment.
2020-06-11 17:14:14 -04:00
Jarrod Johnson
68f000838e
Relocate boot.ipxe
...
It looks a bit weird in the linux and outright bizarre
in the vmware case.
2020-06-11 15:28:45 -04:00
Jarrod Johnson
f78b358cd7
Try to adapt for esxi6.7
...
ESXi 6.7 had further restrictions
2020-06-11 09:26:40 -04:00
Jarrod Johnson
0a1409ffcf
Amend esxi update
...
Some mistakes were made in the profile
2020-06-10 12:34:46 -04:00
Jarrod Johnson
873190cae9
Fix tgz generation
...
Previous attempt was duplicating files in the
archive, which caused vmware kernel to
fail to unpack them.
2020-06-10 12:17:51 -04:00
Jarrod Johnson
783c6ce7b6
Revise the esxi tar strategy
...
Finally, it has been ascertained
that ESXi rejecting the tar
was due to not having directories
explicitly listed, not because of
forbidding new paths or compression.
2020-06-10 10:37:14 -04:00
Jarrod Johnson
facba645c5
Revert "Switch to tar"
...
This reverts commit c6d0c121d4
.
2020-06-10 10:17:54 -04:00
Jarrod Johnson
c6d0c121d4
Switch to tar
...
esxi seems to be inconsistent with working with
gz compressed tar, see if plain tar fares better
2020-06-10 09:44:44 -04:00
Jarrod Johnson
d4f46a53e0
Fix tar generation of site
...
site content was nat being
correctly packed to tgz.
2020-06-10 09:42:44 -04:00
Jarrod Johnson
3b940b6194
Rename site contents in tgz
...
This moves location of site data for esxi
2020-06-09 16:40:29 -04:00