Skip to content
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

Upgrading from CAPMVM 0.4.0 to 0.7.0 requires updates to the cluster objects #213

Open
LutzLange opened this issue Aug 19, 2022 · 2 comments
Labels
kind/documentation Documentation only

Comments

@LutzLange
Copy link

LutzLange commented Aug 19, 2022

What happened:
I did update to flintlock v0.2.0 and capmvm v0.7.0 from capmvm v0.4.0

The schema did change in a few places and updates to my existing cluster templates and cluster objects in git were required.

From the single sshPublicKey to sshPublicKeys. I used these commands :

  1. Remove lutz@dellbook on separate lines
    $ sed -i 's/^ *lutz@dellbook//' clusters/management/clusters/*.yaml
  2. Match & replace sshPublicKey with sshPublicKeys
    $ sed -i -e 's/^ sshPublicKey: \(.*\)/ sshPublicKeys:\n - user: root\n authorizedKeys:\n - \1/' clusters/management/clusters/*.yaml
  3. Remove mountpoint entries for the rootVolumes
    $ sed -i '/^ *mountPoint:/d' ~/git/demo3-repo/clusters/management/clusters/*.yaml
    Updating CAPI templates :
  4. sshPublicKeys
    $ sed -i -e 's/^ sshPublicKey: \(.*\)/ sshPublicKeys:\n - user: root\n authorizedKeys:\n - \1/' capmvm-*.yaml
  5. Provider-id
    $ sed -i 's#provider-id:.*#provider-id: "microvm://{{ ds.meta_data.vm_host }}/{{ ds.meta_data.instance_id }}"#' capmvm-*.yaml
  6. Mountpoint issue
    $ sed -i '/^ *mountPoint:/d'

It might be helpful for others that face the same situation.

@LutzLange LutzLange added the kind/bug Something isn't working label Aug 19, 2022
@LutzLange
Copy link
Author

This is not a bug, but I can't remove that label.

@Callisto13
Copy link
Member

🙌 thanks lutz, i'll update the labels

@Callisto13 Callisto13 added kind/documentation Documentation only and removed kind/bug Something isn't working labels Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/documentation Documentation only
Projects
Status: Backlog
Development

No branches or pull requests

2 participants