Jarrod Johnson
c47066d713
Include ubuntu material in packaging
2023-08-17 14:11:41 -04:00
Jarrod Johnson
8ddcf45e1d
Create links for ubuntu20.04 and ubuntu22.04
2023-08-17 14:03:55 -04:00
Jarrod Johnson
53d2b873a2
Package ubuntu 22.04 diskless
2023-08-17 11:28:29 -04:00
Jarrod Johnson
bc7dbeebea
Add ubuntu 22.04 diskless
2023-08-17 11:16:32 -04:00
Jarrod Johnson
1b2d8a0596
Merge branch 'ubuntucloning' of github.com:lenovo/confluent into ubuntucloning
2023-08-17 11:16:01 -04:00
Jarrod Johnson
f3e7d4ab67
Merge pull request #92 from sjtstg/nmcli-autoconnect
...
Confignet does not set autoconnect with network manager
2023-08-17 08:06:54 -04:00
Simon Thompson
b27542ec00
Confignet does not set autoconnect with network manager so disk installed images do not bring up interface on reboot
2023-08-17 10:30:36 +02:00
Jarrod Johnson
58cc9840b3
Prune out any netplan configuration, if exists
...
To mitigate chance of network configuration
being tanked by image based
net config, mask it when capturing.
2023-08-16 14:28:10 -04:00
Jarrod Johnson
84d23bb1fd
Begin work on Ubuntu cloning
2023-08-16 12:00:50 -04:00
Jarrod Johnson
ae915cd735
Merge pull request #126 from weragrzeda/master
...
nodelist delimiters
2023-08-15 11:03:48 -04:00
weragrzeda
c7a323b370
nodelist delimiters fixed for py2 compatibility
2023-08-15 16:31:38 +02:00
root
9e070a14d4
nodelist delimiters
2023-08-15 15:58:10 +02:00
Jarrod Johnson
189ba525d3
Merge pull request #91 from sjtstg/ansible-play-fix
...
fix ansible support when multi stage plays are in playbook
2023-08-15 08:38:56 -04:00
Jarrod Johnson
5068cda2cf
Catch another sort of exception for non-rpm distributions
...
subprocess may produce a different sort of exception if
rpm doesn't exist at all
2023-08-14 09:23:00 -04:00
Jarrod Johnson
95c5253944
Remove CIDR prefix length in ubuntu 20 deployment
...
This produces invalid configuration for subiquity otherwise.
2023-08-11 15:01:55 -04:00
Jarrod Johnson
ca2dcd2dbe
Reference identity network in ubuntu 20.04
...
When using identity image, also use identity image
for network configuration.
2023-08-11 14:34:12 -04:00
Jarrod Johnson
dba6e7f378
Change Ubuntu 20.04 to be consistent to 22.04
...
This aims to bring
identity image deployment fully to ubuntu 20.0.4.
2023-08-11 13:44:37 -04:00
Jarrod Johnson
0b7247d386
Fix CentOS 7 routed deployment with identity image
...
Numerous issues prevented the identity image support from actually running,
correct them.
2023-08-10 16:27:42 -04:00
Jarrod Johnson
75add230b6
Skip API key init on checkonly runs
...
Checkonly does not require API key, and makes apiclient more dependent
on material that is unlikely to exist early in a deployment.
2023-08-09 11:13:09 -04:00
Jarrod Johnson
75082c4418
Move up creation of ca.pem
2023-08-03 14:03:36 -04:00
Jarrod Johnson
9a1c9eb43f
Improve ssh concurrency on websocket
...
ssh module was pausing input for the
entire websocket while doing the simple 'write' operation.
Change to background the actual
logon processing,
rather than blocking what should be a fairly trivial write operation.
2023-08-03 09:56:36 -04:00
Jarrod Johnson
89bd798f8b
Increasing time again, outlet count didn't factor
2023-08-02 15:20:29 -04:00
Jarrod Johnson
bf10e58f00
Bump version
...
With recent collective changes, bump the version to block connection with
older collective members until upgraded.
2023-08-02 13:43:41 -04:00
Jarrod Johnson
cbf2cdcdc5
Scale timeout with number of outlets
...
Delta PDUs seem to serialize outlet operation.
2023-08-01 16:08:51 -04:00
Jarrod Johnson
987587aaf8
Allow custom auth file to define valid roles
2023-07-26 16:37:55 -04:00
Jarrod Johnson
ad25c31d3f
Correct error in check_for_yaml function in auth
2023-07-26 16:15:36 -04:00
Jarrod Johnson
b1018d648e
Hook loading of /etc/confluent/authorization.yaml
...
This should permit custom roles to be defined.
2023-07-26 16:05:29 -04:00
Jarrod Johnson
a18d0f10b7
Clean up stale lvm devices files
...
During cloning, stale lvm devices file may cause
ugly output. Remove stale files before proceeding down steps
that trigger lvm warnings.
2023-07-26 07:54:41 -04:00
Jarrod Johnson
65ac3de21b
Take EL9 version of image2disk for improvements with parted supervision
2023-07-26 07:26:49 -04:00
Jarrod Johnson
c9d9a3cc54
Add EL9 cloning support
...
Main difference from EL8 is different grub strategy. To cope, capture
the uuid of new /boot and manipulate the
stub grub.cfg with the right uuid.
In EL8, the efi has the main grub, EL9 changes to have /boot host the 'real' grub,
causing us to have to modify the stub grub.
2023-07-25 17:09:37 -04:00
Jarrod Johnson
957b979dde
Reorder imports in configmanager to mitigate circular import
2023-07-24 13:38:44 -04:00
Jarrod Johnson
48c4a2e062
Have reconnects use new TCP connections
...
Current code was trying to reuse connections that would be useless,
explicitly go to new TCP connections for reconnection.
2023-07-24 12:31:32 -04:00
Jarrod Johnson
285a159ba5
Implement a number of improvements for collective
...
For one, remove 'non-voting' members from being leaders.
Large number of leader candidates create long delays for
converging on a valid organization. Further, some treat 'non-voting'
more roughly, inducing the worst case convergence scenario of unclean
shutdown of leader.
Convergence now happens fairly quickly for collectives with large
number of non-voting members.
During initial DB transfer, the leader would be tied up unreasonably
long handling the jsonification of a large configuration. Offload to a worker
process to allow the leader to continue operation while this intensive, rare
operation occurs.
Reliably run a reassimilation procedure for the lifetime of the leader.
This allows orphaned members to be prompted to join the correct leader.
Serialize the onboarding of a connecting member, and have redundancy more gracefully
paused. This avoids excessive waiting in lock and more deterministic timing
with respect to timeout expectations by the connecting system.
2023-07-24 11:11:39 -04:00
Jarrod Johnson
8ea2ba046e
Sort the IP addresses in nodediscover for consistent UI
2023-07-19 16:16:27 -04:00
Jarrod Johnson
f16daa44dd
Handle older python with addrinfo
...
While newer python omits '%',
older python includes. Change to handle
either form.
2023-07-19 16:04:25 -04:00
Jarrod Johnson
03fce4f762
Adjust sys.path logic in macmap and osimage
...
Ensure the sys.path logic
is before attempting
the relevant imports.
2023-07-19 12:15:01 -04:00
Jarrod Johnson
809099c8f8
Specifically wait for /dev/disk/by-label
...
When udev is populating the disk hierarchy, it can be a long time
before the 'by-label' is specifically ready.
Wait for that specific entry to come along before continuing to
check if there's an identity image.
2023-07-07 15:32:47 -04:00
Jarrod Johnson
a875f0d3e1
Correct syntax error in selfservice
2023-07-06 14:04:49 -04:00
Simon Thompson
6ee9f96e08
fix ansible support when multi stage plays are in playbook
2023-07-06 09:34:38 +02:00
Jarrod Johnson
fcc62b7cb7
Improve confluent scanning on newer python
...
Newer python changed the format of peer[0], adapt to the change
to use the socket info if not available in the peer[0] string.
2023-07-05 16:34:37 -04:00
Jarrod Johnson
11cb47c03e
Use natural sort on some self service calls
2023-07-05 16:18:49 -04:00
Jarrod Johnson
afc78513a1
Merge pull request #90 from sjtstg/ansible-fixes
...
Ansible fixes
2023-07-05 16:15:30 -04:00
Simon Thompson
45f22c3e31
when host is not in hosts file, group_vars is not loaded, change logic to emulate host being in hosts file with no groups to ensure group_vars is loaded which permits use of dynamic grouping in plays
2023-07-05 21:25:25 +02:00
Simon Thompson
d0f978548e
sort directory listing to make ansible plays and script order deterministic
2023-07-05 21:23:55 +02:00
Jarrod Johnson
052d16aa49
Avoid modifying PYTHONPATH
...
Since there's a possibility of cross-python invocation,
avoid modifying PYTHONPATH
2023-07-05 11:40:00 -04:00
Jarrod Johnson
7ddd2c2e6e
Correct mistakes in shebang adaptive behavior
2023-07-05 11:14:32 -04:00
Jarrod Johnson
9186c8142c
Fix incorrect reference in the smm validation by certificate
2023-06-28 13:13:26 -04:00
Jarrod Johnson
c07248d58e
Fix outlet control on Geist PDUs.
2023-06-27 08:04:16 -04:00
Jarrod Johnson
013de4f881
Adapt to ansible python runtime
...
Unfortunately, python being python, ansible may elect to install under a
different python runtime than confluent.
In such a case, hope that the ansible python can work.
Remove eventlet as a hard requirement, as
that is unlikely to be in ansible python.
This leaves msgpack, which is unavoidable, for now. But if it's in ansible python,
it's fine.
2023-06-26 15:41:44 -04:00
Jarrod Johnson
795b4c513d
Rework for connected temperature sensors
...
PDUs behave differently when a sensor module is
connected. Handle
that difference and
provide the relevant data.
2023-06-26 12:32:45 -04:00