trinityX
trinityX copied to clipboard
Osimage rename
000099 12:48:47 [root@controller1 compute]# luna osimage show compute
+-----------------------------------------------------------------------------------+
| Osimage => compute |
+------------------+----------------------------------------------------------------+
| name | compute |
| grab_filesystems | /, /boot |
| grab_exclude | /proc/*, /sys/*, /dev/*, /tmp/*, /var/log/* |
| initrdfile | rhel-9.3-1714427984-initramfs-5.14.0-362.24.1.el9_3.0.1.x86_64 |
| kernelversion | 4.18.0-513.24.1.el8_9.x86_64 |
| kernelfile | rhel-9.3-1714427984-vmlinuz-5.14.0-362.24.1.el9_3.0.1.x86_64 |
| kernelmodules | ipmi_devintf, ipmi_si, ipmi_msghandler |
| kerneloptions | net.ifnames=0 biosdevname=0 |
| path | /trinity/images/compute |
| imagefile | None |
| distribution | redhat |
| osrelease | 8 |
| comment | None |
| tag | default |
+------------------+----------------------------------------------------------------+
000099 12:48:50 [root@controller1 compute]# luna osimage rename compute rhel-8.9
Osimage compute is renamed to rhel-8.9.
000099 12:49:20 [root@controller1 compute]# luna osimage show rhel-8.9
+-----------------------------------------------------------------------------------+
| Osimage => rhel-8.9 |
+------------------+----------------------------------------------------------------+
| name | rhel-8.9 |
| grab_filesystems | /, /boot |
| grab_exclude | /proc/*, /sys/*, /dev/*, /tmp/*, /var/log/* |
| initrdfile | rhel-9.3-1714427984-initramfs-5.14.0-362.24.1.el9_3.0.1.x86_64 |
| kernelversion | 4.18.0-513.24.1.el8_9.x86_64 |
| kernelfile | rhel-9.3-1714427984-vmlinuz-5.14.0-362.24.1.el9_3.0.1.x86_64 |
| kernelmodules | ipmi_devintf, ipmi_si, ipmi_msghandler |
| kerneloptions | net.ifnames=0 biosdevname=0 |
| path | /trinity/images/rhel-8.9 |
| imagefile | None |
| distribution | redhat |
| osrelease | 8 |
| comment | None |
| tag | default |
+------------------+----------------------------------------------------------------+
000099 12:54:31 [root@controller1 site]# luna -V
luna 2.0.1714481282
000099 12:54:35 [root@controller1 site]# luna osimage list
+-----------------------------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
| 8 | test-8.9 | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/test-8.9 | redhat | 8 |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
000099 12:54:41 [root@controller1 site]# luna osimage rename test-8.9 spet
Osimage test-8.9 is renamed to spet.
000099 12:54:48 [root@controller1 site]# luna osimage list
+-----------------------------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
| 8 | spet | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/spet | redhat | 8 |
+---+------------------+----------------------------------+----------------------------------+--------------+-----------+
000099 12:54:49 [root@controller1 site]#
Rename also changes the path? But it doesn't seem consistent. This time it was renamed but the path stayed the same, on a different controller with the same luna version
[root@controller-el8 files]# luna osimage list
+-------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+---------+------------------------------+-------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+---------+------------------------------+-------------------------+--------------+-----------+
| 1 | compute | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/compute | redhat | 8 |
+---+---------+------------------------------+-------------------------+--------------+-----------+
[root@controller-el8 files]# luna osimage rename compute test-8.9
Osimage compute is renamed to test-8.9.
[root@controller-el8 files]# luna osimage list
+--------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+----------+------------------------------+-------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+----------+------------------------------+-------------------------+--------------+-----------+
| 1 | test-8.9 | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/compute | redhat | 8 |
+---+----------+------------------------------+-------------------------+--------------+-----------+
[root@controller-el8 files]# luna osimage list
+--------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+----------+------------------------------+-------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+----------+------------------------------+-------------------------+--------------+-----------+
| 1 | test-8.9 | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/compute | redhat | 8 |
+---+----------+------------------------------+-------------------------+--------------+-----------+
[root@controller-el8 files]# ls ^C
[root@controller-el8 files]# luna -V
luna 2.0.1714481282
[root@controller-el8 files]# luna osimage change test-8.9 --path /trinity/images/test-8.9
Osimage test-8.9 is updated.
[root@controller-el8 files]# luna osimage rename test-8.9 spet2
Osimage test-8.9 is renamed to spet2.
[root@controller-el8 files]# luna osimage list
+------------------------------------------------------------------------------------------------+
| << Osimage >> |
+---+-------+------------------------------+--------------------------+--------------+-----------+
| # | name | kernelversion | path | distribution | osrelease |
+---+-------+------------------------------+--------------------------+--------------+-----------+
| 1 | spet2 | 4.18.0-513.24.1.el8_9.x86_64 | /trinity/images/test-8.9 | redhat | 8 |
+---+-------+------------------------------+--------------------------+--------------+-----------+
this is due to an old request to have plugin features, letting the (Z)FS decide where the location is. If there is no path declared in the DB (quasi default), the plugin (meant for path discovery) will kick in. If this one doesn't know, we have to make something up, which is this.