-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MTV-1590 Improved hooks description #586
base: main
Are you sure you want to change the base?
Conversation
7ebbf4a
to
b68d6c3
Compare
c0e8df2
to
931c4a2
Compare
.. Mounts the `configmap` to the container. | ||
+ | ||
The Ansible hook imports the Secret that the user previously entered. | ||
. The job runs a prehook or a posthook as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
. The job runs a prehook or a posthook as follows: | |
. The job runs a pre-migration hook or a post-migration hook as follows: |
I would probably be explicit... as I do not like prehook
and posthook
(but this is your choice not mine)
|
||
|
||
|
||
|
||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know what i am going to say :)
.. Mounts the `configmap` to the container. | ||
+ | ||
The Ansible hook imports the Secret that the user previously entered. | ||
. The job runs a prehook or a posthook as follows: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OR... use the style you use later
. The job runs a prehook or a posthook as follows: | |
. The job runs a `PreHook` or a `PostHook` as follows: |
---- | ||
apiVersion: v1 | ||
data: | ||
key: VGhpcyB3YXMgZ2VuZXJhdGVkIHdpdGggc3NoLWtleWdlbiBwdXJlbHkgZm9yIHRoaXMgZXhhbXBsZS4KSXQgaXMgbm90IHVzZWQgYW55d2hlcmUuCi0tLS0tQkVHSU4gT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCmIzQmxibk56YUMxclpYa3RkakVBQUFBQUJHNXZibVVBQUFBRWJtOXVaUUFBQUFBQUFBQUJBQUFCbHdBQUFBZHpjMmd0Y24KTmhBQUFBQXdFQUFRQUFBWUVBMzVTTFRReDBFVjdPTWJQR0FqcEsxK2JhQURTTVFuK1NBU2py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ZEFBQUFIR3BoYzI5dVFFRlVMVGd3TWxVdWJXOXVkR3hsYjI0dWFXNTBjbUVCQWdNRUJRWT0KLS0tLS1FTkQgT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCgo= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we need to include this secret
.
Do you think we can abbreviate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key: VGhpcyB3YXMgZ2VuZXJhdGVkIHdpdGggc3NoLWtleWdlbiBwdXJlbHkgZm9yIHRoaXMgZXhhbXBsZS4KSXQgaXMgbm90IHVzZWQgYW55d2hlcmUuCi0tLS0tQkVHSU4gT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCmIzQmxibk56YUMxclpYa3RkakVBQUFBQUJHNXZibVVBQUFBRWJtOXVaUUFBQUFBQUFBQUJBQUFCbHdBQUFBZHpjMmd0Y24KTmhBQUFBQXdFQUFRQUFBWUVBMzVTTFRReDBFVjdPTWJQR0FqcEsxK2JhQURTTVFuK1NBU2pyTGZLNWM5NGpHdzhDbnA4LwovRHErZHFBR1pxQkg2ZnAxYmVJM1BZZzVWVDk0RVdWQ2RrTjgwY3dEcEo0Z1R0NHFUQ1gzZUYvY2x5VXQyUC9zaTNjcnQ0CjBQdi9wVnZXU1U2TlhHaDJIZC93V0MwcGh5Z0RQOVc5SHRQSUF0OFpnZmV2ZnUwZHpraVl6OHNVaElWU2ZsRGpaNUFqcUcKUjV2TVVUaGlrczEvZVlCeTdiMkFFSEdzYU8xN3NFbWNiYUlHUHZuUFVwWmQrdjkyYU1JdWZoYjhLZkFSbzZ3Ty9ISW1VbQovdDdHWFBJUmxBMUhSV0p1U05odTQzZS9DY3ZYd3Z6RnZrdE9kYXlEQzBMTklHMkpVaURlNWd0UUQ1WHZXc1p3MHQvbEs1CklacjFrZXZRNUJsYWNISmViV1ZNYUQvdllpdFdhSFo4OEF1Y0czaGh2bjk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pobEE0Rkg4ZXN1NTNQckZqVW9EeFJhb3d3WXBFcFh5Y2pnNUE1MStwR1VQcWljWjB0YjliaWlhc3BWWXZhWW5sdGlnVG5iClN0UExMY29nemNiL0dGcVYyaXlzc3lwTlMwKzBNRTUxcEtxWGNaS2swbi8vVHpZWWs4TW8vZzRsQ3pmUEZQUlZrVVM5blIKWU1pQzRlcEk0TERmbVdnM0xLQ2N1Zk85all3aWgwYlFBQUFNRUE2WEtldDhEMHNvc0puZVh5WFZGd0dyVyszNlhBVGRQTwpMWDdjaStjYzFoOGV1eHdYQWx3aTJJNFhxSmJBVjBsVEhuVGEycXN3Uy9RQlpJUUJWSkZlVjVyS1daZTc4R2F3d1pWTFZNCldETmNwdFFyRTFaM2pGNS9TdUVzdlVxSDE0Tkc5RUFXWG1iUkNzelE0Vlk3NzQrSi9sTFkvMnlDT1diNzlLYTJ5OGxvYUoKVXczWWVtSld3blp2R3hKNldsL3BmQ2xYN3lEVXlXUktLdGl0cWNjbmpCWVkyRE1tZURwdURDYy9ZdDZDc3dLRmRkMkJ1UwpGZGt5cDlZY3VMaDlLZEFBQUFIR3BoYzI5dVFFRlVMVGd3TWxVdWJXOXVkR3hsYjI0dWFXNTBjbUVCQWdNRUJRWT0KLS0tLS1FTkQgT1BFTlNTSCBQUklWQVRFIEtFWS0tLS0tCgo= | |
key: VGhpcyB3YXMgZ2Vu ... |
+ | ||
[NOTE] | ||
==== | ||
You can also use a `here` document to encode a playbook: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you explain a bit more, as i got a bit confused?
[id="adding-migration-hook-via-ui_{context}"] | ||
= Adding a migration hook to a migration plan using the {ocp} web console | ||
|
||
You can add a migration hook to an existing migration plan using the {ocp} web console. Note that you will need to execute one command in the {project-first} CLI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a migration hook to an existing migration plan using the {ocp} web console. Note that you will need to execute one command in the {project-first} CLI. | |
You can add a migration hook to an existing migration plan using the {ocp} web console. Note that you will need to run one command in the {project-first} CLI. |
i think excute
might be a problematic word
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...and I'd remove "will"
|
||
[NOTE] | ||
==== | ||
You can run one pre-migration hook, one post-migration hook, or one of each, per migration plan. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can run one pre-migration hook, one post-migration hook, or one of each, per migration plan. | |
You can run one pre-migration hook, one post-migration hook, or one of each per migration plan. |
.Prerequisites | ||
|
||
* Migration plan | ||
* Migration hook file, whose contents you will copy-paste into the web console. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Migration hook file, whose contents you will copy-paste into the web console. | |
* Migration hook file, whose contents you will copy and paste into the web console. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I'd remove "will". :-)
==== | ||
|
||
* File containing the `Secret` for the source provider | ||
* {ocp} service account that has at least write-access permission for the namespace you are working in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* {ocp} service account that has at least write-access permission for the namespace you are working in | |
* {ocp} service account that has at least write access for the namespace you are working in |
|
||
You can add a migration hook to an existing migration plan using the {project-first} CLI. | ||
|
||
You can add a `PreHook` or a `PostHook` Hook CR when you migrate a virtual machine from the command line by using the {project-full} API. A `PreHook` runs before a migration, a `PostHook`, after. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add a `PreHook` or a `PostHook` Hook CR when you migrate a virtual machine from the command line by using the {project-full} API. A `PreHook` runs before a migration, a `PostHook`, after. | |
You can add a `PreHook` or a `PostHook` Hook CR when you migrate a virtual machine from the command line by using the {project-full} API. A `PreHook` runs before a migration, a `PostHook`, after a migration. |
Sometimes best to be explicit about this type of thing
You can retrieve additional information stored in a secret or in a `configMap` by using a `k8s` module. | ||
==== | ||
|
||
For example, you can create a hook CR to install `cloud-init` on a VM and write a file before migration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, you can create a hook CR to install `cloud-init` on a VM and write a file before migration. | |
For example, you can create a hook CR to install the `cloud-init` service on a VM and write a file before migration. |
==== | ||
|
||
* File containing the `Secret` for the source provider | ||
* {ocp} service account that has at least write-access permission for the namespace you are working in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* {ocp} service account that has at least write-access permission for the namespace you are working in | |
* {ocp} service account that has at least write access for the namespace you are working in |
|
||
.Example migration hook | ||
[source,yaml,subs="attributes+"] | ||
---- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there anything to called-out on this YAML?
|
||
[IMPORTANT] | ||
==== | ||
In order for a hook to run on a VM, the VM must be started and available via SSH. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check our standards. Not sure we use "via".
|
||
You can add hooks to {project-first} migration plans using either the {project-short} CLI or the {project-short} user interface, which is located in the {ocp} web console. | ||
|
||
* Hooks that perform operations on VMs before migration are called _pre-migration_ hooks. A pre-migration hook is performed on a VM that is located on the provider and prepares the VM for migration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As always, up to you what you want to incorporate. :-)
Pre-migration hooks are hooks that perform operations on a VM that is located on a provider. This prepares the VM for migration.
|
||
* Hooks that perform operations on VMs before migration are called _pre-migration_ hooks. A pre-migration hook is performed on a VM that is located on the provider and prepares the VM for migration. | ||
|
||
* Hooks that perform operations on VMs after migration are called _post-migration_ hooks. A post-migration hook is performed on a VM after it has been migrated to {virt}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post-migration hooks are hooks that perform operations on a VM that has migrated to {virt}.
An Ansible playbook that is provided as part of a migration hook is mounted into the hook container as a `configmap`. The hook container is run as a job on the desired cluster, using the default `ServiceAccount` in the `konveyor-forklift` namespace. | ||
|
||
|
||
When you add a hook, you must specify the namespace where the `Hook` CR is located, the name of the hook, and specify whether the hook is a pre-migration hook or a post-migration hook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think you need the second "specify."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the figure, looks like "post migration" is truncated.
In order for a hook to run on a VM, the VM must be started and available via SSH. | ||
==== | ||
|
||
The illustration that follows shows the general process of using a migration hook. Specific procedures are described in xref:adding-migration-hook-via-ui_{context}[Adding a migration hook to a migration plan using the {ocp} web console] and xref:adding-migration-hook-via-cli_{context}[Adding a migration hook to a migration plan using the CLI]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe...
For specific procedures, see XXX. (If see is allowed per our standards. I felt that the procedures themselves are probably given versus "described.")
* VMs running on Microsoft Server only: Remote Execution enabled | ||
|
||
.Procedure | ||
. If needed, create a Secret with an SSH private key for the VM. You can either use an existing key or generate a key pair, install the public key on the VM, and base64 encode the private key in the Secret. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe: If needed, create a Secret with an SSH private key for the VM.
- (sub-steps) Choose an existing key or generate a key pair.
- Install the public key on the VM.
- Encode the private key in the secret to base64.
MTV 2.8
Resolves https://issues.redhat.com/browse/MTV-1590 by revising section 6.4. of the MTV user guide, "https://docs.redhat.com/en/documentation/migration_toolkit_for_virtualization/2.7/html-single/installing_and_using_the_migration_toolkit_for_virtualization/index#adding-hooks-migration-plan-using-api"
Preview: https://file.corp.redhat.com/rhoch/improved_hook_description/html-single/#adding-hooks-mtv-migration-plan