[node-devel] fix no key "OVIRT_BOOTPARAMS" problem occured in ovirt-node's install

Fabian Deutsch fabiand at redhat.com
Fri Jun 21 07:33:18 UTC 2013


Hey Bohai (or ricky?),

Am Freitag, den 21.06.2013, 06:37 +0000 schrieb Bohai (ricky):
> I found the "No key" exception occurred in overt-node's install progress.
> For the detail, please see the attached picture.

The patch below looks quite okay, but could you also explain what you
did to run into this problem? The kernel arguments and installation
method would be interesting.

Thanks
fabian

> This patch fixs the problem.
> 
> I am a newbie for ovirt-node and I apologize if I am missing something very obvious.
> Any advice is welcomed.
> 
> 
> diff --git a/src/ovirtnode/install.py b/src/ovirtnode/install.py
> index 7b95b04..eae26ba 100755
> --- a/src/ovirtnode/install.py
> +++ b/src/ovirtnode/install.py
> @@ -475,7 +475,8 @@ initrd /initrd0.img
>          else:
>              self.root_param = "root=live:LABEL=Root"
>              self.bootparams = "ro rootfstype=auto rootflags=ro "
> -        self.bootparams += OVIRT_VARS["OVIRT_BOOTPARAMS"].replace(
> +
> +        self.bootparams += OVIRT_VARS.get("OVIRT_BOOTPARAMS", "").replace(
>                                                              "console=tty0", "")
>          if " " in self.disk or os.path.exists("/dev/cciss"):
>              # workaround for grub setup failing with spaces in dev.name:
> 
> bohai(ricky)
> boh.ricky at gmail.com
> 
> 
> _______________________________________________
> node-devel mailing list
> node-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/node-devel





More information about the node-devel mailing list