Skip to content

Upgrade Salt to 3003.1 #3436

@TeddyAndrieux

Description

@TeddyAndrieux

Component:

'salt'

Why this is needed:

To follow new Salt versions

What should be done:

Upgrade Salt to the latest version (3003.1 when this ticket get opened)

Implementation proposal (strongly recommended):

This branch https://github.com/scality/metalk8s/compare/improvement/salt-3003


May need some more investigation,
An issue with Salt-API for the storage operator, I don't know if it's a bug in the new Salt version or if it's just something that changed in Salt-API (did not see anything related to this in Salt changelog).

When the storage operator tries to get the device name of a device the salt API return is wrong.

Manual tests output:

Salt API (existing device):

$ curl -Ski -b cookies.txt https://192.168.1.100:4507/ -H "Accept: application/x-yaml" -H "Content-type: application/json" -d '[{"client": "local", "tgt": "bootstrap", "fun": "metalk8s_volumes.device_name", "arg": ["/dev/loop1"]}]'
HTTP/1.1 200 OK
Content-Type: application/x-yaml
Server: CherryPy/5.6.0
Date: Wed, 30 Jun 2021 15:04:53 GMT
Allow: GET, HEAD, POST
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: GET, POST
Access-Control-Allow-Credentials: true
Cache-Control: private
Vary: Accept-Encoding
Content-Length: 27
Set-Cookie: session_id=23be7c9b8690d47c3cc695388c337fcadcae546e; expires=Thu, 01 Jul 2021 01:04:53 GMT; Path=/

return:
- bootstrap: false

Salt call (existing device)

$ salt-call metalk8s_volumes.device_name /dev/loop1
local:
    ----------
    result:
        loop1
    success:
        True

Salt call (device that does not exist)

$ salt-call metalk8s_volumes.device_name /dev/invalid-path
local:
    ----------
    result:
        device `/dev/invalid-path` not found
    success:
        False

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:dependenciesPull requests that update a dependency filestate:blockedSomething prevents this from being worked onstate:questionFurther information is requestedtopic:saltEverything related to SaltStack in our product

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions