adamant-kite-43734
05/16/2024, 10:21 AMsticky-tailor-45974
05/16/2024, 3:17 PMplain-night-85586
05/16/2024, 11:59 PMplain-night-85586
05/17/2024, 2:55 AMapiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
kind: ManagedOSVersion
metadata:
name: v1.1.1-custom-build
namespace: fleet-default
spec:
metadata:
displayName: Custom build image
upgradeImage: myrepo/my-elemental-img:v1.1.1
type: container
version: v1.1.1
I have created an upgrade group with the following and it is sitting there with WaitApplied(1):
apiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
kind: ManagedOSImage
spec:
clusterTargets:
- clusterName: pch-test
managedOSVersionName: v1.1.1-custom-build
nodeSelector:
matchLabels:
<http://kubernetes.io/hostname|kubernetes.io/hostname>: mynode
osImage: ''
upgradeContainer:
envs:
- name: FORCE
value: 'true'
status:
conditions:
- lastTransitionTime: '2024-05-17T02:28:30Z'
message: ''
reason: FleetBundleCreateSuccess
status: 'True'
type: FleetBundleCreation
- lastTransitionTime: '2024-05-17T02:28:30Z'
message: WaitApplied(1) [Cluster fleet-default/pch-test]
reason: UnknownReason
status: 'False'
type: Ready
- lastTransitionTime: '2024-05-17T02:28:30Z'
message: ''
reason: UnknownReason
status: 'True'
type: Processed
How can I troubleshoot this further? Do I need to trigger the upgrade? I thought as soon as I create an upgrade group it will trigger right away?
Also if I attempt to create an upgrade group in the UI I get no clusters showing in the list and no managed OS images appearing in the list as per attached screenshots - also showing the list of OS images available, so not sure why none are appearing.sticky-tailor-45974
05/17/2024, 1:50 PMmyrepo/my-elemental-img:v1.1.1
is reachable from the node. Also if you deployed the v2.0.2
image you could eventually test a downgrade to v1.2.3
or viceversa.
From this basic scenario then I would try to go into a more fine grained setup by creating your own ManagedOSVersion resource.plain-night-85586
05/18/2024, 4:44 AMapiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
kind: ManagedOSVersion
metadata:
generation: 1
labels:
<http://elemental.cattle.io/channel|elemental.cattle.io/channel>: elemental-channel
name: v1.1.1-custom-build
namespace: fleet-default
ownerReferences:
- apiVersion: <http://elemental.cattle.io/v1beta1|elemental.cattle.io/v1beta1>
controller: true
kind: ManagedOSVersionChannel
name: elemental-channel
uid: 5db83cc7-3e39-441e-a6ad-50f62c16fbe7
spec:
metadata:
displayName: Custom build image
upgradeImage: myrepo/elemental-img:v1.1.1
type: container
version: v1.1.1
As you can see I've added it to the elemental-channel - I had trouble creating a custom channel... any tips on that?plain-night-85586
05/18/2024, 10:10 AM