Streisand: Migrate to Linode API v4

Created on 20 Oct 2018  路  7Comments  路  Source: StreisandEffect/streisand

(Originally articulated in https://github.com/StreisandEffect/streisand/issues/1449 by @patthiel. Thanks!)

Expected behavior:

Streisand can create a Linode instance using the modern V4 API token created via the https://cloud.linode.com interface.

Actual Behavior:

Streisand can only create Linode instances using a deprecated V3 API with API tokens created from a legacy location: https://manager.linode.com/profile/api_key_create

Steps to Reproduce:

  1. Create a V3 API token
  2. Follow the Streisand setup for Linode and provide the V3 API token

Fix

Streisand should migrate to the V4 API, or remove Linode support since it will break when the V3 API is removed. It sounds like switching to V4 would be blocked on an updated ansible linode module.

areansible areprovisioning providelinode statublockedep statuhelp-wanted

Most helpful comment

@e-ht there is a Linode API v4 ansible module that was developed over the last few months. It is due to ship in Ansible 2.8 in May 2019, according to this roadmap: https://docs.ansible.com/ansible/devel/roadmap/ROADMAP_2_8.html

You may want to hold off until then, as the module will make this task considerably easier. I am also happy to help review and/or implement this work once the Ansible 2.8 is out. (but if you want to take a shot at it before then, i am happily help review and help as well!)

All 7 comments

The issue highlighted here is correct, but the referenced api versions are incorrect. Streisand is currently compatible with the deprecated Linode APIv3. Streisand should migrate to using the Linode APIv4. Switching to using V4 is blocked by the ansible linode module

@patthiel Oops! Thanks, fixed to reflect we're using V3 now and need to switch to V4.

Is anyone working on this currently? I am familiar with the Linode API and could take this on.

@e-ht PRs are always welcome :)

@e-ht there is a Linode API v4 ansible module that was developed over the last few months. It is due to ship in Ansible 2.8 in May 2019, according to this roadmap: https://docs.ansible.com/ansible/devel/roadmap/ROADMAP_2_8.html

You may want to hold off until then, as the module will make this task considerably easier. I am also happy to help review and/or implement this work once the Ansible 2.8 is out. (but if you want to take a shot at it before then, i am happily help review and help as well!)

Looks like i neglected to update this ticket a while back! https://github.com/StreisandEffect/streisand/pull/1580 implements this issue, it can be closed now 鉂わ笍

OK!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TheNomad11 picture TheNomad11  路  5Comments

obilodeau picture obilodeau  路  4Comments

tomchiverton picture tomchiverton  路  6Comments

wicknet picture wicknet  路  5Comments

juneyao picture juneyao  路  6Comments