[CNV] The service account does not refresh after VM migration
Issue
Once a service account is mounted to the VM and VM is migrated token still points to the old virt-launcher pod.
Pod before migration
NAME READY STATUS RESTARTS AGE
virt-launcher-xtbx02-7pnhq 0/1 Completed 0 18m
Pod after migration
NAME READY STATUS RESTARTS AGE
virt-launcher-xtbx02-dmbbl 1/1 Running 0 3m18s
Checking JSON web token inside VM it still shows name of the old pod before miration
{
"aud": [
"https://kubernetes.default.svc"
],
"exp": 1672934711,
"iat": 1641398711,
"iss": "https://kubernetes.default.svc",
"kubernetes.io": {
"namespace": "s-testbox-02",
"pod": {
"name": "virt-launcher-xtbx02-7pnhq", ----------------->
"uid": "58ea2a5f-9794-433c-845b-76c69634752f"
},
Environment
Container Native Virtualization 4.9.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.