Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • NetworkManager NetworkManager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 165
    • Issues 165
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • NetworkManagerNetworkManager
  • NetworkManagerNetworkManager
  • Issues
  • #784
Closed
Open
Issue created Aug 24, 2021 by Henry Hoegelow@hhoegelo

Save a Connection created by AddConnectionUnsaved does not store the PSK

nm-issue.sh

When developing a setup procedure using AddConnectionUnsaved and Settings.Connection.Save, I stumbled over the issue demonstrated in the attached script:

  • Working:

    • AddConnectionUnsaved
    • ActivateConnection
    • Settings.Connection.Save
    • => the created connection file contains PSK
  • Not Working:

    • AddConnectionUnsaved
    • ActivateConnection
    • Wait for connection established
    • Settings.Connection.Save
    • => the created connection file is missing the PSK
  • Working:

    • AddConnectionUnsaved
    • ActivateConnection
    • Wait for connection established
    • Settings.Connection.GetSecrets
    • Settings.Connection.Save
    • => the created connection files contains a PSK

How to use the script:

./nm-issue.sh save-immediately

... will create and connect, then save without any waiting. Afterwards it will try to find the PSK in the according connection file.

./nm-issue.sh wait-for-active

... will create and connect, then wait for the connection to be established, then save. When trying to find the PSK in the according connection file, it will fail.

./nm-issue.sh get-secrets

... will create and connect, then wait for the connection to be established, then call GetSecrets, then save. When trying to find the PSK in the according connection file, it will succeed.

Expected behavior would be that all three test cases will create proper connection files.

Running NM 1.22.10 on Ubuntu 20.04.3 LTS (Focal Fossa) Reproducible with NM 1.18.4 on yocto-based ARM firmware

Edited Aug 24, 2021 by Henry Hoegelow
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking