Skip to content
This repository has been archived by the owner on Mar 25, 2023. It is now read-only.

OTA & KVS support #1436

Open
bwsw opened this issue Nov 23, 2018 · 0 comments
Open

OTA & KVS support #1436

bwsw opened this issue Nov 23, 2018 · 0 comments

Comments

@bwsw
Copy link
Owner

bwsw commented Nov 23, 2018

When KVM & OTA services are present, then this plugin may be used. It's activated in the config from the UI perspective. The plugin implements secure API-VM, VM-API interfaces.

VM creation alteration

Before implementing the plugin UI must implement an altered VM deployment mechanism, which first creates VM stopped and next starts VM. This is important from the perspective of KVS implementation because KVS uses VM UUID and it's impossible to build user data when an VM is started upon creation. So the process must be implemented as follows:

  1. create VM stopped
  2. get VM KVS and private key for it.
  3. create OTA token for the KVS credentials.
  4. set userdata with OTA credentials.
  5. start VM

UI additional interfaces

A new tab must be implemented for VM, which displays KVS when the plugin is enabled. The tab is very similar to the tags tab but allows to refresh values and allows to set new K/V when users want to.

When VM is created a new tab must be added where the user may add userdata in the form of K/V. When the plugin is disable, the user enters userdata in the form of raw text which must be base64-d before VM creation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants